/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', Georgia, serif;
    background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 50%, #f8fafc 100%);
    background-size: 200% 200%;
    animation: gradientMove 8s ease-in-out infinite;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes gradientMove {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* --- Animated floating shapes background --- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, #6366f1 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, #a5b4fc 0%, transparent 60%),
        radial-gradient(circle at 50% 90%, #f8fafc 0%, transparent 70%);
    opacity: 0.18;
    animation: bgMove 16s linear infinite alternate;
}
@keyframes bgMove {
    0% { filter: blur(0px); }
    100% { filter: blur(8px); }
}

/* Header Styles */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0; /* Reduced from 2rem to match footer better */
    box-shadow: 0 2px 12px #6366f122;
    display: block;
}

.nav-container {
    max-width: 1400px; /* Increased max-width for more space */
    margin: 0 auto;
    padding: 0 1rem; /* Reduced padding to allow more margin movement */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative; /* Added for better positioning control */
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    margin-left: 0; /* Shifted another 1cm (~1.5rem) to the right from -1.5rem */
    position: relative;
    z-index: 10;
}

.nav-logo .nz-logo {
    width: clamp(33px, 6.5vw, 91px); /* Increased by 5% from 31px, 6.2vw, 87px */
    height: clamp(33px, 6.5vw, 91px); /* Increased by 5% from 31px, 6.2vw, 87px */
    font-size: 1.9rem;
    margin-right: 0.2rem;
    background: transparent; /* Remove box background */
    color: #ffffff;
    border-radius: 0; /* Remove box corners */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: -2px;
    box-shadow: none; /* Remove box shadow */
    transition: all 0.3s cubic-bezier(.77,.2,.18,1);
    border: none; /* Remove box border */
    filter: none;
    position: relative;
    overflow: visible;
    padding: 1px;
}

/* Logo Image Styles */
.logo-image {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    object-fit: contain;
    border-radius: 0; /* Remove image corners */
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.1)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06)); /* Apply shadow to logo shape */
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    box-shadow: none;
}

.hero-logo {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    object-fit: contain;
    border-radius: 0; /* Remove image corners */
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.12)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.08)) drop-shadow(0 4px 16px rgba(102, 126, 234, 0.2)); /* Apply shadow to hero logo shape */
    background: transparent;
    padding: 2px;
    box-shadow: none;
    border: none;
}

/* Geometric Logo Design */
.geometric-logo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geometric-logo::before,
.geometric-logo::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

/* Create the interlocked circles */
.geometric-logo::before {
    width: 18px;
    height: 18px;
    top: 12px;
    left: 16px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    box-sizing: border-box;
}

.geometric-logo::after {
    width: 18px;
    height: 18px;
    bottom: 12px;
    right: 16px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    box-sizing: border-box;
}

/* Add connecting diamond shape */
.geometric-logo .diamond {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    top: 50%;
    left: 50%;
    margin-left: -6px;
    margin-top: -6px;
    border-radius: 2px;
}

/* Add corner accents */
.geometric-logo .accent-1,
.geometric-logo .accent-2 {
    position: absolute;
    width: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1px;
}

.geometric-logo .accent-1 {
    top: 8px;
    right: 8px;
    transform: rotate(45deg);
}

.geometric-logo .accent-2 {
    bottom: 8px;
    left: 8px;
    transform: rotate(45deg);
}

.nav-logo {
    text-decoration: none;
    display: inline-block;
    background: transparent;
    border: none;
    outline: none;
}

.company-name-link {
    text-decoration: none;
    display: flex; /* Changed to flex for better alignment */
    align-items: center; /* Center align vertically */
    background: transparent;
    border: none;
    outline: none;
}

.company-name-header {
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 2px;
    text-align: left;
    margin-left: 0.5rem;
    display: flex;
    align-items: center; /* Center align vertically */
    white-space: nowrap;
    line-height: 1.1;
    margin-bottom: 0;
    height: 100%; /* Take full height of parent */
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    overflow: visible;
    flex: 0 0 auto;
    margin-right: 0; /* Shifted another 1cm (~1.5rem) to the left from -1.5rem */
    position: relative;
    z-index: 10;
}

/* Hide mobile menu toggle and overlay on desktop */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

/* Navbar below header */
/* .nav-bar removed: empty ruleset */

