/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    --color-primary: #E63946;
    /* slightly punchier red */
    --color-primary-dark: #C02D38;

    /* Dark Theme Core */
    --color-bg-dark: #0F1216;
    --color-bg-darker: #060709;
    --color-bg-surface: #1A1D23;

    --color-bg-light: #F8FAFC;
    --color-text-body: #64748B;
    --color-text-heading: #0F172A;
    --color-text-muted: #94A3B8;
    --color-border: #E2E8F0;
    --color-white: #ffffff;

    /* Gradients */
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.15) 0%, rgba(15, 18, 22, 0) 70%);
    --gradient-btn: linear-gradient(135deg, #E63946 0%, #D62839 100%);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 50px rgba(230, 57, 70, 0.25);

    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text-body);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-heading);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

h1 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--color-white);
    /* Force white for Hero */
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-white);
}

.text-light-gray {
    color: #CBD5E1;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

.hidden-visally {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.75rem;
    }

    h2 {
        font-size: 2.75rem;
    }
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

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

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-100 {
    transition-delay: 0.1s;
}

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

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

/* ==========================================================================
   Components (Buttons, Cards)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.btn--primary {
    background: var(--gradient-btn);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

/* White glowing outline button for dark bg */
.btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn--outline-dark {
    background: transparent;
    color: var(--color-text-heading);
    border-color: var(--color-text-heading);
}

.btn--outline-dark:hover {
    background: var(--color-text-heading);
    color: var(--color-white);
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn--full {
    width: 100%;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

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

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

.logo img {
    height: 64px;
    /* Increased for better visibility per user feedback */
    width: auto;
    display: block;
}

.main-nav {
    display: none;
}

.header-cta {
    display: none;
}

.mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-heading);
    margin: 6px 0;
    transition: 0.3s;
    border-radius: 2px;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }

    .main-nav {
        display: block;
    }

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

    .nav-links a {
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--color-text-body);
        font-family: var(--font-body);
    }

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

    .header-cta {
        display: inline-flex;
    }

    .show-mobile-only {
        display: none;
    }
}

body.nav-open .main-nav {
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

/* Animated Glow Blob */
.hero-bg-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.12) 0%, rgba(15, 18, 22, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4rem;
}

.hero-content {
    max-width: 650px;
}

.subline {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.hero-intro {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.trust-indicators {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.trust-line {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.tech-proof {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Hero Phone Mockup */
.hero-visual {
    display: none;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: #000;
    border-radius: 48px;
    position: relative;
    box-shadow: var(--shadow-glow), 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    border: 10px solid #2d3748;
    transform: rotateY(-10deg) rotateX(5deg);
    /* Slight 3D tilt */
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-screen {
    background: #fff;
    width: 100%;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
}

.phone-noch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

/* Food Delivery App UI - Shared Structure */
.app-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 40px;
    font-family: 'Inter', sans-serif;
    color: #1E293B;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    transition: opacity 1s ease;
}

/* Layer Z-Indexing */
#ui-wireframe {
    z-index: 2;
    background: #F8FAFC;
    opacity: 1;
}

#ui-finished {
    z-index: 1;
    background: #FFFFFF;
    /* Hidden initially or just behind? Kept behind. */
}

/* Wireframe Specifics (Existing) */
.wireframe-style .app-header {
    background: #fff;
    border-bottom: 2px solid #E2E8F0;
}

/* ... reusing existing classes for wireframe ... */


/* Finished App Specifics */
.finished-style {
    font-family: var(--font-body);
    /* More modern look */
}

.finished-style .app-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1rem;
    text-transform: capitalize;
    color: #0F172A;
}

.finished-style .app-scroll-content {
    background: #fff;
}

.finished-style .app-item {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    border-radius: 16px;
    margin-bottom: 1rem;
    padding: 1rem;
}

.finished-style .item-img-placeholder.colored {
    border: none;
    width: 60px;
    height: 60px;
}

.finished-style .item-img-placeholder.colored::after {
    content: '';
    /* No icon */
}

.finished-style .item-img-placeholder.colored.red {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
}

.finished-style .item-img-placeholder.colored.yellow {
    background: linear-gradient(135deg, #F6D365 0%, #FDA085 100%);
}

.finished-style .item-price {
    color: var(--color-primary);
    font-size: 1rem;
}

.finished-style .item-counter {
    background: #FFF0F1;
    color: var(--color-primary);
    border: none;
}

.finished-style .radio-option.active {
    background: #FFF0F1;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

.finished-style .radio-circle.selected {
    border-color: var(--color-primary);
}

.finished-style .radio-circle.selected::after {
    background: var(--color-primary);
}

.finished-style .app-btn.fill-primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4);
    font-size: 0.9rem;
    padding: 14px;
}

.finished-style .discount-input.filled {
    border: 1px solid #22C55E;
    color: #22C55E;
    background: #F0FDF4;
    font-weight: 600;
}


/* Common Components re-added for context */
.app-header {
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.close-icon {
    position: absolute;
    right: 20px;
    width: 24px;
    height: 24px;
    border: 1px solid #CBD5E1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #64748B;
    cursor: pointer;
}

.app-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #F8FAFC;
}

.app-scroll-content::-webkit-scrollbar {
    display: none;
}

.app-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    margin: 10px 0 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94A3B8;
}

.app-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    background: #FFFFFF;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.item-img-placeholder {
    width: 50px;
    height: 50px;
    background-color: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
}

