﻿/* ============================================================
   COMPONENTS.CSS — Header, Footer, Specific Component Styles
   ============================================================ */


/* ============================================================
   0. CUSTOM CURSOR — Morphing Blob + Trail
   ============================================================ */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--color-accent-1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    opacity: 0;
    mix-blend-mode: difference;
    transition: opacity 0.4s ease;
    will-change: transform, width, height;
}

.cursor.is-visible {
    opacity: 1;
}

.cursor.is-hover {
    width: 60px;
    height: 60px;
}

.cursor.is-clicking {
    width: 16px;
    height: 16px;
}

.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--color-accent-1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    opacity: 0;
    mix-blend-mode: difference;
    will-change: transform, opacity;
}

@media (pointer: coarse) {
    .cursor, .cursor-trail { display: none !important; }
}


/* ============================================================
   0b. THEME TOGGLE
   ============================================================ */
.theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    z-index: var(--z-overlay);
    margin-right: var(--space-xs);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--color-accent-1);
    color: var(--color-accent-1);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle:hover svg {
    transform: rotate(30deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}


/* ============================================================
   0c. SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 10001;
    transition: none;
    pointer-events: none;
}


/* ============================================================
   0d. MAGNETIC BUTTON ENHANCEMENT
   ============================================================ */
.btn {
    transition: all var(--transition-base), transform 0.2s ease;
}


/* ============================================================
   1. HEADER / NAVIGATION
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
    z-index: -1;
}

.header.is-scrolled::before {
    background: rgba(10, 10, 15, 0.85);
    border-bottom-color: var(--color-border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* Logo */
.header__logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: var(--ls-tight);
    position: relative;
    z-index: var(--z-overlay);
}

.header__logo:hover {
    opacity: 0.8;
}

/* Desktop Nav */
.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.header__link {
    position: relative;
    padding: 0.5rem 0.875rem;
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    letter-spacing: 0.01em;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-base);
    border-radius: var(--radius-full);
}

.header__link:hover,
.header__link.is-active {
    color: var(--color-text);
}

.header__link:hover::after,
.header__link.is-active::after {
    transform: scaleX(1);
}

/* CTA in nav */
.header__cta {
    margin-left: var(--space-sm);
    padding: 0.5rem 1.25rem;
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: #fff;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.header__cta:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: var(--z-overlay);
    position: relative;
}

.header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.header__hamburger span:nth-child(1) {
    margin-bottom: 6px;
}

.header__hamburger span:nth-child(2) {
    margin-bottom: 6px;
}

/* Hamburger open state */
.header__hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header__hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__link {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--fw-bold);
    color: var(--color-text-secondary);
    padding: var(--space-sm) var(--space-xl);
    display: block;
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px);
}

.mobile-menu.is-open .mobile-menu__link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu__link:hover {
    color: var(--color-text);
    transform: translateX(10px);
}

.mobile-menu__link.is-active {
    color: var(--color-text);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 1023px) {
    .header__nav {
        display: none;
    }
    .header__hamburger {
        display: flex;
    }
}


/* ============================================================
   2. FOOTER
   ============================================================ */
