:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    pointer-events: none;
    animation: float 20s infinite;
}

body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    pointer-events: none;
    animation: float 15s infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.user-avatar {
    position: relative !important;
    overflow: visible !important;
    z-index: 100;
}

.nav-frame-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px !important;
    height: 50px !important;
    pointer-events: none !important;
    z-index: 1000 !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.user-avatar img,
.user-avatar span {
    border-radius: 50%;
    position: relative;
    z-index: 90;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mobile-profile-info .user-avatar .nav-frame-overlay {
    width: 140% !important;
    height: 140% !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-active {
    color: var(--text) !important;
    background: rgba(99, 102, 241, 0.15) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
}

.logo-link {
    display: block;
    transition: opacity 0.3s ease;
}

.logo-img {
    height: 200px;
    width: auto;
    display: block;
    margin-top: -75px;
    margin-bottom: -75px;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links button,
.nav-links .nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
}

.nav-links button:hover,
.nav-links .nav-btn:hover {
    color: var(--text);
    background: var(--glass-bg);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 89px;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        gap: 16px;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 99;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links button,
    .nav-links .nav-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 16px;
    }

    .user-menu {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
}

.btn {
    padding: 12px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 48px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 80px 0;
}

.stat-card {
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.dropdown-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--dark-light);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000 !important;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
}

.dropdown-item:hover {
    background: var(--glass-bg);
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-icon {
    font-size: 18px;
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 4px 0;
}

.dropdown-item.logout {
    color: #fca5a5;
}

.carousel-section {
    margin: 80px 0;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    cursor: grab;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.1s linear;
    user-select: none;
}

.course-card {
    min-width: 350px;
    padding: 32px;
    border-radius: 20px;
    transition: all 0.3s;
}

.course-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.course-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.course-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 80px 0;
}

.feature-card {
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
}

.quiz-info-section {
    padding: 100px 0;
}

.quiz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.quiz-features-list {
    list-style: none;
    margin-bottom: 40px;
}

.quiz-features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.quiz-features-list span {
    color: var(--primary);
    font-weight: bold;
}

.quiz-visual {
    position: relative;
    perspective: 1000px;
}

.quiz-card-mockup {
    height: 300px;
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: 0.5s;
}

.quiz-card-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: scan 3s infinite linear;
    z-index: 2;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.code-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    border-radius: 4px;
}

.code-line.highlight {
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.partners-section {
    padding: 80px 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.partners-track {
    display: flex;
    gap: 100px;
    animation: scrollPartners 25s linear infinite;
    width: max-content;
    will-change: transform;
}

.partner-logo {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.3;
    transition: all 0.4s ease;
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
    text-transform: uppercase;
}

.partner-logo:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 50px));
    }
}

.certificate-section {
    padding: 80px 0;
    background: radial-gradient(
            ellipse 80% 50% at 50% 50%,
            rgba(99, 102, 241, 0.08),
            transparent
    );
    position: relative;
    overflow: hidden;
}

.certificate-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(
            circle,
            rgba(99, 102, 241, 0.15),
            transparent 70%
    );
    border-radius: 50%;
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50%) scale(1.1);
        opacity: 1;
    }
}

.cert-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
}

.cert-image {
    position: relative;
    perspective: 1500px;
}

.cert-wrapper {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1.6;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    position: relative;
    padding: 50px;
    box-shadow:
            0 30px 80px rgba(0, 0, 0, 0.4),
            0 10px 30px rgba(99, 102, 241, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    background-image:
            repeating-linear-gradient(
                    0deg,
                    rgba(99, 102, 241, 0.03) 0px,
                    transparent 1px,
                    transparent 20px
            ),
            repeating-linear-gradient(
                    90deg,
                    rgba(99, 102, 241, 0.03) 0px,
                    transparent 1px,
                    transparent 20px
            );
}

.cert-wrapper::before {
    content: '';
    position: absolute;
    inset: 15px;
    border: 3px solid #6366f1;
    border-radius: 12px;
    opacity: 0.4;
    pointer-events: none;
}

.cert-wrapper::after {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    pointer-events: none;
}

.cert-wrapper:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
    box-shadow:
            0 40px 100px rgba(0, 0, 0, 0.5),
            0 20px 50px rgba(99, 102, 241, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.cert-logo-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
    width: 250px;
    filter: grayscale(100%);
    pointer-events: none;
}

.cert-content-preview {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.cert-title {
    font-size: 40px;
    font-weight: 900;
    color: #6366f1;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 8px;
}

.cert-sub {
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 30px;
}

.cert-name {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Space Grotesk', sans-serif;
    border-bottom: 2px solid #cbd5e1;
    padding: 0 30px 10px;
}

.cert-text {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cert-text .section-title {
    text-align: left;
    margin-bottom: 0;
    font-size: 48px;
    line-height: 1.1;
}

.cert-text .hero-description {
    text-align: left;
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    max-width: 500px;
}

.cert-text .stat-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    border-radius: 16px;
    background: linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.1),
            rgba(139, 92, 246, 0.1)
    );
    border: 1px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(20px);
}

