/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-color: #00f2ff;
    /* Neon Cyan */
    --secondary-color: #4facfe;
    /* Light Blue Gradient Start */
    --accent-color: #00f2fe;
    /* Gradient End */
    --dark-bg: #020617;
    /* Deepest Blue/Black */
    --glass-bg: rgba(30, 41, 59, 0.7);
    /* Translucent Blue-Grey */
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --card-hover-bg: rgba(30, 41, 59, 0.9);
    --font-family: 'Poppins', sans-serif;
    --glow-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(79, 172, 254, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.05) 0%, transparent 20%);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    /* Slightly wider */
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

h2 {
    font-size: 3rem;
    text-align: center;
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 300;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 1001;
    /* Ensure above overlay */
}

/* HAMBURGER MENU STYLES */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    /* Fixed typo folex-direction */
    gap: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Active State for Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links li {
    margin-left: 0;
    /* Removing inconsistent margin */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

/* MOBILE NAV OVERLAY */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        /* Fade in effect setup */
        transform: translateX(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger delay for list items */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links a {
        font-size: 1.5rem;
    }
}

/* Updated Button Style */
.cta-button,
.nav-links .cta-button {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: #000 !important;
    /* Force black text */
    padding: 12px 28px;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 81, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.5);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- HERO SECTION --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 100px;
    /* Increased offset */
    position: relative;
    z-index: 1;
}

/* Background glow for hero */
#hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(0, 81, 255, 0.15), transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    max-width: 50%;
}

/* Global Gradient Text */
.highlight {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.app-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.app-buttons img {
    height: 55px;
    /* Slightly larger */
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.app-buttons img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 12px rgba(0, 242, 255, 0.4));
}

.hero-image {
    max-width: 45%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* in style.css */
.team-image {
    max-width: 800px;
    margin: 40px auto 0 auto;

    /* --- NEW LINES --- */
    aspect-ratio: 2 / 1;
    /* Force a 2:1 width-to-height ratio */
    border-radius: 10px;
    /* Move the radius from the image to the container */
    overflow: hidden;
    /* CRITICAL: Hides the parts of the image that spill out */
    margin: 40px auto 60px auto;
    /* <-- CHANGE 0 to 60px */
}

/* This correctly limits the image's width without cropping */
.solution-image {
    flex: 0.8;
    /* Make the image column smaller than the text column */
    min-width: 0;
    /* A required fix for flexbox shrinking */
}


/* --- GLOBAL IMAGE STYLES --- */
/* This single rule controls all three main images. */

.hero-image img,
.solution-image img,
.team-image img {
    width: 100%;
    /* Make the image fill its container's width */
    height: auto;
    /* Maintain the correct aspect ratio (no stretching!) */
    display: block;
    /* Remove extra space below the image */
    border-radius: 20px;
    /* MORE rounded */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    /* Deep shadow */
    border: 1px solid var(--glass-border);
}

.team-image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.status-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 25px;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- PLACEHOLDER STYLES --- */
.placeholder-image {
    background-color: var(--light-bg);
    border: 2px dashed var(--text-muted);
    border-radius: 10px;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- FEATURES & CARDS --- */
section {
    padding: 200px 0;
    position: relative;
    border-bottom: none;
    scroll-margin-top: 100px;
    /* Fix for fixed header overlap */
}

/* Remove alternating backgrounds */
section:nth-of-type(even) {
    background: transparent;
    box-shadow: none;
}

/* Restore Separator Bar */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    opacity: 0.4;
    display: block;
}

/* Remove separator from last section */
section:last-of-type::after {
    display: none;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
    /* Increased gap */
    margin-top: 80px;
    /* Increased top margin */
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: var(--glow-shadow);
    background: var(--card-hover-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}





/* --- SOLUTIONS SECTION --- */
#solutions {
    display: flex;
    align-items: flex-start;
    /* This is the fix! */
    gap: 50px;
    margin-top: 60px;
    /* <-- ADD THIS LINE */
    margin-bottom: 60px;
    /* <-- ADD THIS LINE */
}


.solution-content,
.solution-image {
    flex: 1;
}

.status-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 20px;
}

/* --- FOOTER --- */
footer {
    background-color: #000;
    /* Darker than body */
    padding: 80px 0 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* --- ANIMATIONS --- */
.animate-on-load,
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-load.is-visible,
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for hero section */
.hero-content p {
    transition-delay: 0.2s;
}

.hero-content .app-buttons {
    transition-delay: 0.4s;
}

.hero-image {
    transition-delay: 0.3s;
}

/* --- TEAM SECTION --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.team-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-shadow);
    background: var(--card-hover-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

.headshot-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.team-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.team-card .role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.team-card .bio {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- FOUNDER MESSAGE SECTION --- */
#founder-message {
    padding-top: 160px;
    padding-bottom: 160px;
    position: relative;
}

.quote-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    /* Ensure card is above separator */
    z-index: 2;
}

.quote-icon {
    font-family: 'Times New Roman', serif;
    font-size: 8rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: 20px;
}

.founder-quote {
    font-family: 'Georgia', serif;
    /* Distinct serif font for magazine feel */
    font-size: 1.5rem;
    line-height: 1.8;
    color: white;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.quote-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.author-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 0.5px;
}

.author-title {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Responsive Styles for Quote */
@media (max-width: 768px) {
    .founder-quote {
        font-size: 1.2rem;
    }

    .quote-icon {
        font-size: 6rem;
        top: -10px;
        left: 10px;
    }

    .quote-card {
        padding: 40px 30px;
    }
}

/* --- CONTACT FORM --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto 40px auto;
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    #hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-top: 180px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .app-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 400px;
        /* The image will never be wider than 400px */
        width: 100%;
        /* This is still needed so it scales down on mobile */
        margin-left: auto;
        /* Pushes the image to the right */
    }

    .placeholder-image {
        min-height: 300px;
    }

    #solutions {
        flex-direction: column;
    }
}