.footer {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-xl);
    background: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.footer__divider {
    height: 1px;
    background: var(--gradient-accent);
    opacity: 0.3;
    margin-bottom: var(--space-4xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

@media (max-width: 1023px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.footer__brand {
    max-width: 320px;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    display: inline-block;
}

.footer__desc {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-lg);
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    border-color: var(--color-accent-1);
    color: var(--color-accent-1);
    box-shadow: 0 0 20px rgba(255,77,0,0.2);
    transform: translateY(-2px);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

.footer__col-title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer__link:hover {
    color: var(--color-text);
    transform: translateX(4px);
}

.footer__bottom {
    margin-top: var(--space-3xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__copyright {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer__legal {
    display: flex;
    gap: var(--space-lg);
}

.footer__legal a {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer__legal a:hover {
    color: var(--color-text);
}


/* ============================================================
   3. HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1.25rem;
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    color: var(--color-accent-1);
    background: rgba(255,77,0,0.08);
    border: 1px solid rgba(255,77,0,0.15);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero__label .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-1);
    animation: scale-pulse 2s ease-in-out infinite;
}

.hero__title {
    font-size: var(--text-hero);
    font-weight: var(--fw-extrabold);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-lg);
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
    max-width: 540px;
    margin-bottom: var(--space-2xl);
}

.hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Page hero (smaller, for inner pages) */
.page-hero {
    padding-top: 160px;
    padding-bottom: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero__title {
    font-size: var(--text-5xl);
    font-weight: var(--fw-extrabold);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.page-hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-inline: auto;
    line-height: var(--lh-relaxed);
}


/* ============================================================
   4. SERVICE CARDS
   ============================================================ */
.service-card {
    background: var(--gradient-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(255,77,0,0.1);
    border: 1px solid rgba(255,77,0,0.15);
    margin-bottom: var(--space-lg);
    color: var(--color-accent-1);
}

.service-card__icon svg {
    width: 24px;
    height: 24px;
}

.service-card__title {
    font-size: var(--text-xl);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-sm);
}

.service-card__desc {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: var(--lh-relaxed);
}

.service-card__features {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.service-card__feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.service-card__feature svg {
    color: var(--color-accent-1);
    flex-shrink: 0;
}


/* ============================================================
   5. PRICING CARDS
   ============================================================ */
.pricing-card {
    background: var(--gradient-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Recommended card */
.pricing-card--featured {
    border-color: var(--color-accent-1);
    background: linear-gradient(135deg, rgba(255,77,0,0.05) 0%, rgba(255,122,46,0.05) 100%);
    box-shadow: var(--shadow-glow);
}

.pricing-card--featured:hover {
    box-shadow: var(--shadow-glow-lg);
}

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    background: var(--gradient-accent);
    color: #fff;
    border-radius: var(--radius-full);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-card__name {
    font-size: var(--text-xl);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
}

.pricing-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.pricing-card__price {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-2xs);
}

.pricing-card__price-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.pricing-card__divider {
    height: 1px;
    background: var(--color-border);
    margin-bottom: var(--space-xl);
}

.pricing-card__features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.pricing-card__feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.pricing-card__feature svg {
    color: var(--color-accent-1);
    flex-shrink: 0;
    margin-top: 2px;
}


/* ============================================================
   6. PROCESS / TIMELINE
   ============================================================ */
.timeline {
    position: relative;
    padding: var(--space-xl) 0;
}

.timeline__item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__content {
    padding: var(--space-xl);
    background: var(--gradient-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.timeline__content:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
}

.timeline__item:nth-child(odd) .timeline__content {
    grid-column: 1;
    text-align: right;
}

.timeline__item:nth-child(even) .timeline__content {
    grid-column: 3;
}

.timeline__dot {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline__dot-inner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-accent);
    box-shadow: 0 0 20px rgba(255,77,0,0.3);
    position: relative;
    z-index: 2;
}

.timeline__step {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    color: var(--color-accent-1);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    margin-bottom: var(--space-xs);
}

.timeline__title {
    font-size: var(--text-xl);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
}

.timeline__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
}

/* Mobile timeline */
@media (max-width: 767px) {
    .timeline__item {
        grid-template-columns: 40px 1fr;
    }

    .timeline__item:nth-child(odd) .timeline__content,
    .timeline__item:nth-child(even) .timeline__content {
        grid-column: 2;
        text-align: left;
    }

    .timeline__dot {
        grid-column: 1;
    }
}


/* ============================================================
   7. PROJECT / REFERENCE CARDS
   ============================================================ */
.project-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-base);
    group: true;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.project-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.project-card__image-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image-bg {
    transform: scale(1.05);
}

/* Gradient placeholder for images */
.project-card__image--placeholder {
    background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface-3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,15,0.9) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-xl);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card__info {
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.project-card__title {
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
}

.project-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--lh-normal);
}


/* ============================================================
   8. PROJECT DETAIL MODAL
   ============================================================ */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.project-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.project-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-modal__content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    transform: translateY(30px) scale(0.95);
    transition: transform var(--transition-slow);
}

.project-modal.is-open .project-modal__content {
    transform: translateY(0) scale(1);
}

.project-modal__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.project-modal__close:hover {
    color: var(--color-text);
    border-color: var(--color-border-hover);
}

.project-modal__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    background: var(--color-surface-2);
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

.project-modal__title {
    font-size: var(--text-3xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-md);
}

.project-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.project-modal__desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-xl);
}

.project-modal__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

@media (max-width: 600px) {
    .project-modal__details {
        grid-template-columns: 1fr;
    }
}

.project-modal__detail-title {
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.project-modal__detail-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.project-modal__detail-item {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}


/* ============================================================
   9. CONFIGURATOR
   ============================================================ */
.configurator {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 1023px) {
    .configurator {
        grid-template-columns: 1fr;
    }
}

.configurator__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.configurator__section {
    background: var(--gradient-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.configurator__section-title {
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.configurator__section-title .step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--gradient-accent);
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    color: #fff;
    flex-shrink: 0;
}

/* Radio cards */
.radio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card__content {
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    transition: all var(--transition-base);
    text-align: center;
}

.radio-card input:checked + .radio-card__content {
    border-color: var(--color-accent-1);
    background: rgba(255,77,0,0.08);
    box-shadow: 0 0 20px rgba(255,77,0,0.15);
}

.radio-card__content:hover {
    border-color: var(--color-border-hover);
}

.radio-card__icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.radio-card__label {
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-2xs);
}

.radio-card__price {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Range slider */
.range-slider {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.range-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--color-surface-3);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-accent);
    box-shadow: 0 0 10px rgba(255,77,0,0.4);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.range-slider__labels {
    display: flex;
    justify-content: space-between;
}

.range-slider__value {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    text-align: center;
    color: var(--color-accent-1);
}

/* Toggle switch */
.toggle-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
}

.toggle:last-child {
    border-bottom: none;
}

.toggle__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.toggle__label {
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
}

.toggle__price {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.toggle__switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle__switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle__track {
    position: absolute;
    inset: 0;
    background: var(--color-surface-3);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
    cursor: pointer;
}

.toggle__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform var(--transition-base);
}

.toggle__switch input:checked + .toggle__track {
    background: var(--color-accent-1);
}

.toggle__switch input:checked + .toggle__track::after {
    transform: translateX(22px);
}

/* Summary sidebar */
.configurator__summary {
    position: sticky;
    top: 120px;
    background: var(--gradient-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.configurator__summary-title {
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-lg);
}

.configurator__summary-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
}

.summary-item__label {
    color: var(--color-text-secondary);
}

.summary-item__value {
    font-weight: var(--fw-medium);
}

.configurator__total {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-xl);
}

.configurator__total-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.configurator__total-value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--fw-bold);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.configurator__total-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-2xs);
    text-align: right;
}


