:root {
    /* Premium SaaS Color Palette (SEO Default) */
    --primary-core: #6366f1; /* SEO Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary-core: #06b6d4; /* SEO Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.4);

    --bg-base: #030509;
    --bg-deep: #05070a;
    --bg-gradient: radial-gradient(circle at top right, #0a0f1d 0%, #030509 100%);

    --indigo-primary: #6366f1;
    --indigo-glow: rgba(99, 102, 241, 0.4);
    --cyan-secondary: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.4);
    --purple-accent: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.4);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);

    --transition-fast: 1s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-mid: 1s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Website Design Identity Shift */
body.user-website {
    --primary-core: #8b5cf6; /* Vibrant Violet */
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary-core: #d946ef; /* Electric Fuchsia */
    --secondary-glow: rgba(217, 70, 239, 0.4);
    --bg-gradient: radial-gradient(circle at top left, #0f0720 0%, #030509 100%);
    --indigo-primary: #8b5cf6;
}

/* --- Creative Refinements --- */
.hero-creative-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-core);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.8;
}

.reveal-text span {
    background: linear-gradient(135deg, #fff 30%, var(--primary-core) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bento-dashboard {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 1.5rem;
    height: 500px;
    position: relative;
    z-index: 2;
}

.bento-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-core);
    transform: translateY(-5px);
    box-shadow: 0 0 40px var(--primary-glow);
}

.bento-1 { grid-column: 1 / 8; grid-row: 1 / 7; }
.bento-2 { grid-column: 8 / 13; grid-row: 1 / 5; }
.bento-3 { grid-column: 8 / 13; grid-row: 5 / 13; }
.bento-4 { grid-column: 1 / 8; grid-row: 7 / 13; }

.bento-stat { font-size: 2.8rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 0.5rem; letter-spacing: -1px; }
.bento-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }

/* Grid Background */
.grid-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 120px;
}

body {
    background: var(--bg-base);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    animation: bodyFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes bodyFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }

/* --- Global Typography --- */
h1, h2, h3, h4 { color: #fff; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
h1 { font-size: clamp(3rem, 8vw, 5rem); letter-spacing: -2px; }
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -1px; }
h3 { font-size: 1.6rem; }
p { color: var(--text-muted); font-size: 1.05rem; }

span.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--cyan-secondary);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-mid);
}

span.badge:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--indigo-primary);
    transform: translateY(-2px);
}

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

section {
    padding: clamp(40px, 5vh, 80px) 0;
    position: relative;
    scroll-margin-top: 100px;
}

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

.glass-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(24px) saturate(220%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.05;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-core);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

/* Button Shimmer */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.6s;
}

.btn-primary:hover::after {
    left: 120%;
}

/* --- Navigation (Capsule) --- */
.sticky-nav {
    position: fixed;
    top: 1.8rem;
    left: 0;
    width: 100%;
    z-index: 10000;
}

.nav-capsule-wrapper {
    display: flex;
    justify-content: center;
}

.nav-capsule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
    padding: 0.6rem 1.2rem;
    margin: 0 auto;

    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-capsule:hover {
    background: rgba(13, 17, 23, 0.85);
    border-color: var(--primary-core);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
}

.logo-mini span {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    padding: 0 1rem;
    transition: var(--transition-mid);
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    color: #fff;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-deep);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 10000;
        transition: 0.5s ease-in-out;
    }
    .mobile-active .nav-links {
        right: 0;
    }
}

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-mid);
    position: relative;
    z-index: 1;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--indigo-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.box-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--indigo-primary);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem; /* Added spacing */
    color: #fff;
    width: fit-content;
}

.pricing-card h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    margin: 1.5rem 0 2rem;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.features {
    margin-bottom: 3rem;
    flex-grow: 1;
}

.features li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.features li i {
    color: var(--indigo-primary);
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 4rem auto 0;
    }
    .pricing-card { padding: 2.5rem 2rem; }
}

/* --- Services Detail Section --- */
.services-detail {
    padding-bottom: 120px;
}

.services-large-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 4rem;
}

.service-large-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 4rem;
    padding: 4.5rem;
    align-items: center;
    text-align: left;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
}

.service-icon {
    width: 100px;
    height: 100px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--indigo-primary);
    transition: var(--transition-mid);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-large-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 15px 40px var(--indigo-glow);
}

.service-info h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
    color: #fff;
}

.service-info p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    max-width: 800px;
}

.service-info ul {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    width: 100%;
}

.service-info ul li {
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-fast);
}

.service-info ul li i {
    color: var(--indigo-primary);
    font-size: 1rem;
}

@media (max-width: 992px) {
    .service-large-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 2rem;
        text-align: left;
    }
}

/* --- Tech Grid (Service Page/Index) --- */
.services-tech {
    padding: clamp(80px, 10vh, 120px) 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.tech-card {
    padding: 3.5rem 2.5rem;
    text-align: left; /* Changed to left for better readability in grid */
    transition: var(--transition-mid);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 360px;
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: 24px;
}

.tech-card i {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--indigo-primary);
    background: rgba(99, 102, 241, 0.08);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: var(--transition-mid);
}

.tech-card:hover i {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--indigo-primary);
    box-shadow: 0 10px 30px var(--indigo-glow);
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

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

@media (max-width: 768px) {
    .tech-grid { grid-template-columns: 1fr; }
    .tech-card { min-height: auto; padding: 3rem 2rem; }
}

/* --- Market Specific SEO Grid --- */
.market-grid-section {
    padding: 100px 0;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.market-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-mid);
    position: relative;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.market-card:hover {
    transform: translateY(-12px);
    border-color: var(--indigo-primary);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.market-card i {
    font-size: 2rem;
    color: var(--indigo-primary);
    background: rgba(99, 102, 241, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition-mid);
}

.market-card:hover i {
    color: var(--cyan-secondary);
    transform: rotate(10deg);
    background: rgba(6, 182, 212, 0.08);
}

.market-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.market-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.market-card .card-footer {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--indigo-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-mid);
}

.market-card:hover .card-footer {
    opacity: 1;
    transform: translateX(0);
}

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

/* --- Hero Section --- */
/* --- Hero Section Improvements --- */
.page-hero {
    padding: 160px 0 60px;
}
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding-top: clamp(140px, 18vh, 200px);
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    max-width: 850px;
}

