:root {
    --primary-color: #F925E4; 
    --primary-rgb: 249, 37, 228;
    --secondary-color: #00E0E0; 
    --secondary-rgb: 0, 224, 224;
    --accent-color: #A140F0; 
    --accent-rgb: 161, 64, 240;
    --dark-color: #1A092B; 
    --dark-rgb: 26, 9, 43;
    --darker-color: #0D0517; 
    --darker-rgb: 13, 5, 23;
    --light-color: #FFFFFF; 
    --text-color: #E0D0F0; 
    --success-color: var(--secondary-color);
    --error-color: #FF4757; 
    --error-rgb: 255, 71, 87;
    --gray-color: #442266; 
    --border-color-subtle: rgba(var(--accent-rgb), 0.25);

    --font-heading: 'Press Start 2P', cursive;
    --font-mono: 'Share Tech Mono', monospace;
    --font-body: 'Roboto', sans-serif;

    --glow-primary: rgba(var(--primary-rgb), 0.5);
    --glow-secondary: rgba(var(--secondary-rgb), 0.5);
    --glow-accent: rgba(var(--accent-rgb), 0.4);
}

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

body {
    background-color: var(--darker-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(13, 5, 23, 0.985), rgba(13, 5, 23, 0.985)),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232A0F40' fill-opacity='0.07'%3E%3Cpath d='M0 0h40v40H0zM40 40h40v40H40z'/%3E%3Ccircle fill-opacity='.03' cx='20' cy='20' r='4'/%3E%3Ccircle fill-opacity='.03' cx='60' cy='60' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 20px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--light-color);
    text-shadow: 0 0 6px var(--glow-secondary);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(var(--darker-rgb), 0.88);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(var(--primary-rgb), 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.25);
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: normal; 
    font-size: 1.2rem; 
    color: var(--light-color);
    letter-spacing: 1px;
    text-shadow: 0 0 8px var(--glow-primary);
}

.logo span {
    text-shadow: 0 0 6px var(--glow-primary);
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px var(--glow-primary));
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-family: var(--font-mono);
    font-weight: normal;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--glow-primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    opacity: 1;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    text-shadow: 0 0 6px var(--glow-primary);
}

.hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 85px);
    padding: 0 5%;
    background: var(--darker-color);
    overflow: hidden;
    position: relative;
}

.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 60%);
    top: 5%;
    left: -10%;
    animation: pulse-glow 12s infinite ease-in-out;
    opacity: 0.25;
}

.hero::after {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, var(--glow-secondary) 0%, transparent 70%);
    bottom: 5%;
    right: -5%;
    animation: pulse-glow 14s infinite ease-in-out reverse;
    opacity: 0.3;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.2; transform: scale(0.95); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

.hero-content {
    flex: 1.2;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 30px;
    color: var(--light-color);
    line-height: 1.4;
    text-shadow: 0 0 10px var(--glow-primary), 0 0 18px var(--glow-primary);
    letter-spacing: 1px;
}

.hero h1 .highlight {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--glow-secondary);
    background: none;
    -webkit-text-fill-color: unset;
}

.hero p {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 40px;
    color: var(--text-color);
    max-width: 550px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.primary-btn {
    padding: 12px 28px;
    background: var(--primary-color);
    color: var(--darker-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 12px var(--glow-primary), inset 0 0 5px rgba(255,255,255,0.25);
    letter-spacing: 1px;
    font-weight: normal;
}

.primary-btn:hover {
    background: var(--darker-color);
    color: var(--primary-color);
    box-shadow: 0 0 18px var(--glow-primary), 0 0 25px var(--glow-primary);
    transform: translateY(-2px);
}

.hero-image {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.poster-image {
    max-width: 380px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--glow-primary), 0 0 25px rgba(var(--primary-rgb), 0.2);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.poster-image:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px var(--glow-primary), 0 0 40px rgba(var(--primary-rgb), 0.3);
}

section {
    padding: 80px 0;
    position: relative;
}

.intro {
    background-color: var(--dark-color);
    border-top: 1px solid var(--border-color-subtle);
    border-bottom: 1px solid var(--border-color-subtle);
}

.intro h2, .about h2, .learning-path h2, .project-section h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 70px;
    color: var(--light-color);
    position: relative;
    padding-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px var(--glow-primary);
}

.intro h2::after, .about h2::after, .learning-path h2::after, .project-section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow-primary), 0 0 10px var(--glow-secondary);
}

