/* 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: 100vw;
    z-index: 100;
    padding: 2rem 0;
    box-shadow: 0 2px 12px #6366f122;
    display: block;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
}

.nav-logo .nz-logo {
    width: 68px;
    height: 68px;
    font-size: 1.9rem;
    margin-right: 0.2rem;
    background: linear-gradient(135deg, #1a1a1a 60%, #4a5568 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: -2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 32px 4px #a5b4fc44;
    transition: all 0.3s cubic-bezier(.77,.2,.18,1);
    border: 2.5px solid #e0e7ff;
    filter: drop-shadow(0 0 16px #a5b4fc88);
    animation: logoPulse 2.5s cubic-bezier(.77,.2,.18,1) infinite alternate;
}

.nav-logo {
    text-decoration: none;
}

.nav-logo .nz-logo:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), 0 0 48px 8px #a5b4fc66;
}

.company-name-header {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 2px;
    text-align: left;
    margin-left: 0.5rem;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.1;
    margin-bottom: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    overflow: visible;
}
/* 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: 2rem;
    margin-top: 140px; /* Increased due to larger header padding */
}

.hero-section {
    max-width: 900px;
    text-align: center;
    padding: 6rem 2rem;
    background: rgba(255,255,255,0.95);
    border-radius: 32px;
    box-shadow: 0 12px 48px rgba(60, 60, 90, 0.18), 0 1.5px 8px rgba(60,60,90,0.12), 0 0 0 1px rgba(220,220,255,0.3);
    border: 2px solid rgba(220,220,255,0.4);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

@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 {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), 0 0 48px 8px #a5b4fc66;
}

/* Hero section logo styling - different from nav logo */
.hero-section .nz-logo {
    width: 120px;
    height: 120px;
    font-size: 3rem;
    background: linear-gradient(135deg, #1a1a1a 60%, #4a5568 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: -2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 32px 4px #a5b4fc44;
    transition: all 0.3s cubic-bezier(.77,.2,.18,1);
    border: 2.5px solid #e0e7ff;
    filter: drop-shadow(0 0 16px #a5b4fc88);
    animation: logoPulse 2.5s cubic-bezier(.77,.2,.18,1) infinite alternate;
    margin: 0 auto 2rem auto;
}

.company-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 2px 8px #e0e7ff88;
}

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

.hero-description {
    font-size: 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.45);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(99,102,241,0.07);
    padding: 1.2rem 2rem;
}

.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-color: #f8fafc;
    border-top: 1px solid #e5e5e5;
    padding: 2rem 0;
    margin-top: auto;
    box-shadow: 0 -4px 24px #6366f111;
    position: relative;
    z-index: 2;
}

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

/* --- 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: 1.5rem 0;
    }
    
    .main-content {
        margin-top: 160px; /* Increased spacing for stacked mobile header */
        padding: 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0 0.5rem;
        overflow-x: visible;
        overflow-y: visible;
        height: auto;
        gap: 0.8rem;
        max-width: 100%;
        width: 100%;
    }
    .nav-left {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        min-width: 0;
        flex-shrink: 0;
        width: 100%;
        justify-content: flex-start;
    }
    .nav-links {
        flex-direction: row;
        gap: clamp(0.4rem, 2vw, 0.8rem);
        margin-top: 0;
        width: 100%;
        min-width: 0;
        flex: none;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        justify-content: flex-start;
        scrollbar-width: thin;
        height: auto;
        max-height: none;
        padding: 0.5rem 0;
        display: flex;
    }
    .company-name-header {
        font-size: clamp(1rem, 3vw, 1.2rem);
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 60px);
    }
    .nav-logo .nz-logo {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
        border-radius: 50%;
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
        filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.4));
        background: linear-gradient(135deg, #1a1a1a 60%, #4a5568 100%);
        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: 2px solid #e0e7ff;
    }
    
    .hero-section {
        padding: 3rem 1rem;
        background: rgba(255,255,255,0.96);
        box-shadow: 0 10px 40px rgba(60, 60, 90, 0.16), 0 2px 10px rgba(60,60,90,0.1);
        border: 2px solid rgba(220,220,255,0.45);
    }
    
    .hero-section .nz-logo {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .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: 150px; /* Increased spacing for small mobile screens */
        padding: 0.5rem;
    }
    
    .company-name-header {
        font-size: 1.1rem;
        white-space: normal;
        line-height: 1.05;
        margin-bottom: -0.3rem;
    }
    
    .hero-section .nz-logo {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .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 8px 32px rgba(60, 60, 90, 0.2), 0 2px 12px rgba(60,60,90,0.15);
        border-radius: 18px;
        padding: 2.5rem 0.5rem;
        background: rgba(255,255,255,0.98);
        border: 2px solid rgba(220,220,255,0.5);
        backdrop-filter: blur(8px);
    }
    .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;
    }
}