/* ============================================================
   10. STATS / NUMBERS
   ============================================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--fw-bold);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.stat__label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}


/* ============================================================
   11. FEATURE GRID
   ============================================================ */
.feature-card {
    padding: var(--space-xl);
    background: var(--gradient-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-lg);
    background: rgba(255,77,0,0.1);
    color: var(--color-accent-1);
}

.feature-card__title {
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
}

.feature-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}


/* ============================================================
   12. CTA SECTION
   ============================================================ */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section__inner {
    padding: var(--space-4xl) var(--space-xl);
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, rgba(255,77,0,0.15), rgba(255,122,46,0.1), rgba(255,170,92,0.05));
    border: 1px solid rgba(255,77,0,0.15);
    position: relative;
    overflow: hidden;
}

.cta-section__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    pointer-events: none;
}

.cta-section__title {
    font-size: var(--text-4xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.cta-section__desc {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 500px;
    margin-inline: auto;
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}


/* ============================================================
   13. SKILL TAGS
   ============================================================ */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-tag {
    padding: 0.5rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    transition: all var(--transition-base);
}

.skill-tag:hover {
    border-color: var(--color-accent-1);
    color: var(--color-accent-1);
    box-shadow: 0 0 15px rgba(255,77,0,0.15);
}


/* ============================================================
   14. CONTACT FORM
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

@media (max-width: 767px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-info__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(255,77,0,0.1);
    border: 1px solid rgba(255,77,0,0.15);
    color: var(--color-accent-1);
    flex-shrink: 0;
}

.contact-info__label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xs);
}

.contact-info__value {
    font-size: var(--text-base);
    font-weight: var(--fw-medium);
}

/* Availability indicator */
.availability {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: #22c55e;
}

.availability .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: scale-pulse 2s ease-in-out infinite;
}

/* Success message */
.form-success {
    display: none;
    text-align: center;
    padding: var(--space-3xl);
}

.form-success.is-visible {
    display: block;
}

.form-success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(34,197,94,0.1);
    color: #22c55e;
}

.form-success__title {
    font-size: var(--text-xl);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
}

.form-success__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}


/* ============================================================
   15. SKIP TO CONTENT (Accessibility)
   ============================================================ */
.skip-to-content {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--color-accent-1);
    color: #fff;
    border-radius: var(--radius-md);
    z-index: 10000;
    font-weight: var(--fw-semibold);
    transition: top var(--transition-fast);
}

.skip-to-content:focus {
    top: var(--space-md);
}
