/* DevKarim 2026 - SECTION STYLES */

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    height: 100vh;

    /* scroll-snap removed */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--color-bg-dark);
}

/* Hero poster image - shows INSTANTLY for fast LCP */
.hero-poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

/* Hero video - loads in background, fades in over poster */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* When video is loaded and playing, show it over the poster */
.hero-video.loaded {
    opacity: 1;
}

/* Hero overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 40%,
            rgba(0, 0, 0, 0.4) 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    padding-bottom: 5vh;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* Hero content */
.hero-content {
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-title-line {
    display: block;
    overflow: visible;
}

.hero-bottom {
    display: flex;
    gap: 4rem;
    align-items: flex-end;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 400px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.7;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: translateY(-100%);
    animation: scrollDrop 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    color: white;
}

@keyframes scrollDrop {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
    }
}

/* Extra small screens (iPhone SE, 375px and below) */
@media (max-width: 400px) {
    .hero-title {
        font-size: clamp(2.5rem, 11vw, 4rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-container {
        padding: 0 1rem;
        padding-bottom: 3vh;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-bottom {
        gap: 1.5rem;
    }
}

.portfolio {
    height: 250vh; /* Faster scrolling progression */
    padding: 0;
    position: relative;
    background: var(--color-bg);
}

.portfolio > .container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 6rem;
    padding-bottom: 4rem;
    overflow: hidden;
}

.portfolio-header {
    flex-shrink: 0;
    margin-bottom: 2.5rem;
}

.portfolio-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.portfolio-tag-index {
    font-family: var(--font-mono);
    color: var(--color-primary);
}

.portfolio-title {
    max-width: 600px;
}

/* ─── Stage: Display + Dock side by side ─── */
.portfolio-stage {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    align-items: stretch;
    min-height: 520px;
    position: relative;
}

/* ─── Main Display Area ─── */
.portfolio-display {
    flex: 1;
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    min-height: 520px;
}

/* ─── Panels ─── */
.portfolio-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    opacity: 0;
    pointer-events: none;
    transform: translateX(24px) scale(0.98);
    transition:
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.portfolio-panel.active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0) scale(1);
}

.portfolio-panel.exit-left {
    opacity: 0;
    transform: translateX(-24px) scale(0.98);
}

