:root {
    --primary: #00d4ff;
    --dark: #000a14;
    --dark-soft: #001529;
    --text: #ffffff;
    --text-dim: #b0c9e6;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- HEADER --- */
.main-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(0, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    /* Increase this number if you want it even bigger */
    width: auto;
    /* Keeps the proportions correct so it doesn't look stretched */
    object-fit: contain;
    flex-shrink: 0;
    /* CRITICAL: Stops the menu from squishing the image */
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

/* --- NAVIGATION REFINEMENT --- */
.close-menu {
    display: none;
    /* Hidden on Desktop */
}

.nav-item-wrapper {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    margin-left: 2rem;
    font-size: 1rem;
    transition: 0.3s;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
}

/* --- HERO & VISUALS --- */
.hero-split {
    padding: 100px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: -10px;
    left: -20px;
    animation: float-loop 6s ease-in-out infinite;
    box-shadow: rgba(0, 212, 255, 0.35) 0px 5px 10px;
}

h1 {
    font-family: 'Playfair Display';
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin: 1.5rem 0;
}

.gradient-text {
    background: linear-gradient(120deg,
        #fff 30%,
        var(--primary) 50%,
        #fff 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 8s linear infinite;
}

@keyframes text-shine {
    to {
        background-position: 200% center;
    }
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

/* --- THE VISUAL PORTAL --- */
.image-stack {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* The Animated Background Gradient */
.image-stack::before {
    content: '';
    position: absolute;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    animation: portal-pulse 8s ease-in-out infinite alternate;
}

/* The Foreground Image (Transparent PNG) */
.main-img {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    height: 75%;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.15));
    transition: transform 0.5s ease;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right, transparent, rgb(0, 212, 255, 0.5), transparent) 1;
}

/* Floating Card stays on top of everything */

@keyframes portal-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.25;
    }
}

.floating-card {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: var(--dark-soft);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--primary);
    animation: float-loop-badge 6s ease-in-out infinite;
    box-shadow: rgba(0, 212, 255, 0.35) 0px 5px 15px;
    z-index: 10;
}

.floating-card span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;

}

/* --- STATS & CARDS --- */
.trust-bar {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
}

.stat-box h3 {
    font-family: 'Playfair Display';
    font-size: 2.5rem;
    color: var(--primary);
}

.universal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--dark-soft);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: 0.4s;
}

.why-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-number {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* --- BUTTONS --- */
.btn-primary {
    background: var(--primary);
    color: var(--dark);
    padding: 15px 35px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--dark);
    color: var(--primary);
    border: 1px solid var(--primary);
    transform: scale(1.07);
    box-shadow: rgba(0, 212, 255, 0.35) 0px 5px 15px;
}

.btn-secondary {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 15px 35px;
    border: 1px solid var(--primary);
    border-radius: 7px;
}

.btn-secondary:hover {
    color: var(--dark-soft);
    background: var(--primary);
    border-color: transparent;
    transform: scale(1.07);
    box-shadow: rgba(0, 212, 255, 0.35) 0px 5px 15px;
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- FOOTER SECTION FIX --- */
.site-footer {
    background: var(--dark-soft);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    /* Desktop: 3 columns */
    gap: 4rem;
    align-items: start;
}

.footer-brand h2 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 400px;
}

.footer-column h4 {
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-cta {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 1rem;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.footer-cta:hover {
    border-bottom-color: var(--primary);
}

@keyframes float-loop {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes float-loop-badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* --- MOBILE RESPONSIVE --- */

@media (max-width: 820px) {
    .close-menu {
        display: block;
        /* Show only on mobile drawer */
    }

    .nav-item-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 10, 20, 0.98);
        backdrop-filter: blur(20px);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 2000;
        opacity: 0;
        transition: opacity 0.4s;
    }

    .nav-links.open {
        display: flex;
        opacity: 1;
    }

    .nav-links a {
        font-size: 2rem;
        margin: 0;
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-links.open a {
        animation: slideUp 0.5s forwards;
    }

    @keyframes slideUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .close-menu {
        display: block;
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 3rem;
        color: var(--primary);
        cursor: pointer;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-group {
        justify-content: center;
    }

    .floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        width: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

/* --- ADVANCED FORM INTERACTIONS --- */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    background: var(--dark);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

/* Hover state */
.contact-form input:hover,
.contact-form textarea:hover {
    border-color: rgba(0, 212, 255, 0.5);
}

/* Active/Focus state with your custom neon glow */
.contact-form input:focus,
.contact-form textarea:focus {
    background: var(--dark-soft);
    border-color: var(--primary);
    box-shadow: rgba(0, 212, 255, 0.2) 0px 0px 15px;
    transform: translateY(-2px);
    /* Subtle lift on focus */
}

/* --- VALIDATION STATES --- */

/* Invalid state when the user is finished typing */
.contact-form input:not(:placeholder-shown):invalid,
.contact-form textarea:not(:placeholder-shown):invalid {
    border-color: #ff4d4d;
    box-shadow: rgba(255, 77, 77, 0.2) 0px 0px 10px;
    animation: shake 0.4s ease-in-out;
}

/* Valid state when requirements are met */
.contact-form input:not(:placeholder-shown):valid,
.contact-form textarea:not(:placeholder-shown):valid {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.02);
}

/* --- ANIMATIONS --- */

/* Error shake effect */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Custom Success/Failure styling for the Status Box */
#form-status.success-theme {
    border: 1px solid var(--primary);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: rgba(0, 212, 255, 0.15) 0px 10px 30px;
}

#form-status.error-theme {
    border: 1px solid #ff4d4d;
    background: rgba(255, 77, 77, 0.05);
    box-shadow: rgba(255, 77, 77, 0.15) 0px 10px 30px;
}

/* --- HELP TEXT & VALIDATION MESSAGES --- */
.help-text {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    margin-left: 5px;
    display: block;
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Illuminate help text when the input is focused */
input:focus+.help-text,
textarea:focus+.help-text {
    opacity: 1;
    color: var(--primary);
    transform: translateX(5px);
}

/* Error message styling */
.error-message {
    font-size: 0.75rem;
    color: #ff4d4d;
    margin-top: 0.5rem;
    display: none;
    /* Controlled by JS */
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-file-upload {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--dark-soft);
    border: 1px dashed var(--border);
    border-radius: 7px;
    color: var(--text-dim);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
    color: var(--primary);
    box-shadow: rgba(0, 212, 255, 0.2) 0px 0px 15px;
}



/* --- SPECIALIZED TEAM GRID --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 6 columns to allow 2 and 3 splits */
    gap: 2.5rem;
}

.team-card {
    grid-column: span 2;
    /* Default for bottom row (3 items = 6 columns) */
    padding: 0 !important;
    /* Image fills to the edge */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Force first two cards to span 3 columns each (Top row) */
.team-grid .team-card:nth-child(1),
.team-grid .team-card:nth-child(2) {
    grid-column: span 3;
}

/* --- FIXED TEAM IMAGE WRAPPER --- */
.team-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: var(--dark-soft);
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    /* Use object-fit: cover to fill the space without stretching */
    /* object-position: top ensures faces stay in frame if cropped */
    object-fit: cover;
    object-position: top;
    filter: grayscale(40%) brightness(0.9);
    transition: transform 0.5s ease, filter 0.5s ease;
    display: block;
}

.team-card:hover .team-image-wrapper img {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1);
}


.team-info {
    padding: 2rem;
}

.team-info .role {
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card,
    .team-grid .team-card:nth-child(1),
    .team-grid .team-card:nth-child(2) {
        grid-column: span 1;
    }
}