/* Simulate image icon */
.item-img-placeholder::after {
    content: '🖼️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    opacity: 0.4;
    filter: grayscale(1);
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0F172A;
}

.item-counter {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 4px 12px;
    gap: 12px;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 600;
    margin-left: auto;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #475569;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: #CBD5E1;
}

.radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #CBD5E1;
    border-radius: 50%;
    position: relative;
}

.radio-circle.selected {
    border-color: #0F172A;
}

.radio-circle.selected::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #0F172A;
    border-radius: 50%;
    top: 3px;
    left: 3px;
}

.app-footer-panel {
    background: #fff;
    padding: 24px 20px;
    border-top: 2px solid #E2E8F0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 8px;
}

.discount-input {
    width: 100%;
    padding: 10px;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #94A3B8;
    margin: 15px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 20px;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
}

.app-actions {
    display: flex;
    gap: 12px;
}

.app-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.2s;
}

.app-btn.outline {
    background: #fff;
    color: #1E293B;
    border: 2px solid #E2E8F0;
}

.app-btn.outline:hover {
    border-color: #CBD5E1;
}

.app-btn.fill {
    background: #0F172A;
    color: #fff;
    border: 2px solid #0F172A;
}

.app-btn.fill:hover {
    background: #1E293B;
    border-color: #1E293B;
}

/* Particle Animation */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #CBD5E1;
    /* Wireframe color */
    pointer-events: none;
    border-radius: 2px;
    z-index: 10;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .hero-btns {
        flex-direction: row;
    }

    .hero-visual {
        display: flex;
    }
}

/* ==========================================================================
   Intro Block
   ========================================================================== */
/* ==========================================================================
   Intro Block
   ========================================================================== */
.intro {
    background-color: var(--color-white);
    position: relative;
}

/* Subtle grid pattern background */
.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#E2E8F0 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.intro-container {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.intro-lead {
    font-size: 2rem;
    color: var(--color-text-heading);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.text-highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(230, 57, 70, 0.15);
    z-index: -1;
    border-radius: 4px;
}

.intro-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-btn);
    margin: 0 auto 2.5rem;
    border-radius: 2px;
}

.intro-secondary {
    display: grid;
    gap: 2rem;
    text-align: left;
}

.intro-secondary p {
    font-size: 1.125rem;
    color: var(--color-text-body);
    line-height: 1.8;
    margin: 0;
}

.intro-secondary strong {
    color: var(--color-text-heading);
    font-weight: 600;
}

@media (min-width: 768px) {
    .intro-lead {
        font-size: 2.5rem;
    }

    .intro-secondary {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .intro-secondary p {
        text-align: justify;
    }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
    display: grid;
    gap: 2.5rem;
}

.service-card {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-list li {
    margin-bottom: 0.875rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
    color: var(--color-text-body);
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 800;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Process
   ========================================================================== */
/* ==========================================================================
   Process (Timeline)
   ========================================================================== */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 5rem;
    justify-content: center;
    position: relative;
    padding-top: 2rem;
}

/* Connector Line (Desktop) */
@media (min-width: 1024px) {
    .process-steps::before {
        content: '';
        position: absolute;
        top: 60px;
        /* Aligns with the circles */
        left: 5%;
        width: 90%;
        height: 2px;
        background-color: transparent;
        border-top: 2px dashed #E2E8F0;
        z-index: 0;
    }
}

.step-card {
    flex: 1 1 160px;
    background: var(--color-white);
    padding: 2.5rem 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Subtle base shadow */
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy spring */
    position: relative;
    z-index: 1;
    margin-top: 0;
}

/* Staggered effect for even items on big screens */
@media (min-width: 1024px) {
    .step-card:nth-child(even) {
        margin-top: 4rem;
    }

    /* Adjust connector for even items? 
       Actually, keeping it simple: just floating cards. 
    */
}

.step-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #FEF2F2;
    /* Light red bg */
    color: var(--color-primary);
    border-radius: 50%;
    font-weight: 800;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    box-shadow: 0 0 0 6px var(--color-white);
    /* White ring to mask line */
    position: relative;
    font-size: 1.1rem;
}

.step-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--color-text-heading);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--color-text-body);
    margin-bottom: 0;
    line-height: 1.5;
}

