:root {
    --primary: #2563eb;
    /* Rane Blue */
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --accent: #f59e0b;
    /* Gold for highlights */
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-light: #475569;
    --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sponsors Section */
.sponsors {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.sponsors h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.sponsor-logo {
    width: 200px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    /* For text placeholders */
    font-size: 1.2rem;
    font-weight: 600;
    color: #64748b;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.sponsor-logo:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.sponsor-logo:hover img {
    transform: scale(1.05);
}

/* FAQ Section */
.faq-section {
    background-color: #f8fafc;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #334155;
    font-weight: 600;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background: #f8fafc;
}

.faq-answer p {
    padding: 1.5rem 0;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust based on content */
    border-top: 1px solid #e2e8f0;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.register-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.register-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    /* Hidden by default on desktop */
    cursor: pointer;
    z-index: 1001;
    border: none;
    background: transparent;
    padding: 0.5rem;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-main);
    border-radius: 3px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background-image: url('assets/Background Image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideUp 0.8s ease-out;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}


.hero-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

/* Countdown */
.countdown {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: slideUp 0.8s ease-out 0.6s backwards;
}

.countdown-item {
    background: transparent;
    border: 3px solid #2563eb;
    border-radius: 12px;
    padding: 1rem;
    min-width: 90px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.countdown-item label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2563eb;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    animation: slideUp 0.8s ease-out 0.8s backwards;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.register-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    border: 2px solid transparent;
}

.register-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5);
    background: transparent;
    border-color: white;
}

.cta-btn.primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.cta-btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
}

.cta-btn.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Sections General */
section {
    padding: 6rem 0;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-main);
    position: relative;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-main);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about {
    background: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat {
    padding: 2rem;
    background: var(--background);
    border-radius: 16px;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat p {
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
}

/* Themes Section */
.themes {
    background: var(--background);
}

.themes-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.theme-section {
    margin-bottom: 4rem;
}

.theme-title {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.theme-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.theme-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.1);
}

.theme-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    display: block;
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transform: perspective(100px) rotateX(15deg);
    transition: all 0.3s ease;
}

.theme-card:hover .theme-icon {
    transform: perspective(100px) rotateX(0deg) scale(1.1);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.theme-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.3;
}

.theme-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Timeline Section */
.timeline {
    background: white;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #e2e8f0;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    position: relative;
}

/* Timeline Section - Revamped */
.timeline {
    background: white;
    position: relative;
    overflow: hidden;
}

.timeline-container {
    max-width: 650px;
    /* Reduced width for better central focus */
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

/* Central Line */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e2e8f0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 1;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 2rem;
    box-sizing: border-box;
}

/* Left Side Items */
.timeline-item:nth-child(even) {
    left: 0;
}

/* Right Side Items */
.timeline-item:nth-child(odd) {
    left: 50%;
}

/* The Dots */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--primary);
    top: 20px;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    background-color: var(--primary);
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.3);
    transform: scale(1.2);
}

/* Fix dot position for right side items */
.timeline-item:nth-child(odd)::after {
    left: -10px;
}

/* Content Box */
.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.timeline-item:nth-child(odd) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--primary);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.timeline-date {
    display: inline-block;
    padding: 6px 12px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 700;
}

.timeline-content p {
    margin: 10px 0 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Connectors */
.timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    border: medium solid white;
}

/* Left pointer arrow */
.timeline-item:nth-child(even) .timeline-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Right pointer arrow */
.timeline-item:nth-child(odd) .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Clear floats/old styles */
.timeline-container::before {
    display: none;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    border-width: 10px 10px 10px 0;
    /* Reset for right side */
}

.timeline-item:nth-child(even) .timeline-content::before {
    border-width: 10px 0 10px 10px;
    /* Reset for left side */
}

/* Rewards Section */
.rewards {
    padding: 5rem 0;
    background: radial-gradient(circle at center, #f8fafc 0%, #e2e8f0 100%);
}

.rewards h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #1e293b;
}

