/* --- Variables & Reset --- */
:root {
    --color-bg: #fdfbf7;
    --color-text: #2c3e28;
    --color-text-light: #fdfbf7;
    --color-primary: #8a6a4b;
    /* Earthy Gold/Bronze */
    --color-accent: #2c3e28;
    /* Deep Green */
    --color-accent-light: #4a6344;
    --color-glass: rgba(255, 255, 255, 0.7);
    --color-glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);

    --font-heading: 'Playfair Display', serif;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Team Section --- */
.team-grid-horizontal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    min-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.member-avatar {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    object-fit: cover;
    /* For images */
}

/* Specific style if using an img tag */
img.member-avatar {
    background: transparent;
}

.member-info h4 {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 0.2rem;
}

.member-info p {
    font-size: 0.9rem;
    color: #666;
}

/* --- Responsive Helpers --- */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}


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

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.center {
    text-align: center;
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    overflow: hidden;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    animation: fadeUp 1s ease forwards;
}

.loader-line {
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    margin: 0 auto;
    transition: width 0.5s ease;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.grid {
    display: grid;
    gap: 3rem;
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(253, 251, 247, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    /* Initial white for hero contrast */
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar.scrolled .logo {
    color: var(--color-accent);
    /* Dark on scroll */
}

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

.nav-link {
    text-decoration: none;
    color: #fff;
    /* Initial white for hero contrast */
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--color-text);
    /* Dark on scroll */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-base);
    cursor: none;
    /* For custom cursor */
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
}

.hero .btn-outline {
    background: #fff;
    color: var(--color-accent);
    border: none;
    font-weight: 700;
}

.hero .btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 40, 0.2);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* For parallax */
    background-color: #0d120d;
    /* Fallback */
    /* Fallback */
    background-image: url('assets/images/hero_v3.png');
    background-size: cover;
    /* Will be set via JS/Inline style when image is ready */
    background-position: center;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(13, 18, 13, 0.6) 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 10vh;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-size: 6rem;
    line-height: 1.1;
    color: #fff;
    /* Switched to white for better contrast */
    margin-bottom: 1.5rem;
    overflow: hidden;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.reveal-text,
.reveal-text-delay {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.9);
    /* Lighter subtitle */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* --- Cards & Glassmorphism --- */
.glass-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-soft);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* --- Sections --- */
.solution-section {
    background: linear-gradient(135deg, #fdfbf7 0%, #f4f0e6 100%);
}

.usp-item {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.usp-item h4 {
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* --- Tech Steps --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    position: relative;
    padding: 2rem;
    border-left: 1px solid var(--color-primary);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.step-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.step-card:hover .step-img {
    transform: scale(1.1);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    opacity: 0.1;
    position: absolute;
    top: 10px;
    right: 1rem;
    color: var(--color-accent);
    z-index: 0;
}

/* --- Dark Section --- */
.dark-section {
    background-color: #1a251a;
    color: #eee;
}

.text-light {
    color: #fdfbf7 !important;
}

.styled-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Roadmap --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--color-bg);
    border: 4px solid var(--color-primary);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -8px;
}

.time-tag {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.footer {
    padding: 5rem 0 2rem;
    text-align: center;
}

.footer-brand h2 {
    font-size: 2.5rem;
    color: #fff;
}

.footer-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 23px;
    }

    /* Adjust dot position */

    .navbar .nav-links {
        display: none;
        /* Keep hidden for now, but logo is visible */
    }

    /* Ensure logo is visible on mobile hero */
    .logo {
        color: #fff !important;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }

    .navbar.scrolled .logo {
        color: var(--color-accent) !important;
        text-shadow: none;
    }

    .hero-content {
        padding: 1.5rem;
        /* Reduced padding for mobile */
        margin-top: 15vh;
        width: 90%;
        /* Ensure it doesn't touch edges */
    }

    .hero-title {
        font-size: 2.5rem;
        /* Smaller font for mobile */
        padding: 0;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0;
        margin-bottom: 2rem;
    }

    .hero .btn-outline {
        width: 100%;
        /* Full width button on mobile */
        display: block;
    }

    .team-grid-horizontal {
        flex-direction: column;
        align-items: center;
    }

    .team-card {
        width: 100%;
        max-width: 400px;
    }


    .step-img-container {
        height: 150px;
    }

    .step-number {
        font-size: 3rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }
}