.timeline-note {
    background: #0F172A;
    color: #fff;
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

.timeline-note strong {
    color: var(--color-white);
    margin-left: 5px;
}

/* ==========================================================================
   Projects
   ========================================================================== */
.projects-grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.project-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-cat {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-desc {
    flex: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tags span {
    background: #F1F5F9;
    color: #475569;
    border: none;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

@media (min-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Locations
   ========================================================================== */
.locations-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 3rem;
}

.loc-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    text-align: center;
}

.loc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.loc-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.loc-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-heading);
}

.loc-card p {
    font-size: 0.95rem;
    color: var(--color-text-body);
    margin-bottom: 0;
    line-height: 1.6;
}


/* ==========================================================================
   FAQ
   ========================================================================== */
.accordion {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

details:hover {
    border-color: var(--color-primary);
}

summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 3rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 400;
}

details[open] summary::after {
    content: '-';
}

details p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--color-text-body);
}

/* ==========================================================================
   Contact Form (Dark Mode)
   ========================================================================== */
.contact-form {
    background: #1A1D23;
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-white);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #0F1216;
    border: 1px solid #2D3748;
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #060709;
    border-top: 1px solid #1e293b;
    padding: 5rem 0 2rem;
    color: #94A3B8;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
}

.footer-links h4,
.footer-socials h4,
.footer-heading {
    color: var(--color-white);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul a {
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

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

/* Service Card Stretched Link */
.service-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Ensure relative positioning for containment */
.service-card {
    position: relative;
    z-index: 0;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    color: #475569;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-links a {
    font-weight: 500;
    color: var(--color-text-muted);
}

.social-links a:hover {
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        align-items: start;
    }
}

/* ==========================================================================
   Case Study Pages
   ========================================================================== */
.case-hero {
    position: relative;
    padding: 10rem 0 6rem;
    background: #F8FAFC;
    /* Light background per user request */
    color: var(--color-text-body);
    overflow: hidden;
}

.case-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.10) 0%, transparent 60%);
    z-index: 0;
}

.case-hero .container {
    position: relative;
    z-index: 1;
}

.case-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    max-width: 800px;
    line-height: 1.1;
    color: var(--color-text-heading);
    /* Black/Dark text */
}

.case-hero-meta {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 2rem;
    display: block;
}

.case-hero img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    margin-top: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-stats-bar {
    background: var(--color-white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ... existing styles ... */

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    max-width: 360px;
    width: calc(100% - 48px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 24px;
    font-family: var(--font-body);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--color-text-body);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-content strong {
    color: var(--color-text-heading);
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-cookie {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-cookie.fill {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.25);
}

.btn-cookie.fill:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-cookie.outline {
    background: transparent;
    color: #475569;
    border-color: #E2E8F0;
}

.btn-cookie.outline:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #CBD5E1;
}

#cookie-banner.fade-out {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Image Overlay & Hover Styles */
.hero-image-container,
.gallery-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Ensure slide-in overlay stays within bounds */
    border-radius: var(--radius-lg);
    /* Match image border radius */
    cursor: default;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    /* Shadow on container */
}

/* Image Transition */
.hero-image-container img,
.gallery-item img {
    width: 100%;
    display: block;
    transition: filter 0.4s ease, transform 0.4s ease;
    box-shadow: none !important;
    /* Remove native shadow */
    border: none !important;
}

/* Hover: Blur Image */
.hero-image-container:hover img,
.gallery-item:hover img {
    filter: blur(4px);
    transform: scale(1.02);
    /* Subtle zoom for better feel */
}

/* Slide-in White Overlay */
.hero-image-container::after,
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    /* 50% transparent white */
    transform: translateY(100%);
    /* Start hidden below */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    pointer-events: none;
}

/* Hover: Slide in Overlay */
.hero-image-container:hover::after,
.gallery-item:hover::after {
    transform: translateY(0);
}

/* Heading Transition */
.hero-image-container h3,
.gallery-item h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 20%);
    /* Start slightly lower */
    opacity: 0;
    /* Start hidden */
    z-index: 10;
    margin: 0;
    text-align: center;
    color: var(--color-text-heading);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
    /* Delay slightly so bg moves first */
    width: 90%;
    /* Prevent text from touching edges */
    pointer-events: none;
}

/* Hover: Reveal Heading */
.hero-image-container:hover h3,
.gallery-item:hover h3 {
    opacity: 1;
    transition-delay: 0.1s;
    transform: translate(-50%, -50%);
    /* Centered */
}

/* Specific adjustment for hero image margin if needed */
.hero-image-container img {
    margin-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 4rem 0;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.next-project {
    padding: 6rem 0;
    background: #F8FAFC;
    text-align: center;
}