/* Variables & Reset */
:root {
    /* Brand Colors - Vibrant Update */
    --primary-green: #25d366;
    /* Electric/Tech Green */
    --primary-dark: #128c7e;
    --accent-glow: rgba(37, 211, 102, 0.4);

    --black: #0a0a0a;
    /* Deep Black */
    --charcoal: #1c1c1e;
    /* Card BG */
    --text-main: #f2f2f7;
    /* Off-white text */
    --text-muted: #a1a1a6;

    --white: #ffffff;
    --light-grey: #f5f5f7;

    /* System */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.1);

    /* Layout */
    --container-width: 1300px;
    --header-height: 90px;

    /* Type */
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-stack);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* REUSABLE CLASSES */
.container-fluid {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--black) 0%, var(--primary-dark) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* TYPOGRAPHY */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 700;
    display: inline-block;
}

p {
    color: #48484a;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape for modern feel */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 15px var(--accent-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
    background: #1ebc57;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 80px;
    /* Adjust based on image ratio */
    width: auto;
    object-fit: contain;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--black);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s;
}

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

/* HERO SECTION */
.hero-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

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

.hero-visual-card {
    height: 500px;
    background: var(--charcoal);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    width: 100%;
    z-index: 1;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: var(--white);
    display: inline-block;
}

.stat-badge strong {
    color: var(--primary-green);
    font-size: 1.5rem;
    display: block;
}

/* SECTIONS */
.section-wrapper {
    padding: 6rem 0;
}

.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

/* SERVICES CARDS - One Line Alignment */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-green);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(37, 211, 102, 0.1);
    /* Light green tint */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    font-size: 1.5rem;
}

/* DARK SECTION (Market) */
.dark-section {
    background: var(--black);
    color: var(--white);
    padding: 6rem 0;
}

.dark-section h2 {
    color: var(--white);
}

.dark-section p {
    color: var(--text-muted);
}

.market-list-row {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.market-list-row:hover {
    padding-left: 1rem;
    background: rgba(37, 211, 102, 0.05);
    border-radius: 8px;
}

.market-list-row:hover .check-circle {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.market-list-row:hover p {
    color: var(--white);
}

.check-circle {
    width: 24px;
    height: 24px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    color: var(--black);
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* APPROACH - Redesigned */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

/* Connecting line for desktop */
.approach-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 211, 102, 0) 0%, rgba(37, 211, 102, 0.3) 50%, rgba(37, 211, 102, 0) 100%);
    z-index: 0;
    transform: translateY(-50%);
}

.approach-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.approach-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.15);
    border-color: var(--primary-green);
}

.num-display {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(180deg, rgba(37, 211, 102, 0.2) 0%, rgba(37, 211, 102, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.approach-card:hover .num-display {
    background: linear-gradient(180deg, var(--primary-green) 0%, rgba(37, 211, 102, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.1);
}

.approach-card h4 {
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 700;
}

/* FOOTER */
.site-footer {
    background: var(--white);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .container-fluid {
        max-width: 95%;
    }

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

    h1 {
        font-size: 3rem;
    }

    .services-grid,
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Simplified */
    .hero-visual-card {
        height: 300px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* ANIMATIONS & EFFECTS */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.hero-visual-card {
    animation: float 6s ease-in-out infinite;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Scroll Progress Line (Optional cool touch) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-green);
    width: 0%;
    /* JS would animate this, or we rely on scrollbar */
    z-index: 1000;
    /* Since we're not adding JS for this specifically now, we'll skip the width logic */
    display: none;
}