.nav-btn {
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    color: #6366f1;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.77,.2,.18,1);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 
        inset 0 1px 3px rgba(99, 102, 241, 0.1),
        0 2px 8px rgba(99, 102, 241, 0.15);
}

.nav-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 
        inset 0 1px 3px rgba(99, 102, 241, 0.2),
        0 4px 12px rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.nav-btn:active,
.nav-btn.active {
    background: rgba(99, 102, 241, 0.85);
    color: white;
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 
        inset 0 2px 6px rgba(79, 70, 229, 0.4),
        0 2px 8px rgba(99, 102, 241, 0.3);
    transform: translateY(0);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2rem; /* 0.5cm top/bottom, 2rem sides */
    margin-top: 90px; /* Base spacing for mobile */
    margin-bottom: 0.6rem; /* Reduced from 1.2rem to balance spacing */
}

.hero-section {
    max-width: 900px;
    text-align: center;
    padding: 6rem 2rem;
    background: rgba(255,255,255,0.98);
    border-radius: 32px;
    box-shadow: 0 16px 64px rgba(60, 60, 90, 0.25), 0 8px 32px rgba(60,60,90,0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(220,220,255,0.6);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 32px;
    pointer-events: none;
    box-shadow: 0 0 48px 12px #6366f1cc;
    opacity: 0.12;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}



@keyframes logoPulse {
    0% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 32px 4px #a5b4fc44; }
    100% { box-shadow: 0 16px 48px rgba(99,102,241,0.22), 0 0 48px 8px #6366f1cc; }
}

.nz-logo:hover .logo-image {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.15)) drop-shadow(0 6px 16px rgba(102, 126, 234, 0.2)) drop-shadow(0 8px 24px rgba(102, 126, 234, 0.3));
}

.hero-section .nz-logo:hover .logo-image {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.18)) drop-shadow(0 8px 24px rgba(102, 126, 234, 0.25)) drop-shadow(0 12px 32px rgba(102, 126, 234, 0.35));
}

/* Hero section logo styling - different from nav logo */
.hero-section .nz-logo {
    width: clamp(109px, 21.7vw, 260px); /* Increased by 5% from 104px, 20.7vw, 248px */
    height: clamp(109px, 21.7vw, 260px); /* Increased by 5% from 104px, 20.7vw, 248px */
    font-size: 3rem;
    background: transparent; /* Remove box background */
    color: #ffffff;
    border-radius: 0; /* Remove box corners */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: -2px;
    box-shadow: none; /* Remove box shadow */
    transition: all 0.3s cubic-bezier(.77,.2,.18,1);
    border: none; /* Remove box border */
    filter: none;
    margin: 0 auto 2rem auto;
    position: relative;
    overflow: visible;
    padding: 2px; /* Reduced padding for bigger logo inside */
}

/* Hero section geometric logo scaling */
.hero-section .geometric-logo::before,
.hero-section .geometric-logo::after {
    width: 32px;
    height: 32px;
    border-width: 5px;
}

.hero-section .geometric-logo::before {
    top: 20px;
    left: 28px;
}

.hero-section .geometric-logo::after {
    bottom: 20px;
    right: 28px;
}

.hero-section .geometric-logo .diamond {
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border-radius: 3px;
}

.hero-section .geometric-logo .accent-1,
.hero-section .geometric-logo .accent-2 {
    width: 14px;
    height: 3px;
    border-radius: 2px;
}

.hero-section .geometric-logo .accent-1 {
    top: 14px;
    right: 14px;
}

.hero-section .geometric-logo .accent-2 {
    bottom: 14px;
    left: 14px;
}

.company-title {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 3rem 0;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 2px 8px #e0e7ff88;
}

/* Reset margin for home page company title inside logo-container */
.logo-container .company-title {
    margin: 0;
}

/* Add elegant divider under page headings (for About, Projects, Contact pages) */
.company-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 2.1rem auto 0 auto;
    background: linear-gradient(90deg, #6366f1 0%, #e0e7ff 100%);
    border-radius: 2px;
    opacity: 0.18;
}

/* Remove divider for home page title inside logo-container */
.logo-container .company-title::after {
    display: none;
}

.hero-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 2rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #4a5568;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.8;
}

