/* --- THEME VARIABLES --- */
:root {
    --bg-dark: #02010a;
    --primary-purple: #6d28d9;
    --accent-glow: #8b5cf6;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.06);
    --code-bg: #0f0b15;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --text-muted-light: #cbd5e1;
    /* For portfolio overlay */
    --input-bg: rgba(255, 255, 255, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

a {
    text-decoration: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* =========================================
           IMPROVED ANIMATED NEBULA BACKGROUND
           ========================================= */
.nebula-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -100;
    pointer-events: none;
}

.nebula-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
    animation: float1 20s infinite alternate-reverse;
}

.blob-2 {
    top: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    animation: float2 25s infinite alternate-reverse;
}

.blob-3 {
    bottom: -20%;
    left: 30%;
    width: 60vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.25) 0%, transparent 70%);
    animation: float3 30s infinite alternate-reverse;
}

/* Rotating and Moving Animations */
@keyframes float1 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.4;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        transform: translate(100px, 100px) rotate(180deg) scale(1.2);
        opacity: 0.4;
    }
}

@keyframes float2 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.3;
    }

    100% {
        transform: translate(-80px, 60px) rotate(-90deg) scale(1.3);
        opacity: 0.5;
    }
}

@keyframes float3 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.2;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: translate(60px, -80px) rotate(120deg) scale(1.15);
        opacity: 0.2;
    }
}

/* Mobile nebula - smaller blobs for better performance */
@media (max-width: 768px) {
    .nebula-blob {
        filter: blur(60px);
    }

    .blob-1 {
        width: 80vw;
        height: 80vw;
        top: -20%;
        left: -20%;
    }

    .blob-2 {
        width: 70vw;
        height: 70vw;
        top: -15%;
        right: -20%;
    }

    .blob-3 {
        width: 90vw;
        height: 60vw;
        bottom: -25%;
        left: 10%;
    }
}

/* =========================================
           NAVBAR WITH HAMBURGER & SIDENAV
           ========================================= */
.nav-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 30px;
    position: relative;
    z-index: 1000;
}

.navbar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 8px 10px;
    border-radius: 50px;
    width: 90%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: fixed;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 15px;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.logo i {
    color: var(--primary-purple);
    font-size: 22px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-glow));
    border-radius: 2px;
}

.nav-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    color: white;
    font-size: 24px;
    padding-right: 10px;
    cursor: pointer;
    z-index: 1001;
}

/* =========================================
           PREMIUM SIDENAV WITH ICONS AND ACTIVE STATES
           ========================================= */
.sidenav {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: rgba(10, 5, 20, 0.98);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(139, 92, 246, 0.3);
    z-index: 9999;
    padding: 0;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.sidenav.active {
    right: 0;
}

/* Sidenav Header with Gradient */
.sidenav-header {
    position: relative;
    padding: 35px 30px 25px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidenav-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.sidenav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
}

.sidenav-logo i {
    color: var(--accent-glow);
    font-size: 26px;
    border-radius: 12px;
}

.sidenav-tagline {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 45px;
    letter-spacing: 1px;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-glow);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Sidenav Links with Icons */
.sidenav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 30px 25px;
    flex: 1;
}

.sidenav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
    color: #cbd5e1;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.sidenav-link.active {
    background: rgba(109, 40, 217, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: white;
    box-shadow: 0 5px 20px rgba(109, 40, 217, 0.1);
}

.sidenav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}

.sidenav-link:hover::before {
    left: 100%;
}

.sidenav-link:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateX(8px);
    color: white;
}

.sidenav-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: var(--accent-glow);
    transition: all 0.3s;
}

.sidenav-link:hover i {
    transform: scale(1.2) rotate(-5deg);
    color: white;
}

.link-text {
    flex: 1;
    font-weight: 500;
}

.link-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
    color: var(--accent-glow);
}

.sidenav-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Sidenav Footer */
.sidenav-footer {
    padding: 25px 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 10, 25, 0.5);
}

.sidenav-footer .nav-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    border: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.sidenav-footer .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(109, 40, 217, 0.4);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
           HERO SECTION
           ========================================= */
.hero {
    text-align: center;
    padding: 150px 20px 100px;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 10, 40, 0.4);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: #d8b4fe;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 68px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 45px auto;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 90px;
}

