/* === CSS VARIABLES === */
:root {
    /* Color Palette - Modern & Vibrant */
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #00ff88;
    --accent: #ffb800;
    --accent-light: #ffd54f;

    /* Backgrounds */
    --bg-dark: #0a0e27;
    --bg-darker: #060918;
    --bg-card: #141b3a;
    --bg-card-hover: #1a2345;

    /* Text Colors */
    --text-light: #ffffff;
    --text-gray: #b8c1ec;
    --text-muted: #7986a9;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    --gradient-secondary: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --gradient-accent: linear-gradient(135deg, #ffb800 0%, #ff8800 100%);
    --gradient-hero: linear-gradient(135deg, #0a0e27 0%, #1a1f45 50%, #0a0e27 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === NAVIGATION === */
.menu-toggle-input {
    display: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Pill-style wrapper around menu and CTA */
.nav-pill {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 0.8rem 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    transition: var(--transition-fast);
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.logo-word {
    color: var(--text-light);
    letter-spacing: 2px;
}

.logo-bolt-svg {
    animation: boltPulse 2s infinite ease-in-out;
}

.logo-bolt-svg path {
    fill: var(--accent);
    filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.6));
}

@keyframes boltPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.6));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(255, 184, 0, 0.9));
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition-fast);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-ghost {
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

/* Hamburger Menu Styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.nav-toggle .bar {
    width: 28px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

/* Animated Background Layers */
.hero-bg-layer {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
}

.layer-1 {
    background: radial-gradient(circle at 20% 50%, var(--primary) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.layer-2 {
    background: radial-gradient(circle at 80% 30%, var(--secondary) 0%, transparent 50%);
    animation: float 25s ease-in-out infinite reverse;
}

.layer-3 {
    background: radial-gradient(circle at 50% 80%, var(--accent) 0%, transparent 50%);
    animation: float 30s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.badge-text {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.title-line {
    display: block;
}

.title-highlight {
    position: relative;
    display: inline-block;
    color: var(--primary);
}

.highlight-text {
    position: relative;
    z-index: 1;
}

.title-underline {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 20px;
    color: var(--accent);
    opacity: 0.6;
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    from {
        stroke-dasharray: 0 300;
    }

    to {
        stroke-dasharray: 300 0;
    }
}

.strike-lightning {
    display: inline-block;
    animation: lightning 2s ease-in-out infinite;
}

@keyframes lightning {

    0%,
    100% {
        color: var(--accent);
        transform: scale(1);
    }

    50% {
        color: var(--primary);
        transform: scale(1.2);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.1rem);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 50px;
    min-width: 150px;
}

.cta-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4);
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 212, 255, 0.6);
}

.cta-primary:hover::before {
    opacity: 1;
}

.cta-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary);
}

.cta-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.cta-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual - Code Window */
.hero-visual {
    animation: fadeInUp 0.8s 0.2s ease-out backwards;
    transform-origin: center;
}

/* Run toggle button */
.run-toggle {
    display: none;
}

.run-btn {
    position: absolute;
    right: 0.5rem;
    top: -2.5rem;
    z-index: 2;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bg-dark);
    background: var(--gradient-secondary);
    box-shadow: 0 6px 18px rgba(0, 255, 136, 0.3);
    cursor: pointer;
}

.code-window {
    background: rgba(20, 27, 58, 0.8);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.code-window.floating {
    animation: floatCode 6s ease-in-out infinite;
}

@keyframes floatCode {

    0%,
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    50% {
        transform: translateY(-24px) scale(1.02) rotate(1deg);
    }
}

.code-window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #28c840;
}

.file-name {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.code-content {
    padding: 2rem 1.5rem;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-gray);
    overflow-x: auto;
}

.code-output {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
}

