/* ============================================
   HMBL Designs - Premium Landing Page Styles
   Apple-inspired aesthetic with GSAP animations
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Primary Brand Colors - From Logo */
    --purple: #9B59B6;
    --purple-light: #B77DD4;
    --blue: #3498DB;
    --blue-dark: #2C3E8C;
    --teal: #1ABC9C;
    --teal-light: #48D1B5;
    --cyan: #00D4AA;

    /* Neutral Colors */
    --navy: #1a1f36;
    --navy-light: #2d3250;
    --dark: #0a0a0f;
    --dark-surface: #111118;
    --gray-900: #18181b;
    --gray-800: #27272a;
    --gray-700: #3f3f46;
    --gray-600: #52525b;
    --gray-500: #71717a;
    --gray-400: #a1a1aa;
    --gray-300: #d4d4d8;
    --gray-200: #e4e4e7;
    --gray-100: #f4f4f5;
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--purple) 0%, var(--blue) 50%, var(--teal) 100%);
    --gradient-text: linear-gradient(135deg, var(--purple-light) 0%, var(--blue) 40%, var(--teal-light) 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(155, 89, 182, 0.1) 0%, rgba(26, 188, 156, 0.05) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(52, 152, 219, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: 160px;
    --container-max: 1400px;
    --container-padding: 80px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark);
    color: var(--gray-300);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(52, 152, 219, 0.3);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* Typography Utilities */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--blue);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 24px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* Container */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 24px;
    }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:not(.nav-cta):hover {
    color: var(--white);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    color: var(--white) !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2rem;
}

.mobile-menu-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px var(--container-padding) 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(155, 89, 182, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(26, 188, 156, 0.08) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--blue);
    border-radius: 50%;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.title-line {
    display: block;
}

.title-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--gray-500);
    font-size: 0.8125rem;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-600);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 24px 80px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

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

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

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 3rem;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 0.03;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--blue);
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-desc {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--gray-500);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

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

    .service-card {
        padding: 2rem;
    }
}

/* ============================================
   Showcase Section (Sticky)
   ============================================ */
.showcase {
    min-height: 200vh;
    position: relative;
}

.showcase-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--container-padding);
    overflow: hidden;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.showcase-text {
    max-width: 500px;
}

.showcase-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.showcase-desc {
    font-size: 1.125rem;
    color: var(--gray-400);
    line-height: 1.8;
}

.showcase-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-layers {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.showcase-layer {
    position: absolute;
    border-radius: var(--radius-lg);
    transition: transform 0.1s linear;
}

.layer-1 {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3) 0%, rgba(155, 89, 182, 0.1) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(-100px);
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.layer-2 {
    width: 280px;
    height: 180px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(52, 152, 219, 0.1) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(-50px);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.layer-3 {
    width: 260px;
    height: 160px;
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.3) 0%, rgba(26, 188, 156, 0.1) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0px);
    border: 1px solid rgba(26, 188, 156, 0.2);
}

.showcase-device {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 220px;
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-700);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.device-screen {
    position: absolute;
    inset: 8px;
    background: var(--dark);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.device-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--navy) 0%, var(--dark) 100%);
}

.showcase-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--container-max);
    margin: 4rem auto 0;
    width: 100%;
    opacity: 0;
    transform: translateY(40px);
}

.showcase-feature {
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.feature-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 1rem;
}

.showcase-feature h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.showcase-feature p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .showcase-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .showcase-text {
        max-width: 100%;
    }

    .showcase-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .showcase-sticky {
        padding: 0 24px;
    }

    .showcase-features {
        grid-template-columns: 1fr;
    }

    .showcase-visual {
        height: 300px;
    }

    .showcase-device {
        width: 260px;
        height: 180px;
    }

    .layer-1 { width: 240px; height: 160px; }
    .layer-2 { width: 220px; height: 140px; }
    .layer-3 { width: 200px; height: 120px; }
}

/* ============================================
   Work/Portfolio Section
   ============================================ */
.work {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.work-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.6s var(--ease-out-expo);
    text-decoration: none;
    display: block;
}

.work-item:hover {
    transform: scale(1.02);
}

.work-item-large {
    grid-column: span 2;
}

.work-item-full {
    grid-column: span 3;
}

.work-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-900);
}

.work-item-large .work-image {
    aspect-ratio: 21/10;
}

.work-item-full .work-image {
    aspect-ratio: 32/10;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--ease-out-expo), opacity 0.4s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

/* Image swap on hover */
.work-item-swap .work-image .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.work-item-swap:hover .work-image .img-default {
    opacity: 0;
}

.work-item-swap:hover .work-image .img-hover {
    opacity: 1;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.6s var(--ease-out-expo);
}

.work-item:hover .work-placeholder {
    transform: scale(1.1);
}

.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s var(--ease-out-expo);
}

.work-item:hover .work-info {
    transform: translateY(0);
    opacity: 1;
}

.work-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    margin-bottom: 0.5rem;
    display: block;
}

.work-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.work-desc {
    font-size: 0.9375rem;
    color: var(--gray-400);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-item-large,
    .work-item-full {
        grid-column: span 2;
    }

    .work-item-full .work-image {
        aspect-ratio: 21/10;
    }
}

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

    .work-item-large,
    .work-item-full {
        grid-column: span 1;
    }

    .work-item-full .work-image {
        aspect-ratio: 16/10;
    }

    .work-item-large {
        grid-column: span 1;
    }

    .work-info {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   Process Section
   ============================================ */
.process {
    padding: var(--section-padding) 0;
    position: relative;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--purple), var(--blue), var(--teal));
    opacity: 0.3;
}

.process-step {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateX(-20px);
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--dark-surface);
    border: 2px solid var(--gray-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-400);
    transition: all 0.4s var(--ease-out-expo);
    z-index: 1;
}

.process-step.active .step-marker {
    border-color: var(--blue);
    color: var(--white);
    background: var(--gradient-primary);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
}

.step-content {
    padding-top: 1rem;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.step-content p {
    font-size: 1rem;
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 500px;
}

@media (max-width: 768px) {
    .process-line {
        left: 24px;
    }

    .process-step {
        gap: 1.5rem;
    }

    .step-marker {
        width: 48px;
        height: 48px;
        font-size: 0.875rem;
    }
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.4s var(--ease-out-expo);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 152, 219, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: 2rem;
    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;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9375rem;
}

.author-role {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

@media (max-width: 1024px) {
    .testimonials-slider {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: var(--section-padding) 0;
    position: relative;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(155, 89, 182, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 30% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 90%, rgba(26, 188, 156, 0.08) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.7;
}

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

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-column a {
    display: block;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 24px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

/* ============================================
   Animation Utilities
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
}

.fade-in.active {
    opacity: 1;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
}

.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Parallax placeholder for JS */
[data-parallax] {
    will-change: transform;
}

/* Smooth scroll hint */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Loading State */
.loading {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
