/* ==========================================================================
   PREMIUM DESIGN SYSTEM (РДВ-МАРКЕТИНГ)
   ========================================================================== */

:root {
    /* Colors (Deep Navy Blue + Gold & Sky Blue) */
    --bg-main: #050a14;
    --bg-secondary: #0c152b;
    --bg-card: rgba(10, 17, 34, 0.55);
    --bg-card-hover: rgba(16, 27, 54, 0.75);
    
    --text-primary: #f3f4f6;
    --text-muted: #a0aec0;
    --text-dark: #1f2937;
    
    --accent-primary: #ecc97e; /* Gold */
    --accent-secondary: #63b3ed; /* Sky Blue */
    --accent-glow: rgba(236, 201, 126, 0.35);
    --border-color: rgba(236, 201, 126, 0.08);
    --border-hover: rgba(236, 201, 126, 0.25);
    
    /* Gradients */
    --gradient-accent: linear-gradient(135deg, var(--accent-primary) 0%, #d4af37 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, var(--accent-primary) 100%);
    --gradient-glow: radial-gradient(circle, rgba(236, 201, 126, 0.15) 0%, rgba(99, 179, 237, 0.02) 60%, rgba(0, 0, 0, 0) 100%);

    /* Typography */
    --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --container-width: 1280px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ==========================================================================
   GRID & LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 20px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ==========================================================================
   UI COMPONENTS & BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(236, 201, 126, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(236, 201, 126, 0.55), 0 0 15px rgba(99, 179, 237, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.btn-small {
    padding: 10px 20px;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(7, 8, 10, 0.8);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 70px;
}

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

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

.logo-text {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-descriptor {
    font-size: 0.75rem;
    color: var(--text-muted);
    border-left: 1px solid var(--border-color);
    padding-left: 12px;
    display: none;
}

@media (min-width: 768px) {
    .logo-descriptor {
        display: block;
    }
}

.nav-links {
    display: none;
    gap: 32px;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
    z-index: 1;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform, opacity;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(236, 201, 126, 0.08) 0%, rgba(7, 8, 10, 0.95) 60%),
                linear-gradient(to right, rgba(7, 8, 10, 0.98) 35%, rgba(7, 8, 10, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 10;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(236, 201, 126, 0.08);
    color: var(--accent-secondary);
    font-family: var(--font-headings);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    border: 1px solid rgba(236, 201, 126, 0.15);
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 36px;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
    text-shadow: 0 0 10px rgba(99, 179, 237, 0.5);
}

.benefit-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.benefit-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 576px) {
    .hero-cta {
        flex-direction: row;
        align-items: center;
    }
}

.cta-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 280px;
}

/* ==========================================================================
   WHO SECTION
   ========================================================================== */
.who {
    background-color: var(--bg-secondary);
}

.who-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 60px;
}

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

.who-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.who-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(236, 201, 126, 0.05);
}

.who-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(236, 201, 126, 0.06);
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border: 1px solid rgba(236, 201, 126, 0.1);
    transition: var(--transition-smooth);
}

.who-card:hover .who-icon {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(99, 179, 237, 0.3);
    border-color: transparent;
}

.who-card-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

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

.who-summary {
    display: flex;
    justify-content: center;
}

.aio-note {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .aio-note {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }
}

.aio-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(236, 201, 126, 0.08);
    border: 1px solid rgba(236, 201, 126, 0.2);
    box-shadow: 0 0 15px rgba(236, 201, 126, 0.15);
    flex-shrink: 0;
}

.aio-note p {
    font-size: 0.925rem;
    line-height: 1.5;
}

/* ==========================================================================
   SCENE WRAPPER & TRANSITIONS
   ========================================================================== */
.scene-transition-wrapper {
    position: relative;
    background-color: var(--bg-main);
}

