/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES
   ========================================================================== */
:root {
    --bg-dark: #070913;
    --bg-dark-rgb: 7, 9, 19;
    --bg-card: rgba(13, 20, 38, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.2);
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Branding Colors */
    --primary: #00f2fe;
    --primary-rgb: 0, 242, 254;
    --secondary: #9d4edd;
    --secondary-rgb: 157, 78, 221;
    --accent: #ff007f;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    
    /* Effects */
    --glass-blur: blur(16px);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glow: 0 0 30px rgba(0, 242, 254, 0.15);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font-family: inherit;
}

/* 3D Canvas Background */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--primary-rgb), 0.05);
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #070913;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5), var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-card-primary {
    background: #25d366; /* WhatsApp Green */
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn-card-primary:hover {
    background: #128c7e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-card-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
}

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

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 19, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-accent {
    color: var(--primary);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

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

.nav-links a:hover {
    color: var(--text-light);
}

.nav-cta {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(157, 78, 221, 0.1));
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    padding: 8px 20px;
    border-radius: 8px;
    color: var(--primary) !important;
}

.nav-cta:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(157, 78, 221, 0.2));
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 19, 0.95);
    backdrop-filter: var(--glass-blur);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mobile-link:hover {
    color: var(--primary);
}

.mobile-cta {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

.mobile-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 3rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-badge {
    animation: float 4s ease-in-out infinite;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0; }
    100% { top: 6px; opacity: 0; }
}

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

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
    padding: 60px 24px;
    position: relative;
    z-index: 10;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 30px 20px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--text-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   COURSES SECTION
   ========================================================================== */
.courses-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--primary-rgb), 0.12), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.course-card:hover .course-glow {
    opacity: 1;
}

.course-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 5px;
    letter-spacing: 0.05em;
    z-index: 2;
}

.course-image-placeholder {
    height: 200px;
    background: radial-gradient(circle at center, rgba(157, 78, 221, 0.15) 0%, rgba(7, 9, 19, 0) 70%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-icon-3d {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.2));
    transition: var(--transition-smooth);
}

.course-card:hover .course-icon-3d {
    transform: scale(1.15) rotate(5deg);
}

.interactive-light {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-image-placeholder:hover .interactive-light {
    opacity: 1;
}

.course-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-category {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.course-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.95rem;
}

.price-discounted {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.discount-badge {
    background: rgba(255, 0, 127, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 0, 127, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.course-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
}

/* ==========================================================================
   ABOUT / INSTRUCTOR SECTION
   ========================================================================== */
.about-section {
    padding: 100px 24px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

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

.about-visual {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 6rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.3));
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.orbit-ring {
    position: absolute;
    border: 1px dashed rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.ring-1 {
    width: 280px;
    height: 280px;
    border-color: rgba(var(--primary-rgb), 0.25);
    animation-duration: 25s;
}

.ring-2 {
    width: 380px;
    height: 380px;
    border-color: rgba(var(--secondary-rgb), 0.15);
    animation-duration: 35s;
    animation-direction: reverse;
}

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

.about-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.about-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 1.5rem;
    width: 100%;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    flex-grow: 1;
}

.instagram-btn {
    border-color: rgba(225, 48, 108, 0.3);
    color: #e1306c;
}

.instagram-btn:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.3);
}

.whatsapp-btn {
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.whatsapp-btn:hover {
    background: #25d366;
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.cta-card {
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(5, 7, 15, 0.9);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    color: var(--primary);
    transform: scale(1.15);
}

/* ==========================================================================
   FLOATING WIDGETS
   ========================================================================== */
.floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 211, 102, 0.2);
    transition: var(--transition-smooth);
    position: relative;
    animation: bounce 3s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    color: var(--text-light);
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
}

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

/* ==========================================================================
   MODAL SYSTEMS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 19, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--text-light);
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-right: 24px;
}

.modal-body {
    margin-bottom: 2rem;
}

.curriculum-list {
    list-style: none;
}

.curriculum-list li {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.curriculum-list li:last-child {
    border-bottom: none;
}

.chapter-number {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.chapter-info h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.chapter-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

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

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-visual {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-title {
        font-size: 2.5rem;
    }
    .cta-card {
        padding: 50px 20px;
    }
    .cta-title {
        font-size: 2.5rem;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .cta-buttons .btn {
        width: 100%;
    }
    .social-links {
        flex-direction: column;
    }
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    .course-actions {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ADMIN CONTROL ROOM STYLES
   ========================================================================== */
.admin-section {
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.admin-header-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 20px;
}

.admin-title {
    font-size: 2.8rem;
}

.admin-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.admin-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}