.prizes-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align bottom so winner stands tall */
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.prize-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.prize-card:hover {
    transform: translateY(-10px);
}

/* Winner Card (Gold) */
.prize-card.winner {
    background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
    border: 2px solid #fbbf24;
    transform: scale(1.1);
    /* Make it bigger */
    z-index: 10;
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.3);
}

.prize-card.winner:hover {
    transform: scale(1.15) translateY(-10px);
}

.prize-card.winner .prize-rank {
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.prize-card.winner .prize-amount {
    color: #d97706;
}

/* Runner Card (Silver) */
.prize-card.runner {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 2px solid #cbd5e1;
}

.prize-card.runner:hover {
    box-shadow: 0 15px 30px rgba(148, 163, 184, 0.4);
}

.prize-card.runner .prize-amount {
    color: #64748b;
}

/* Third Card (Bronze) */
.prize-card.third {
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    border: 2px solid #fdba74;
}

.prize-card.third:hover {
    box-shadow: 0 15px 30px rgba(251, 146, 60, 0.3);
}

.prize-card.third .prize-amount {
    color: #ea580c;
}

.prize-rank {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.prize-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 700;
}

.prize-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
}

.prize-card p {
    color: #64748b;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--background);
    padding: 3rem;
    border-radius: 24px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    color: var(--text-light);
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background: var(--primary-dark);
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/demo.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
    font-weight: 600;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #cbd5e1;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
    }

    100% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to elements */
.hero-text h1 {
    animation: slideUp 1s ease-out;
}

.hero-text h2 {
    animation: slideUp 1s ease-out 0.2s both;
}

.hero-text p {
    animation: slideUp 1s ease-out 0.4s both;
}

.countdown {
    animation: bounceIn 1s ease-out 0.6s both;
}

.countdown-item {
    animation: glow 2s ease-in-out infinite;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

.theme-card {
    animation: fadeInUp 0.8s ease-out both;
}

.theme-card:nth-child(1) {
    animation-delay: 0.1s;
}

.theme-card:nth-child(2) {
    animation-delay: 0.2s;
}

.theme-card:nth-child(3) {
    animation-delay: 0.3s;
}

.theme-card:nth-child(4) {
    animation-delay: 0.4s;
}

.stat {
    animation: bounceIn 0.8s ease-out both;
}

.stat:nth-child(1) {
    animation-delay: 0.2s;
}

.stat:nth-child(2) {
    animation-delay: 0.4s;
}

.stat:nth-child(3) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(odd) {
    animation: slideInLeft 0.8s ease-out both;
}

.timeline-item:nth-child(even) {
    animation: slideInRight 0.8s ease-out both;
}

.prize-card {
    animation: bounceIn 0.8s ease-out both;
}

.prize-card:nth-child(1) {
    animation-delay: 0.2s;
}

.prize-card:nth-child(2) {
    animation-delay: 0.4s;
}

.prize-card:nth-child(3) {
    animation-delay: 0.6s;
}

.register-btn {
    animation: pulse 2s ease-in-out infinite;
}

.register-btn:hover {
    animation: none;
    transform: translateY(-3px) scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .countdown {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-date,
    .timeline-item:nth-child(odd) .timeline-date {
        width: 100%;
        text-align: left;
        padding: 0;
        margin-bottom: 0.5rem;
        justify-content: flex-start;
    }

    .timeline-content {
        width: 100%;
        padding: 0;
    }

    .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -39px;
    }

    .prizes-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .prize-card.winner {
        order: -1;
        transform: scale(1);
    }

    .contact-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }


}

/* Contact Location Section */
.contact-location {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 80px 10%;
    gap: 50px;
}

/* CONTACT BOX */
.contact-box {
    text-align: center;
    max-width: 500px;
}

.contact-box h1 {
    font-size: 42px;
    margin-bottom: 35px;
}

.contact-box p {
    font-size: 18px;
    margin-bottom: 8px;
}

.name {
    font-weight: bold;
    font-size: 20px;
}

.phone,
.email {
    margin-top: 18px;
}