.btn-primary {
    background: #6d28d9;
    color: white;
    border: none;
    padding: 14px 34px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.4);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(109, 40, 217, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 14px 34px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* =========================================
           STATS WITH VISIBLE SIGNS
           ========================================= */
.stats-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.stat-number {
    display: inline-block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
    min-width: 60px;
}

/* VISIBLE SIGNS FOR STATS */
.stat-sign {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-glow);
    margin-left: 2px;
    vertical-align: super;
    line-height: 0;
}

.stat-item p {
    font-size: 14px;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15) 50%, transparent);
}

/* =========================================
           CODE DNA SECTION
           ========================================= */
.code-section {
    padding: 100px 20px;
    position: relative;
}

.code-bg-glow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(109, 40, 217, 0.15) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
}

.code-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.code-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.code-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #e2e8f0;
    font-weight: 500;
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.window-wrapper {
    position: relative;
    perspective: 1000px;
}

.window-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    opacity: 0.6;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        transform: scale(0.95);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.mac-window {
    background: rgba(15, 12, 25, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: all 0.4s ease;
}

.window-wrapper:hover .mac-window {
    transform: rotateY(0) rotateX(0) scale(1.02);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 30px 60px -15px rgba(109, 40, 217, 0.25);
}

.window-head {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--card-border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #FF5F56;
}

.yellow {
    background: #FFBD2E;
}

.green {
    background: #27C93F;
}

.filename {
    margin-left: auto;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.6;
}

.window-body {
    padding: 25px;
    overflow-x: auto;
}

pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.code-line {
    display: block;
}

.kwd {
    color: #c792ea;
    font-weight: 600;
}

.def {
    color: #ffcb6b;
}

.prop {
    color: #89ddff;
}

.str {
    color: #c3e88d;
}

.bool {
    color: #f78c6c;
}

.comment {
    color: #546e7a;
    font-style: italic;
}

.bracket {
    color: #ffd700;
}

/* =========================================
           SERVICES SECTION (COMPACT BENTO GRID)
           ========================================= */
.services-section {
    padding: 100px 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.services-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-head p {
    color: var(--text-muted);
    font-size: 15px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 20px;
}

.bento-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.bento-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(109, 40, 217, 0.15);
}

.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent-glow);
    margin-bottom: 15px;
    transition: 0.3s;
}

.bento-card:hover .icon-box {
    background: var(--primary-purple);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.bento-title {
    font-size: 18px;
    color: white;
    margin-bottom: 8px;
    font-weight: 700;
}

.bento-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.grid-wide {
    grid-column: span 2;
}

.grid-tall {
    grid-row: span 2;
}

.bg-visual {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 140px;
    color: rgba(255, 255, 255, 0.02);
    transition: 0.5s ease;
    pointer-events: none;
}

.bento-card:hover .bg-visual {
    transform: scale(1.1) rotate(10deg);
    color: rgba(139, 92, 246, 0.05);
}

.tech-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-link {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-glow);
    text-decoration: none;
    transition: 0.3s;
}

.card-link:hover {
    gap: 10px;
    color: white;
}

/* =========================================
           PRICING SECTION
           ========================================= */
.pricing-section {
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background Glow for Ambiance */
.pricing-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.15) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
}

/* --- HEADER --- */
.pricing-header {
    text-align: center;
    max-width: 650px;
    margin-bottom: 70px;
}

.pricing-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-header p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --- PRICING GRID --- */
.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: 1150px;
    flex-wrap: wrap;
}

/* --- CARD BASE STYLES --- */
.price-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 30px;
    width: 340px;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -10px rgba(109, 40, 217, 0.2);
}

/* Title Area */
.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.plan-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    min-height: 40px;
}

/* Price Area */
.price-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 30px;
    justify-content: center;
}

.currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-muted);
    transform: translateY(-15px);
}

.amount {
    font-size: 46px;
    font-weight: 800;
    color: white;
    line-height: 1;
    letter-spacing: -2px;
}

.period {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Button */
.btn-plan {
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    margin-bottom: 35px;
}

.btn-plan:hover {
    border-color: var(--accent-glow);
    background: rgba(139, 92, 246, 0.1);
}

/* Features List */
.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.5;
}

.features-list li i {
    color: var(--accent-glow);
    font-size: 18px;
    margin-top: 2px;
}

/* --- POPULAR CARD (Middle) --- */
.price-card.popular {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(109, 40, 217, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.3);
    padding: 50px 35px;
    box-shadow: 0 20px 50px -20px rgba(109, 40, 217, 0.3);
    z-index: 2;
    transform: translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #6d28d9, #8b5cf6);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 5px 15px rgba(109, 40, 217, 0.4);
}

