/* ============================================
   NENTO 2026 - Nordic Theme Stylesheet
   ============================================ */

:root {
    --nordic-dark-blue: #00586d;
    --nordic-blue: #00586d;
    --nordic-light-blue: #007d96;
    --nordic-ice: #E8F4F8;
    --nordic-white: #F8F9FA;
    --nordic-gray: #6C757D;
    --nordic-dark: #004450;
    --text-dark: #212529;
    --text-muted: #6C757D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--nordic-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: #00586d;
    color: white;
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px);
    pointer-events: none;
}

.math-icons {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.hero-section h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    opacity: 0.95;
    font-weight: 300;
}

/* ============================================
   Countdown Timer
   ============================================ */

.countdown-container {
    max-width: 700px;
    margin: 0 auto;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.countdown-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.countdown-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    color: white;
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
    background: white;
    color: var(--nordic-dark-blue);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--nordic-ice);
    color: var(--nordic-dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Sections
   ============================================ */

.info-section,
.eligibility-section,
.faq-section,
.about-section {
    padding: 80px 20px;
}

.info-section {
    background: white;
}

.eligibility-section {
    background: var(--nordic-ice);
}

.faq-section {
    background: white;
}

.about-section {
    background: linear-gradient(to bottom, var(--nordic-ice) 0%, white 100%);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--nordic-dark-blue);
    font-weight: 700;
    margin-bottom: 3rem;
}

.section-title i {
    color: var(--nordic-blue);
}

/* ============================================
   Information Cards
   ============================================ */

.welcome-box {
    background: linear-gradient(135deg, var(--nordic-ice) 0%, white 100%);
    border-left: 5px solid var(--nordic-blue);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(44, 95, 141, 0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--nordic-ice);
    height: 100%;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(44, 95, 141, 0.2);
    border-color: var(--nordic-blue);
}

.info-icon {
    font-size: 3rem;
    color: var(--nordic-blue);
    margin-bottom: 15px;
}

.info-card h4 {
    color: var(--nordic-dark-blue);
    font-weight: 600;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.info-detail-box {
    background: var(--nordic-ice);
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid var(--nordic-blue);
}

.info-detail-box h5 {
    color: var(--nordic-dark-blue);
    font-weight: 600;
    margin-bottom: 10px;
}

.info-detail-box p {
    margin-bottom: 0;
    color: var(--text-dark);
}

/* ============================================
   Difficulty Table
   ============================================ */

.difficulty-box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(44, 95, 141, 0.15);
    border: 2px solid var(--nordic-ice);
}

.difficulty-table {
    margin-top: 20px;
    margin-bottom: 0;
}

.difficulty-table thead {
    background: #00586d;
    color: white;
}

.difficulty-table thead th {
    padding: 15px;
    font-weight: 600;
    border: none;
}

.difficulty-table tbody tr {
    transition: all 0.2s ease;
}

.difficulty-table tbody tr:hover {
    background-color: var(--nordic-ice);
    transform: scale(1.02);
}

.difficulty-table td {
    padding: 15px;
    vertical-align: middle;
}

.difficulty-table .badge {
    font-size: 1rem;
    padding: 8px 15px;
    font-weight: 600;
}

/* ============================================
   Eligibility Card
   ============================================ */

.eligibility-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(44, 95, 141, 0.15);
    border: 2px solid var(--nordic-blue);
}

.eligibility-card strong {
    color: var(--nordic-dark-blue);
}

/* ============================================
   FAQ Accordion
   ============================================ */

.accordion-item {
    border: 2px solid var(--nordic-ice);
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    background: white;
    color: var(--nordic-dark-blue);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 20px 25px;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: #00586d;
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 200, 0.25);
    border-color: var(--nordic-blue);
}

.accordion-button::after {
    filter: brightness(0) saturate(100%) invert(28%) sepia(43%) saturate(1046%) hue-rotate(175deg) brightness(95%) contrast(89%);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(100%);
}

.accordion-body {
    padding: 25px;
    background: var(--nordic-ice);
    color: var(--text-dark);
    line-height: 1.7;
}

/* ============================================
   About Us / Organizer Cards
   ============================================ */

.organizer-card {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(44, 95, 141, 0.15);
    border: 2px solid var(--nordic-ice);
    transition: all 0.3s ease;
    height: 100%;
}

.organizer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(44, 95, 141, 0.25);
    border-color: var(--nordic-blue);
}

.organizer-avatar {
    font-size: 5rem;
    color: var(--nordic-blue);
    text-align: center;
    margin-bottom: 20px;
}

.organizer-card h4 {
    color: var(--nordic-dark-blue);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.organizer-card p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

.organizer-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.organizer-interests .badge {
    font-size: 0.85rem;
    padding: 8px 12px;
    font-weight: 500;
    border: 1px solid var(--nordic-blue);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: #00586d;
    color: white;
}

.footer h4 {
    color: white;
    font-weight: 600;
}

.footer-email {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.footer-email:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 15px 50px;
    }
    
    .math-icons {
        font-size: 2rem;
        gap: 1rem;
    }
    
    .countdown-box {
        padding: 15px 5px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .info-section,
    .eligibility-section,
    .faq-section,
    .about-section {
        padding: 50px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .info-card,
    .organizer-card,
    .eligibility-card {
        padding: 25px;
    }
    
    .accordion-button {
        font-size: 1rem;
        padding: 15px 20px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .btn-primary {
        font-size: 1rem;
        padding: 12px 30px !important;
    }
    
    .organizer-avatar {
        font-size: 4rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-primary {
    color: var(--nordic-blue) !important;
}

.bg-primary {
    background-color: var(--nordic-blue) !important;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section > .container {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   Smooth Scrolling
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   Accessibility
   ============================================ */

a:focus,
button:focus {
    outline: 2px solid var(--nordic-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