.highlight {
    color: var(--secondary-color);
    font-weight: normal;
    background: none;
    -webkit-text-fill-color: unset;
    text-shadow: 0 0 6px var(--glow-secondary);
}

.intro-lead {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 50px;
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.intro-lead strong {
    color: var(--secondary-color);
    font-weight: normal;
    text-shadow: 0 0 6px var(--glow-secondary);
}

.powered-by {
    text-align: center;
    margin: 70px 0;
}

.powered-by h4 {
    margin-bottom: 25px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--light-color);
    text-shadow: 0 0 6px var(--glow-accent);
}

.chapters {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: stretch;
}

.chapter-link {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    display: flex;
}

.chapter-link:hover .chapter {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 0 15px var(--glow-secondary), 0 0 8px var(--glow-secondary);
    color: var(--darker-color);
    background-color: var(--secondary-color);
}

.chapter-link:hover .github-logo {
    fill: var(--darker-color);
}

.chapter {
    background: rgba(var(--accent-rgb), 0.2);
    padding: 25px 20px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-weight: bold;
    box-shadow: 0 0 8px rgba(var(--secondary-rgb), 0.15);
    border: 1px solid var(--secondary-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 280px;
    justify-content: flex-start;
}

.chapter-logo {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.github-logo {
    fill: var(--secondary-color);
    transition: fill 0.3s ease;
}

.legendary-features {
    margin-top: 70px;
}

.legendary-features h3 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 50px;
    color: var(--light-color);
    text-shadow: 0 0 8px var(--glow-primary);
}

.about {
    background-color: var(--darker-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(var(--dark-rgb), 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: left;
    border: 1px solid var(--border-color-subtle);
    backdrop-filter: blur(8px);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 7px 22px rgba(var(--secondary-rgb), 0.18), 0 0 18px var(--glow-accent);
    border-color: var(--secondary-color);
}

.icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 18px;
    display: inline-block;
    text-shadow: 0 0 8px var(--glow-secondary);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--light-color);
    letter-spacing: 0.5px;
    text-shadow: 0 0 4px var(--glow-primary);
}

.feature-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    font-family: var(--font-mono);
}

.learning-path {
    background-color: var(--dark-color);
    border-top: 1px solid var(--border-color-subtle);
    border-bottom: 1px solid var(--border-color-subtle);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 35px;
    background: rgba(var(--darker-rgb), 0.9);
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.45);
    border: 1px solid var(--accent-color);
    backdrop-filter: blur(10px);
}

.timeline-block {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.timeline-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-block h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.25);
    letter-spacing: 0.5px;
    text-shadow: 0 0 4px var(--glow-primary);
}

.timeline-events {
    list-style: none;
    position: relative;
}

.timeline-events:before {
    content: '';
    position: absolute;
    top: 8px;
    left: 7px;
    width: 2px;
    height: calc(100% - 16px);
    background: var(--accent-color);
    border-radius: 1px;
    box-shadow: 0 0 6px var(--glow-accent);
}

.timeline-events li {
    position: relative;
    display: flex;
    margin-bottom: 18px;
    padding-left: 30px;
}

.timeline-events li:last-child {
    margin-bottom: 0;
}

.timeline-events li:before {
    content: '';
    position: absolute;
    left: 0px;
    top: 7px;
    width: 16px; 
    height: 16px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid var(--darker-color);
    box-shadow: 0 0 8px var(--glow-secondary);
    z-index: 1;
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 1rem;
    font-family: var(--font-mono);
    color: var(--light-color);
    margin-bottom: 5px;
    font-weight: normal;
}

.project-section {
    background-color: var(--darker-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(var(--dark-rgb), 0.92);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
    border: 1px solid var(--border-color-subtle);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 35px rgba(var(--primary-rgb), 0.25), 0 0 20px var(--glow-primary);
}

.project-card h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 6px var(--glow-primary);
}