.price-card.popular .btn-plan {
    background: #6d28d9;
    border-color: #6d28d9;
    box-shadow: 0 5px 20px rgba(109, 40, 217, 0.3);
}

.price-card.popular .btn-plan:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

/* =========================================
           STORY SECTION (REFINED ZIG-ZAG)
           ========================================= */
.story-section {
    padding: 120px 20px;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Title */
.story-section .section-head {
    text-align: center;
    margin-bottom: 100px;
}

.story-section .section-head h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.story-section .section-head p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Timeline Container */
.timeline-wrapper {
    position: relative;
    padding: 20px 0;
}

/* Center Line (Gradient Fade) */
.center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-purple), transparent);
    transform: translateX(-50%);
    z-index: 0;
    box-shadow: 0 0 10px rgba(109, 40, 217, 0.5);
}

/* Row Layout */
.timeline-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    width: 100%;
}

.timeline-row:last-child {
    margin-bottom: 0;
}

/* The Box (Card) */
.story-box {
    width: 45%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 35px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Hover Effect: Glow & Lift */
.story-box:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -10px rgba(109, 40, 217, 0.2);
}

/* Typography Inside Card */
.story-year {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 30px;
}

.story-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.story-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* The Marker (Circle Number) */
.marker {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #02010a;
    border: 2px solid var(--accent-glow);
    color: white;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(2, 1, 10, 1);
}

/* Pulse Animation on Marker */
.marker::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent-glow);
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Connecting Lines (The horizontal beams) */
.story-box::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-glow), transparent);
    transition: 0.3s;
}

/* --- ZIG ZAG LOGIC --- */
/* Row Odd (1, 3, 5): Content Left */
.timeline-row:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-row:nth-child(odd) .story-box {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.timeline-row:nth-child(odd) .story-box::before {
    right: -30px;
    background: linear-gradient(to right, var(--accent-glow), transparent);
}

/* Row Even (2, 4): Content Right */
.timeline-row:nth-child(even) {
    justify-content: flex-end;
}

.timeline-row:nth-child(even) .story-box {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

.timeline-row:nth-child(even) .story-box::before {
    left: -30px;
    background: linear-gradient(to left, var(--accent-glow), transparent);
}

/* =========================================
           STACKED VISUAL PORTFOLIO (Desktop)
           ========================================= */
.portfolio-section {
    padding: 120px 20px 200px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 80px;
}

.section-head h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(180deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-head p {
    color: #94a3b8;
    font-size: 16px;
}

/* --- STACK WRAPPER (Desktop Only) --- */
.stack-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* --- THE IMAGE CARD --- */
.project-card {
    position: sticky;
    height: 550px;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.8);
    transform-origin: center top;
    transition: transform 0.3s ease;
    background: #000;
}

/* STACKING OFFSETS */
.project-card:nth-child(1) {
    top: 120px;
    z-index: 1;
}

.project-card:nth-child(2) {
    top: 170px;
    z-index: 2;
}

.project-card:nth-child(3) {
    top: 220px;
    z-index: 3;
}

.project-card:nth-child(4) {
    top: 270px;
    z-index: 4;
}

.project-card:nth-child(5) {
    top: 320px;
    z-index: 5;
}

/* BACKGROUND IMAGE */
.card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: brightness(0.9);
}

/* --- HOVER OVERLAY --- */
.card-content {
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 20, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--card-border);
    border-radius: 30px;
}

/* Hover States */
.project-card:hover .card-content {
    opacity: 1;
    visibility: visible;
}

.project-card:hover .card-bg-img {
    transform: scale(1.1);
}

.project-card:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

/* --- CONTENT TYPOGRAPHY --- */
.proj-cat {
    color: var(--accent-glow);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: 0.4s 0.1s;
}

.proj-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
    transform: translateY(20px);
    transition: 0.4s 0.2s;
}

.proj-desc {
    font-size: 16px;
    color: var(--text-muted-light);
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.6;
    transform: translateY(20px);
    transition: 0.4s 0.3s;
}

.proj-btn {
    padding: 14px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    transition: 0.4s 0.4s;
    box-shadow: 0 5px 20px rgba(109, 40, 217, 0.4);
}

.proj-btn:hover {
    transform: translateY(17px) scale(1.05);
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.6);
}

