/* =========================================
   UQUV PRO HOME - DESIGN SYSTEM 2.0 (Theme Aware)
   ========================================= */

@property --angle-1 {
    syntax: "<angle>";
    inherits: false;
    initial-value: -75deg;
}

@property --angle-2 {
    syntax: "<angle>";
    inherits: false;
    initial-value: -45deg;
}

/* --- 1. Variables & Theme Grid --- */
:root {
    --pro-bg-dark: #0f172a;
    /* Fallback/Base */
    --pro-accent: var(--color-primary, #f98d1f);
    /* Use site primary */
    --pro-accent-secondary: var(--color-secondary, #052d62);

    /* Default (Light Mode) Values */
    --pro-card-glass: rgba(255, 255, 255, 0.7);
    --pro-glass-border: rgba(0, 0, 0, 0.05);
    --pro-text-main: var(--color-bodyest);
    --pro-text-muted: var(--color-bodyest-2);
    --pro-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hero-overlay: radial-gradient(circle at center, rgba(249, 141, 31, 0.05) 0%, transparent 50%);

    /* Background & Dots (Light Mode) */
    --pro-main-bg: #f8fafc;
    --pro-dot-color: rgba(30, 41, 59, 0.3);
    /* Doubled opacity for bold visibility */
    --pro-carousel-dot: rgba(15, 23, 42, 0.2);
}

/* Dark Mode Overrides */
body.active-dark-mode {
    --pro-card-glass: rgba(15, 23, 42, 0.6);
    --pro-glass-border: rgba(255, 255, 255, 0.05);
    --pro-text-main: #f8fafc;
    --pro-text-muted: #94a3b8;
    --pro-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    --hero-overlay: radial-gradient(circle at center, rgba(56, 189, 248, 0.08) 0%, transparent 50%);

    /* Background & Dots (Dark Mode) */
    --pro-main-bg: #0b0f19;
    --pro-dot-color: rgba(255, 255, 255, 0.35);
    /* Increased for dark mode punch */
    --pro-carousel-dot: rgba(255, 255, 255, 0.2);
}

/* --- 2. Base Resets & Animations --- */
.hero-pro,
.features-pro,
.courses-pro,
.founder-pro {
    font-family: 'Euclid Circular A', sans-serif;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

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

    100% {
        transform: translateX(-50%);
    }
}

/* --- 3. Hero Section --- */
.hero-pro {
    position: relative;
    min-height: 85vh;
    /* Slightly reduced */
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    /* Background handled by main theme (body background) */
}

/* Dark mode specific hero background tint */
body.active-dark-mode .hero-pro {
    background: var(--pro-bg-dark);
    /* Ensure deep dark in dark mode */
}

.hero-pro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--hero-overlay);
    animation: rotate-bg 60s linear infinite;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(var(--color-primary-rgb), 0.1);
    /* Needs rgb var or fallback */
    background: rgba(249, 141, 31, 0.1);
    border: 1px solid rgba(249, 141, 31, 0.2);
    border-radius: 100px;
    color: var(--pro-accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--pro-accent);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--pro-accent);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--pro-text-main);
}

.hero-title span.typed {
    color: var(--pro-accent);
    border-right: 3px solid var(--pro-accent);
    animation: cursor-blink 1s infinite alternate;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--pro-text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-pro {
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-pro-primary {
    background: linear-gradient(45deg, var(--pro-accent), var(--color-pink));
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(249, 141, 31, 0.4);
}

.btn-pro-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(249, 141, 31, 0.6);
    color: #fff;
}

.btn-pro-glass {
    background: transparent;
    border: 1px solid var(--pro-glass-border);
    color: var(--pro-text-main);
    background: var(--pro-card-glass);
}

.btn-pro-glass:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--pro-text-main);
}

/* --- 4. Code Window (Dark Mode Only usually better, but valid in Light too) --- */
.code-window-wrapper {
    perspective: 1000px;
}

.code-window {
    background: #1e293b;
    /* Always dark for code */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: var(--pro-shadow);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

/* --- 17. Instagram Story Slider Features --- */
.story-progress-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s;
}

.swiper-slide-active .story-progress-bar {
    opacity: 1;
}

.progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    /* Animated via JS/GSAP when active */
}