.admin-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.panel-heading {
    font-size: 1.4rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(7, 9, 19, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* Admin Courses Table */
.table-wrapper {
    overflow-x: auto;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.courses-table th,
.courses-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.courses-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.courses-table td {
    font-size: 0.95rem;
}

.courses-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.btn-table-danger {
    background: rgba(255, 0, 127, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 0, 127, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-table-danger:hover {
    background: var(--accent);
    color: white;
}

.table-price-input {
    width: 90px;
    background: rgba(7, 9, 19, 0.6);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    color: var(--text-light);
    border-radius: 6px;
    outline: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.table-price-input:focus {
    border-color: var(--primary);
}

/* ==========================================================================
   CHECKOUT MODAL
   ========================================================================== */
.checkout-header-icon {
    color: var(--primary);
    margin-right: 8px;
}

.checkout-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.summary-label {
    color: var(--text-muted);
}

.summary-value {
    font-weight: 600;
}

.font-highlight {
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: 4px;
    font-size: 1.15rem;
}

.font-highlight .summary-value {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

.sandbox-instructions {
    background: rgba(0, 242, 254, 0.05);
    border: 1px dashed rgba(0, 242, 254, 0.25);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 24px;
    line-height: 1.4;
}

.sandbox-instructions i {
    margin-top: 3px;
}

.checkout-submit-btn {
    width: 100%;
}

/* ==========================================================================
   CLASSROOM / MOCK PLAYER MODAL
   ========================================================================== */
.player-modal-content {
    max-width: 900px !important;
}

.classroom-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.video-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mock-player-screen {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.play-overlay-icon {
    font-size: 4rem;
    color: rgba(var(--primary-rgb), 0.7);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.play-overlay-icon:hover {
    transform: scale(1.15);
    color: var(--primary);
}

.video-timeline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-played {
    width: 25%;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.video-controls-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.control-btn:hover {
    color: var(--primary);
}

.video-timer {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-scrubber {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.timeline-scrubber::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.curriculum-sidebar {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-heading {
    font-size: 1.1rem;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.classroom-lessons-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 280px;
}

.lesson-item {
    display: flex;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.lesson-item:hover {
    border-color: rgba(var(--primary-rgb), 0.2);
    background: rgba(var(--primary-rgb), 0.02);
}

.active-lesson {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.lesson-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.lesson-meta h5 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.lesson-meta p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Helper hidden state utility */
.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .admin-grid-layout {
        grid-template-columns: 1fr;
    }
    .classroom-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   BRAND LOGO MARQUEE TICKER (Amazon, Flipkart, Meesho)
   ========================================================================== */
.brand-marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: -60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
    backdrop-filter: var(--glass-blur);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 20s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 80px;
    padding: 0 40px;
}

.marquee-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.marquee-logo:hover {
    color: var(--text-light);
    transform: scale(1.08);
}

.marquee-logo i {
    font-size: 2rem;
}

.marquee-amazon {
    color: #ff9900;
    text-shadow: 0 0 15px rgba(255, 153, 0, 0.2);
}

.marquee-flipkart {
    color: #2874f0;
    text-shadow: 0 0 15px rgba(40, 116, 240, 0.2);
}

.marquee-meesho {
    color: #f43397;
    text-shadow: 0 0 15px rgba(244, 51, 151, 0.2);
}

.marquee-shopify {
    color: #96bf48;
    text-shadow: 0 0 15px rgba(150, 191, 72, 0.2);
}

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

/* ==========================================================================
   BRAND-COLORED ICONS ON COURSE CARDS
   ========================================================================== */
.brand-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.course-card:hover .brand-icon-wrapper {
    transform: scale(1.12) rotate(6deg);
}

.icon-amazon {
    color: #ff9900;
    filter: drop-shadow(0 0 15px rgba(255, 153, 0, 0.4));
    border-color: rgba(255, 153, 0, 0.2);
}

.icon-flipkart {
    color: #2874f0;
    filter: drop-shadow(0 0 15px rgba(40, 116, 240, 0.4));
    border-color: rgba(40, 116, 240, 0.2);
}

.icon-meesho {
    color: #f43397;
    filter: drop-shadow(0 0 15px rgba(244, 51, 151, 0.4));
    border-color: rgba(244, 51, 151, 0.2);
}

.icon-shopify {
    color: #96bf48;
    filter: drop-shadow(0 0 15px rgba(150, 191, 72, 0.4));
    border-color: rgba(150, 191, 72, 0.2);
}

/* ==========================================================================
   PAYMENT INTEGRATION BADGES & FORMS
   ========================================================================== */
.payment-gateway-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    width: fit-content;
}

.gateway-razorpay {
    background: rgba(14, 118, 226, 0.1);
    color: #0e76e2;
    border: 1px solid rgba(14, 118, 226, 0.2);
}

.gateway-stripe {
    background: rgba(99, 91, 255, 0.1);
    color: #635bff;
    border: 1px solid rgba(99, 91, 255, 0.2);
}

.gateway-upi {
    background: rgba(46, 172, 110, 0.1);
    color: #2eac6e;
    border: 1px solid rgba(46, 172, 110, 0.2);
}

.gateway-payment-fields {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.qr-code-placeholder {
    width: 150px;
    height: 150px;
    background: white;
    margin: 10px auto 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.qr-code-placeholder i {
    font-size: 8rem;
    color: #000;
}

/* ==========================================================================
   SECURE VIDEO PLAYER
   ========================================================================== */
.mock-player-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.video-player-secured {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none; /* Disable right click directly */
}

/* Hide native download indicators */
video::-internal-media-controls-download-button {
    display:none !important;
}

video::-webkit-media-controls-enclosure {
    overflow:hidden !important;
}

video::-webkit-media-controls-panel {
    width: calc(100% + 30px); /* Shift panel slightly if browser forces download button */
}

/* Custom Playback Overlay to block cursor download captures */
.video-blocker-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    cursor: default;
}

/* ==========================================================================
   NETFLIX STYLE VIDEO PLAYER OVERLAYS
   ========================================================================== */
.netflix-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 15;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0) 100%);
    padding: 30px 24px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Active visibility state when mouse moves or is active */
.mock-player-screen:hover .netflix-controls-overlay,
.netflix-controls-overlay.controls-visible {
    opacity: 1;
    pointer-events: all;
}

.netflix-progress-row {
    width: 100%;
    display: flex;
    align-items: center;
}

.netflix-timeline {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: height 0.15s ease;
}

.mock-player-screen:hover .netflix-timeline {
    height: 6px;
}

.netflix-timeline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--value, 0%);
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e50914;
    box-shadow: 0 0 10px #e50914;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.mock-player-screen:hover .netflix-timeline::after {
    opacity: 1;
}

.netflix-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.netflix-left-actions,
.netflix-right-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Netflix Volume Layout */
.netflix-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.netflix-volume-slider {
    width: 0;
    opacity: 0;
    height: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    cursor: pointer;
    transition: width 0.25s ease, opacity 0.25s ease;
}

/* Custom track and thumb for volume slider */
.netflix-volume-slider::-webkit-slider-runnable-track {
    height: 3px;
}
.netflix-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e50914;
    cursor: pointer;
    margin-top: -3.5px;
}

.netflix-volume-control:hover .netflix-volume-slider {
    width: 70px;
    opacity: 1;
}

/* Netflix style CC Subtitles styling */
.video-subtitles {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
    z-index: 12;
    pointer-events: none;
    max-width: 80%;
    line-height: 1.4;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Controls visibility class for video overlay */
.play-overlay-icon {
    font-size: 4.5rem !important;
    color: #e50914 !important;
    filter: drop-shadow(0 0 15px rgba(229, 9, 20, 0.4)) !important;
}

.play-overlay-icon:hover {
    transform: scale(1.1);
}