/* Active State Animation */
.project-card:hover .proj-cat,
.project-card:hover .proj-title,
.project-card:hover .proj-desc,
.project-card:hover .proj-btn {
    transform: translateY(0);
}

/* =========================================
           SWIPER MOBILE LAYOUT (770px and below)
           ========================================= */
@media (max-width: 770px) {
    .portfolio-section {
        padding: 80px 20px 100px;
    }

    /* Hide desktop stack wrapper */
    .stack-wrapper {
        display: none;
    }

    /* Swiper container styles */
    .swiper-container {
        display: block !important;
        width: 100%;
        height: 500px;
        border-radius: 20px;
        overflow: hidden;
    }

    /* Swiper slide */
    .swiper-slide {
        height: 100%;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        background: #000;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    /* Mobile card image with overlay gradient */
    .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.8);
    }

    /* Dark gradient overlay on image */
    .swiper-slide::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.95) 0%,
                rgba(0, 0, 0, 0.7) 30%,
                rgba(0, 0, 0, 0.4) 50%,
                rgba(0, 0, 0, 0.2) 70%,
                transparent 100%);
        z-index: 1;
        border-radius: 20px;
    }

    /* Mobile card content (always visible) */
    .swiper-slide .card-content {
        opacity: 1;
        visibility: visible;
        background: transparent;
        backdrop-filter: none;
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
        padding: 30px 25px;
        border: none;
        border-radius: 20px;
        z-index: 2;
    }

    /* Mobile typography - better alignment and spacing */
    .swiper-slide .proj-cat {
        font-size: 12px;
        margin-bottom: 10px;
        transform: none;
        letter-spacing: 1.5px;
        color: var(--accent-glow);
        font-weight: 700;
    }

    .swiper-slide .proj-title {
        font-size: 28px;
        margin-bottom: 15px;
        transform: none;
        font-weight: 800;
        line-height: 1.2;
        color: white;
    }

    .swiper-slide .proj-desc {
        font-size: 14px;
        margin-bottom: 25px;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transform: none;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.6;
    }

    .swiper-slide .proj-btn {
        padding: 12px 28px;
        font-size: 14px;
        transform: none;
        background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
        color: white;
        font-weight: 600;
        text-decoration: none;
        border-radius: 50px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 5px 20px rgba(109, 40, 217, 0.4);
        transition: all 0.3s ease;
    }

    .swiper-slide .proj-btn:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 8px 25px rgba(109, 40, 217, 0.6);
    }

    /* Swiper pagination - better styling */
    .swiper-pagination {
        bottom: 20px !important;
        z-index: 10;
    }

    .swiper-pagination-bullet {
        background: rgba(255, 255, 255, 0.5);
        opacity: 0.6;
        width: 8px;
        height: 8px;
        transition: all 0.3s ease;
    }

    .swiper-pagination-bullet-active {
        background: var(--accent-glow);
        opacity: 1;
        width: 24px;
        border-radius: 4px;
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    }

    /* Section heading for mobile */
    .section-head {
        margin-bottom: 50px;
    }

    .section-head h2 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .section-head p {
        font-size: 14px;
        color: #94a3b8;
        max-width: 300px;
        margin: 0 auto;
        line-height: 1.5;
    }
}

/* =========================================
           SMALL MOBILE OPTIMIZATION (Below 480px)
           ========================================= */
@media (max-width: 480px) {
    .swiper-container {
        height: 450px;
    }

    .swiper-slide .card-content {
        padding: 25px 20px;
    }

    .swiper-slide .proj-title {
        font-size: 24px;
    }

    .swiper-slide .proj-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-height: 1.5;
    }

    .swiper-slide .proj-btn {
        padding: 10px 24px;
        font-size: 13px;
    }

    .section-head h2 {
        font-size: 28px;
    }
}

/* =========================================
           TABLET OPTIMIZATION (771px - 1024px)
           ========================================= */
@media (min-width: 771px) and (max-width: 1024px) {
    .portfolio-section {
        max-width: 90%;
    }

    .project-card {
        height: 500px;
    }

    .proj-title {
        font-size: 36px;
    }

    .proj-desc {
        font-size: 15px;
        max-width: 500px;
    }
}

/* =========================================
           DESKTOP OPTIMIZATION (Above 770px)
           ========================================= */
@media (min-width: 771px) {
    .swiper-container {
        display: none !important;
    }
}