.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.primary-btn {
    background: linear-gradient(120deg, #6366f1 0%, #1a1a1a 100%);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.77,.2,.18,1);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.18), 0 2px 8px rgba(26, 26, 26, 0.12);
    text-transform: none;
    letter-spacing: 0.5px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: "";
    position: absolute;
    left: -60%;
    top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.0) 100%);
    transform: skewX(-20deg);
    transition: left 0.4s cubic-bezier(.77,.2,.18,1);
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.22), 0 4px 16px rgba(26, 26, 26, 0.18);
    background: linear-gradient(120deg, #6366f1 40%, #4a5568 100%);
}

.primary-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.contact-info {
    margin-top: 2.5rem;
    text-align: center;
    background: rgba(236,239,255,0.65);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(99,102,241,0.12), 0 4px 16px rgba(0,0,0,0.06);
    padding: 1.2rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.contact-text {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.email-link {
    text-decoration: none;
    color: #6366f1;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.2s cubic-bezier(.77,.2,.18,1);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    border: 2px solid #e0e7ff;
    background: rgba(255,255,255,0.7);
}

.email-link:hover {
    color: #1a1a1a;
    background-color: #e0e7ff;
    border-color: #6366f1;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(99,102,241,0.12);
}

/* Footer */
.footer {
    background: rgba(248, 250, 252, 0.98);
    border-top: 1px solid rgba(229, 229, 229, 0.6);
    padding: 2rem 0;
    margin-top: auto;
    box-shadow: 0 -8px 32px rgba(99,102,241,0.08), 0 -4px 16px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    color: #6b7280;
    font-size: 0.9rem;
    text-align: center;
}

.footer-link {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Internal Documentation Styles */
.internal-notice {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: 2px solid #ff4757;
    border-radius: 16px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 12px 48px rgba(255, 107, 107, 0.4), 0 6px 24px rgba(255, 107, 107, 0.2);
    backdrop-filter: blur(10px);
}

.internal-notice p {
    color: white;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

/* Internal Access Info Styles */
.internal-access-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.internal-access-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-light);
}

.drive-links {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 16px 64px rgba(102, 126, 234, 0.4), 0 8px 32px rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(15px);
}

.drive-links h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 600;
}

.link-item {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.link-item strong {
    color: white;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.drive-link {
    display: inline-block;
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    color: #2d3436;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 234, 167, 0.4);
}

.drive-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 234, 167, 0.6);
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}

/* --- Elegant divider under logo --- */
.logo-container::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 1.2rem auto 0 auto;
    background: linear-gradient(90deg, #6366f1 0%, #e0e7ff 100%);
    border-radius: 2px;
    opacity: 0.18;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0; /* Reduced padding for less thickness */
        width: 100%; /* Full width */
        margin: 0; /* No margin */
        max-width: 100%; /* Full width */
        border-radius: 0; /* Remove curved corners */
        margin-top: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        box-shadow: 0 8px 32px rgba(60, 60, 90, 0.15);
        border: none; /* Remove border */
        border-bottom: 1px solid rgba(220, 220, 255, 0.6); /* Only bottom border */
    }
    
    .footer {
        padding: 1rem 0; /* Match header padding for equal thickness */
    }
    
    .footer-content {
        max-width: 100%; /* Match mobile header */
        padding: 0 1rem; /* Match mobile nav-container padding */
    }
    
    .main-content {
        margin-top: 100px; /* Increased for mobile to create visible space below header */
        padding: 1.2rem 1rem; /* 0.5cm top/bottom, 1rem sides for mobile */
        margin-bottom: 0.6rem; /* Match desktop bottom spacing */
    }
    
    .nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 1rem; /* Mobile specific padding overrides desktop */
        gap: 0;
        /* Removed min-height - back to original header height */
    }
    
    .nav-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem; /* Back to normal gap */
        min-width: 0;
        flex-shrink: 0;
        flex: 1;
        justify-content: flex-start;
        margin-left: -0.5rem; /* Shift text to the left in mobile */
        /* Removed height: 100% - back to normal */
    }
    
    .company-name-link {
        margin-left: 0; /* Reset margin */
        display: flex;
        align-items: center; /* Keep vertical centering */
        /* Removed height: 100% - back to normal */
    }
    
    .company-name-header {
        text-align: left;
        font-size: clamp(1.1rem, 3.2vw, 1.3rem);
        margin-left: 0;
        color: #4a5568;
        font-weight: 600;
        display: flex;
        align-items: center; /* Keep perfect vertical centering */
        line-height: 1.2; /* Back to normal line height */
        margin-bottom: 0;
        margin-top: 0;
    }
    
    /* Hide desktop navigation */
    .nav-links {
        display: none;
    }
    
    /* Hamburger Menu Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px; /* Slightly larger for better touch target */
        height: 44px; /* Slightly larger for better touch target */
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        border: none;
        border-radius: 12px;
        cursor: pointer;
        padding: 10px; /* Increased padding */
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        position: relative;
        overflow: hidden;
        z-index: 1000;
        flex-shrink: 0;
        margin-left: auto; /* Push to the right */
        -webkit-tap-highlight-color: transparent; /* Remove iOS tap highlight */
    }
    
    .mobile-menu-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }
    
    .mobile-menu-toggle:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }
    
    .mobile-menu-toggle:hover:before {
        left: 100%;
    }
    
    .hamburger-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 20px;
        height: 14px;
        position: relative;
        z-index: 1;
    }
    
    .hamburger-line {
        width: 100%;
        height: 2px;
        background: white;
        border-radius: 1px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Mobile menu overlay - improved scrolling and screen fit */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        z-index: 9999;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        backdrop-filter: blur(20px);
        padding: clamp(0.5rem, 2vw, 1rem);
        box-sizing: border-box;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-menu-overlay::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
        animation: subtleGradientMove 8s ease-in-out infinite;
    }
    
    @keyframes subtleGradientMove {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
    
    .mobile-menu-close {
        position: absolute;
        top: clamp(0.5rem, 3vw, 1rem);
        right: clamp(0.5rem, 3vw, 1rem);
        width: clamp(35px, 8vw, 45px);
        height: clamp(35px, 8vw, 45px);
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 10000;
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }
    
    .mobile-menu-close::before,
    .mobile-menu-close::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background: white;
        border-radius: 1px;
    }
    
    .mobile-menu-close::before {
        transform: rotate(45deg);
    }
    
    .mobile-menu-close::after {
        transform: rotate(-45deg);
    }
    
    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(1rem, 3vw, 1.5rem);
        position: relative;
        z-index: 1;
        margin-top: clamp(2rem, 8vw, 4rem);
        padding: clamp(0.5rem, 2vw, 1rem) clamp(0.5rem, 2vw, 1rem) clamp(2rem, 5vw, 3rem) clamp(0.5rem, 2vw, 1rem);
        max-width: 95%;
        width: 100%;
        min-height: calc(100vh - clamp(4rem, 10vw, 6rem));
    }
    
    .mobile-menu-logo {
        margin-bottom: clamp(0.5rem, 2vw, 1rem);
        text-align: center;
    }
    
    .mobile-menu-logo img {
        width: clamp(50px, 12vw, 60px);
        height: clamp(50px, 12vw, 60px);
        filter: brightness(0) invert(1);
        margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
    }
    
    .mobile-menu-logo h2 {
        color: white;
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        font-weight: 700;
        margin: 0;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-nav-btn {
        color: white;
        text-decoration: none;
        font-size: clamp(1rem, 3.5vw, 1.2rem);
        font-weight: 600;
        padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 4vw, 1.5rem);
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        transition: all 0.4s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        overflow: hidden;
        width: 100%;
        max-width: clamp(250px, 80vw, 300px);
        text-align: center;
        display: block;
        min-width: 200px;
        text-align: center;
    }
    
    .mobile-nav-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.6s;
    }
    
    .mobile-nav-btn:hover::before {
        left: 100%;
    }
    
    .mobile-nav-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-nav-btn.active {
        background: rgba(255, 255, 255, 0.3);
        border-color: white;
    }
    
    .nav-logo .nz-logo {
        /* Using clamp for responsive sizing, no need for fixed mobile sizes */
        min-width: 42px; /* Increased by 5% from 40px */
        min-height: 42px; /* Increased by 5% from 40px */
        border-radius: 0; /* Remove box corners */
        box-shadow: none; /* Remove box shadow */
        filter: none;
        background: transparent; /* Remove box background */
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        letter-spacing: -2px;
        transition: all 0.3s cubic-bezier(.77,.2,.18,1);
        border: none; /* Remove box border */
        position: relative;
        overflow: visible;
        padding: 1px;
    }
    
    /* Mobile logo image styles - apply effects to transparent PNG */
    .logo-image {
        border-radius: 0; /* Remove image corners */
        box-shadow: none;
        border: none;
        background: transparent;
        width: calc(100% - 1px);
        height: calc(100% - 1px);
        filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.12)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08)); /* Apply shadow to mobile logo shape */
    }
    
    .hero-logo {
        /* Using clamp for responsive sizing - apply effects to transparent PNG */
        min-width: 82px; /* Increased by 5% from 78px */
        min-height: 82px; /* Increased by 5% from 78px */
        border-radius: 0; /* Remove image corners */
        padding: 1px;
        box-shadow: none;
        filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.1)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06)) drop-shadow(0 2px 8px rgba(102, 126, 234, 0.15)); /* Apply shadow to mobile hero logo shape */
        background: transparent;
        width: calc(100% - 2px);
        height: calc(100% - 2px);
    }    /* Mobile geometric logo scaling */
    .nav-logo .geometric-logo::before,
    .nav-logo .geometric-logo::after {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    .nav-logo .geometric-logo::before {
        top: 6px;
        left: 8px;
    }

    .nav-logo .geometric-logo::after {
        bottom: 6px;
        right: 8px;
    }

    .nav-logo .geometric-logo .diamond {
        width: 6px;
        height: 6px;
        margin-left: -3px;
        margin-top: -3px;
    }

    .nav-logo .geometric-logo .accent-1,
    .nav-logo .geometric-logo .accent-2 {
        width: 4px;
        height: 1px;
    }

    .nav-logo .geometric-logo .accent-1 {
        top: 4px;
        right: 4px;
    }

    .nav-logo .geometric-logo .accent-2 {
        bottom: 4px;
        left: 4px;
    }
    
    .hero-section {
        padding: 3rem 1rem;
        background: rgba(255,255,255,0.98);
        box-shadow: 0 12px 48px rgba(60, 60, 90, 0.2), 0 6px 24px rgba(60,60,90,0.12), 0 3px 12px rgba(0, 0, 0, 0.08);
        border: 2px solid rgba(220,220,255,0.55);
    }
    
    .hero-section .nz-logo {
        /* Using clamp for responsive sizing */
        min-width: 98px; /* Increased by 5% from 93px */
        min-height: 98px; /* Increased by 5% from 93px */
        font-size: 2.5rem;
        border-radius: 0; /* Remove box corners */
        background: transparent; /* Remove box background */
        box-shadow: none; /* Remove box shadow */
        border: none; /* Remove box border */
    }
    
    .company-title {
        font-size: 2.8rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .primary-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    .email-link {
        font-size: 1.1rem;
        padding: 0.7rem 1.2rem;
    }
    
    /* Mobile navbar button adjustments */
    .nav-btn {
        font-size: clamp(0.85rem, 3vw, 1rem);
        padding: clamp(0.4rem, 1.2vw, 0.5rem) clamp(0.7rem, 2.5vw, 1rem);
        border-radius: 6px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: fit-content;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.2rem 0;
    }
    
    .main-content {
        margin-top: 80px; /* Slightly reduced from 90px */
        padding: 0.5rem;
    }
    
    .company-name-header {
        font-size: clamp(1rem, 3.8vw, 1.2rem);
        white-space: normal;
        line-height: 1.05;
        margin-bottom: -0.3rem;
    }
    
    .hero-section .nz-logo {
        /* Using clamp for responsive sizing with minimum override for very small screens */
        min-width: 87px; /* Increased by 5% from 83px */
        min-height: 87px; /* Increased by 5% from 83px */
        font-size: 2rem;
        border-radius: 0; /* Remove box corners */
        background: transparent; /* Remove box background */
        box-shadow: none; /* Remove box shadow */
        border: none; /* Remove box border */
    }

    /* Small mobile geometric logo scaling */
    .hero-section .geometric-logo::before,
    .hero-section .geometric-logo::after {
        width: 20px;
        height: 20px;
        border-width: 3px;
    }

    .hero-section .geometric-logo::before {
        top: 12px;
        left: 18px;
    }

    .hero-section .geometric-logo::after {
        bottom: 12px;
        right: 18px;
    }

    .hero-section .geometric-logo .diamond {
        width: 12px;
        height: 12px;
        margin-left: -6px;
        margin-top: -6px;
    }

    .hero-section .geometric-logo .accent-1,
    .hero-section .geometric-logo .accent-2 {
        width: 8px;
        height: 2px;
    }

    .hero-section .geometric-logo .accent-1 {
        top: 8px;
        right: 8px;
    }

    .hero-section .geometric-logo .accent-2 {
        bottom: 8px;
        left: 8px;
    }
    
    .company-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .primary-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .email-link {
        font-size: 1rem;
    }
    
    .hero-section {
        box-shadow: 0 12px 48px rgba(60, 60, 90, 0.25), 0 6px 24px rgba(60,60,90,0.18), 0 3px 12px rgba(0, 0, 0, 0.1);
        border-radius: 24px;
        padding: 2.5rem 0.5rem;
        background: rgba(255,255,255,0.99);
        border: 2px solid rgba(220,220,255,0.65);
        backdrop-filter: blur(12px);
    }
    .logo-container::after {
        width: 48px;
        height: 3px;
    }
    
    /* Even smaller navbar buttons for very small screens */
    .nav-btn {
        font-size: clamp(0.8rem, 3.5vw, 0.95rem);
        padding: clamp(0.35rem, 1vw, 0.45rem) clamp(0.6rem, 2vw, 0.9rem);
        border-radius: 5px;
        min-width: fit-content;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        flex-shrink: 0;
    }
}

/* Legal Pages Styling */
.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.legal-content {
    background: rgba(255, 255, 255, 0.98);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 16px 64px rgba(0,0,0,0.12), 0 8px 32px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 800px;
    text-align: center;
    backdrop-filter: blur(15px);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5e5e5;
}

.legal-main-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    text-align: center;
}