@media (min-width: 1024px) and (min-height: 750px) {
    .scene-transition-wrapper {
        height: 250vh;
        position: relative;
    }

    .sticky-scene {
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        overflow: hidden;
    }

    #pricing {
        z-index: 1;
        padding: 0;
    }

    #card-left {
        transform: translateX(calc(-300px * (1 - var(--scroll-progress, 1))));
        opacity: var(--scroll-progress, 1);
        will-change: transform, opacity;
    }
    #card-right {
        transform: translateX(calc(300px * (1 - var(--scroll-progress, 1))));
        opacity: var(--scroll-progress, 1);
        will-change: transform, opacity;
    }
    #card-center {
        transform: perspective(1000px) translateZ(calc(-800px * (1 - var(--scroll-progress, 1)))) scale(calc(0.5 + 0.55 * var(--scroll-progress, 1)));
        opacity: var(--scroll-progress, 1);
        will-change: transform, opacity;
        z-index: 10;
    }

    #value {
        z-index: 2;
        margin-top: -100vh;
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
        pointer-events: none; 
    }

    #value::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--bg-secondary);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        z-index: -1;
        opacity: clamp(0, calc((var(--scene-progress, 0) - 0.1) * 3.33), 1);
    }

    #value > .container {
        opacity: clamp(0, calc((var(--scene-progress, 0) - 0.38) * 10), 1);
    }

    #value .scroll-anim {
        transition: none !important;
        animation: none !important;
    }

    /* Hide circle glow until it should animate */
    #value .value-graphic .circle {
        animation: none !important;
        stroke-dasharray: calc(clamp(0, (var(--scene-progress, 0) - 0.6) * 400, 80)) 100 !important;
        filter: drop-shadow(0 0 calc(clamp(0, (var(--scene-progress, 0) - 0.55) * 20, 10) * 1px) rgba(236, 201, 126, 0.5)) !important;
    }

    /* Hide timeline border until content appears */
    #value .value-timeline {
        border-left-color: rgba(236, 201, 126, calc(clamp(0, (var(--scene-progress, 0) - 0.55) * 5, 1) * 0.15));
    }

    /* Glowing dot overlay */
    #value .timeline-dot::after {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 50%;
        background: var(--accent-primary);
        box-shadow: 0 0 15px rgba(236, 201, 126, 0.8);
        opacity: 0;
    }

    /* --- Scrollytelling Scrubbing for Inner Elements --- */
    #value .section-title {
        opacity: clamp(0, calc((var(--scene-progress, 0) - 0.4) * 5), 1) !important;
        transform: translateY(calc(40px * (1 - clamp(0, calc((var(--scene-progress, 0) - 0.4) * 5), 1)))) !important;
    }
    
    #value .section-intro {
        opacity: clamp(0, calc((var(--scene-progress, 0) - 0.45) * 5), 1) !important;
        transform: translateY(calc(40px * (1 - clamp(0, calc((var(--scene-progress, 0) - 0.45) * 5), 1)))) !important;
    }

    #value .value-graphic {
        opacity: clamp(0, calc((var(--scene-progress, 0) - 0.55) * 5), 1) !important;
        transform: translateY(calc(40px * (1 - clamp(0, calc((var(--scene-progress, 0) - 0.55) * 5), 1)))) !important;
    }

    #value .timeline-item:nth-child(1) {
        opacity: clamp(0, calc((var(--scene-progress, 0) - 0.60) * 5), 1) !important;
        transform: translateY(calc(40px * (1 - clamp(0, calc((var(--scene-progress, 0) - 0.60) * 5), 1)))) !important;
    }
    #value .timeline-item:nth-child(1) .timeline-dot::after { opacity: clamp(0, calc((var(--scene-progress, 0) - 0.65) * 10), 1); }

    #value .timeline-item:nth-child(2) {
        opacity: clamp(0, calc((var(--scene-progress, 0) - 0.65) * 5), 1) !important;
        transform: translateY(calc(40px * (1 - clamp(0, calc((var(--scene-progress, 0) - 0.65) * 5), 1)))) !important;
    }
    #value .timeline-item:nth-child(2) .timeline-dot::after { opacity: clamp(0, calc((var(--scene-progress, 0) - 0.70) * 10), 1); }

    #value .timeline-item:nth-child(3) {
        opacity: clamp(0, calc((var(--scene-progress, 0) - 0.70) * 5), 1) !important;
        transform: translateY(calc(40px * (1 - clamp(0, calc((var(--scene-progress, 0) - 0.70) * 5), 1)))) !important;
    }
    #value .timeline-item:nth-child(3) .timeline-dot::after { opacity: clamp(0, calc((var(--scene-progress, 0) - 0.75) * 10), 1); }

    #value .timeline-item:nth-child(4) {
        opacity: clamp(0, calc((var(--scene-progress, 0) - 0.75) * 5), 1) !important;
        transform: translateY(calc(40px * (1 - clamp(0, calc((var(--scene-progress, 0) - 0.75) * 5), 1)))) !important;
    }
    #value .timeline-item:nth-child(4) .timeline-dot::after { opacity: clamp(0, calc((var(--scene-progress, 0) - 0.80) * 10), 1); }
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing {
    background-color: var(--bg-main);
    z-index: 5;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 48px;
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
}