/* =========================================
           TESTIMONIALS SECTION (FROM REVIEWS.HTML)
           ========================================= */
.testimonials-section {
    padding: 120px 0;
    position: relative;
    background: radial-gradient(circle at center, rgba(109, 40, 217, 0.08) 0%, transparent 80%);
}

/* --- SCROLLER CONTAINER --- */
.scroller {
    max-width: 100%;
    overflow: hidden;
    /* FADE MASK (Smooth edges) */
    -webkit-mask: linear-gradient(90deg, transparent, white 15%, white 85%, transparent);
    mask: linear-gradient(90deg, transparent, white 15%, white 85%, transparent);
    margin-bottom: 40px;
}

.scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    width: max-content;
}

/* Animations */
.scroller[data-direction="left"] .scroller__inner {
    animation: scroll 60s linear infinite;
    /* Slower = Smoother */
}

.scroller[data-direction="right"] .scroller__inner {
    animation: scroll-reverse 60s linear infinite;
}

.scroller:hover .scroller__inner {
    animation-play-state: paused;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 1rem));
    }
}

@keyframes scroll-reverse {
    from {
        transform: translate(calc(-50% - 1rem));
    }

    to {
        transform: translate(0);
    }
}

/* --- STYLISH CARD DESIGN --- */
.testi-card {
    /* Gradient Dark BG */
    background: var(--card-bg);
    border: 1px solid rgba(139, 92, 246, 0.15);
    /* Subtle Purple Border */
    border-radius: 24px;
    padding: 35px 30px;
    width: 380px;
    min-height: 240px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

/* HOVER GLOW EFFECT (The Magic) */
.testi-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-glow);
    /* Outer Glow + Inner Glow */
    box-shadow:
        0 15px 40px -10px rgba(109, 40, 217, 0.4),
        inset 0 0 30px rgba(109, 40, 217, 0.1);
    background: linear-gradient(145deg, rgba(30, 20, 50, 0.8) 0%, rgba(10, 5, 15, 0.9) 100%);
}

/* Big Quote Icon in Background - CHANGED TO DOUBLE QUOTES */
.testi-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    font-family: serif;
    color: rgba(139, 92, 246, 0.1);
    line-height: 1;
    pointer-events: none;
    transition: 0.3s;
}

.testi-card:hover::before {
    color: rgba(139, 92, 246, 0.2);
    transform: scale(1.1);
}

/* User Section */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.3);
    transition: 0.3s;
}

.testi-card:hover .avatar {
    border-color: var(--accent-glow);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.user-details h4 {
    font-size: 16px;
    color: white;
    font-weight: 700;
    margin-bottom: 2px;
}

.user-details span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.review-text {
    font-size: 15px;
    color: #e2e8f0;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

.rating-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
    display: flex;
    gap: 4px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stars {
    color: #FCD34D;
    font-size: 14px;
}

.rating-text {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    margin-left: 5px;
}


.testimonial-note {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    position: relative;
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    letter-spacing: 0.5px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Optional: Add a subtle top border */
.testimonial-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(139, 92, 246, 0.3),
            transparent);
}

/* Hover effect for better UX */
.testimonial-note:hover {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .testimonial-note {
        font-size: 11px;
        margin-top: 30px;
        padding-top: 15px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .testimonial-note::before {
        width: 60px;
    }
}

/* For your testimonials section specifically */
#testimonials .testimonial-note {
    margin-top: 30px;
    opacity: 0.8;
}

/* =========================================
           EXPERTS WAVE SECTION (FROM TEAM-SECTION.HTML)
           ========================================= */
.experts-section {
    padding: 120px 20px;
    position: relative;
    background: radial-gradient(circle at center, rgba(109, 40, 217, 0.05) 0%, transparent 80%);
}

/* Background Glow Line */
.wave-glow {
    position: absolute;
    top: 40%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    z-index: 0;
}

.badge-remote {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent-glow);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.dot-green {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
}

/* --- THE STAGGERED GRID --- */
.experts-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto 100px auto;
    position: relative;
    z-index: 2;
}

/* CARD STYLE */
.expert-card {
    position: relative;
    width: 240px;
    height: 360px;
    /* Tall Portrait */
    border-radius: 24px;
    overflow: hidden;
    background: #0b0b12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

/* --- STAGGER LOGIC (The Wave) --- */
/* Move 1st, 3rd, 5th card DOWN */
.expert-card:nth-child(odd) {
    transform: translateY(40px);
}

/* Move 2nd, 4th card UP (Default is center, so relative to odd) */
.expert-card:nth-child(even) {
    transform: translateY(-40px);
}

/* Image */
.expert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8);
    transition: 0.5s ease;
}