.project-card p {
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.project-features {
    margin-top: 25px;
}

.project-features h4 {
    color: var(--light-color);
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    text-shadow: 0 0 4px var(--glow-accent);
}

.project-features ul {
    list-style: none;
    padding: 0;
}

.project-features li {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-mono);
    position: relative;
    padding-left: 28px;
}
.project-features li::before {
    content: '✓';
    color: var(--success-color);
    position: absolute;
    left: 0px;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 6px var(--glow-secondary);
}

.register-btn-sticky {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.register-now-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--light-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    box-shadow: 0 0 12px var(--glow-primary), 0 0 8px var(--glow-accent);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
}

.register-now-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px var(--glow-primary), 0 0 12px var(--glow-accent), 0 0 25px var(--primary-color);
    color: var(--white);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--darker-rgb), 0.92);
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(8px);
    padding: 20px;
}

.modal-content {
    background: var(--dark-color);
    margin: 5vh auto;
    width: 90%;
    max-width: 480px;
    border-radius: 10px;
    padding: 25px;
    position: relative;
    box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.25), 0 0 40px rgba(var(--accent-rgb),0.15);
    animation: modalopen 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--primary-color);
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
    text-shadow: 0 0 6px var(--glow-primary);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-shadow: 0 0 6px var(--glow-primary);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-weight: normal;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-color);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: var(--font-mono);
    background-color: rgba(var(--darker-rgb), 0.7);
    color: var(--light-color);
    transition: all 0.3s ease;
}
.form-group input::placeholder { color: #776088; }

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25), 0 0 8px var(--glow-primary);
}
.form-group select option {
    background-color: var(--darker-rgb, 24, 8, 40);
    color: var(--light-color);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--darker-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 0 8px var(--glow-primary);
}

.submit-btn:hover {
    background: var(--accent-color);
    color: var(--light-color);
    box-shadow: 0 0 12px var(--glow-accent), 0 0 15px var(--glow-primary);
}
.submit-btn:disabled {
    background-color: var(--gray-color);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    color: var(--text-color);
}

.creator-credit {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 998;
}

.creator-credit a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: rgba(var(--darker-rgb), 0.75);
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    transition: all 0.3s ease, opacity 0.5s ease;
    backdrop-filter: blur(6px);
    border: 1px solid var(--gray-color);
}

.creator-credit a:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(var(--secondary-rgb), 0.25);
    background-color: var(--secondary-color);
    color: var(--darker-color);
    border-color: var(--secondary-color);
}
.creator-credit a:hover .heart-beat {
    color: var(--primary-color);
}

.creator-credit a.fading-out {
    opacity: 0;
}

