/* ===== RESET & VARIABLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #00B4FF;
    --color-primary-dark: #0098D8;
    --color-dark: #2f2e2e;
    --color-gray: #333333;
    --color-text: #555555;
    --color-text-light: #777777;
    --color-white: #ffffff;
    --color-bg-light: #f9f9f9;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 60px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--color-dark);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-logo svg {
    height: 32px;
    width: auto;
}

.nav-logo-text {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-white);
    text-transform: lowercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease;
    cursor: pointer;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-dark);
    min-width: 200px;
    list-style: none;
    padding: 10px 0;
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

.nav-links .lang-selector {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-primary);
    cursor: pointer;
    border: 1px solid var(--color-primary);
    padding: 4px 12px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-links .lang-selector:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1.3rem;
    color: var(--color-dark);
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--color-primary);
}

.mobile-submenu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: -10px;
    margin-bottom: 5px;
}

.mobile-submenu a {
    font-size: 1.1rem;
    padding-left: 20px;
    border-left: 2px solid var(--color-primary);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.75) 0%, rgba(0, 100, 180, 0.4) 50%, rgba(0, 180, 255, 0.15) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 0 80px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 35px;
}

.btn-primary {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-primary);
    border: none;
    padding: 14px 35px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 255, 0.3);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 100px 80px;
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M50,50 Q100,0 150,50 Q200,100 150,150 Q100,200 50,150 Q0,100 50,50' fill='none' stroke='%2300B4FF' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    opacity: 0.08;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-dark);
    letter-spacing: -0.3px;
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.9;
}

.about-text .about-line {
    width: 50px;
    height: 2px;
    background: var(--color-primary);
    margin-top: 25px;
    margin-bottom: 20px;
}

.about-cta {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.about-cta:hover {
    opacity: 0.7;
}

.about-media {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    position: relative;
}

.about-media img,
.about-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 180, 255, 0.4);
    transition: transform 0.3s ease;
}

/* Play button for video overlay */
.about-media .play-btn {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-btn img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 100px 80px;
    background: var(--color-primary);
    text-align: center;
}

.services-section .section-title {
    color: var(--color-white);
    margin-bottom: 60px;
}

.services-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-img .service-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-img .service-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.service-card-content {
    padding: 30px;
    text-align: left;
}

.service-card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.service-card-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-card-content .more-link {
    font-size: 0.8rem;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.service-card-content .more-link:hover {
    opacity: 0.7;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 100px 80px;
    background: var(--color-white);
}

.projects-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-item {
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.4s ease;
}

.project-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.project-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.project-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-item-overlay {
    opacity: 1;
}

.project-item-overlay h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== CLIENTS SECTION ===== */
.clients-section {
    padding: 80px;
    background: var(--color-white);
    text-align: center;
}

.clients-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    width: 100%;
    max-width: 140px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo svg {
    max-width: 100%;
    max-height: 100%;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 80px;
    background: var(--color-primary);
    text-align: center;
}

.contact-section .section-title {
    color: var(--color-white);
    margin-bottom: 15px;
}

.contact-email {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: block;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.contact-social a {
    color: var(--color-white);
    font-size: 0.85rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-social a:hover {
    opacity: 0.7;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--color-dark);
    background: var(--color-white);
    outline: none;
    transition: box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 2px var(--color-primary-dark);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-form button {
    background: var(--color-dark);
    color: var(--color-white);
    border: none;
    padding: 14px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    align-self: center;
}

.contact-form button:hover {
    background: #333;
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 80px;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo svg {
    height: 50px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 4px;
    text-transform: lowercase;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.footer-info h4 {
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    opacity: 0.6;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-primary);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== PAGE SECTIONS ===== */
.page {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page.active {
    display: block;
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 30px;
    }

    .hero-content {
        padding: 0 40px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .about-section,
    .services-section,
    .projects-section,
    .clients-section,
    .contact-section {
        padding: 80px 30px;
    }

    .footer {
        padding: 50px 30px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger span {
        background: var(--color-white);
    }

    .hero-content {
        padding: 0 30px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-info {
        align-items: center;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Project video responsiveness with aspect-ratio wrapper */
.proj-video-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
}

.proj-video-wrap video.project-video {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: contain;
}