.cert-text .stat-card .stat-number {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.cert-text .stat-card::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    color: white;
    font-weight: 900;
}

.about-preview-section {
    padding: 80px 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-glow-box {
    width: 100%;
    height: 450px;
    border-radius: 32px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;

    background: linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.1) 0%,
            rgba(139, 92, 246, 0.08) 50%,
            rgba(236, 72, 153, 0.1) 100%
    );
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
            0 25px 60px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);

    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.about-glow-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
            circle at 30% 30%,
            rgba(99, 102, 241, 0.2),
            transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s;
}

.about-glow-box:hover::before {
    opacity: 1;
}

.about-glow-box:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
            0 35px 80px rgba(0, 0, 0, 0.4),
            0 0 100px rgba(99, 102, 241, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.about-content-inner {
    position: relative;
    z-index: 10;
}

.mini-label {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 700;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    margin-bottom: 16px;
}

.about-content-inner h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.floating-icons {
    position: absolute;
    inset: 0;
}

.floating-icons .icon-orb {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.icon-orb:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(99, 102, 241, 0.5);
}

.icon-orb.i1 {
    top: 15%;
    left: 8%;
    animation: floatOrb 7s ease-in-out infinite;
}

.icon-orb.i2 {
    top: 8%;
    right: 15%;
    animation: floatOrb 9s ease-in-out infinite;
    animation-delay: -2s;
}

.icon-orb.i3 {
    bottom: 35%;
    right: 8%;
    animation: floatOrb 8s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-25px) rotate(3deg);
    }
}

.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-text-content .section-title {
    text-align: left;
    margin-bottom: 0;
    font-size: 48px;
}

.about-text-content .hero-description {
    text-align: left;
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
}

.faq-preview-section {
    padding: 60px 0 100px;
}

.faq-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px;
    border-radius: 40px;
    gap: 80px;
    position: relative;
    overflow: hidden;

    background: linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.08) 0%,
            rgba(139, 92, 246, 0.06) 50%,
            rgba(236, 72, 153, 0.08) 100%
    );
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);

    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
            circle at 80% 50%,
            rgba(236, 72, 153, 0.15),
            transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s;
}

.faq-box:hover::before {
    opacity: 1;
}