/* Story Preview Mode */
.cinematic-slide:hover .slide-overlay {
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* 3D Floating Objects Section */
.hero-3d-object {
    position: absolute;
    right: 10%;
    top: 20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(249, 141, 31, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulse-glow 4s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Neo-Glassmorphism Borders */
.concept-card,
.blog-card-pro {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    background: rgba(20, 20, 30, 0.6);
}

.concept-card:hover {
    border-color: var(--pro-accent);
    box-shadow: 0 0 30px rgba(249, 141, 31, 0.3), inset 0 0 20px rgba(249, 141, 31, 0.1);
}

/* Live Code Editor Animation */
.code-window {
    background: #1e1e2e;
    /* Catppuccin Mocha / Darcula */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
    /* smooth tilt */
}

/* --- 19. Learning Journey Timeline --- */
.timeline-section {
    position: relative;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-point {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background: #1e1e2e;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item.left .timeline-point {
    right: -20px;
}

.timeline-item.right .timeline-point {
    left: -20px;
}

.timeline-item:hover .timeline-point {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(249, 141, 31, 0.4);
    border-color: var(--pro-accent);
}

.step-flair {
    position: absolute;
    top: -20px;
    font-size: 60px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
}

.timeline-item.left .step-flair {
    right: 30px;
}

.timeline-item.right .step-flair {
    left: 30px;
}

.feature-card-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-card-glass:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

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

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left .timeline-point,
    .timeline-item.right .timeline-point {
        left: 0;
        right: auto;
    }

    .timeline-item.left .step-flair,
    .timeline-item.right .step-flair {
        left: 50px;
        right: auto;
    }
}

/* --- Codecademy-style Dot Grid Background --- */
.cinematic-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Deep dark blue/black background */
    background-color: #0b0f19;
    /* Dot Pattern */
    background-image: radial-gradient(var(--pro-dot-color) 1px, transparent 1px);
    background-size: 30px 30px;
    /* Spacing of dots */
}

/* Remove old blur transition bg if present */
.hero-bg-transition {
    display: none;
}

/* Ensure overlay is subtle or removed to show dots */
.hero-overlay-gradient {
    background: linear-gradient(to right, #0b0f19 0%, rgba(11, 15, 25, 0.8) 50%, transparent 100%);
    pointer-events: none;
}

.code-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(5, 45, 98, 0.4) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.icon-box-neon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pro-accent);
    font-size: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(249, 141, 31, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover .icon-box-neon {
    background: var(--pro-accent);
    color: #fff;
    box-shadow: 0 0 25px rgba(249, 141, 31, 0.5);
    transform: translateY(-5px);
}

.code-editor-window-pro {
    background: #1e1e2e;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Fira Code', 'Courier New', monospace;
    overflow: hidden;
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    /* Initial 3D tilt */
    transition: transform 0.5s ease;
}

.code-editor-window-pro:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.editor-header {
    background: #252535;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.window-controls .control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27c93f;
}

.file-tabs {
    display: flex;
    gap: 5px;
}

.file-tabs .tab {
    padding: 5px 15px;
    background: #1e1e2e;
    border-radius: 5px 5px 0 0;
    font-size: 13px;
    color: #a9a9b3;
    cursor: pointer;
}

.file-tabs .tab.active {
    background: #1e1e2e;
    color: #fff;
    border-top: 2px solid var(--pro-accent);
}

.editor-body {
    padding: 20px;
    display: flex;
    height: 300px;
    /* Fixed height for typing area */
}

.line-numbers {
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.2);
    padding-right: 15px;
    user-select: none;
    text-align: right;
    font-size: 14px;
    line-height: 1.6;
}

.code-content {
    color: #dcdcdc;
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: var(--pro-accent);
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.terminal-window {
    background: #151520;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    height: 100px;
}

.terminal-header {
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.terminal-body {
    font-size: 13px;
    color: #27c93f;
    /* Terminal Green */
    font-family: monospace;
}


.code-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-body {
    padding: 25px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
}

/* Code Syntax Colors */
.c-blue {
    color: #38bdf8;
}

.c-purple {
    color: #818cf8;
}

.c-green {
    color: #22c55e;
}

.c-orange {
    color: #f97316;
}

.c-gray {
    color: #64748b;
}

.line {
    display: block;
    counter-increment: linenumber;
}

.line::before {
    content: counter(linenumber);
    color: #475569;
    margin-right: 20px;
    width: 20px;
    display: inline-block;
    text-align: right;
}

/* --- 5. Glass Cards (Features & Courses) --- */
.pro-card {
    background: var(--pro-card-glass);
    border: 1px solid var(--pro-glass-border);
    padding: 30px;
    border-radius: 20px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--pro-shadow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pro-card:hover {
    transform: translateY(-10px);
    border-color: var(--pro-accent);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(249, 141, 31, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: var(--pro-accent);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--pro-text-main);
}

.card-title a {
    color: var(--pro-text-main);
}

.card-text {
    color: var(--pro-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* --- 6. Tech Marquee --- */
.tech-stack-section {
    padding: 40px 0;
    border-top: 1px solid var(--pro-glass-border);
    border-bottom: 1px solid var(--pro-glass-border);
    background: rgba(0, 0, 0, 0.02);
}

body.active-dark-mode .tech-stack-section {
    background: rgba(255, 255, 255, 0.02);
}

.marquee-wrapper {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

.tech-logo {
    margin: 0 40px;
    height: 40px;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.tech-logo:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

/* --- 7. Founder Pro Section --- */
.founder-pro {
    padding: 100px 0;
    position: relative;
}

.founder-card {
    background: var(--pro-card-glass);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--pro-glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--pro-shadow);
}

.founder-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* Square aspect ratio 1:1 */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.founder-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.founder-card:hover .founder-img {
    transform: scale(1.05);
}

.founder-role {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 100px;
    background: rgba(249, 141, 31, 0.1);
    color: var(--pro-accent);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.founder-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--pro-text-main);
}

.founder-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--pro-text-muted);
    margin-bottom: 30px;
}

.founder-socials {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pro-card-glass);
    border: 1px solid var(--pro-glass-border);
    color: var(--pro-text-muted);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--pro-accent);
    color: white;
    transform: translateY(-3px);
}

/* --- 7. Advanced Roadmap (Roadmap.sh Style) --- */
.roadmap-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Mobile Layout (Vertical) */
.roadmap-mobile {
    display: block;
}

@media (min-width: 992px) {
    .roadmap-mobile {
        display: none;
    }

    .roadmap-desktop {
        display: block;
        position: relative;
        height: 1200px;
    }
}

/* Desktop SVG Path */
.roadmap-svg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.roadmap-path-line {
    fill: none;
    stroke: var(--pro-glass-border);
    stroke-width: 4;
    stroke-dasharray: 10, 10;
}

.roadmap-path-active {
    fill: none;
    stroke: var(--pro-accent);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1s ease-out;
}

/* Nodes/Chips */
.roadmap-node {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
    opacity: 0;
    transform: translate(-50%, -30px);
    transition: all 0.5s ease;
}

.roadmap-node.visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.node-content {
    background: var(--pro-bg-dark);
    border: 1px solid var(--pro-glass-border);
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    position: relative;
}

/* Node Connectors (Dots) */
.node-content::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--pro-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--pro-accent);
    /* Position depends on node placement, default center bottom */
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.node-title {
    color: var(--pro-text-main);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: block;
}

.node-desc {
    color: var(--pro-text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.node-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--pro-accent);
    display: block;
}

/* Specific Node Colors */
.node-python {
    border-color: #3776AB;
}

.node-python .node-icon {
    color: #3776AB;
}

.node-django {
    border-color: #092E20;
}

.node-django .node-icon {
    color: #092E20;
    text-shadow: 0 0 10px rgba(9, 46, 32, 0.5);
}

.node-db {
    border-color: #336791;
}

.node-db .node-icon {
    color: #336791;
}

.node-deploy {
    border-color: #F98D1F;
}

.node-deploy .node-icon {
    color: #F98D1F;
}

/* Mobile Fixes */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-pro {
        padding-top: 50px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .code-window-wrapper {
        display: none;
    }

    .founder-pro {
        padding: 60px 0;
    }
}

/* --- 8. Pro Footer --- */
.footer-pro {
    background: #fff;
    padding: 80px 0 30px;
    border-top: 1px solid var(--pro-glass-border);
    position: relative;
    z-index: 10;
}

body.active-dark-mode .footer-pro {
    background: var(--pro-bg-dark);
    /* Improve contrast in dark mode */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    padding-right: 30px;
}

.footer-desc {
    color: var(--pro-text-muted);
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-title {
    color: var(--pro-text-main);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--pro-text-muted);
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--pro-accent);
    transform: translateX(5px);
}

.footer-contact-card {
    background: var(--pro-card-glass);
    border: 1px solid var(--pro-glass-border);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.footer-contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--pro-accent);
}