/* Hover Effect */
.expert-card:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 0 30px rgba(109, 40, 217, 0.4);
    z-index: 5;
    /* On hover, slightly lift the card regardless of stagger */
    transform: translateY(calc(var(--y-pos) - 10px)) scale(1.05);
}

/* Need to maintain stagger on hover, so we use a variable in CSS or just simple override */
.expert-card:nth-child(odd):hover {
    transform: translateY(30px) scale(1.05);
}

.expert-card:nth-child(even):hover {
    transform: translateY(-50px) scale(1.05);
}

.expert-card:hover .expert-img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* INFO OVERLAY */
.expert-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 15px;
    background: rgba(10, 5, 20, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s ease;
}

.expert-card:hover .expert-info {
    opacity: 1;
    transform: translateY(0);
}

.ex-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
    display: block;
}

.ex-role {
    font-size: 11px;
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* =========================================
           LOGOS GRID (BOTTOM)
           ========================================= */
.trusted-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0.6;
}

.t-logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.t-logo:hover {
    color: var(--accent-glow);
    opacity: 1;
    transform: scale(1.05);
}

.t-logo i {
    font-size: 28px;
}

/* =========================================
           FAQ SECTION
           ========================================= */
.faq-section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* The Card */
.faq-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

/* Question Header (Always Visible) */
.faq-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.faq-icon {
    font-size: 20px;
    color: var(--accent-glow);
    transition: transform 0.3s ease;
}

/* Answer Body (Hidden by default) */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    opacity: 0;
}

.faq-answer {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-bottom: 20px;
}

/* Active State (JS toggles this) */
.faq-card.active {
    border-color: var(--primary-purple);
    background: rgba(109, 40, 217, 0.05);
}

.faq-card.active .faq-icon {
    transform: rotate(45deg);
    color: white;
}

.faq-card.active .faq-body {
    max-height: 150px;
    opacity: 1;
}

/* Expand */

/* Footer Link */
.faq-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: var(--text-muted);
}

.ask-more-link {
    color: var(--accent-glow);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.ask-more-link:hover {
    gap: 8px;
    color: white;
}

/* =========================================
           COMPACT CTA SECTION
           ========================================= */
.cta-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Glow behind CTA */
.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.cta-card {
    width: 100%;
    max-width: 650px;
    /* Much smaller width */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    text-align: center;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.cta-head h3 {
    font-size: 28px;
    margin-bottom: 8px;
    color: white;
    letter-spacing: -0.5px;
}

.cta-head p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Compact Form Grid */
.cta-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    text-align: left;
}

.full-width {
    grid-column: span 2;
}

.form-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    padding: 12px 15px;
    /* Smaller padding */
    border-radius: 8px;
    color: white;
    font-size: 13px;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-glow);
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

textarea.form-input {
    resize: none;
    min-height: 80px;
}

.btn-submit {
    grid-column: span 2;
    background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(109, 40, 217, 0.5);
}

/* =========================================
           FOOTER SECTION
           ========================================= */
.footer {
    padding: 80px 20px 30px;
    background: linear-gradient(to top, #050510, transparent);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-glow);
    padding-left: 5px;
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--primary-purple);
    transform: translateY(-3px);
}

form.newsletter-input {
    position: relative !important;
    margin-top: 15px !important;
}

.newsletter-input input {
    width: 100% !important;
    padding: 12px 40px 12px 15px !important;
    border-radius: 8px !important;
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    color: white !important;
    outline: none !important;
    font-size: 13px !important;
}

.newsletter-input button {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: var(--primary-purple) !important;
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 6px !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: #555;
}

/* =========================================
           CHATBOT WIDGET
           ========================================= */

/* Floating Toggle Button */
.chat-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.5);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pulse Animation */
.chat-toggle-btn::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--accent-glow);
    opacity: 0;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(109, 40, 217, 0.7);
}

.chat-toggle-btn i {
    font-size: 28px;
    color: white;
    transition: 0.3s;
}

/* Rotate icon when active */
.chat-toggle-btn.active i {
    transform: rotate(180deg);
}