.legal-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 400;
    text-align: center;
}

.legal-section {
    margin-bottom: 3rem;
    text-align: left;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
    border-bottom: 2px solid #6366f1;
    padding-bottom: 0.5rem;
    text-align: left;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 1rem 0 1rem 1.5rem;
    color: #4a5568;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #6366f1;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive for legal pages */
@media (max-width: 768px) {
    .content-section {
        padding: 1rem;
        min-height: auto;
    }
    
    .legal-content {
        padding: 2rem;
        border-radius: 20px;
        box-shadow: 0 12px 48px rgba(0,0,0,0.1), 0 6px 24px rgba(0,0,0,0.06), 0 3px 12px rgba(0,0,0,0.04);
    }
    
    .legal-main-title {
        font-size: 2.2rem;
    }
    
    .legal-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
}

/* Desktop-specific styles for larger elements */
@media (min-width: 769px) {
    /* Slightly reduce header height for desktop */
    .header {
        padding: 1.2rem 0; /* Reduced from 1.5rem */
    }
    
    /* Equal spacing for desktop - 0.5cm each way */
    .main-content {
        margin-top: 150px; /* Increased to create visible space below header */
        padding: 1.2rem 2rem; /* 0.5cm top/bottom, maintain side padding */
        margin-bottom: 0.6rem; /* Match the visible space above footer */
    }
    
    /* Move logo and text 0.5cm to the right */
    .nav-left {
        margin-left: 0.75rem; /* Added 0.5cm (~0.75rem) to the right */
    }
    
    /* Move buttons 0.5cm to the left */
    .nav-links {
        margin-right: -0.75rem; /* Added 0.5cm (~0.75rem) to the left */
    }
    
    /* Bigger logo for desktop */
    .nav-logo .nz-logo {
        width: clamp(45px, 7.5vw, 110px); /* Increased from 33px, 6.5vw, 91px */
        height: clamp(45px, 7.5vw, 110px); /* Increased from 33px, 6.5vw, 91px */
    }
    
    /* Bigger company name text for desktop */
    .company-name-header {
        font-size: clamp(1.4rem, 3.5vw, 2rem); /* Increased from 1.2rem, 3vw, 1.7rem */
        letter-spacing: 2.5px; /* Slightly increased spacing */
    }
    
    /* Slightly bigger navigation buttons for desktop */
    .nav-btn {
        font-size: 1.2rem; /* Increased from 1.1rem */
        padding: 0.6rem 1.4rem; /* Increased from 0.5rem 1.2rem */
        font-weight: 600; /* Increased from 500 for better visibility */
    }
}