.hero h1 span {
    display: inline-block;
    background: linear-gradient(135deg, var(--indigo-primary), var(--cyan-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--indigo-glow));
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-main);
    max-width: 600px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-desc {
    opacity: 0.7;
    font-size: 1.05rem;
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap; /* Wrap on mobile */
}

@media (min-width: 768px) {
    .hero-actions {
        flex-wrap: nowrap;
        flex-direction: row; /* One line in desktop view only */
    }
}

/* Dashboard Stack & Neon Cards (Redesign) */
.dashboard-stack-modern {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    gap: 1.5rem; /* Space between cards on stack */
}

@media (max-width: 600px) {
    .dashboard-stack-modern {
        align-items: center;
    }
    .modern-dash-card {
        transform: none !important; /* Remove negative margins/tilts on small phones */
        margin: 0 !important;
        width: 100%;
    }
}

.modern-dash-card {
    width: 380px;
    padding: 2rem;
    background: rgba(14, 20, 36, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Performance Graph Mock */
.perf-graph-mock {
    height: 120px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 2rem;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.perf-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-core), var(--indigo-glow));
    border-radius: 4px 4px 1px 1px;
    opacity: 0.3;
    transition: 0.5s;
}

.perf-bar:nth-child(even) { opacity: 0.15; }
.perf-bar.active { opacity: 0.85; filter: drop-shadow(0 0 10px var(--indigo-glow)); }

.modern-dash-card.neon-cyan { border-top: 1px solid var(--secondary-core); }
.modern-dash-card.neon-blue { border-top: 1px solid var(--primary-core); }

.modern-dash-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.3);
}

.metric-val {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.floating {
    animation: floatContinuous 6s ease-in-out infinite alternate;
}

@keyframes floatContinuous {
    from { transform: translateY(0) rotate(0); }
    to { transform: translateY(-25px) rotate(2deg); }
}

.hero-stats-strip {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 8rem;
    padding: 2.5rem 4rem;
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.strip-item strong {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.strip-item p {
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0 !important;
}

@media (max-width: 1200px) {
    .hero-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-text { display: flex; flex-direction: column; align-items: center; }
    .hero-actions { justify-content: center; width: 100%; }
    .dashboard-stack-modern { padding-left: 0; align-items: center; }
    .modern-dash-card { width: 100%; max-width: 420px; }
}

@media (max-width: 992px) {
    .hero-stats-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        padding: 3rem 2rem;
        margin-top: 5rem;
    }
}

@media (max-width: 768px) {
    .hero-stats-strip { grid-template-columns: 1fr; gap: 2rem; margin-top: 4rem;}
    .hero h1 { font-size: 2.5rem; line-height: 1.1; }
    .hero-sub { font-size: 1.1rem; }
}

.mini-graph-svg svg { stroke-linecap: round; }

/* --- Buttons & Badges --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

.btn-primary { background: var(--indigo-primary); color: #fff; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px var(--indigo-glow); }

.btn-blue-glow { background: #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.btn-blue-glow:hover { box-shadow: 0 0 30px rgba(59, 130, 246, 0.6); }

.btn-large { padding: 18px 44px; font-size: 1.15rem; border-radius: 8px; }
.btn-glow { box-shadow: 0 10px 30px var(--indigo-glow); }
.btn-glow:hover { box-shadow: 0 15px 45px var(--indigo-glow); }

.btn-outline {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--indigo-primary);
    border-color: var(--indigo-primary);
    box-shadow: 0 0 20px var(--indigo-glow);
}

/* --- About & Journey (Corrected Overlap) --- */
.page-main { padding-top: 140px; }

.experience-flow-v2 {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

.timeline-v2 {
    position: relative;
    max-width: 1100px;
    margin: 6rem auto;
}

.timeline-v2::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--indigo-primary), var(--cyan-secondary), transparent);
    transform: translateX(-50%);
    opacity: 0.2;
}

.timeline-node {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 10rem;
    position: relative;
}

.timeline-node:nth-child(even) { flex-direction: row-reverse; }

.node-content {
    width: 44%;
    padding: 3rem;
    z-index: 10;
}

/* --- Global Page Headers --- */
.page-hero {
    padding: clamp(140px, 18vh, 180px) 0 100px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent);
    position: relative;
    overflow: hidden;
}

.page-hero .hero-grid {
    align-items: center;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.page-hero h1 span {
    display: inline-block;
    background: linear-gradient(135deg, var(--indigo-primary), var(--cyan-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--indigo-glow));
}

.page-hero p {
    font-size: 1.15rem;
    max-width: 650px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 auto; /* Ensure centering within container */
}

.hero-btns {
    width: 100%;
    justify-content: center;
}

@media (max-width: 992px) {
    .page-hero .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
    .page-hero .hero-text { display: flex; flex-direction: column; align-items: center; }
    .page-hero .dashboard-stack-modern { align-items: center; }
}

/* --- Blog Search & Filters --- */
.blog-search-section { padding: 140px 0 70px; }
.search-wrapper {
    padding: 4rem 3.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 10;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.search-input-group {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.search-input-group i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--indigo-primary);
    font-size: 1.3rem;
}

.search-input-group input {
    width: 100%;
    padding: 1.3rem 1.3rem 1.3rem 65px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-size: 1.15rem;
    transition: var(--transition-mid);
}

.search-input-group input:focus {
    border-color: var(--indigo-primary);
    background: rgba(255,255,255,0.07);
    outline: none;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-label {
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.filter-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    padding: 10px 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-mid);
}

.tag:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--indigo-primary);
    color: #fff;
    transform: translateY(-2px);
}

.tag.active {
    background: var(--indigo-primary);
    border-color: var(--indigo-primary);
    color: #fff;
    box-shadow: 0 8px 20px var(--indigo-glow);
}

/* --- Blog Content Grid (3 Columns) --- */
.blog-list {
    padding: 140px 0 120px;
}

.blog-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
}

@media (max-width: 1200px) {
    .blog-grid-modern { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (max-width: 768px) {
    .blog-grid-modern { grid-template-columns: 1fr; gap: 2rem; }
    .blog-card { padding: 2rem; }
}

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    padding: 2.8rem;
    border-radius: 8px;
    transition: var(--transition-mid);
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--indigo-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.blog-card-img {
    height: 220px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    border: 1px solid var(--glass-border);
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-mid);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.1);
}

.blog-card .date {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--indigo-primary);
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.35;
    font-weight: 800;
}