.footer-contact-card .title {
    color: var(--pro-text-main);
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-contact-card p {
    color: var(--pro-text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pro-text-main);
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--pro-accent);
}

.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(249, 141, 31, 0.1);
    color: #f98d1f;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
}

.online-badge .dot {
    width: 6px;
    height: 6px;
    background: #f98d1f;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(249, 141, 31, 0.7);
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(249, 141, 31, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(249, 141, 31, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(249, 141, 31, 0);
    }
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--pro-glass-border);
}

.copyright {
    color: var(--pro-text-muted);
    font-size: 14px;
    margin: 0;
}

.copyright-small {
    font-size: 12px;
    opacity: 0.7;
}

/* --- 9. Mobile Responsiveness --- */
@media (max-width: 991px) {
    .footer-pro {
        padding: 50px 0 20px;
    }

    .footer-brand {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
        margin-top: 15px;
    }

    .footer-title {
        margin-top: 10px;
        font-size: 16px;
    }

    .footer-contact-card {
        margin-top: 20px;
        text-align: center;
        padding: 25px;
    }

    .contact-link {
        justify-content: center;
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-content-wrapper {
        text-align: center;
        padding-top: 40px;
        /* Add spacing from header */
    }

    .hero-btns {
        justify-content: center;
    }

    /* Ensure badge is centered */
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-bottom {
        text-align: center;
        margin-top: 40px;
    }

    /* Stack columns nicely */
    .row.g-5>div {
        margin-bottom: 10px;
    }

    .footer-links a {
        padding: 5px 0;
        display: block;
    }

    /* Center platforma/kompaniya links */
    .col-6 .footer-title,
    .col-6 .footer-links {
        text-align: left;
        /* Keep left aligned for lists usually looks better, or center if desired */
        padding-left: 10px;
    }
}

@media (max-width: 575px) {
    .col-6 {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .col-6 .footer-title,
    .col-6 .footer-links {
        text-align: center;
        padding-left: 0;
    }

    .footer-title {
        margin-bottom: 15px;
        text-transform: uppercase;
        font-size: 14px;
        letter-spacing: 1px;
    }

    /* Hero Mobile tweaks */
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

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

/* --- 10. Pro Slider (Swiper) --- */
.slider-container-pro {
    position: relative;
    padding-top: 20px;
    overflow: hidden;
}

.swiper-slide-pro {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 650px;
    padding: 20px;
}

/* --- 11. Video Section --- */
.video-section-pro {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--pro-bg-dark), rgba(15, 23, 42, 0.8), var(--pro-bg-dark));
    z-index: 1;
}

.video-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.video-popup-btn {
    width: 80px;
    height: 80px;
    background: rgba(249, 141, 31, 0.2);
    border: 1px solid var(--pro-accent);
    color: var(--pro-accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    animation: pulse-orange 3s infinite;
}

.video-popup-btn:hover {
    background: var(--pro-accent);
    color: #fff;
    transform: scale(1.1);
}

/* --- 12. Blog Pro Section --- */
.blog-card-pro {
    background: var(--pro-card-glass);
    border: 1px solid var(--pro-glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-pro:hover {
    transform: translateY(-10px);
    border-color: var(--pro-accent);
    box-shadow: var(--pro-shadow);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 13px;
    color: var(--pro-accent);
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pro-text-main);
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-read-btn {
    margin-top: auto;
    color: var(--pro-text-main);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.blog-read-btn:hover {
    color: var(--pro-accent);
    gap: 10px;
}

/* --- 13. Runtime (Problem) Section --- */
.runtime-card-pro {
    background: var(--pro-card-glass);
    border: 1px solid var(--pro-glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.runtime-card-pro:hover {
    transform: translateX(10px);
    border-color: var(--pro-accent);
    background: rgba(249, 141, 31, 0.05);
}

.problem-info h4 {
    color: var(--pro-text-main);
    font-size: 16px;
    margin: 0 0 5px;
}

.problem-meta {
    font-size: 13px;
    color: var(--pro-text-muted);
}

.problem-action {
    color: var(--pro-accent);
    font-size: 20px;
}

/* --- 14. Concepts (Basics) Section --- */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.concept-card {
    background: var(--pro-card-glass);
    border: 1px solid var(--pro-glass-border);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.concept-card:hover {
    transform: translateY(-5px);
    border-color: var(--pro-accent);
    box-shadow: 0 10px 30px -10px rgba(249, 141, 31, 0.3);
}

.concept-icon {
    font-size: 32px;
    color: var(--pro-text-main);
    margin-bottom: 15px;
    display: block;
}

.concept-name {
    color: var(--pro-text-main);
    font-weight: 600;
    font-size: 14px;
}

/* New Section Separators with SVG */
.section-separator {
    height: 100px;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.05;
    margin: 40px 0;
}

/* --- 15. Theme Adaptive Text --- */
.pro-text-adaptive {
    color: var(--pro-text-main);
    transition: color 0.3s ease;
}

.pro-text-adaptive-muted {
    color: var(--pro-text-muted);
}

/* Force white text only in dark mode or specific dark backgrounds if needed */
/* But here we want it to adapt. */

/* Runtime Slide Background - Transparent/Subtle in Light, Gradient in Dark */
.runtime-slide-bg {
    background: radial-gradient(circle at center, rgba(249, 141, 31, 0.05) 0%, transparent 70%);
}


body.active-dark-mode .runtime-slide-bg {
    background: transparent;
}

/* Section specific overrides if sections have dark backgrounds */
/* Video section always has dark overlay, so keep text white there */
.video-section-pro .title,
.video-section-pro .text-white {
    color: #fff !important;
}

/* Slider Typography Enhancements */
.swiper-slide-pro .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
}

/* Floating Elements Animation in Slider */
.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.float-1 {
    width: 300px;
    height: 300px;
    background: rgba(249, 141, 31, 0.1);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.float-2 {
    width: 200px;
    height: 200px;
    background: rgba(5, 45, 98, 0.1);
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

.video-bg-lottie {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

/* --- Codecademy-style Dot Grid Background (Global for Home) --- */
.rbt-main-wrapper {
    background-color: var(--pro-main-bg) !important;
    background-image: radial-gradient(var(--pro-dot-color) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

.cinematic-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 95vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: transparent;
    /* Show wrapper grid */
}

.hero-bg-transition {
    display: none;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(var(--color-primary-rgb), 0.05) 0%, var(--pro-main-bg) 70%);
    z-index: 1;
    pointer-events: none;
}

.cinematic-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* --- 16. Pro Cinematic Hero (Mohirdev Style) --- */
.pro-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 95vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0;
}

.pro-hero-content {
    position: relative;
    z-index: 10;
}

.pro-badge-mini {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    color: var(--pro-accent);
    font-size: 14px;
    font-weight: 600;
}

.pro-badge-mini .pulse {
    width: 8px;
    height: 8px;
    background: var(--pro-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.4);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(var(--color-primary-rgb), 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0);
    }
}

.hero-main-title {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--pro-text-main);
    letter-spacing: -1px;
}

.hero-main-title span {
    color: var(--pro-accent);
    background: linear-gradient(120deg, var(--pro-accent), #ff9800);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stunning Glow for Composition */
.hero-composition-pro::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--pro-text-muted);
    max-width: 500px;
    line-height: 1.6;
}

/* ========== ADVANCED GLASS BUTTON (UQUV) ========== */

.button-wrap {
    position: relative;
    z-index: 10;
    border-radius: 999vw;
    background: transparent;
    pointer-events: none;
    transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
}

.button-shadow {
    --shadow-cuttoff-fix: 2em;
    position: absolute;
    width: calc(100% + var(--shadow-cuttoff-fix));
    height: calc(100% + var(--shadow-cuttoff-fix));
    top: calc(0% - var(--shadow-cuttoff-fix) / 2);
    left: calc(0% - var(--shadow-cuttoff-fix) / 2);
    filter: blur(clamp(2px, 0.125em, 12px));
    -webkit-filter: blur(clamp(2px, 0.125em, 12px));
    overflow: visible;
    pointer-events: none;
}

.button-shadow::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: 999vw;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    top: calc(var(--shadow-cuttoff-fix) - 0.5em);
    left: calc(var(--shadow-cuttoff-fix) - 0.875em);
    padding: 0.125em;
    box-sizing: border-box;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
    overflow: visible;
    opacity: 1;
}

.btn-uquv {
    --border-width: clamp(1px, 0.0625em, 4px);
    all: unset;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    pointer-events: auto;
    z-index: 3;
    background: linear-gradient(-75deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.02));
    border-radius: 999vw;
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.3),
        0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
        0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.1),
        0 0 0 0 rgba(255, 255, 255, 1);
    backdrop-filter: blur(8px);
    /* Real mirror glass blur */
    -webkit-backdrop-filter: blur(8px);
    transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-uquv span {
    position: relative;
    display: block;
    user-select: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    /* Slightly wider for better readability at smaller size */
    font-weight: 700;
    font-size: clamp(1.1rem, 1.8vw, 1.8rem);
    /* Reduced size */
    color: var(--pro-text-main);
    text-shadow: 0em 0.2em 0.05em rgba(0, 0, 0, 0.1);
    transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
    padding-inline: 2rem;
    /* Adjusted padding */
    padding-block: 0.75em;
    z-index: 5;
}

.btn-uquv:hover {
    transform: scale(0.975);
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
        0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.3),
        0 0 0 0 rgba(255, 255, 255, 1);
}

.btn-uquv span::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    width: calc(100% - var(--border-width));
    height: calc(100% - var(--border-width));
    top: calc(0% + var(--border-width) / 2);
    left: calc(0% + var(--border-width) / 2);
    box-sizing: border-box;
    border-radius: 999vw;
    overflow: clip;
    background: linear-gradient(var(--angle-2, -45deg),
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 40% 50%,
            rgba(255, 255, 255, 0) 55%);
    z-index: 3;
    mix-blend-mode: screen;
    pointer-events: none;
    background-size: 200% 200%;
    background-position: 0% 50%;
    background-repeat: no-repeat;
    transition: background-position 500ms ease, --angle-2 500ms ease;
}

.btn-uquv:hover span::after {
    background-position: 25% 50%;
}

.btn-uquv::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: 999vw;
    width: calc(100% + var(--border-width));
    height: calc(100% + var(--border-width));
    top: calc(0% - var(--border-width) / 2);
    left: calc(0% - var(--border-width) / 2);
    padding: var(--border-width);
    box-sizing: border-box;
    background: conic-gradient(from var(--angle-1) at 50% 50%,
            rgba(255, 255, 255, 0.5),
            rgba(255, 255, 255, 0) 5% 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60% 95%,
            rgba(255, 255, 255, 0.5)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    /* Support for older webkit */
    transition: all 400ms ease, --angle-1 500ms ease;
}

.btn-uquv:hover::after {
    --angle-1: -125deg;
}

.button-wrap:has(.btn-uquv:hover) .button-shadow {
    filter: blur(8px);
}

.button-wrap:has(.btn-uquv:active) {
    transform: rotate3d(1, 0, 0, 15deg);
}



/* Nav Controls Removed from HTML as requested, using Card click now */



/* Hero Composition (The stunning 3D part) */
.hero-composition-pro {
    position: relative;
    width: 100%;
    height: 500px;
}

.comp-box {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.comp-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-box {
    width: 320px;
    height: 240px;
    top: 50px;
    right: 50px;
    z-index: 2;
}

.sub-box {
    width: 380px;
    height: 280px;
    bottom: 50px;
    left: 0;
    z-index: 3;
}

.box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.4), transparent);
}