/* SOCIAL ICONS */
.social-icons {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icons a {
    color: white;
    font-size: 32px;
    transition: 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #00d9ff;
}

/* MAP BOX */
.map-box {
    text-align: center;
}

.map-box h1 {
    font-size: 42px;
    margin-bottom: 25px;
}

.map-box iframe {
    width: 380px;
    height: 300px;
    border: 6px solid #bdf3ff;
    border-radius: 10px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
    .contact-location {
        flex-direction: column;
        padding: 50px 5%;
    }

    .map-box iframe {
        width: 100%;
    }
}

/* FOOTER / CONTACT SECTION BACKGROUND */
.contact-location,
footer,
.footer-section {
    background-color: #0d0d0e;
    color: #fff;
}

/* Ensure text stays white */
.contact-location h1,
.contact-location p {
    color: white;
}

/* Social icon circles if present */
.social-icons a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Global button style for mobile/desktop hybrid */
.register-btn-mobile {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    /* Rane Blue */
    color: white !important;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.register-btn-mobile:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: white !important;
}

/* Tablet & Laptop (1024px) */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .prizes-grid {
        gap: 1.5rem;
    }

    .prize-card {
        min-width: 220px;
        padding: 1.5rem;
    }
}

/* Tablet (768px) Overrides */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        position: relative;
    }

    /* Adjust logo size for mobile */
    .nav-logo .logo {
        height: 40px;
    }

    /* Fix Hamburger Position & Overlap */
    .hamburger {
        display: block;
        position: relative;
        /* Sit in flow or adjust absolute */
        z-index: 1002;
    }

    /* Ensure Rane logo doesn't overlap hamburger */
    .nav-logo:last-child {
        margin-right: 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 2rem;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 100px;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-menu a {
        font-size: 1.5rem;
    }

    /* Hero Adjustments */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 60px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
        margin-top: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        gap: 1.5rem;
    }

    .stat {
        padding: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
        text-align: center;
        /* Center text for better mobile compatibility */
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-item {
        justify-content: center;
        flex-wrap: wrap;
        /* allow wrapping on very small screens */
    }

    .social-icons {
        justify-content: center;
        margin-top: 1rem;
    }

    .contact-form {
        text-align: left;
        /* Keep form items left aligned or center? Center might look odd for inputs. Left is safer */
        width: 100%;
    }

    /* Responsive Left-Aligned Timeline for Mobile */
    .timeline-container {
        max-width: 100%;
        padding-left: 0;
    }

    .timeline-container::after {
        left: 30px;
        /* Line moves to left */
        margin-left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        /* Space for line */
        padding-right: 20px;
        text-align: left !important;
        align-items: flex-start;
        margin-bottom: 2rem;
    }

    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
        flex-direction: column;
        /* Stack date and content */
    }

    /* Dots on the left line */
    .timeline-item::after {
        left: 21px !important;
        /* Center on the 30px line */
        right: auto;
    }

    .timeline-item:nth-child(odd)::after {
        left: 21px !important;
    }

    .timeline-date {
        width: auto;
        display: inline-block;
        text-align: left !important;
        padding: 5px 10px;
        margin-bottom: 10px;
        justify-content: flex-start;
    }

    .timeline-item:nth-child(odd) .timeline-date {
        justify-content: flex-start;
    }

    .timeline-content {
        width: 100%;
        padding: 1.5rem;
        text-align: left;
        border-left: 4px solid var(--primary) !important;
        border-right: none !important;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        border-left: 4px solid var(--primary);
        border-right: none;
    }

    /* Hide arrows on mobile for cleaner look */
    .timeline-content::before {
        display: none;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        display: none;
    }

    .sponsors-grid {
        gap: 1.5rem;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    h2 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .countdown {
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 0.5rem;
    }

    .countdown-item span {
        font-size: 1.5rem;
    }

    .prize-rank {
        font-size: 3rem;
    }

    .prize-card h3 {
        font-size: 1.25rem;
    }

    .prize-amount {
        font-size: 2rem;
    }

    .register-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .contact-content {
        padding: 1.5rem;
    }
}