.faq-box:hover {
    transform: translateY(-8px);
    box-shadow:
            0 35px 80px rgba(0, 0, 0, 0.4),
            0 0 80px rgba(99, 102, 241, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-info .section-title {
    text-align: left;
    margin: 0;
    font-size: 48px;
    line-height: 1.1;
}

.faq-info .stat-label {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 600px;
}

.faq-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 10;
}

.faq-icon-animation {
    position: relative;
    width: 140px;
    height: 100px;
}

.msg-bubble {
    position: absolute;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 32px;
    backdrop-filter: blur(10px);
    box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.msg-bubble:hover {
    transform: scale(1.1);
}

.msg-bubble:first-child {
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50% 50% 0 50%;
    animation: bounce 3s ease-in-out infinite;
}

.msg-bubble:last-child {
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    border-radius: 50% 50% 50% 0;
    animation: bounce 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.faq-action .btn {
    min-width: 200px;
    font-size: 16px;
    padding: 16px 40px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

footer {
    margin-top: 100px;
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 15px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 1200px) {
    .cert-flex,
    .about-grid {
        gap: 60px;
    }

    .faq-box {
        padding: 60px;
        gap: 60px;
    }
}

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

    .cert-flex {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .cert-image {
        order: 2;
    }

    .cert-text {
        order: 1;
        align-items: center;
    }

    .cert-text .section-title,
    .cert-text .hero-description {
        text-align: center;
    }

    .cert-wrapper {
        margin: 0 auto;
        transform: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-visual {
        order: 2;
    }

    .about-text-content {
        order: 1;
        align-items: center;
    }

    .about-text-content .section-title,
    .about-text-content .hero-description {
        text-align: center !important;
    }

    .about-glow-box {
        height: 380px;
    }

    .faq-box {
        flex-direction: column;
        text-align: center;
        padding: 50px;
        gap: 40px;
    }

    .faq-info .section-title {
        text-align: center !important;
    }

    .faq-info .stat-label {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .course-card {
        min-width: 280px;
    }

    .footer-links {
        gap: 40px;
    }

    .certificate-section {
        padding: 80px 0;
    }

    .cert-text .section-title {
        font-size: 36px;
    }

    .cert-wrapper {
        max-width: 100%;
        padding: 30px;
    }

    .cert-title {
        font-size: 28px;
    }

    .cert-name {
        font-size: 24px;
    }

    .about-preview-section {
        padding: 80px 0;
    }

    .about-grid {
        gap: 40px;
    }

    .about-text-content .section-title {
        font-size: 36px;
    }

    .about-glow-box {
        height: 320px;
        padding: 40px;
    }

    .icon-orb {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .faq-preview-section {
        padding: 60px 0 80px;
    }

    .faq-box {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .faq-info .section-title {
        font-size: 32px;
    }

    .faq-info .stat-label {
        font-size: 16px;
    }

    .faq-icon-animation {
        width: 100px;
        height: 80px;
    }

    .msg-bubble {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .cert-text .stat-card {
        padding: 16px 24px;
    }

    .cert-text .stat-card .stat-number {
        font-size: 14px;
    }

    .about-glow-box {
        height: 280px;
        padding: 30px;
    }

    .about-content-inner h3 {
        font-size: 20px;
    }

    .icon-orb {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.gamification-section {
    padding: 120px 0;
    position: relative;
}

.gamification-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.gamification-showcase {
    position: relative;
    padding: 48px;
    border-radius: 24px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.xp-display {
    margin-bottom: 48px;
    animation: slideInDown 0.8s ease-out;
}

.xp-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.level-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.xp-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.xp-bar-container {
    position: relative;
    height: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 20px;
    position: relative;
    animation: fillBar 2s ease-out;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.xp-sparkle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: sparkle 1.5s infinite;
}

@keyframes fillBar {
    from { width: 0%; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.5); }
}

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

.badges-preview {
    position: relative;
    height: 250px;
    margin-bottom: 32px;
}

.badge-orb {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.badge-orb:hover {
    transform: scale(1.1) translateY(-5px);
}

.badge-emoji {
    font-size: 36px;
    position: relative;
    z-index: 2;
}

.badge-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent);
    animation: pulse 2s infinite;
}

.badge-1 {
    top: 20px;
    left: 20%;
    animation: float 3s infinite ease-in-out;
}

.badge-2 {
    top: 80px;
    right: 15%;
    animation: float 4s infinite ease-in-out 0.5s;
}

.badge-3 {
    bottom: 60px;
    left: 25%;
    animation: float 3.5s infinite ease-in-out 1s;
}

.badge-4 {
    bottom: 20px;
    right: 20%;
    animation: float 4.5s infinite ease-in-out 1.5s;
}

.badge-5 {
    bottom: 35px;
    left: 20%;
    animation: float 2.5s infinite ease-in-out 1.5s;
}

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

.achievement-popup {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    animation: slideInUp 0.6s ease-out 0.5s both;
}

.achievement-icon {
    font-size: 32px;
    animation: bounce 1s infinite 1s;
}

.achievement-text {
    flex: 1;
}

.achievement-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.achievement-desc {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.gamification-content {
    padding-left: 24px;
}

.gamification-features {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gamification-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon-mini {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: 12px;
    font-size: 24px;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.feature-mini-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.feature-mini-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 968px) {
    .gamification-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .gamification-content {
        padding-left: 0;
    }

    .gamification-showcase {
        min-height: 400px;
        padding: 32px;
    }

    .badges-preview {
        height: 200px;
    }

    .badge-orb {
        width: 60px;
        height: 60px;
    }

    .badge-emoji {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .gamification-section {
        padding: 80px 0;
    }

    .gamification-showcase {
        padding: 24px;
        min-height: 350px;
    }

    .xp-display {
        margin-bottom: 32px;
    }

    .badges-preview {
        height: 180px;
    }

    .badge-orb {
        width: 50px;
        height: 50px;
    }

    .badge-emoji {
        font-size: 24px;
    }

    .achievement-popup {
        padding: 16px 20px;
    }

    .achievement-icon {
        font-size: 24px;
    }

    .gamification-features {
        gap: 20px;
    }

    .feature-icon-mini {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .feature-mini-title {
        font-size: 16px;
    }
}

.sandbox-preview-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.sandbox-preview-section::before {
    content: '';
    position: absolute;
    right: -10%;
    top: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.sandbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.sandbox-features-list {
    list-style: none;
    margin: 32px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sandbox-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-radius: 50%;
    flex-shrink: 0;
}

.sandbox-visual {
    position: relative;
    perspective: 1000px;
}

.editor-mockup {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.editor-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow:
            0 30px 60px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(99, 102, 241, 0.2);
}

.editor-header {
    background: rgba(15, 23, 42, 0.8);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.tab {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.tab.active {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.editor-body {
    padding: 24px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
}

.line { position: relative; }
.line.indent { padding-left: 20px; }
.line.empty { height: 1.6em; }

.kwd { color: #c678dd; }
.var { color: #e5c07b; }
.op { color: #56b6c2; }
.obj { color: #e06c75; }
.func { color: #61afef; }
.str { color: #98c379; }
.cmt { color: #5c6370; font-style: italic; }

.floating-badge {
    position: absolute;
    bottom: 20px;
    right: -20px;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: floatBadge 4s ease-in-out infinite;
}

.badge-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.badge-text strong {
    color: #fff;
    font-size: 14px;
}

.badge-text span {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 968px) {
    .sandbox-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .sandbox-content h2,
    .sandbox-content p {
        text-align: center !important;
    }

    .sandbox-features-list {
        align-items: center;
    }

    .editor-mockup {
        max-width: 600px;
        margin: 0 auto;
        transform: none;
    }

    .editor-mockup:hover {
        transform: scale(1.02);
    }

    .floating-badge {
        right: 10px;
    }
}