.floating-icon-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #60a5fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
    z-index: 4;
}

.node-1 {
    bottom: 20px;
    left: 360px;
    animation: float 4s ease-in-out infinite;
}

.node-2 {
    top: 20px;
    right: 380px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    animation: float 5s ease-in-out infinite reverse;
}

@media (max-width: 991px) {
    .hero-main-title {
        font-size: 3.5rem;
        text-align: center;
    }

    .hero-subtext {
        text-align: center;
        margin: 20px auto;
    }

    .hero-action-btns {
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-mohir-outline {
        margin-left: 0 !important;
    }

    .hero-composition-pro {
        height: 400px;
        margin-top: 60px;
    }

    .main-box {
        width: 260px;
        height: 180px;
        right: 0;
    }

    .sub-box {
        width: 300px;
        height: 220px;
        bottom: 0;
    }
}

/* --- 8. Pro Vertical 3D Carousel (Fixed & Animated) --- */
.vertical-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    /* Reduced height for compact stack */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
    z-index: 50;
    pointer-events: auto;
    margin-top: 50px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Card Base Style */
.vertical-carousel-wrapper .card {
    position: absolute;
    width: 520px;
    height: 290px;
    background: #1e1e2e;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);

    left: 50%;
    top: 50%;
    margin-left: -260px;
    margin-top: -145px;

    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    /* Ultra smooth ease-out */
    transform-origin: center center;
    cursor: pointer;
    z-index: 1;
    pointer-events: auto !important;
    backface-visibility: hidden;
}

.vertical-carousel-wrapper .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

.vertical-carousel-wrapper .card.center img {
    opacity: 1;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.card.center .card-overlay {
    opacity: 1;
}

/* --- 3D Stacking Logic (Fitted for "Pro" Cinematic Look) --- */

.card.center {
    z-index: 30;
    opacity: 1;
    transform: translateZ(200px) scale(1.15);
    /* Pushed forward, significantly larger */
    border-color: var(--pro-accent);
    box-shadow: 0 40px 100px rgba(var(--color-primary-rgb, 249, 141, 31), 0.5);
}

.card.up-1 {
    z-index: 20;
    opacity: 0.5;
    transform: translateY(-80px) translateZ(-150px) scale(0.85);
    /* Increased from 0.65 */
    filter: blur(2px) grayscale(20%);
}

.card.up-2 {
    z-index: 10;
    opacity: 0.2;
    transform: translateY(-140px) translateZ(-400px) scale(0.7);
    /* Increased from 0.45 */
    filter: blur(5px) grayscale(50%);
}

.card.down-1 {
    z-index: 20;
    opacity: 0.5;
    transform: translateY(80px) translateZ(-150px) scale(0.85);
    /* Increased from 0.65 */
    filter: blur(2px) grayscale(20%);
}

.card.down-2 {
    z-index: 10;
    opacity: 0.2;
    transform: translateY(140px) translateZ(-400px) scale(0.7);
    /* Increased from 0.45 */
    filter: blur(5px) grayscale(50%);
}

.card.hidden {
    opacity: 0;
    z-index: 0;
    transform: scale(0.3) translateZ(-600px);
    visibility: hidden;
    pointer-events: none;
}

/* Carousel Dots Pagination */
.carousel-dots-pro {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 80px;
    /* Lowered position */
    position: relative;
    z-index: 100;
}

.dots-mini {
    display: flex;
    gap: 15px;
    /* Slightly more gap */
    background: transparent;
    /* Background removed */
    padding: 10px 0;
    border: none;
    /* Border removed */
    backdrop-filter: none;
    /* Blur removed */
}

.dots-mini .dot {
    width: 8px;
    /* Slightly smaller, more elegant */
    height: 8px;
    border-radius: 50%;
    background: var(--pro-carousel-dot);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dots-mini .dot.active {
    background: var(--pro-accent);
    transform: scale(1.6);
    box-shadow: 0 0 20px var(--pro-accent);
}

.dots-mini .dot:hover {
    background: var(--pro-accent);
    opacity: 0.5;
}

/* Responsive Mobile */
@media (max-width: 991px) {
    .vertical-carousel-wrapper {
        height: 400px;
    }

    .carousel-container {
        width: 100%;
        max-width: 320px;
    }

    .vertical-carousel-wrapper .card {
        width: 300px;
        height: 180px;
        margin-left: -150px;
        margin-top: -90px;
    }

    .card.center {
        transform: translateZ(50px) scale(1.1);
    }

    .card.up-1 {
        transform: translateY(-90px) translateZ(-50px) scale(0.7);
    }

    .card.down-1 {
        transform: translateY(90px) translateZ(-50px) scale(0.7);
    }

    .card.up-2,
    .card.down-2 {
        display: none;
        /* Hide background layers on mobile for clean look */
    }


    .carousel-dots-pro {
        margin-top: 50px;
    }
}

/* --- 17. Live Code Practice Section (Ultra Pro) --- */
.live-code-section {
    position: relative;
    z-index: 10;
}

.code-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(249, 141, 31, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.code-editor-window-pro {
    background: rgba(15, 23, 42, 0.4);
    /* Deeper glass */
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Almost invisible border */
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.6);
    transition: all 0.5s ease;
    margin: 20px;
}

.code-editor-window-pro:hover {
    box-shadow: 0 60px 120px -20px rgba(249, 141, 31, 0.15);
}

.editor-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27c93f;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.file-tabs {
    display: flex;
    gap: 20px;
}

.tab {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.tab.active {
    color: #fff;
    font-weight: 600;
}

.run-btn-pro {
    background: var(--pro-accent);
    border: none;
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(249, 141, 31, 0.3);
}

.run-btn-pro:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.run-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    display: none;
}

.editor-body {
    display: flex;
    padding: 24px;
    height: 380px;
    /* Fixed height for consistent look */
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Hide overflow from body, scroll inside fields if needed */
}

.line-numbers {
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.15);
    text-align: right;
    padding-right: 20px;
    font-size: 12px !important;
    /* Forced 12px */
    line-height: 1.5 !important;
    user-select: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 40px;
}

/* Cursor Animation */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

.cursor-blink {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: var(--pro-accent);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

.code-editor-window-pro {
    background: #0f172a;
    /* Force Dark Background for Visibility in Light Mode */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Strong shadow */
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    min-height: 450px;
    /* Taller window */
    display: flex;
    flex-direction: column;
}

.code-field {
    flex-grow: 1;
    color: #fff;
    font-size: 12px !important;
    /* Forced 12px */
    line-height: 1.5 !important;
    outline: none;
    padding-left: 15px;
    white-space: pre;
    font-family: 'Fira Code', monospace;
    background: transparent;
    border: none;
    width: 100%;
    resize: none;
    overflow: hidden;
}

.terminal-window {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 25px;
}

.terminal-header {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
    font-weight: 800;
}

.terminal-body {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    min-height: 80px;
    max-height: 180px;
    overflow-y: auto;
}

.terminal-body .output-line {
    margin-bottom: 6px;
    display: block;
}

.terminal-body .error-text {
    color: #ff5f56;
}

.terminal-body .success-text {
    color: #27c93f;
}

.terminal-body .info-text {
    color: #60a5fa;
    opacity: 0.7;
}

/* Syntax highlighting with Neon Glow */
.token.keyword {
    color: #ff5f56;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 95, 86, 0.4);
}

.token.function {
    color: #60a5fa;
    text-shadow: 0 0 5px rgba(96, 165, 250, 0.4);
}

.token.string {
    color: #27c93f;
    text-shadow: 0 0 5px rgba(39, 201, 63, 0.4);
}

.token.number {
    color: #ffbd2e;
}

.token.class {
    color: #ffbd2e;
    font-style: italic;
    text-shadow: 0 0 5px rgba(255, 189, 46, 0.4);
}

.token.comment {
    color: #6b7280;
    font-style: italic;
}

.token.operator {
    color: #ff79c6;
}

.token.builtin {
    color: #f8f8f2;
}

/* Custom Scrollbar for Pro Look */
.editor-body ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.editor-body ::-webkit-scrollbar-track {
    background: transparent;
}

.editor-body ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.editor-body ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Status Badge */
.status-badge-pro {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(39, 201, 63, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(39, 201, 63, 0.2);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(39, 201, 63, 0.2);
}

/* Feature neon styling */
.icon-box-neon {
    width: 45px;
    height: 45px;
    background: rgba(249, 141, 31, 0.1);
    border: 1px solid rgba(249, 141, 31, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pro-accent);
    font-size: 20px;
    box-shadow: 0 0 20px rgba(249, 141, 31, 0.1);
}

/* Adaptive Text for Pro Section */
.pro-text-adaptive {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

/* Dark Mode Overrides (Covering common template classes) */
body.active-dark-mode .pro-text-adaptive,
body.dark-mode .pro-text-adaptive,
body.dark-version .pro-text-adaptive,
body.theme-dark .pro-text-adaptive,
[data-theme="dark"] .pro-text-adaptive {
    color: #ffffff !important;
}

/* Custom Animated Theme Switcher */
.light-dark-toggle {
    --width: 5rem;
    /* Compact size */
    width: var(--width);
    aspect-ratio: 1.75 / 1;
    border-radius: calc(var(--width) / 1.75);
    background-color: var(--pro-accent);
    /* Orange: #f98d1f */
    cursor: pointer;
    transition: background-color 0.2s;
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.light-dark-toggle-checked {
    background-color: #0f172a;
    /* Dark background when checked */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.light-dark-toggle .toggle {
    background-color: white;
    aspect-ratio: 1;
    height: 70%;
    border-radius: 100%;
    position: relative;
    transition: transform 0.7s, background-color 0.5s;
    transform: translateY(20%) translateX(20%);
}

.light-dark-toggle-checked .toggle {
    background-color: transparent;
    transform: translateY(20%) translateX(120%);
}

.light-dark-toggle svg {
    position: absolute;
    right: 0;
    height: 100%;
}

/* Light Items Items */
.light-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.light-items .circle1 {
    height: 20%;
    aspect-ratio: 1;
    background-color: white;
    border-radius: 100%;
    animation: circle1in 0.6s ease-out forwards;
}

.light-dark-toggle-checked .light-items .circle1 {
    animation: circle1out 0.2s linear forwards;
}

.light-items .circle2 {
    height: 7%;
    aspect-ratio: 1;
    background-color: white;
    border-radius: 100%;
    transform: translateY(350%) translateX(1500%);
    animation: circle2in 0.8s ease-out forwards;
}

.light-dark-toggle-checked .light-items .circle2 {
    animation: circle2out 0.2s ease-in forwards;
}

@keyframes circle1in {

    0%,
    60% {
        transform: translateY(100%) translateX(450%);
        opacity: 0;
    }

    61% {
        transform: translateY(100%) translateX(450%);
        opacity: 1;
    }

    100% {
        transform: translateY(100%) translateX(600%);
    }
}

@keyframes circle1out {
    0% {
        transform: translateY(100%) translateX(600%);
    }

    99% {
        transform: translateY(100%) translateX(400%);
        opacity: 1;
    }

    100% {
        transform: translateY(100%) translateX(450%);
        opacity: 0;
    }
}

@keyframes circle2out {
    0% {
        transform: translateY(350%) translateX(1500%);
    }

    99% {
        transform: translateY(350%) translateX(1400%);
        opacity: 1;
    }

    100% {
        transform: translateY(350%) translateX(1400%);
        opacity: 0;
    }
}

@keyframes circle2in {

    0%,
    40% {
        transform: translateY(350%) translateX(1500%);
        opacity: 0;
    }

    41% {
        transform: translateY(350%) translateX(450%);
        opacity: 1;
    }

    100% {
        transform: translateY(350%) translateX(1500%);
    }
}

/* Dark Items */
.dark-items {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.dark-items .circle1,
.dark-items .circle2,
.dark-items .circle3 {
    height: 5%;
    aspect-ratio: 1;
    background-color: white;
    border-radius: 100%;
    position: absolute;
}

.dark-items .circle1 {
    transform: translateY(500%) translateX(1750%);
    animation: dark-circle1out 0.2s ease-out forwards;
}

.light-dark-toggle-checked .dark-items .circle1 {
    animation: dark-circle1in 0.5s ease-in forwards;
}

@keyframes dark-circle1in {
    0% {
        transform: translateY(500%) translateX(2000%);
    }

    100% {
        transform: translateY(500%) translateX(1750%);
    }
}

@keyframes dark-circle1out {
    0% {
        transform: translateY(500%) translateX(1750%);
    }

    100% {
        transform: translateY(500%) translateX(2000%);
        opacity: 0;
    }
}

.dark-items .circle2 {
    transform: translateY(700%) translateX(1300%);
    animation: dark-circle2out 0.2s ease-out forwards;
}

.light-dark-toggle-checked .dark-items .circle2 {
    animation: dark-circle2in 0.5s ease-in forwards;
}

@keyframes dark-circle2in {
    0% {
        transform: translateY(700%) translateX(1600%);
    }

    100% {
        transform: translateY(700%) translateX(1300%);
    }
}

@keyframes dark-circle2out {
    0% {
        transform: translateY(700%) translateX(1300%);
    }

    100% {
        transform: translateY(700%) translateX(2000%);
        opacity: 0;
    }
}

.dark-items .circle3 {
    transform: translateY(800%) translateX(600%);
    animation: dark-circle3out 0.2s ease-out forwards;
}

.light-dark-toggle-checked .dark-items .circle3 {
    animation: dark-circle3in 0.5s ease-in forwards;
}

@keyframes dark-circle3in {
    0% {
        transform: translateY(800%) translateX(1700%);
    }

    100% {
        transform: translateY(800%) translateX(600%);
    }
}

@keyframes dark-circle3out {
    0% {
        transform: translateY(800%) translateX(600%);
    }

    100% {
        transform: translateY(800%) translateX(2000%);
        opacity: 0;
    }
}

.dark-items .star1,
.dark-items .star2 {
    height: 16%;
    aspect-ratio: 1;
    position: absolute;
}

.dark-items .star1 {
    transform: translateY(10%) translateX(-750%);
    animation: star1out 0.2s ease-out forwards;
}

.light-dark-toggle-checked .dark-items .star1 {
    animation: star1in 0.5s ease-in forwards;
}

@keyframes star1in {
    0% {
        transform: translateY(10%) translateX(-450%);
    }

    100% {
        transform: translateY(10%) translateX(-750%);
    }
}

@keyframes star1out {
    0% {
        transform: translateY(10%) translateX(-750%);
    }

    100% {
        transform: translateY(10%) translateX(-450%);
        opacity: 0;
    }
}

.dark-items .star2 {
    transform: translateY(300%) translateX(-630%);
    animation: star2out 0.2s ease-out forwards;
}

.light-dark-toggle-checked .dark-items .star2 {
    animation: star2in 0.5s ease-in forwards;
}

@keyframes star2in {
    0% {
        transform: translateY(300%) translateX(-450%);
    }

    100% {
        transform: translateY(300%) translateX(-630%);
    }
}

@keyframes star2out {
    0% {
        transform: translateY(300%) translateX(-630%);
    }

    100% {
        transform: translateY(300%) translateX(-450%);
        opacity: 0;
    }
}