.pricing-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.pricing-card-featured {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(236, 201, 126, 0.05);
}

.pricing-card-featured:hover {
    box-shadow: 0 15px 40px rgba(236, 201, 126, 0.15), 0 0 25px rgba(99, 179, 237, 0.05);
}

.pricing-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--gradient-accent);
    color: #ffffff;
    font-family: var(--font-headings);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-name {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.pricing-price {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    min-height: 40px;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 24px;
    line-height: 1.4;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-secondary);
    font-weight: 700;
}

.pricing-btn {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pricing-cta-footer {
    text-align: center;
    max-width: 600px;
    margin: 40px auto 0;
}

.pricing-help-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   VALUE SECTION
   ========================================================================== */
.value {
    background-color: var(--bg-secondary);
    z-index: 6;
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .value-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* Graphic (80% Circle) */
.value-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-chart {
    position: relative;
    width: 250px;
    text-align: center;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2;
}

.circle {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke: var(--accent-primary);
    filter: drop-shadow(0 0 10px rgba(236, 201, 126, 0.5));
}

.value-graphic.visible .circle {
    animation: fillProgress 1.5s ease-out forwards 0.3s;
}

@keyframes fillProgress {
    0% { stroke-dasharray: 0, 100; }
    100% { stroke-dasharray: 80, 100; }
}

.percentage {
    fill: #fff;
    font-family: var(--font-main);
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: 700;
}

.graphic-label {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.4;
}

/* Timeline */
.value-timeline {
    position: relative;
    border-left: 2px solid rgba(236, 201, 126, 0.15);
    padding-left: 30px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -37px; 
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(236, 201, 126, 0.5);
    transition: all 0.5s ease;
}

.timeline-item.visible .timeline-dot {
    background: var(--accent-primary);
    box-shadow: 0 0 15px rgba(236, 201, 126, 0.8);
    transition-delay: 0.3s;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.timeline-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio {
    background-color: var(--bg-main);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

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

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.portfolio-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(236, 201, 126, 0.05);
}

.portfolio-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.04);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 8, 10, 0.4);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(236, 201, 126, 0.4);
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-overlay-icon {
    transform: scale(1);
}

.portfolio-content {
    padding: 36px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-card-title {
    font-size: 1.35rem;
    margin-bottom: 20px;
}

.portfolio-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portfolio-details li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.portfolio-details li strong {
    color: var(--text-primary);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq {
    background-color: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.faq-item.active {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.faq-question {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    transition: var(--transition-smooth);
    font-weight: 300;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
    padding: 0 32px 32px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
    background-color: var(--bg-main);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.contact-content {
    position: relative;
}

/* Forms */
.inline-lead-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.required {
    color: #ef4444;
}

.form-input, .form-textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 10px rgba(236, 201, 126, 0.15);
}

.form-textarea {
    height: 120px;
    resize: vertical;
}

.form-submit-row {
    margin-top: 24px;
}

.form-submit-btn {
    width: 100%;
    gap: 12px;
}

.form-policy-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
    margin-top: 15px;
    text-align: center;
}

.contact-image-wrapper {
    display: flex;
    justify-content: center;
}

.contact-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-link {
    text-decoration: underline;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.1);
    display: none;
}

@media (min-width: 576px) {
    .footer-separator {
        display: inline;
    }
}

/* ==========================================================================
   MODAL WINDOW
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 8, 10, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 540px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-content {
    padding: 48px;
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
    text-align: center;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

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

@media (max-width: 576px) {
    .modal-container {
        max-height: calc(100vh - 40px);
        display: flex;
        flex-direction: column;
        border-radius: var(--radius-md);
    }
    
    .modal-close {
        top: 16px;
        right: 16px;
        z-index: 10;
    }
    
    .modal-content {
        padding: 40px 20px 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    
    .modal-title {
        font-size: 1.35rem;
        margin-bottom: 6px;
        padding-right: 24px;
    }
    
    .modal-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .modal-content .form-group {
        margin-bottom: 12px;
    }
    
    .modal-content .form-textarea {
        height: 80px;
    }
}


/* ==========================================================================
   ANIMATIONS & SCROLL EFFECTS
   ========================================================================== */
.scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

.who-grid .who-card:nth-child(1) { transition-delay: 0.05s; }
.who-grid .who-card:nth-child(2) { transition-delay: 0.15s; }
.who-grid .who-card:nth-child(3) { transition-delay: 0.25s; }

.pricing-grid .pricing-card:nth-child(1) { transition-delay: 0.05s; }
.pricing-grid .pricing-card:nth-child(2) { transition-delay: 0.15s; }
.pricing-grid .pricing-card:nth-child(3) { transition-delay: 0.25s; }

/* ==========================================================================
   STACKED CARDS PARALLAX & HOVER OPTIMIZATION
   ========================================================================== */
.portfolio, .faq, #value {
    will-change: transform, opacity;
}

.portfolio {
    position: relative;
    z-index: 10;
    background-color: var(--bg-main);
}

.faq {
    position: relative;
    z-index: 20;
    background-color: var(--bg-secondary);
}

.contact {
    position: relative;
    z-index: 30;
    background-color: var(--bg-main);
}

@media (min-width: 768px) {
    .portfolio, .faq, .contact {
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
        box-shadow: 0 -40px 100px rgba(0, 0, 0, 0.8);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}


/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(12, 21, 43, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(236, 201, 126, 0.25);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.4s, 
                border-color 0.3s, 
                background-color 0.3s, 
                color 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: var(--gradient-accent);
    color: #070b19;
    border-color: var(--accent-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(236, 201, 126, 0.3);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px) scale(0.98);
}

@media (max-width: 767px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
    }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(12, 21, 43, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 32px;
    z-index: 1500;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(120px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.6s, 
                border-color 0.4s;
}

.cookie-banner-container.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner-container:hover {
    border-color: var(--border-hover);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-content p a {
    color: var(--accent-primary);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.cookie-banner-content p a:hover {
    color: var(--accent-secondary);
}

.btn-cookie-accept {
    padding: 10px 28px;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-sm);
    color: #070b19;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.3s, 
                box-shadow 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(236, 201, 126, 0.15);
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 201, 126, 0.3);
}

.btn-cookie-accept:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cookie-banner-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
        padding: 18px 20px;
        border-radius: var(--radius-sm);
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .btn-cookie-accept {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}