.blog-card p {
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.blog-card a.read-full {
    font-weight: 800;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    margin-top: auto;
    transition: var(--transition-fast);
}

.blog-card a.read-full i {
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.blog-card:hover a.read-full {
    color: var(--indigo-primary);
}

.blog-card:hover a.read-full i {
    transform: translateX(10px);
}

@media (max-width: 1250px) {
    .blog-grid-modern { gap: 2rem; }
}

@media (max-width: 1100px) {
    .blog-grid-modern { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (max-width: 768px) {
    .search-wrapper { padding: 3rem 1.5rem; gap: 2rem; }
    .blog-grid-modern { grid-template-columns: 1fr; gap: 2.5rem; }
    .blog-card { padding: 2.2rem; }
}

.node-meta {
    width: 44%;
    padding: 0 60px;
    text-align: right;
}

.timeline-node:nth-child(even) .node-meta { text-align: left; }

.node-period { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; display: block; }
.node-duration {
    display: inline-block; padding: 6px 16px; border-radius: 8px;
    background: rgba(6, 182, 212, 0.1); border: 1px solid var(--cyan-secondary);
    color: var(--cyan-secondary); font-size: 0.85rem; font-weight: 800;
}

.node-list {
    display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem;
}

.node-list li {
    padding: 8px 16px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border); border-radius: 10px;
    font-size: 0.8rem; font-weight: 700;
}

.timeline-node::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px;
    background: var(--bg-base); border: 4px solid var(--indigo-primary);
    border-radius: 50%; transform: translate(-50%, -50%); z-index: 20;
    box-shadow: 0 0 20px var(--indigo-primary);
}

/* --- Results Formation --- */
.results-stack {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.formation-card {
    flex: 1;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.card-metric { font-size: 3.5rem; font-weight: 900; margin-bottom: 0.5rem; }
.card-label { text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

.tilt-left { transform: rotate(-4deg); }
.tilt-right { transform: rotate(4deg); }
.tilt-center { transform: scale(1.1); z-index: 2; border-color: var(--indigo-primary); }

/* --- Testimonials --- */
.testimonials-section {
    padding: 140px 0;
    overflow-x: hidden;
}

.testimonial-marquee { overflow: hidden; position: relative; padding: 2.5rem 0; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

.marquee-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 3.5rem;
    width: max-content;
    animation: marquee 40s linear infinite;
    cursor: grab;
    will-change: transform;
}

.marquee-track:active {
    cursor: grabbing;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-row-reverse .marquee-track { animation-direction: reverse; }

/* Generic Carousel Adjustments for Case Studies & Blog */
.carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 3rem 0;
    margin-top: 1rem;
    /* Premium Fade Edge Effect */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid var(--glass-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.carousel-nav-btn:hover {
    background: var(--indigo-primary);
    border-color: var(--indigo-primary);
    box-shadow: 0 0 20px var(--indigo-glow);
}

.carousel-nav-btn.prev { left: 2rem; }
.carousel-nav-btn.next { right: 2rem; }

@media (max-width: 768px) {
    .carousel-nav-btn { display: none; } /* Hide buttons on small touch screens for better scroll */
    .carousel-container { mask-image: none; -webkit-mask-image: none; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .marquee-track { animation-play-state: paused; } /* Let user scroll manually easily on mobile */
}

.case-study-grid.marquee-track,
.blog-grid-modern.marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    margin-top: 0 !important; /* Remove top margin that pushes it out */
}

.case-study-grid.marquee-track .case-study-box,
.blog-grid-modern.marquee-track .blog-card {
    width: 440px;
    flex-shrink: 0;
    user-select: none;
    height: auto;
}

.testimonial-card-scroll {
    width: 440px;
    min-height: 280px;
    padding: 3.5rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-card-scroll .quote {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 2rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--indigo-primary);
    border-radius: 8px;
    flex-shrink: 0;
    opacity: 0.2;
    background: linear-gradient(135deg, var(--indigo-primary), var(--cyan-secondary));
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.client-avatar::after {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    opacity: 1;
}

.client-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.client-meta strong {
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.client-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.2px;
}

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Case Study Grid --- */
.case-studies-list {
    padding: clamp(40px, 6vh, 80px) 0;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 2.5rem;
}

.case-study-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    transition: var(--transition-mid);
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
}

.case-study-box:hover {
    transform: translateY(-15px);
    border-color: var(--indigo-primary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.case-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
    filter: saturate(0.8) brightness(0.9);
}

.case-study-box:hover .case-img img {
    transform: scale(1.1);
    filter: saturate(1.1) brightness(1.1);
}

.box-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 16px;
    background: var(--indigo-primary);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.case-box-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
}

.case-meta {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan-secondary);
}

.case-box-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.25;
}

.box-metrics {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.box-stat { display: flex; flex-direction: column; gap: 0.3rem; }
.box-stat .val { font-size: 1.8rem; font-weight: 900; color: #fff; line-height: 1; }
.box-stat .lbl { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.case-img-simple {
    height: 160px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}
.case-img-simple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.case-stat-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--cyan-secondary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.case-simple-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-top: 10px;
    transition: gap 0.3s;
}

.case-simple-link:hover {
    gap: 12px;
    color: var(--indigo-primary);
}

@media (max-width: 1200px) {
    .case-study-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

@media (max-width: 768px) {
    .case-study-grid { grid-template-columns: 1fr; gap: 4rem; }
    .case-box-content { padding: 2.5rem; }
}

/* --- Tools Section --- */
.software-ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ui-panel { padding: 2rem; }
.ui-panel:first-child { grid-column: span 2; }

/* --- Footer --- */
.footer { background: #05070A; padding: 120px 0 0; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr; gap: 4rem; padding-bottom: 80px; }

.footer-brand p { margin-top: 1.5rem; max-width: 320px; line-height: 1.8; color: var(--text-muted); font-size: 0.95rem; }
.footer-links h4 { font-size: 1.1rem; margin-bottom: 1.8rem; position: relative; padding-bottom: 12px; font-weight: 800; }
.footer-links h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 25px; height: 2px; background: var(--indigo-primary); }

.footer-links ul li { margin-bottom: 1rem; }
.footer-links ul li a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: var(--transition-fast); }
.footer-links ul li a:hover { color: #fff; padding-left: 8px; }

/* Footer Social Buttons - Improved Centering & Hover */
.social-btn {
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
}

.social-btn i {
    font-size: 1.1rem !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none; /* Prevents icon margin affecting hover */
}

.social-btn:hover {
    transform: translateY(-8px) scale(1.1);
    color: #fff;
    border-color: var(--indigo-primary);
    background: var(--indigo-primary);
    box-shadow: 0 15px 30px var(--indigo-glow);
}

/* Branded Hover Colors */
.social-btn.linkedin:hover { background: #0077b5; box-shadow: 0 10px 25px rgba(0, 119, 181, 0.5); border-color: #0077b5; }
.social-btn.reddit:hover { background: #ff4500; box-shadow: 0 10px 25px rgba(255, 69, 0, 0.5); border-color: #ff4500; }
.social-btn.whatsapp:hover { background: #25d366; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5); border-color: #25d366; }
.social-btn.google:hover { background: #ea4335; box-shadow: 0 10px 25px rgba(234, 67, 53, 0.5); border-color: #ea4335; }
.social-btn.pinterest:hover { background: #bd081c; box-shadow: 0 10px 25px rgba(189, 8, 28, 0.5); border-color: #bd081c; }
.social-btn.medium:hover { background: #00ab6c; box-shadow: 0 10px 25px rgba(0, 171, 108, 0.5); border-color: #00ab6c; }

.footer-socials { display: flex; gap: 0.8rem; margin-top: 2rem; }

.footer-giant-wrapper { padding: 4rem 0; border-top: 1px solid var(--glass-border); overflow: hidden; }
.giant-text {
    font-size: 15vw;
    font-weight: 900;
    text-align: center;
    color: rgba(255, 255, 255, 0.03);
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.6);
    opacity: 0.8;
    transform: translateY(20px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.giant-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .container { width: 92%; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
    .dashboard-stack-modern { align-items: center; padding-right: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* --- Mobile Menu Restoration --- */
@media (max-width: 992px) {
    .sticky-nav {
        top: 1rem;
    }

    .nav-capsule {
        padding: 0.3rem 1.2rem;
        width: 92%;
        overflow: visible !important; /* CRITICAL: Prevent clipping of mobile links */
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        color: #fff !important;
        width: 40px;
        height: 40px;
        z-index: 10001; /* Above Nav Overlay */
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: #030509; /* Solid deep bg for mobile menu */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateY(-100%);
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        z-index: 10000; /* Just below Close Button */
    }

    .sticky-nav.mobile-active .nav-links {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a { 
        font-size: 2rem !important; 
        color: #fff !important; 
        font-weight: 800;
        letter-spacing: -1px;
    }
    .nav-cta { display: none; }
}

/* --- Results Section Refinement --- */
.results-formation-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.results-text {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Final Spacing Fixes --- */
.hero { padding-bottom: 40px; }
.about-preview, .tools-section, .case-studies, .results-stats, .blog, .pricing, .testimonials-section, .contact-cta {
    padding: 60px 0;
}

/* --- Playbook UI Components --- */

/* Result Pills */
.result-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 2rem 0 2.5rem;
}
.pill {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'DM Mono', monospace;
}
.pill.green { background: rgba(123,207,42,0.12); color: #7bcf2a; border: 1px solid rgba(123,207,42,0.3); }
.pill.blue { background: rgba(6, 182, 212, 0.12); color: var(--cyan-secondary); border: 1px solid rgba(6, 182, 212, 0.3); }
.pill.orange { background: rgba(255,107,53,0.12); color: #ff6b35; border: 1px solid rgba(255,107,53,0.3); }
.pill.yellow { background: rgba(240,192,64,0.12); color: #f0c040; border: 1px solid rgba(240,192,64,0.3); }
.pill.purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }

/* Highlight Boxes */
.highlight-box {
    border-left: 4px solid var(--indigo-primary);
    background: rgba(99, 102, 241, 0.05);
    padding: 2rem;
    border-radius: 0 16px 16px 0;
    margin: 2.5rem 0;
    font-style: italic;
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.6;
}
.highlight-box.blue { border-color: var(--cyan-secondary); background: rgba(6, 182, 212, 0.05); }
.highlight-box.orange { border-color: #ff6b35; background: rgba(255, 107, 53, 0.05); }
.highlight-box.purple { border-color: #a855f7; background: rgba(168, 85, 247, 0.05); }

/* Flowchart Strategy Mapper */
.flowchart-wrap {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
}
.flowchart-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    text-align: center;
}
.flow { display: flex; flex-direction: column; align-items: center; }
.flow-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; width: 100%; }
.flow-box {
    padding: 16px 24px;
    border-radius: 14px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 160px;
    max-width: 240px;
    line-height: 1.4;
}
.flow-box.green { background: rgba(123,207,42,0.15); border: 2px solid rgba(123,207,42,0.4); color: #7bcf2a; }
.flow-box.blue { background: rgba(6, 182, 212, 0.15); border: 2px solid rgba(6, 182, 212, 0.4); color: var(--cyan-secondary); }
.flow-box.orange { background: rgba(255,107,53,0.15); border: 2px solid rgba(255,107,53,0.4); color: #ff6b35; }
.flow-box.yellow { background: rgba(240,192,64,0.15); border: 2px solid rgba(240,192,64,0.4); color: #f0c040; }
.flow-box.purple { background: rgba(168, 85, 247, 0.15); border: 2px solid rgba(168, 85, 247, 0.4); color: #a855f7; }
.flow-box.white { background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1); color: #fff; }
.flow-arrow { color: var(--text-muted); font-size: 24px; margin: 12px auto; }

/* Metric Growth Bars */
.metric-section {
    background: rgba(2, 6, 23, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
}
.metric-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 24px;
}
.metric-row { margin-bottom: 20px; }
.metric-label-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; color: #fff; }
.metric-bar-bg { height: 10px; background: rgba(255,255,255,0.05); border-radius: 100px; overflow: hidden; }
.metric-bar-fill { height: 100%; border-radius: 100px; transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1); }

.fill-green { background: linear-gradient(90deg, #7bcf2a, #a8e857); }
.fill-blue { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.fill-orange { background: linear-gradient(90deg, #f97316, #fb923c); }
.fill-yellow { background: linear-gradient(90deg, #eab308, #fde047); }
.fill-purple { background: linear-gradient(90deg, #a855f7, #c084fc); }

/* Step List */
.step-list { margin: 2rem 0; }
.step-item { display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start; }
.step-num {
    background: var(--indigo-primary);
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    font-weight: 800;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px var(--indigo-glow);
}
.step-num.blue { background: var(--cyan-secondary); }
.step-num.orange { background: #ff6b35; }
.step-num.purple { background: #a855f7; }
.step-content strong { color: #fff; display: block; margin-bottom: 6px; font-size: 1.1rem; }

/* Takeaway Box */
.takeaway {
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 18px;
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
}
.takeaway h4 {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--indigo-primary);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.takeaway ul { padding-left: 0; list-style: none; }
.takeaway ul li {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}
.takeaway ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #7bcf2a;
}

/* Capsule Nav Shadow Fix */
.nav-capsule {
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Smooth Scroll Padding */
:target {
    scroll-margin-top: 120px;
}
/* --- Service Selection Modal --- */
.selection-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-mid);
}

.selection-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.modal-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #fff, var(--indigo-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.option-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 3rem 2rem;
    cursor: pointer;
    transition: var(--transition-mid);
}

.option-card:hover {
    transform: translateY(-8px);
    background: rgba(15, 23, 42, 0.6);
}

.option-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Service Filtering Logic */
.service-seo-content, .service-website-content {
    display: none;
}

body.user-seo .service-seo-content {
    display: block;
}

body.user-website .service-website-content {
    display: block;
}

/* Purple Theme Override for Website Dashboard */
body.user-website {
    --indigo-primary: var(--purple-accent);
    --indigo-glow: var(--purple-glow);
}

body.user-website .logo-mini span,
body.user-website .logo span:first-child {
    color: var(--purple-accent);
}

body.user-website .btn-primary {
    background: var(--purple-accent);
}

/* --- CTA Section --- */
.contact-cta { padding: 120px 0 160px; }
.cta-box {
    padding: 6rem 4rem;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 60%);
}

.cta-box h2 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #fff 30%, var(--indigo-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.cta-box p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 3.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.cta-box .btn-large {
    padding: 20px 50px;
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    .cta-box { padding: 4rem 2rem; }
    .cta-box h2 { font-size: 2.2rem; }
}

.floating-service-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 10000;
    width: auto;
    padding: 1rem 2.2rem;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-service-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--indigo-primary), var(--cyan-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.floating-service-btn:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--indigo-primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 25px 50px var(--indigo-glow);
}

@media (max-width: 992px) {
    .case-study-grid, .footer-grid, .results-stack, .tech-grid, .layers-grid, .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .timeline-node, .timeline-node:nth-child(even) { flex-direction: column; align-items: flex-start; padding-left: 60px; margin-bottom: 6rem; }
    .timeline-v2::before { left: 24px; }
    .timeline-node::after { left: 24px; top: 0; transform: translateX(-50%); }
    .node-content, .node-meta { width: 100%; text-align: left !important; padding: 0; } .node-meta { margin-bottom: 1.5rem; }
}

@media (max-width: 1200px) {
    .floating-service-btn {
        bottom: 1.2rem;
        right: 1.2rem;
        padding: 10px 20px;
        font-size: 0.75rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    }
}

/* --- FAQ Accordion --- */
.faq-section {
    padding: 120px 0;
    position: relative;
}

.faq-grid {
    max-width: 900px;
    margin: 4rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.8rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    transition: var(--transition-mid);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--indigo-primary);
    transition: transform var(--transition-mid);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    padding: 0 2.5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 2rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .faq-question { padding: 1.5rem; font-size: 1rem; }
    .faq-answer { padding: 0 1.5rem; }
}

/* --- Contact Form & Input Styling --- */
.contact-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-wrapper {
    padding: 3.5rem;
    margin-top: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group select option {
    background: #0f172a;
    color: #fff;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--indigo-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px var(--indigo-glow);
}

.textarea-group {
    margin-bottom: 2rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.contact-alt-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.info-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.info-card i {
    font-size: 2rem;
    color: var(--indigo-primary);
    margin-bottom: 1rem;
}

/* --- Dashboard Interaction --- */
/* Core visibility logic: Only hide inactive service content.
   Never force 'display: block' as it breaks Grids and Flexboxes. */
.service-website-content,
body.user-seo .service-website-content,
body.user-website .service-seo-content {
    display: none !important;
}

body.user-website .service-website-content {
    display: revert !important;
}

/* --- Experience Flow Chart (Workflow) --- */
.workflow-section {
    padding: 140px 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    position: relative;
    margin-top: 5rem;
}

.workflow-card {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    height: 100%;
    z-index: 2;
    transition: var(--transition-mid);
    overflow: visible; /* Ensure step badges are visible */
}

.workflow-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan-secondary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-deep);
    border: 2px solid var(--indigo-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--text-main);
    font-size: 1.1rem;
    box-shadow: 0 0 20px var(--indigo-glow);
    z-index: 10;
}

.workflow-card {
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.workflow-card i {
    font-size: 2.8rem;
    color: var(--cyan-secondary);
    margin-bottom: 2rem;
    display: block;
    background: linear-gradient(135deg, var(--cyan-secondary), var(--indigo-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.workflow-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.workflow-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.workflow-steps::after {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--indigo-primary) 30%, 
        var(--cyan-secondary) 70%, 
        transparent 100%
    );
    z-index: 1;
    opacity: 0.3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-section.reveal-up .workflow-steps::after {
    transform: scaleX(1);
}

@media (max-width: 1100px) {
    .workflow-steps { grid-template-columns: repeat(2, 1fr); gap: 4rem 2.5rem; }
    .workflow-steps::after { display: none; }
}

@media (max-width: 600px) {
    .workflow-steps { grid-template-columns: 1fr; gap: 4rem 0; }
    .workflow-card { padding: 3rem 1.5rem; }
}

/* --- Responsive & About Fixes --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 1600px) {
    .about-features-grid { grid-template-columns: repeat(4, 1fr); }
}

.a-feature-card {
    padding: 2.2rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition-mid);
    background: rgba(15, 23, 42, 0.4);
}

.a-feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--indigo-primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.a-feature-card i {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    display: block;
    background: linear-gradient(135deg, var(--indigo-primary), var(--cyan-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.a-feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.a-feature-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .about-features-grid { grid-template-columns: 1fr; }
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8rem;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    backdrop-filter: blur(20px);
}

.a-stat {
    display: flex;
    flex-direction: column;
    position: relative;
}

.a-stat strong {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
}

/* --- Case Study Hero Spacing --- */
.case-hero {
    padding-top: clamp(140px, 18vh, 200px);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.case-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.case-hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #fff;
}

.case-hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Footer Giant Logo Fix for Individual Pages */
.footer-giant-wrapper {
    margin-top: 4rem;
    overflow: hidden;
}

.giant-text {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 0.8;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.05);
    text-transform: uppercase;
    letter-spacing: -2px;
}

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .about-text { max-width: 800px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .about-stats { grid-template-columns: 1fr; padding: 2rem; }
}

.about-mission { padding: 140px 0; }

/* --- SEO Layers Grid --- */
.seo-layers-section { background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.03)); padding: 140px 0; }
.layers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

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

.layer-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition-mid);
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
}

.layer-card:hover {
    transform: translateY(-8px);
    border-color: var(--indigo-primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.layer-icon {
    font-size: 2.5rem;
    color: var(--indigo-primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.layer-num {
    position: absolute;
    top: -15px;
    right: -20px;
    width: 28px;
    height: 28px;
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.layer-card:hover .layer-num {
    border-color: var(--indigo-primary);
    color: #fff;
    background: var(--indigo-primary);
}

.layer-card h3 { font-size: 1.4rem; margin-bottom: 1rem; font-weight: 800; color: #fff; }
.layer-card p { font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }

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

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

/* --- Service Selection Modal (Entry Experience) --- */
.selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: flex-start; /* Start from top to prevent cutoff */
    justify-content: center;
    padding: 8vh 0; /* Huge vertical air */
    overflow-y: auto; /* Allow scroll if very small screen */
    opacity: 0;
    visibility: hidden;
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(40px);
}

.selection-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 900px;
    padding: 5rem 4rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent);
    overflow: hidden;
}

.modal-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.service-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.option-card {
    padding: 3.5rem 2.5rem;
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.option-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--x) var(--y), rgba(99, 102, 241, 0.06), transparent 40%);
    opacity: 0;
    transition: 0.5s;
}

.option-card:hover::before { opacity: 1; }

.option-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--indigo-primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.option-icon {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    transition: 0.5s;
}

.option-card:hover .option-icon { transform: scale(1.1) rotate(5deg); }

.option-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.option-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .modal-content { padding: 4rem 2rem; width: 95%; }
    .service-options { grid-template-columns: 1fr; gap: 1.5rem; }
    .modal-header h2 { font-size: 2.2rem; }
    .option-card { padding: 3rem 2rem; }
    .selection-modal { padding: 4vh 0; }
}

/* --- Final Visual Polish & Micro-interactions --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-icon {
    animation: float 4s ease-in-out infinite;
}

/* Custom Scrollbar for Premium Feel */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--indigo-primary);
}

/* Smooth Momentum Scrolling for Mobile */
body {
    -webkit-overflow-scrolling: touch;
}

/* Hover Glow for Links & Buttons */
.nav-links a:hover {
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.btn:active {
    transform: scale(0.96) !important;
}

/* Ensure images don't break layout */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Logo Styling --- */
.logo { display: inline-block; vertical-align: middle; }
.logo img, .logo-mini img {
    height: 55px;

    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
    transition: var(--transition-mid);
}

@media (max-width: 768px) {
    .logo img, .logo-mini img { height: 42px; }
    .nav-capsule {
        padding: 0.3rem 0.5rem 0.3rem 1rem;
        min-height: auto !important;
        width: 92%;
    }
}

/* --- Disclaimer --- */
.disclaimer-box {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.disclaimer-box strong {
    color: #fff;
    font-weight: 700;
}

/* --- Dashboard Switcher Visibility Logic --- */
.service-seo-content,
.service-website-content {
    display: none !important;
}

/* SEO Dashboard Active */
body.user-seo .service-seo-content {
    display: block !important;
}
body.user-seo .service-seo-content.tech-card,
body.user-seo .service-seo-content.service-large-card,
body.user-seo .service-seo-content.market-card {
    display: flex !important;
}
body.user-seo .service-seo-content.market-grid,
body.user-seo .service-seo-content.tech-grid {
    display: grid !important;
}
body.user-seo h1.service-seo-content,
body.user-seo h2.service-seo-content {
    display: block !important;
}

/* Website Dashboard Active */
body.user-website .service-website-content {
    display: block !important;
}
body.user-website .service-website-content.tech-card,
body.user-website .service-website-content.service-large-card {
    display: flex !important;
}
body.user-website .service-website-content.tech-grid {
    display: grid !important;
}
body.user-website h1.service-website-content,
body.user-website h2.service-website-content {
    display: block !important;
}

/* Website Dashboard Theme Adjustments */
body.user-website .badge {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--purple-accent);
}
body.user-website .btn-primary {
    background: var(--purple-accent);
    box-shadow: 0 0 15px var(--purple-glow);
}
body.user-website .floating-service-btn {
    border-color: var(--purple-accent);
    color: var(--purple-accent);
}
body.user-website .footer-logo-brand span {
    color: var(--purple-accent);
}

/* --- Detailed Case Study Playbooks (SEO Dashboard Only) --- */
.toc {
    background: var(--glass-card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px 40px;
    margin: 40px 0 60px;
}
.toc h2 {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--cyan-secondary);
    text-transform: uppercase;
    margin-bottom: 24px;
}
.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}
.toc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.toc-item:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--cyan-secondary);
    transform: translateY(-2px);
}
.toc-num {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--cyan-secondary);
    opacity: 0.7;
}

.case-study-playbook {
    margin: 80px 0;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    background: var(--glass-card-bg);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.5);
}
.playbook-header {
    padding: 60px 60px 40px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}
.playbook-header.monday { border-bottom: 3px solid #7bcf2a; background: linear-gradient(135deg, rgba(123, 207, 42, 0.05), transparent); }
.playbook-header.typeform { border-bottom: 3px solid #2ab8cf; background: linear-gradient(135deg, rgba(42, 184, 207, 0.05), transparent); }
.playbook-header.scribe { border-bottom: 3px solid #ff6b35; background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), transparent); }
.playbook-header.daycare { border-bottom: 3px solid #8b6fff; background: linear-gradient(135deg, rgba(139, 111, 255, 0.05), transparent); }
.playbook-header.ahrefs { border-bottom: 3px solid #4ecdc4; background: linear-gradient(135deg, rgba(78, 205, 196, 0.05), transparent); }

.playbook-num { font-size: 0.7rem; letter-spacing: 4px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 15px; display: block; }
.playbook-header h2 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 20px; color: #fff; }
.playbook-tagline { font-size: 1.1rem; color: var(--text-muted); font-style: italic; opacity: 0.8; }

.playbook-body { padding: 40px 60px 60px; }
.result-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.pill { padding: 8px 18px; border-radius: 100px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; }

.pill.green { background: rgba(123,207,42,0.1); color: #7bcf2a; border: 1px solid rgba(123,207,42,0.2); }
.pill.blue { background: rgba(42,184,207,0.1); color: #2ab8cf; border: 1px solid rgba(42,184,207,0.2); }
.pill.orange { background: rgba(255,107,53,0.1); color: #ff6b35; border: 1px solid rgba(255,107,53,0.2); }
.pill.yellow { background: rgba(240,192,64,0.1); color: #f0c040; border: 1px solid rgba(240,192,64,0.2); }
.pill.purple { background: rgba(139,111,255,0.1); color: #8b6fff; border: 1px solid rgba(139,111,255,0.2); }

.playbook-body h3 { font-size: 1.5rem; color: #fff; margin: 40px 0 20px; }
.playbook-body p { margin-bottom: 20px; color: var(--text-main); font-size: 1.05rem; line-height: 1.8; }

.highlight-box {
    border-left: 4px solid var(--cyan-secondary);
    background: rgba(14, 165, 233, 0.05);
    padding: 24px 30px;
    border-radius: 0 15px 15px 0;
    margin: 30px 0;
    font-style: italic;
    color: #cbd5e1;
}
.highlight-box.green { border-color: #7bcf2a; background: rgba(123,207,42,0.03); }
.highlight-box.orange { border-color: #ff6b35; background: rgba(255,107,53,0.03); }

/* Flowchart */
.flow { display: flex; flex-direction: column; align-items: center; padding: 40px; background: rgba(0,0,0,0.2); border-radius: 20px; border: 1px solid var(--glass-border); margin: 40px 0; }
.flow-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; width: 100%; margin: 10px 0; }
.flow-box {
    padding: 16px 24px; border-radius: 14px; text-align: center; font-size: 0.9rem; font-weight: 700;
    width: 200px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
}
.flow-arrow { font-size: 24px; color: var(--text-muted); margin: 10px 0; opacity: 0.3; }

/* Metrics */
.playbook-metrics { margin: 40px 0; background: rgba(0,0,0,0.2); padding: 30px; border-radius: 20px; border: 1px solid var(--glass-border); }
.met-row { margin-bottom: 25px; }
.met-lbl { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; font-weight: 600; color: #fff; }
.met-bar { height: 10px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }
.met-fill { height: 100%; border-radius: 10px; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1); }

.met-fill.green { background: linear-gradient(90deg, #7bcf2a, #a8e857); }
.met-fill.blue { background: linear-gradient(90deg, #2ab8cf, #4ecdc4); }
.met-fill.orange { background: linear-gradient(90deg, #ff6b35, #ff9066); }
.met-fill.yellow { background: linear-gradient(90deg, #f0c040, #ffd875); }

.takeaway-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), transparent);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px; padding: 35px; margin: 40px 0;
}
.takeaway-box h4 { text-transform: uppercase; letter-spacing: 2px; color: var(--cyan-secondary); font-size: 0.8rem; margin-bottom: 20px; }
.takeaway-box ul li { margin-bottom: 12px; color: var(--text-muted); position: relative; padding-left: 25px; list-style: none; }
.takeaway-box ul li::before { content: '→'; position: absolute; left: 0; color: var(--cyan-secondary); font-weight: 900; }

.playbook-cta { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--glass-border); text-align: center; }
.playbook-cta p { font-size: 1.25rem; font-weight: 700; margin-bottom: 25px !important; color: #fff; }

/* --- High-End Case Study Overhaul --- */
.case-detail-page {
    background: #05070d; /* Slightly darker for depth */
}

/* 1. Cinematic Hero */
.case-hero {
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.case-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.05) 0%, transparent 80%);
    pointer-events: none;
}

.case-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    color: #fff;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Fluid 3:1 Split */
.case-main-content {
    padding: 80px 0 140px;
}

.case-split {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.case-playbook {
    width: 68%; /* Slightly wider gap */
    flex-shrink: 0;
}

/* 3. Refined Sticky Sidebar */
.case-sidebar {
    width: 32%;
    position: sticky;
    top: 140px; /* More clearance from Nav */
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 50;
}

.sidebar-box {
    padding: 3rem 2.5rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    text-align: left;
}

.sidebar-box h4 {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -0.8px;
}

.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.sidebar-form input {
    width: 100% !important;
    height: 58px;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    display: block;
}

.sidebar-form button {
    width: 100% !important;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* 4. Fix Navbar Overlap on Narrow Screens */
@media (max-width: 1200px) {
    .case-split {
        flex-direction: column;
        gap: 50px;
    }
    .case-playbook, .case-sidebar {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }
    .case-sidebar {
        position: static;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        padding-bottom: 250px; /* Massive clear area for switcher */
    }
}

/* Mobile Nav Button Size reduction */
@media (max-width: 768px) {
    .nav-cta .btn-sm {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
    .case-hero {
        padding: 150px 20px 80px;
    }
}

.featured-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan-secondary);
    margin-bottom: 20px;
    font-weight: 800;
}

/* --- Creative Sidebar Widgets --- */
.sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--indigo-primary);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1.2rem;
    text-decoration: none;
    transition: var(--transition-mid);
}

.sidebar-list-item:hover {
    transform: translateX(8px);
    border-color: var(--indigo-primary);
    background: rgba(255, 255, 255, 0.05);
}

.item-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.item-icon.blue { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.item-icon.purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.item-icon.cyan { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.item-icon.accent { background: rgba(255, 255, 255, 0.05); color: #fff; }

.item-info h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.item-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* About Mini Widget */
.about-mini-widget {
    padding: 2rem !important;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.2rem;
}

.mini-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--indigo-primary);
}

.about-flex h5 {
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
}

.about-flex p {
    font-size: 0.8rem !important;
    margin: 0 !important;
    color: var(--cyan-secondary) !important;
}

.mini-bio {
    font-size: 0.85rem !important;
    line-height: 1.5;
    margin-bottom: 1.5rem !important;
}

/* Featured Service Card */
.featured-service-card {
    padding: 2rem;
    display: block;
    position: relative;
    overflow: hidden;
}

.featured-service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent);
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--indigo-primary);
}

.price-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
}

.featured-service-card h5 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.featured-service-card p {
    font-size: 0.85rem !important;
    margin-bottom: 1.5rem !important;
}

.action-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--indigo-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.featured-service-card:hover .action-text {
    gap: 12px;
}

.creative-gradient-border {
    position: relative;
}

.creative-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--indigo-primary), transparent 50%, var(--cyan-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* --- FAQ System Functionality --- */
.faq-item.active .faq-answer {
    display: block !important;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--indigo-primary);
}

/* --- Case Studies Archive Enhancements --- */
.case-studies-archive .archive-hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

.case-studies-archive .hero-content h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-top: 1.5rem;
}

.case-studies-archive .hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 60px;
}

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

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

.study-card {
    padding: 3.5rem 2.8rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: var(--transition-mid);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.3);
    height: 100%;
}

.study-card:hover {
    border-color: var(--indigo-primary);
    background: rgba(15, 23, 42, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.study-card h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    color: #fff;
    letter-spacing: -1px;
}

.study-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.study-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cyan-secondary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-top: auto;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
}

.status-badge.b2b { color: var(--cyan-secondary); border-left: 3px solid var(--cyan-secondary); }
.status-badge.saas { color: var(--indigo-primary); border-left: 3px solid var(--indigo-primary); }
.status-badge.viral { color: var(--purple-accent); border-left: 3px solid var(--purple-accent); }
.status-badge.ai { color: #fff; border-left: 3px solid #fff; }

/* --- Archive Divider & List --- */
.more-studies-divider {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 100px 0 60px;
}

.more-studies-divider .line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.more-studies-divider span {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    white-space: nowrap;
}

.archive-items-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.archive-items-flex a {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-mid);
}

.archive-items-flex a:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--cyan-secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


/* --- Social Button Icons (Custom Square) --- */

.social-btn {
    width: 44px;
    height: 44px;
    background: #5c67f2;
    color: #fff !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(92, 103, 242, 0.4);
}

.social-btn:hover {
    transform: translateY(-5px);
    background: #4a54d1;
    box-shadow: 0 8px 25px rgba(92, 103, 242, 0.6);
}

.social-btn.reddit:hover { background: #FF4500; box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4); }
.social-btn.blogger:hover { background: #f57d00; box-shadow: 0 8px 25px rgba(245, 125, 0, 0.4); }
.social-btn.medium:hover { background: #000; box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2); }
.social-btn.tumblr:hover { background: #35465c; box-shadow: 0 8px 25px rgba(53, 70, 92, 0.4); }
.social-btn.pinterest:hover { background: #E60023; box-shadow: 0 8px 25px rgba(230, 0, 35, 0.4); }
.social-btn.slideshare:hover { background: #0077b5; box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4); }
.social-btn.whatsapp:hover { background: #25D366; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
.social-btn.google:hover { background: #4285F4; box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4); }

/* --- BLOG DASHBOARD EXTENSIONS --- */
.blog-detail .case-hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #020617 0%, #0d0d0d 100%);
}
.blog-body {
    font-size: 1.15rem;
    line-height: 1.9;
}
.blog-body h2 {
    font-size: 2.2rem;
    margin: 4.5rem 0 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}
.blog-body h3 {
    font-size: 1.6rem;
    margin: 3.5rem 0 1.5rem;
    font-weight: 700;
    color: #fff;
}
.blog-body p {
    margin-bottom: 2.2rem;
    color: var(--text-muted);
}
.blog-body ul, .blog-body ol {
    margin-bottom: 3rem;
    padding-left: 1.5rem;
}
.blog-body li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}
.blog-body ul li i {
    color: var(--cyan-secondary);
}
.blog-image-slot {
    margin: 4.5rem 0;
    width: 100%;
}
.image-placeholder {
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    border: 1px solid rgba(255,255,255,0.08);
}
.image-placeholder:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    border-color: var(--indigo-primary);
}
.blog-image-slot .caption {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.8;
}
.blog-faq-section {
    background: rgba(15, 23, 42, 0.2);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.03);
    margin-top: 5rem;
}
.blog-faq-section h3 {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}
/* --- FINAL CTA & FOOTER RECOVERY --- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.05));
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.cta-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer Improvements */
.footer {
    padding: 100px 0 150px;
    background: var(--bg-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 2rem; /* Reduced from 6rem */
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem; /* Reduced from 2rem */
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links ul li {
    margin-bottom: 0.8rem; /* Reduced from 1rem */
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--indigo-primary);
    transform: translateX(5px);
    display: inline-block;
}

/* Ensure Logo in Footer is Premium */
.footer-brand .logo img {
    height: 65px;
    margin-bottom: 1.5rem; /* Reduced from 2rem */
}

/* Ensure Connect Icons are Visible */
.social-btn i {
    font-size: 1.1rem !important;
    display: flex !important;
}

.giant-text.reveal-stroke {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12) !important;
    color: transparent;
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    text-align: center;
    pointer-events: none;
    margin-top: 1rem; /* Significantly reduced space */
    opacity: 0.5;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 80px 0 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-brand p {
        margin: 1.5rem auto 0;
    }
    .footer-links h4 {
        margin-bottom: 1.5rem;
    }
    .footer-links h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .footer-links ul {
        padding: 0;
    }
    /* Centering the flex container for social icons */
    .footer-links .social-btn-group, 
    .footer-links div[style*="flex"] {
        justify-content: center !important;
        margin-top: 1rem;
    }
    .social-btn {
        margin: 0 !important;
    }
    .giant-text.reveal-stroke {
        font-size: 14vw !important; /* Adjusted to fit 'SEO EXPERT' on one line */
        letter-spacing: -1px;
        opacity: 0.3;
        white-space: nowrap !important;
        width: 100%;
        text-align: center;
        display: block;
        margin-top: 1rem;
    }
    .disclaimer-box {
        font-size: 0.8rem;
        padding: 2rem 1.5rem;
        background: rgba(255,255,255,0.02);
        border-radius: 12px;
    }
}

/* --- NEW BLOG SECTION ENHANCEMENTS --- */
.sidebar-about {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.expert-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.expert-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--indigo-primary);
}

.expert-info h6 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.expert-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.expert-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Success Card Gallery */
.success-card {
    padding: 2.5rem;
    transition: all 0.4s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.success-card:hover {
    transform: translateY(-8px);
    border-color: var(--indigo-primary);
    background: rgba(99, 102, 241, 0.05);
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan-secondary);
    margin-bottom: 1rem;
}

.success-card h5 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.8rem;
}

.success-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.view-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--indigo-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-card:hover .view-link {
    color: #fff;
    gap: 12px;
}

@media (max-width: 768px) {
    .success-grid { grid-template-columns: 1fr; }
    .success-card { padding: 2rem; }
}