/* Media side */
.panel-media {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.panel-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-panel.active .panel-media img {
    animation: panelImgIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes panelImgIn {
    from { transform: scale(0.95) translateY(10px); opacity: 0.6; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* Info side */
.panel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    gap: 1.2rem;
    background: var(--color-surface);
}

.panel-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
}

.panel-title {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-panel.active .panel-title {
    animation: fadeSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.panel-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}

.portfolio-panel.active .panel-desc {
    animation: fadeSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

.panel-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.portfolio-panel.active .panel-features {
    animation: fadeSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.panel-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    background: rgba(var(--color-primary-rgb, 99,102,241), 0.07);
    border: 1px solid rgba(var(--color-primary-rgb, 99,102,241), 0.15);
    color: var(--color-text);
    border-radius: 999px;
}

.panel-feature i {
    color: var(--color-primary);
    font-size: 0.75rem;
}

.panel-cta {
    align-self: flex-start;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.875rem 1.75rem;
}

.portfolio-panel.active .panel-cta {
    animation: fadeSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.25s both;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Mac Dock Sidebar ─── */
.portfolio-dock {
    width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    flex-shrink: 0;
}

.dock-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 2rem;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.1),
        0 2px 8px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Dock item button */
.dock-item {
    position: relative;
    width: 56px;
    height: 56px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    border-radius: 1.1rem;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Mac spring physics */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.dock-thumb {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-radius 0.3s ease;
    will-change: transform;
}

.dock-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Active dock item */
.dock-item.active .dock-thumb {
    border-color: var(--color-primary);
    box-shadow:
        0 0 0 3px rgba(var(--color-primary-rgb, 99,102,241), 0.25),
        0 4px 16px rgba(0,0,0,0.15);
}

/* Active indicator dot */
.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 1;
    transition: opacity 0.2s ease;
}

.dock-item:not(.active)::after {
    opacity: 0;
}

/* Hover magnification — Mac Dock style */
.dock-item:hover {
    transform: translateY(-8px) scale(1.25);
    z-index: 10;
}

.dock-item:hover .dock-thumb {
    width: 60px;
    height: 60px;
    border-radius: 1.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Neighbour magnification — using JS to set --dock-scale */
.dock-item {
    transform: translateY(calc(var(--dock-lift, 0) * -1px))
               scale(var(--dock-scale, 1));
}

/* Tooltip label on hover */
.dock-label {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    background: rgba(30,30,30,0.92);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.dock-label::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(30,30,30,0.92);
}

.dock-item:hover .dock-label {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* ─── Scroll-progress indicator (thin line at bottom of section) ─── */
.portfolio-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 999px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .portfolio-stage {
        min-height: 460px;
    }

    .panel-media {
        padding: 1.5rem;
    }

    .panel-info {
        padding: 2rem 1.75rem;
    }
}

@media (max-width: 768px) {
    .portfolio > .container {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    .portfolio-stage {
        flex-direction: column;
        min-height: unset;
    }

    /* Dock becomes bottom bar on mobile */
    .portfolio-dock {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 0;
    }

    .dock-inner {
        flex-direction: row;
        border-radius: 1.5rem;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .dock-item:hover {
        transform: translateY(-10px) scale(1.3);
    }

    /* Tooltip goes above on mobile */
    .dock-label {
        right: unset;
        bottom: calc(100% + 12px);
        top: unset;
        left: 50%;
        transform: translateX(-50%) scale(0.85);
    }

    .dock-label::after {
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: rgba(30,30,30,0.92);
        border-left-color: transparent;
    }

    .dock-item:hover .dock-label {
        transform: translateX(-50%) scale(1);
    }

    .dock-item.active::after {
        bottom: unset;
        top: -8px;
    }

    .portfolio-display {
        min-height: 400px;
    }

    .portfolio-panel {
        flex-direction: column;
    }

    .panel-media {
        flex: 0 0 220px;
        padding: 1.25rem;
    }

    .panel-info {
        padding: 1.5rem 1.25rem;
        gap: 0.875rem;
    }

    .panel-title {
        font-size: 1.5rem;
    }

    .panel-desc {
        font-size: 0.875rem;
    }
}


/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    height: 100vh;

    /* scroll-snap removed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
    position: relative;
    background: var(--color-bg-alt);
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header p {
    max-width: 500px;
    margin: 1rem auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    transition: all 0.4s var(--ease-out-expo);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
    border-color: var(--color-primary);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.service-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.service-title {
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.service-features i {
    color: var(--color-primary);
    font-size: 0.75rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.3s;
}

.service-link:hover {
    color: var(--color-primary);
}

.service-link i {
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .services {
        height: auto;
        min-height: 100vh;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    height: 100vh;

    /* scroll-snap removed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
    position: relative;
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.about-title {
    margin-bottom: 2rem;
}

.about-text {
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.about-feature h4 {
    margin-bottom: 0.25rem;
}

.about-feature p {
    font-size: 0.875rem;
    margin: 0;
}

.about-visual {
    position: relative;
}

.about-image {
    border-radius: 1.5rem;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--color-text);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
}

.about-badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.about-badge-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.about-cta {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .about {
        height: auto;
        min-height: 100vh;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        order: -1;
    }

    .about-badge {
        bottom: -1rem;
        left: 1rem;
    }
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
    height: 250vh; /* Faster scrolling progression */
    padding: 0;
    position: relative;
    background: var(--color-bg-alt);
}

.process>.container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 6rem;
    padding-bottom: 2rem;
    overflow: hidden;
}

.process-header {
    flex-shrink: 0;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.process-steps {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.process-step {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100% - 2rem);
    background: var(--color-surface);
    border-radius: 1.5rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    box-shadow: none;
    will-change: transform, opacity;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.process-step:nth-child(1) {
    z-index: 1;
}

.process-step:nth-child(2) {
    z-index: 2;
}

.process-step:nth-child(3) {
    z-index: 3;
}

.process-step:nth-child(4) {
    z-index: 4;
}

.process-step.stack-hidden {
    transform: translateY(-30px) scale(0.96);
    opacity: 0.3;
}

.process-step.stack-active {
    transform: translateY(0) scale(1);
    opacity: 1;
    box-shadow: none;
}

.process-step.stack-waiting {
    transform: translateY(100%);
    opacity: 0.6;
}

.process-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.process-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.process-title {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.process-text {
    font-size: 1rem;
    margin: 0;
    line-height: 1.7;
}

.process-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.process-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s var(--ease-out-expo);
}

.process-step:hover .process-image img {
    transform: scale(1.03) translateY(-5px);
}

@media (max-width: 768px) {
    .process {
        min-height: 600vh;
    }

    .process>.container {
        padding-top: 4rem;
        padding-bottom: 1.5rem;
    }

    .process-header {
        margin-bottom: 1rem;
    }

    .process-step {
        grid-template-columns: 1fr;
        grid-template-rows: 150px 1fr;
    }

    .process-image {
        height: 150px;
        order: -1;
        padding: 0;
        background: none;
        display: block;
    }

    .process-image img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
        object-fit: cover;
    }


    .process-content {
        padding: 1.25rem;
    }

    .process-title {
        font-size: 1.25rem;
    }

    .process-text {
        font-size: 0.9rem;
    }
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
    min-height: auto;
    /* scroll-snap removed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
    position: relative;
    background: var(--color-bg);
    margin-top: 2rem;
    /* Prevent overlap with previous section */
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-header p {
    max-width: 500px;
    margin: 0.5rem auto 0;
    font-size: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
    padding: 1rem 1rem;
    position: relative;
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
}

/* Glassmorphism Pastel Pricing Card */
.glass-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
    border-radius: 1.5rem !important;
    padding: 2.5rem !important;
    text-align: center;
}

.pricing-card-header {
    margin-bottom: 1.5rem;
}

.glass-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb, 99, 102, 241), 0.1), rgba(var(--color-primary-rgb, 99, 102, 241), 0.05));
    border-radius: 50%;
    border: 1px solid rgba(var(--color-primary-rgb, 99, 102, 241), 0.2);
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.8);
}

.glass-icon-wrapper i {
    font-size: 2rem;
    color: var(--color-primary);
}

.glass-card .pricing-name {
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}

.glass-card .pricing-desc {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.glass-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
    color: #c27a00;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    line-height: 1.5;
}

.glass-alert i {
    margin-top: 0.15rem;
    font-size: 1.1rem;
}

.glass-features {
    text-align: left;
    margin-bottom: 2rem;
    padding: 0;
}

.glass-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--color-text);
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-features li:last-child {
    border-bottom: none;
}

