@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

/* Scroll Down Button */
.scroll-down {
    margin-top: 3rem;
}

.scroll-down-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
    margin-top: 80px;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(147, 51, 234, 0.5);
    border-radius: 25px;
    position: relative;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.8);
}

.scroll-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, 20px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
}

.scroll-down-btn:hover {
    transform: translateY(-5px);
}

.scroll-down-btn:hover .scroll-arrow {
    border-color: rgba(147, 51, 234, 0.8);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

.scroll-down-btn:hover .scroll-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(147, 51, 234, 0.3);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.3);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(15, 15, 21, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(147, 51, 234, 0.2);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    nav ul li {
        margin: 0;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }
}

/* Countdown Styles */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    padding: 1.5rem;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.countdown-box span:first-child {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .countdown-container {
        gap: 1rem;
    }
    
    .countdown-box {
        min-width: 80px;
        padding: 1rem;
    }
    
    .countdown-box span:first-child {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}

:root {
    --primary-color: #8A2BE2; /* Dark Purple */
    --secondary-color: #4B0082; /* Indigo */
    --background-color: #121212;
    --text-color: #E0E0E0;
    --card-bg-color: #1E1E1E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p {
    text-align: center;
    margin-bottom: 30px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

main {
    padding-top: 60px; /* Header height */
}

section {
    padding: 4rem 5%;
    border-bottom: 1px solid var(--secondary-color);
}

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.9)), url('https://images.unsplash.com/photo-1531592618329-d89015a7d24f?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(75, 0, 130, 0.3) 0%, rgba(18, 18, 18, 0.9) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--primary-color);
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    }
    to {
        text-shadow: 0 0 20px var(--primary-color), 0 0 30px #9B30FF;
    }
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--primary-color);
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.competition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.competition-card {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--secondary-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.learn-more-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    align-self: center;
    min-width: 120px;
}

.competition-card::before {
    content: none;
}

.competition-card:hover::before {
    content: none;
}

.competition-card:hover {
    transform: translateY(-14px) scale(1.04);
    box-shadow:
        0 0 40px 10px rgba(147,51,234,0.35),
        0 0 80px 0px rgba(147,51,234,0.15),
        0 20px 40px rgba(0,0,0,0.4);
    border: 1.5px solid var(--primary-color);
}

.competition-card::after {
    content: none;
}



#register p {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.registration-links {
    text-align: center;
}

.registration-links .btn {
    margin: 0 1rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg-color);
}

/* Inline registration confirmation card styling */
.registration-confirmation {
    padding: 0 5%;
}

.registration-confirmation .success-message {
    margin: 0 auto;
    padding: 28px;
    border-radius: 16px;
}

/* Event timeline styling */
#timeline {
    background: linear-gradient(180deg, rgba(15, 15, 21, 0.97), rgba(15, 15, 21, 0.95));
    position: relative;
    overflow: hidden;
}

@media screen and (min-width: 541px) and (max-width: 741px) {
    .event-timeline::before {
        left: 45px;
    }
    
    .event-timeline {
        padding: 2rem 1rem;
    }
    
    .timeline-marker::before {
        left: 34px;
    }
    
    .timeline-item {
        padding-left: 2rem;
        margin-left: 1rem;
    }
    
    .timeline-marker {
        padding-left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 3rem);
    }
}

#timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(147, 51, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.event-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.event-timeline::before {
    content: '';
    position: absolute;
    left: 75px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        rgba(147, 51, 234, 0.8) 0%,
        rgba(168, 85, 247, 0.6) 50%,
        rgba(147, 51, 234, 0.4) 100%);
    box-shadow: 
        0 0 25px rgba(147, 51, 234, 0.5),
        0 0 15px rgba(147, 51, 234, 0.3);
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    position: relative;
    margin-bottom: 3.5rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: relative;
    width: 160px;
    padding-left: 45px;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(147, 51, 234, 1), rgba(168, 85, 247, 0.8));
    box-shadow: 
        0 0 30px rgba(147, 51, 234, 0.8),
        0 0 60px rgba(147, 51, 234, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.timeline-date {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    background: rgba(147, 51, 234, 0.15);
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: var(--text-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(147, 51, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.timeline-content {
    flex: 1;
    background: rgba(30, 30, 45, 0.8);
    border: 1px solid rgba(147, 51, 234, 0.25);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 15px 35px rgba(15, 15, 21, 0.5),
        0 5px 15px rgba(147, 51, 234, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(147, 51, 234, 0.3),
        transparent);
}

.timeline-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 1), rgba(168, 85, 247, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(147, 51, 234, 0.8);
    position: relative;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.timeline-item:hover .timeline-marker::before {
    transform: scale(1.2);
    box-shadow: 
        0 0 40px rgba(147, 51, 234, 0.9),
        0 0 80px rgba(147, 51, 234, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 45px rgba(15, 15, 21, 0.6),
        0 10px 25px rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.4);
}

@media (max-width: 768px) {
    .event-timeline::before {
        left: 35px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1.5rem;
        padding-left: 4rem;
    }
    
    .timeline-marker {
        width: 100%;
        padding-left: 0;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .event-timeline::before {
        left: 24px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 1.2rem;
        padding-left: 0;
        margin-left: 1.5rem;
    }

    .timeline-marker {
        width: auto;
        padding-left: 48px;
    }

    .timeline-marker::before {
        left: 8px;
    }
}

@media (max-width: 520px) {
    .event-timeline::before {
        display: none;
    }

    .timeline-marker {
        padding-left: 0;
    }

    .timeline-marker::before {
        display: none;
    }

    .timeline-item {
        margin-left: 0;
    }

    .timeline-date {
        width: 100%;
        text-align: center;
    }
}