.heart-beat {
    color: var(--primary-color);
    animation: heartbeat 1.5s infinite;
    text-shadow: 0 0 4px var(--glow-primary);
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

.creator-credit a .fa-github,
.creator-credit a .fa-linkedin {
    color: var(--text-color); 
    text-shadow: none;
    animation: none; 
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.creator-credit a:hover .fa-github,
.creator-credit a:hover .fa-linkedin {
    color: var(--light-color); 
    text-shadow: 0 0 6px rgba(var(--secondary-rgb), 0.5);
    transform: none; 
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: var(--light-color);
    font-family: var(--font-mono);
    font-weight: normal;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-20px) translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(var(--light-rgb,255,255,255), 0.1);
}

.toast.success {
    background-color: rgba(var(--secondary-rgb), 0.9); 
    border-left: 4px solid var(--secondary-color);
    text-shadow: 0 0 4px rgba(var(--darker-rgb), 0.4);
}

.toast.error {
    background-color: rgba(var(--error-rgb), 0.9); 
    border-left: 4px solid var(--error-color);
    text-shadow: 0 0 4px rgba(var(--darker-rgb), 0.4);
}

.toast.show {
    opacity: 1;
    transform: translateY(0) translateX(0);
}
.toast i {
    font-size: 1.2rem;
}

.registration-closed-message {
    text-align: center;
    padding: 15px;
    color: var(--light-color);
    background-color: rgba(var(--error-rgb), 0.18);
    border: 1px solid var(--error-color);
    border-radius: 6px;
    margin-bottom: 15px;
    font-family: var(--font-mono);
}

.registration-closed-message i {
    font-size: 2rem;
    color: var(--error-color);
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 0 6px rgba(var(--error-rgb), 0.45);
}

.registration-closed-message h3 {
    margin-bottom: 6px;
    color: var(--error-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-shadow: 0 0 4px rgba(var(--error-rgb), 0.35);
}
.registration-closed-message p {
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding: 50px 5%;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    .hero p { margin-left: auto; margin-right: auto; max-width: 90%; }

    .cta-buttons {
        justify-content: center;
    }
    .poster-image {
       max-width: 320px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: calc(100% + 1px); 
        left: 0;
        width: 100%;
        background: var(--darker-color);
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
        box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
        border-top: 1px solid var(--primary-color);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }
    
    nav ul li a {
        font-size: 0.95rem;
        padding: 8px 0;
    }

    .menu-toggle {
        display: block;
    }

    .logo { 
        font-size: 1rem;
    }

    .intro-lead {
        font-size: 1rem;
    }
    
    .chapters {
        gap: 12px;
    }
    .chapter { padding: 8px 15px; font-size: 0.9rem; }
    
    .project-card, .feature-card {
        padding: 20px;
    }
    
    .project-card h3, .feature-card h3 {
        font-size: 1rem;
    }
    .project-card h3 { font-size: 1.2rem; }
    .intro h2, .about h2, .learning-path h2, .project-section h2 {
        font-size: 1.3rem;
        margin-bottom: 50px;
    }

    .timeline {
        padding: 15px;
    }
    
    .timeline-block h3 {
        font-size: 1.1rem;
    }
        
    .timeline-events li {
        padding-left: 25px;
        font-size: 0.9rem;
    }
    .event-title { font-size: 0.95rem; }
    
    .timeline-events:before {
        left: 5px;
    }
    
    .timeline-events li:before {
        left: -2px;
        width: 14px;
        height: 14px;
        top: 5px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.9rem;
    }
    .primary-btn { padding: 10px 20px; font-size: 0.7rem; }

    .modal-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
        margin: 0;
        padding: 20px;
    }
    .modal-content h2 { font-size: 1.1rem; }

    .register-btn-sticky {
       display: none; 
    }

    .about {
         padding-top: 50px;
         padding-bottom: 50px;
    }

    .creator-credit {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }

    .creator-credit a {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    header .logo { font-size: 0.9rem; }

    .toast {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        font-size: 0.8rem;
        padding: 10px 15px;
    }
    .container { padding: 50px 15px; }
    .intro h2, .about h2, .learning-path h2, .project-section h2 { font-size: 1.1rem; margin-bottom: 40px; }
    .project-card h3, .feature-card h3 { font-size: 0.9rem; }
    .project-card h3 { font-size: 1.1rem; }
    .timeline-block h3 { font-size: 1rem; }
}

.whatsapp-group-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--darker-rgb), 0.92);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    padding: 20px;
}

.whatsapp-popup-content {
    background: var(--dark-color);
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.25), 0 0 40px rgba(var(--accent-rgb),0.15);
    border: 1px solid var(--primary-color);
}

.close-whatsapp-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.close-whatsapp-popup:hover {
    color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
    text-shadow: 0 0 6px var(--glow-primary);
}

.whatsapp-popup-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-shadow: 0 0 6px var(--glow-primary);
}

.whatsapp-popup-content p {
    font-family: var(--font-mono);
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.whatsapp-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--secondary-color);
    color: var(--darker-color);
    border-radius: 5px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--glow-secondary);
}

.whatsapp-join-btn:hover {
    background: var(--light-color);
    color: var(--secondary-color);
    box-shadow: 0 0 15px var(--glow-secondary);
}

.whatsapp-join-btn i {
    font-size: 1.2rem;
}

.timeline-events .day-link,
.timeline-events .day-resource {
    display: inline-block;
    margin-right: 15px;
    color: var(--secondary-color);
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: underline;
}

.timeline-events .day-link:hover,
.timeline-events .day-resource:hover {
    color: var(--primary-color);
    text-shadow: 0 0 6px var(--glow-primary);
}