.glass-features li i {
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb, 99, 102, 241), 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
}

.btn-glass {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    background: var(--color-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb, 99, 102, 241), 0.3);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(var(--color-primary-rgb, 99, 102, 241), 0.4);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.glass-card:hover {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.8) !important;
}

.pricing-badge {
    position: absolute;
    top: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-price-wrapper {
    margin-bottom: 0.375rem;
}

.pricing-old-price {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    opacity: 0.7;
    margin-bottom: 0.125rem;
}

.pricing-price {
    margin-bottom: 0.125rem;
}

.pricing-currency {
    font-size: 1.25rem;
    font-weight: 600;
    vertical-align: top;
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
}

.pricing-card.featured .pricing-amount {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.75rem;
}

.pricing-desc {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 0.75rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--color-border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--color-primary);
    font-size: 0.75rem;
}

.pricing-features li.feature-highlight {
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.05);
    margin: 0 -0.5rem;
    padding: 0.3rem 0.5rem;
    border-radius: 0.25rem;
    border-bottom: none;
}

.pricing-features li.feature-highlight i {
    color: #fbbf24;
}

.pricing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 0.75rem;
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
}

.pricing-note i {
    color: var(--color-primary);
}

.pricing-note p {
    margin: 0;
}

@media (max-width: 1024px) {
    .pricing {
        height: auto;
        min-height: 100vh;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }

    @media (max-width: 600px) {
        .pricing-grid {
            grid-template-columns: 1fr;
            max-width: 400px;
        }
    }

    /* .pricing-card.featured { order: -1; } - Removed to keep Starter first on mobile */
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    height: 100vh;

    /* scroll-snap removed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
    position: relative;
    background: var(--color-bg-alt);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s var(--ease-out-expo);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.testimonial-stars i {
    margin-right: 0.25rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.author-name {
    display: block;
    font-weight: 600;
}

.author-role {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .testimonials {
        height: auto;
        min-height: 100vh;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    height: 100vh;

    /* scroll-snap removed */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--color-bg-dark);
    color: white;
    text-align: center;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.cta-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    height: 100vh;

    /* scroll-snap removed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
    position: relative;
    background: var(--color-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.contact-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.contact-title {
    margin-bottom: 1.5rem;
}

.contact-text {
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-weight: 500;
}

.contact-value a {
    transition: color 0.3s;
}

.contact-value a:hover {
    color: var(--color-primary);
}

.contact-form-wrap {
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 1.5rem;
    padding: 2rem;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-compact {
    gap: 0.875rem;
}

@media (max-width: 768px) {
    .contact {
        height: auto;
        min-height: 100vh;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-wrap {
        max-height: none;
        overflow-y: visible;
    }
}


/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-page {
    min-height: 100vh;
    padding-top: 160px !important;
    padding-bottom: 80px !important;
    scroll-snap-align: none;
}

/* ============================================
   OVERRIDES / SPECIFICS
   ============================================ */
.hero {
    justify-content: flex-end;
}

.portfolio,
.process {
    justify-content: flex-start;
    padding-top: 6rem;
}

.footer {
    min-height: auto;
    justify-content: flex-start;
}