/* Chat Window (Hidden by default) */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    height: 500px;
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* Animation States */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.9), rgba(139, 92, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-avatar {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    font-size: 18px;
}

.bot-text h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.bot-text span {
    font-size: 11px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
}

/* Chat Body */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Custom Scrollbar */
.chat-body::-webkit-scrollbar {
    width: 5px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Messages */
.msg {
    max-width: 80%;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Incoming (Bot) */
.msg.incoming {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-radius: 12px 12px 12px 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Outgoing (User) */
.msg.outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    color: white;
    border-radius: 12px 12px 2px 12px;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 15px;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: fit-content;
}

.dot-typing {
    width: 6px;
    height: 6px;
    background: #aaa;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot-typing:nth-child(1) {
    animation-delay: -0.32s;
}

.dot-typing:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Chat Footer */
.chat-footer {
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    outline: none;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.send-btn {
    background: var(--primary-purple);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.send-btn:hover {
    transform: scale(1.1);
    background: var(--accent-glow);
}

.attachment-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 18px;
}

.attachment-btn:hover {
    color: white;
}

/* =========================================
           RESPONSIVE DESIGN
           ========================================= */
@media (max-width: 968px) {
    .code-section {
        padding: 60px 20px;
    }

    .code-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .code-content h2 {
        font-size: 32px;
        text-align: center;
    }

    .code-content p {
        text-align: center;
    }

    .feature-list {
        margin-left: 13px;
    }

    .window-body {
        padding: 20px;
    }

    pre {
        font-size: 12px;
    }

    .mac-window {
        transform: none;
    }

    .window-wrapper:hover .mac-window {
        transform: none;
    }

    /* Pricing Responsive */
    .pricing-grid {
        flex-direction: column;
        gap: 40px;
    }

    .price-card {
        width: 100%;
        max-width: 380px;
    }

    .price-card.popular {
        transform: translateY(0);
        padding: 40px 30px;
    }
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .grid-wide,
    .grid-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-card {
        min-height: 220px;
    }
}

@media (max-width:910px) {

    .nav-links,
    .navbar .btn-primary {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .navbar {
        padding: 12px 15px;
        width: 95%;
    }
}

@media (max-width: 768px) {



    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 42px;
        padding: 0 10px;
    }

    .hero p {
        padding: 0 20px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .stats-wrapper {
        flex-wrap: wrap;
        gap: 30px;
        margin-top: 20px;
    }

    .stat-item {
        flex: 1 1 40%;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    /* Mobile sidebar adjustments */
    .sidenav {
        width: 280px;
    }

    .sidenav-link {
        padding: 16px 18px;
        font-size: 15px;
    }

    .sidenav-logo {
        font-size: 20px;
    }

    /* Story Timeline Mobile */
    .story-section,
    .pricing-section {
        padding: 80px 20px;
    }

    /* Straight Timeline on Mobile */
    .center-line {
        left: 30px;
        transform: none;
    }

    .timeline-row {
        margin-bottom: 50px;
        justify-content: flex-start !important;
    }

    .marker {
        left: 30px;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .story-box {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .story-box::before {
        display: none;
    }

    /* Portfolio Mobile */
    .portfolio-section {
        padding: 80px 20px;
    }

    .project-card {
        height: 400px;
        cursor: pointer;
    }

    /* Stacking tighter on mobile */
    .project-card:nth-child(1) {
        top: 100px;
    }

    .project-card:nth-child(2) {
        top: 130px;
    }

    .project-card:nth-child(3) {
        top: 160px;
    }

    .project-card:nth-child(4) {
        top: 190px;
    }

    .project-card:nth-child(5) {
        top: 220px;
    }

    /* Mobile Visibility: Partial Gradient Overlay instead of full hide */
    .card-content {
        opacity: 1;
        visibility: visible;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
        backdrop-filter: none;
        justify-content: flex-end;
        /* Text at bottom */
        padding: 30px 20px;
        border: none;
    }

    /* Reset Transforms for Mobile (Always visible) */
    .proj-cat,
    .proj-title,
    .proj-desc,
    .proj-btn {
        transform: translateY(0);
    }

    .proj-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .proj-desc {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 20px;
    }

    .card-bg-img {
        filter: brightness(0.7);
    }

    /* FAQ Mobile */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 30px 20px;
    }

    .cta-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .full-width {
        grid-column: span 1;
    }

    .btn-submit {
        grid-column: span 1;
    }

    /* Testimonials Mobile */
    .testimonials-section {
        padding: 80px 0;
    }

    .testi-card {
        width: 300px;
        padding: 25px;
        min-height: 220px;
    }

    .scroller__inner {
        gap: 1.5rem;
    }

    .scroller {
        -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
        mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
        margin-bottom: 30px;
    }

    /* Slower animation on mobile for better UX */
    .scroller[data-direction="left"] .scroller__inner {
        animation: scroll 80s linear infinite;
    }

    .scroller[data-direction="right"] .scroller__inner {
        animation: scroll-reverse 80s linear infinite;
    }

    /* Experts Mobile */
    .experts-section {
        padding: 80px 20px;
    }

    /* Disable Stagger on Mobile for clean scroll */
    .expert-card:nth-child(odd),
    .expert-card:nth-child(even) {
        transform: translateY(0);
    }

    .expert-card:nth-child(odd):hover,
    .expert-card:nth-child(even):hover {
        transform: translateY(-5px);
    }

    .experts-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        /* Scroll on tablet */
        padding: 60px 20px;
        /* Space for stagger */
        justify-content: flex-start;
    }

    .expert-card {
        min-width: 220px;
        height: 320px;
    }

    /* Always show name on mobile */
    .expert-info {
        opacity: 1;
        transform: translateY(0);
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .trusted-logos {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        /* 2 cols on mobile */
        gap: 30px;
    }

    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
    }

    .chat-window {
        width: 90%;
        right: 5%;
        bottom: 100px;
        height: 450px;
    }

    .chat-toggle-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testi-card {
        width: 280px;
        padding: 20px;
        min-height: 210px;
    }

    .scroller__inner {
        gap: 1rem;
        padding-block: 0.75rem;
    }

    .user-info {
        margin-bottom: 15px;
    }

    .avatar {
        width: 45px;
        height: 45px;
    }

    .user-details h4 {
        font-size: 15px;
    }

    .scroller {
        -webkit-mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
        mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
    }
}

@media (max-width: 360px) {
    .testi-card {
        width: 260px;
        padding: 18px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .testi-card:hover {
        transform: none;
        border-color: rgba(139, 92, 246, 0.15);
        box-shadow: none;
    }

    .testi-card:active {
        transform: translateY(-4px) scale(1.01);
        border-color: var(--accent-glow);
        box-shadow:
            0 10px 25px -5px rgba(109, 40, 217, 0.3),
            inset 0 0 20px rgba(109, 40, 217, 0.1);
    }
}

/* PREMIUM LOADER STYLES */
.premium-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-core {
    position: relative;
    width: 160px;
    height: 160px;
}

.core-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.1) 30%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite alternate;
    filter: blur(20px);
}

@keyframes glowPulse {
    0% {
        opacity: 0.4;
        transform: scale(0.95);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.orb {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #6366f1, #8b5cf6);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
    animation: floatOrb 4s ease-in-out infinite;
}

.orb:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.orb:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.orb:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.orb:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate(10px, -15px) scale(1.2);
        opacity: 1;
    }
}

.center-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(99, 102, 241, 0.4);
    animation: sphereRotate 8s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes sphereRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.sphere-inner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.progress-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    text-align: center;
}

.progress-track {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    position: relative;
    transition: width 0.4s ease;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 10px #8b5cf6;
}

.percentage {
    color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 8px;
    font-family: monospace;
}

@media (max-width: 768px) {
    .loader-core {
        width: 140px;
        height: 140px;
    }

    .center-sphere {
        width: 50px;
        height: 50px;
    }

    .orb {
        width: 10px;
        height: 10px;
    }

    .progress-container {
        width: 200px;
        bottom: 30px;
    }
}


/* FORM VALIDATION STYLES */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-input.error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

/* WHEN INPUT HAS ERROR - Move button up */
.newsletter-input input.error~button,
.newsletter-input input.error+button {
    top: 6px !important;
    /* Move to top 35px */
    transform: translateY(0) !important;
    /* Remove vertical centering */
}

.form-input.success {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05) !important;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.error-message i {
    font-size: 14px;
}

/* Success Alert Styling */
.success-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.success-alert.show {
    transform: translateX(0);
}

.success-alert i {
    font-size: 24px;
    color: white;
}

.alert-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.alert-content p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.close-alert {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
    padding: 4px;
}

.close-alert:hover {
    opacity: 1;
}

/* Loading State */
.btn-submit.loading {
    opacity: 0.8;
    cursor: not-allowed;
    position: relative;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .success-alert {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}