.terminal-header {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 0.75rem 1rem 1rem;
    font-family: 'Courier New', Consolas, monospace;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.terminal-body .cursor {
    animation: blink 1s step-end infinite;
    color: var(--primary);
}

.terminal-footer {
    padding: 0.5rem 1rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Show output when run is toggled */
.run-toggle:checked~.code-window .code-output {
    display: block;
}

.run-toggle:checked~.code-window .typing {
    animation-play-state: running;
}

.code-comment {
    color: #7f8c8d;
}

.code-keyword {
    color: #e74c3c;
    font-weight: 600;
}

.code-function {
    color: #3498db;
}

.code-string {
    color: #2ecc71;
}

.code-type {
    color: #9b59b6;
}

.code-number {
    color: #f39c12;
}

/* Pure CSS typing effect for C++ code line */
.typing {
    display: inline-block;
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typingSteps 3.2s steps(30, end) forwards, blink 0.9s step-end infinite;
}

@keyframes typingSteps {
    from {
        width: 0;
    }

    to {
        width: 30ch;
    }
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary);
    }
}

/* Floating Hackathon Banner */
.hackathon-float-banner {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 27, 58, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 184, 0, 0.5);
    border-radius: 50px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 8px 32px rgba(255, 184, 0, 0.3);
    animation: bannerSlideUp 1s 0.5s ease-out backwards;
    overflow: hidden;
    position: relative;
}

@keyframes bannerSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.banner-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(200%);
    }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.banner-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.banner-text {
    display: flex;
    flex-direction: column;
}

.banner-text strong {
    color: var(--accent);
    font-size: 1.1rem;
}

.banner-time {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.banner-cta {
    padding: 0.6rem 1.5rem;
    background: var(--gradient-accent);
    color: var(--bg-dark);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
}

.banner-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 184, 0, 0.5);
}

/* === SECTIONS === */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.free-tag {
    background: rgba(0, 255, 136, 0.1);
    color: var(--secondary);
    border-color: rgba(0, 255, 136, 0.3);
}

.hackathon-tag {
    background: rgba(255, 184, 0, 0.1);
    color: var(--accent);
    border-color: rgba(255, 184, 0, 0.3);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === COURSES SECTION === */
.courses-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.course-card:hover::before {
    opacity: 1;
}

.course-card.featured {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(255, 184, 0, 0.2);
}

.featured-ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient-accent);
    color: var(--bg-dark);
    padding: 0.5rem 2.5rem;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.course-badge-group {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.course-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-badge.live {
    background: rgba(255, 67, 54, 0.2);
    color: #ff4336;
    border: 1px solid rgba(255, 67, 54, 0.3);
}

.course-badge.recorded {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.course-badge.premium-badge {
    background: var(--gradient-accent);
    color: var(--bg-dark);
}

.course-badge.free-badge {
    background: var(--gradient-secondary);
    color: var(--bg-dark);
}

.course-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    transition: var(--transition-normal);
}

.course-card:hover .course-icon {
    transform: scale(1.1) rotate(5deg);
}

.course-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.instructor-avatar {
    font-size: 1.1rem;
}

.course-features {
    list-style: none;
    margin-bottom: 2rem;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.feature-icon {
    color: var(--secondary);
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.course-price {
    display: flex;
    flex-direction: column;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-btn {
    padding: 0.8rem 2rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

.course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.5);
}

.free-btn {
    background: var(--gradient-secondary);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.free-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

/* Free Courses Section */
.free-courses-section {
    background: var(--bg-darker);
}

.free-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.course-card.free {
    border-color: rgba(0, 255, 136, 0.2);
}

.course-card.free:hover {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.2);
}

/* Thumbnail-style free course cards */
.free-thumb {
    display: block;
    text-decoration: none;
}

.thumb-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.free-thumb:hover .thumb-image {
    transform: scale(1.05);
    filter: saturate(1.1);
}

.thumb-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: var(--transition-normal);
    background: radial-gradient(transparent 55%, rgba(0, 0, 0, 0.35));
}

.free-thumb:hover .thumb-play {
    opacity: 1;
}

.course-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.course-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.course-actions.single {
    justify-content: flex-start;
}

.outline-btn {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--text-light);
}

.outline-btn:hover {
    background: rgba(0, 255, 136, 0.08);
    transform: translateY(-2px);
}

/* === FEATURES SECTION === */
.features-section {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
}

.icon-color-1 {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
}

.icon-color-2 {
    background: rgba(0, 255, 136, 0.1);
    color: var(--secondary);
}

.icon-color-3 {
    background: rgba(255, 184, 0, 0.1);
    color: var(--accent);
}

.icon-color-4 {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.icon-color-5 {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

.icon-color-6 {
    background: rgba(63, 81, 181, 0.1);
    color: #3f51b5;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* === INSTRUCTORS SECTION === */
.instructors-section {
    background: var(--bg-dark);
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.instructor-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.instructor-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 220px;
    height: 220px;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 8px;
    background: radial-gradient(120% 120% at 0% 0%, rgba(0, 212, 255, 0.6), transparent 60%),
        radial-gradient(120% 120% at 100% 100%, rgba(0, 255, 136, 0.4), transparent 60%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.35);
    margin: 0.75rem auto 0;
    /* add small top offset so it doesn't touch card top */
}

.instructor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    border-radius: 50%;
    filter: saturate(1.08) contrast(1.05);
}

.instructor-card:hover .instructor-image {
    transform: scale(1.1);
}

.instructor-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.95) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-normal);
}

.instructor-card:hover .instructor-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.instructor-info {
    padding: 2rem;
    text-align: center;
}

.instructor-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.instructor-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.instructor-bio {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.instructor-specialties {
    justify-content: center;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.specialty-tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* === HACKATHON SECTION === */
/* === PLATFORM SECTION === */
.platform-section {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.platform-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-normal);
}

.platform-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 16px 48px rgba(0, 212, 255, 0.15);
}

.platform-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.platform-list {
    list-style: none;
    color: var(--text-gray);
}

.platform-list li {
    padding: 0.5rem 0;
}

.platform-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* === CONTACT SECTION === */
.contact-section {
    background: var(--bg-dark);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label,
.form-group input:focus+label,
.form-group textarea:focus+label {
    top: -0.7rem;
    left: 0.8rem;
    font-size: 0.85rem;
    background: var(--bg-card);
    padding: 0 0.5rem;
    color: var(--primary);
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
}

/* === FOOTER === */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.newsletter-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-btn {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.newsletter-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
}

.newsletter-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-light);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.separator {
    color: var(--text-muted);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }

    .nav-pill {
        display: none;
    }

    .nav-menu,
    .nav-actions {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        width: 100%;
        text-align: center;
        transition: left var(--transition-normal);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .menu-toggle-input:checked~.navbar .nav-menu,
    .menu-toggle-input:checked~.navbar .nav-actions {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .menu-toggle-input:checked~.navbar .nav-toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle-input:checked~.navbar .nav-toggle .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle-input:checked~.navbar .nav-toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 5rem 1rem 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
        margin: 0 auto 2rem;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .stat-item {
        text-align: center;
        align-items: center;
    }

    .code-content {
        font-size: 0.9rem;
        padding: 1.5rem 1rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hackathon-float-banner {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        left: 1rem;
        right: 1rem;
        transform: none;
    }

    .courses-grid,
    .free-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .course-card {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .instructors-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .instructor-image-wrapper {
        width: 180px;
        height: 180px;
    }

    .countdown-display {
        flex-wrap: wrap;
    }

    .countdown-box {
        min-width: 80px;
        padding: 1rem 1.5rem;
    }

    .prizes-showcase {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .nav-container {
        height: 60px;
    }

    .nav-logo {
        font-size: 1.5rem;
    }

    .nav-menu,
    .nav-actions {
        top: 60px;
    }

    .section {
        padding: 3rem 1rem;
    }

    .hero {
        padding: 4rem 1rem 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.85rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-tag {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .features-heading {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .course-card {
        padding: 1.5rem;
    }

    .course-title {
        font-size: 1.25rem;
    }

    .course-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .course-btn {
        width: 100%;
        text-align: center;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .instructor-image-wrapper {
        width: 150px;
        height: 150px;
    }

    .instructor-name {
        font-size: 1.5rem;
    }

    .footer {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-logo {
        font-size: 1.25rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }
}

/* Prevent horizontal scroll on small screens */
@media (max-width: 640px) {

    html,
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }
}

/* Landscape phone optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 3rem 1rem 2rem;
    }

    .nav-menu,
    .nav-actions {
        max-height: calc(100vh - 60px);
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Keyboard Navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.strike-features {
    background: var(--bg-dark, #0a0e27);
    color: var(--text-light, #fff);
    padding: 4rem 2rem;
    text-align: center;
}

.features-heading {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.highlight {
    color: var(--accent, #ffb800);
    text-shadow: 0 2px 18px var(--accent-light, #ffd54f);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.feature-card {
    background: var(--bg-card, #141b3a);
    border-radius: 18px;
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.15));
    width: 270px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: scale(1.07) translateY(-8px);
    box-shadow: var(--shadow-glow, 0 0 20px rgba(0, 212, 255, 0.45));
}

.feature-icon {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .features-grid {
        gap: 1.2rem;
    }

    .feature-card {
        width: 90%;
        margin: 0.7rem auto;
    }
}

@media (max-width: 600px) {
    .features-heading {
        font-size: 2rem;
    }

    .features-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-card {
        width: 100%;
        padding: 1.4rem 1rem;


    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .hero-visual {
        order: initial;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }

    .run-btn {
        display: none;
    }
}

.stat-emoji {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.2rem;
}
/* Updated colorChange animation  */
@keyframes colorChange {
    0% { color: var(--primary); } /* #00d4ff */
    25% { color: var(--secondary); } /* #00ff88 */
    50% { color: var(--accent); } /* #ffb800 */
    75% { color: #ff4b4b; } /* Vibrant red */
    100% { color: var(--primary); }
}

/* Hero Title */
.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Apply dynamic color to ST and IKE */
.strike-st, .strike-ike {
    animation: colorChange 6s infinite ease-in-out;
    display: inline;
}

/* Lightning bolt animation (unchanged) */
.strike-lightning {
    display: inline-block;
    animation: lightning 2s ease-in-out infinite;
}

@keyframes lightning {
    0%, 100% {
        color: var(--accent);
        transform: scale(1);
    }
    50% {
        color: var(--primary);
        transform: scale(1.2);
    }
}

/* Existing navigation logo styles (unchanged) */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    transition: var(--transition-fast);
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.logo-word {
    letter-spacing: 2px;
}

.logo-st, .logo-rike {
    animation: colorChange 6s infinite ease-in-out;
}

.logo-bolt-svg {
    animation: boltPulse 2s infinite ease-in-out;
}

.logo-bolt-svg path {
    fill: var(--accent);
    filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.6));
}

/* Existing footer logo styles (unchanged) */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.footer-logo .logo-st, .footer-logo .logo-rike {
    animation: colorChange 6s infinite ease-in-out;
}

/* Mobile responsiveness for 480px or smaller */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem); /* Smaller title */
    }

    .strike-st, .strike-ike {
        animation: colorChange 6s infinite ease-in-out; /* Maintain animation */
        font-size: clamp(1.6rem, 4vw, 2rem); /* Slightly smaller for mobile */
    }

    .nav-logo, .footer-logo {
        font-size: 1.5rem; /* Smaller logo text */
    }

    .logo-st, .logo-rike {
        animation: colorChange 6s infinite ease-in-out; /* Maintain animation */
    }

    .cta-primary {
        min-width: 110px; /* From previous request */
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        min-height: 40px;
        border-radius: 40px;
    }

    .container {
        padding: 0 0.8rem;
    }

    .course-card {
        padding: 1rem;
    }
    
}