* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --beige: #F5F5DC;
    --dark-blue: #1B2951;
    --gold: #FFD700;
    --light-gray: #f8f9fa;
    --dark-gray: #333;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(27, 41, 81, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--beige);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--gold);
}

.nav-logo i {
    font-size: 1.8rem;
    color: var(--gold);
    animation: pulse 2s ease-in-out infinite alternate;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--beige);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.nav-link:hover {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.2);
}

.nav-link.active {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.1);
}

.nav-link.active:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.hamburger:hover {
    background: rgba(255, 215, 0, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--beige);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--gold);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--gold);
}

.navbar.scrolled {
    background: rgba(27, 41, 81, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
        var(--beige) 0%,
        #f0f0e6 30%,
        #e6e6d9 60%,
        var(--dark-blue) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top left, rgba(255, 215, 0, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(27, 41, 81, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(255, 215, 0, 0.02) 60deg,
            transparent 120deg,
            rgba(27, 41, 81, 0.02) 180deg,
            transparent 240deg,
            rgba(255, 215, 0, 0.02) 300deg,
            transparent 360deg);
    animation: rotate-slow 60s linear infinite;
    z-index: 1;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--dark-blue);
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-logo i {
    font-size: 3rem;
    color: var(--gold);
    animation: rotate 4s linear infinite;
}

.hero-logo span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-blue);
    opacity: 0.8;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--dark-blue) 0%, #2c4a7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--dark-blue);
    opacity: 0.8;
    font-weight: 400;
    line-height: 1.5;
}

.euler-quote {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--gold);
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.euler-quote::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 15px;
    font-size: 4rem;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.euler-quote blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--dark-blue);
}

.euler-quote cite {
    font-size: 0.95rem;
    color: var(--dark-blue);
    opacity: 0.7;
    font-weight: 500;
}

.cta-container {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-button {
    background: linear-gradient(135deg, var(--gold) 0%, #ffed4e 100%);
    color: var(--dark-blue);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.euler-portrait-section {
    position: relative;
    text-align: center;
}

.portrait-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: var(--beige);
    transition: all 0.3s ease;
}

.portrait-container:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.euler-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portrait-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--beige) 0%, #e8e8d0 100%);
    color: var(--dark-blue);
    font-size: 5rem;
}

.euler-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.euler-info h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.euler-info p {
    color: var(--dark-blue);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.4;
}

.mathematical-symbols {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 2.5rem;
    color: var(--gold);
    flex-wrap: wrap;
}

.mathematical-symbols span {
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.mathematical-symbols span:hover {
    color: #ffed4e;
    transform: scale(1.3) rotate(15deg);
    background: rgba(255, 255, 255, 0.2);
}

.mathematical-symbols span:nth-child(1) { animation: float 3s ease-in-out 0s infinite alternate; }
.mathematical-symbols span:nth-child(2) { animation: float 3s ease-in-out 0.5s infinite alternate; }
.mathematical-symbols span:nth-child(3) { animation: float 3s ease-in-out 1s infinite alternate; }
.mathematical-symbols span:nth-child(4) { animation: float 3s ease-in-out 1.5s infinite alternate; }
.mathematical-symbols span:nth-child(5) { animation: float 3s ease-in-out 2s infinite alternate; }

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.euler-quote-small {
    font-style: italic;
    color: var(--dark-blue);
    opacity: 0.8;
    margin-top: 1rem;
}

/* About Section */
.about {
    background: var(--light-gray);
}

.about-text h3 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.mission-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.point i {
    font-size: 2rem;
    color: var(--gold);
}

/* Add these styles to your existing proto.css file */

/* Archive Section Styling */
.archive {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.archive .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.archive .section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.archive .section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Edition Cards */
.edition-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.edition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--dark-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.edition-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

.edition-card:hover::before {
    transform: scaleX(1);
}

.edition-year {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
    text-align: center;
}

.edition-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edition-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.edition-stats span {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.edition-stats span i {
    margin-right: 10px;
    color: var(--gold);
    width: 16px;
}

.edition-card:hover .edition-stats span {
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-color);
}

.edition-symbol {
    font-size: 4rem;
    text-align: center;
    color: var(--gold);
    opacity: 0.3;
    font-weight: 300;
    transition: all 0.3s ease;
}

.edition-card:hover .edition-symbol {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Loading and Empty States */
.loading-editions {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.no-editions {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: var(--text-muted);
}

.no-editions i {
    font-size: 5rem;
    margin-bottom: 30px;
    opacity: 0.3;
    color: var(--dark-blue);
}

.no-editions h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.no-editions p {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close:hover {
    color: var(--dark-blue);
    background: rgba(0, 0, 0, 0.1);
}

/* Modal Content Styling */
.edition-modal-header {
    background: linear-gradient(135deg, var(--dark-blue), #2c5aa0);
    color: white;
    padding: 50px 40px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.edition-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.edition-symbol-large {
    font-size: 6rem;
    opacity: 0.3;
    margin-bottom: 20px;
    font-weight: 300;
}

.edition-modal-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.edition-modal-header h3 {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Stats Grid */
.edition-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px;
    background: #f8f9fa;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Podium Section */
.podium-section {
    padding: 40px;
}

.podium-section h4 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.podium-section h4 i {
    color: var(--gold);
}

.podium-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.podium-place {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.podium-place:hover {
    transform: translateY(-3px);
}

.podium-place.gold {
    border-left: 5px solid #FFD700;
    background: linear-gradient(135deg, #fff9e6, white);
}

.podium-place.silver {
    border-left: 5px solid #C0C0C0;
    background: linear-gradient(135deg, #f5f5f5, white);
}

.podium-place.bronze {
    border-left: 5px solid #CD7F32;
    background: linear-gradient(135deg, #fff5f0, white);
}

.medal-icon {
    font-size: 2rem;
}

.medal-icon i {
    color: var(--gold);
}

.winner-info {
    flex: 1;
}

.winner-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.winner-school {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.winner-score {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
}

.place-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    opacity: 0.3;
}

/* Downloads Section */
.downloads-section {
    padding: 40px;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.downloads-section h4 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.downloads-section h4 i {
    color: var(--gold);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.download-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.download-card i {
    font-size: 2.5rem;
    color: #dc3545;
}

.download-info {
    flex: 1;
}

.download-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.download-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.download-btn {
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.download-btn:hover {
    background: var(--dark-blue);
    transform: scale(1.1);
}

/* Loading States */
.loading-container {
    padding: 80px 40px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--dark-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Error States */
.error-container {
    padding: 80px 40px;
    text-align: center;
}

.error-container i {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

/* Error States - continued */
.error-container h3 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.error-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.close-btn {
    background: var(--dark-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .archive {
        padding: 60px 0;
    }
    
    .archive .section-header h2 {
        font-size: 2rem;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .edition-card {
        padding: 30px 20px;
    }
    
    .edition-year {
        font-size: 2.5rem;
    }
    
    .edition-title {
        font-size: 1.1rem;
        min-height: 50px;
    }
    
    .edition-symbol {
        font-size: 3rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .edition-modal-header {
        padding: 40px 20px;
    }
    
    .edition-symbol-large {
        font-size: 4rem;
    }
    
    .edition-modal-header h2 {
        font-size: 2rem;
    }
    
    .edition-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .edition-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 20px;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-card i {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .podium-section {
        padding: 30px 20px;
    }
    
    .podium-container {
        grid-template-columns: 1fr;
    }
    
    .podium-place {
        padding: 20px;
        gap: 15px;
    }
    
    .downloads-section {
        padding: 30px 20px;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        padding: 20px;
        gap: 15px;
    }
    
    .download-card i {
        font-size: 2rem;
    }
    
    .download-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .close {
        right: 15px;
        top: 15px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .edition-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 25px 20px;
    }
    
    .podium-place {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .place-number {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .download-btn {
        align-self: center;
    }
}

/* Smooth transitions for all interactive elements - continued */
.edition-card,
.stat-card,
.podium-place,
.download-card,
.download-btn,
.close-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* Focus states for accessibility */
.edition-card:focus,
.download-btn:focus,
.close-btn:focus,
.close:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Animation for edition cards on load */
.edition-card {
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.edition-card:nth-child(1) { animation-delay: 0.1s; }
.edition-card:nth-child(2) { animation-delay: 0.2s; }
.edition-card:nth-child(3) { animation-delay: 0.3s; }
.edition-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for better interactivity */
.edition-card:hover .edition-year {
    color: var(--gold);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.edition-card:hover .edition-title {
    color: var(--dark-blue);
    transition: all 0.3s ease;
}

/* Loading animation for edition cards */
.loading-editions::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-top: 2px solid var(--dark-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.edition-season {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
}

.edition-card:hover .edition-season {
    color: var(--dark-blue);
}

/* Enhanced modal backdrop */
.modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Pulse animation for download buttons */
.download-btn:hover {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Gradient text effect for edition titles */
.edition-card:hover .edition-title {
    background: linear-gradient(45deg, var(--dark-blue), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shadow effects for depth */
.modal-content {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.edition-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px var(--gold);
}



/* Modalities Section */
.modalites {
    background: var(--dark-blue);
    color: var(--beige);
}

.modalites .section-header h2,
.modalites .euler-quote-small {
    color: var(--beige);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.rule-section {
    background: rgba(245, 245, 220, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(245, 245, 220, 0.2);
}

.rule-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rule-section ul {
    list-style: none;
}

.rule-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(245, 245, 220, 0.1);
}

.rule-section li:before {
    content: "→";
    color: var(--gold);
    margin-right: 0.5rem;
}

/* Next Edition Section */
.next-edition {
    background: var(--beige);
}

.edition-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.detail-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.detail-card h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.detail-card p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.detail-card span {
    color: var(--dark-gray);
    opacity: 0.8;
}

.registration-cta {
    text-align: center;
    background: var(--dark-blue);
    color: var(--beige);
    padding: 3rem;
    border-radius: 20px;
}

.registration-cta h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.register-btn {
    background: var(--gold);
    color: var(--dark-blue);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s;
}

.register-btn:hover {
    transform: scale(1.05);
}

.registration-note {
    margin-top: 1rem;
    opacity: 0.8;
}

/* Hall of Fame Section */
.hall-of-fame {
    background: var(--light-gray);
}

/* Search Container */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.search-container input {
    width: 100%;
    padding: 1rem 4rem 1rem 1rem;
    border: 2px solid var(--dark-blue);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-container input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.search-container .fa-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-blue);
    pointer-events: none;
}

/* Search Clear Button */
.search-clear {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--dark-blue);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.search-clear:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    opacity: 1;
}

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-item span:first-child {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.perfect-score {
    background: var(--gold) !important;
}

.elegant-solution {
    background: #9370DB !important;
}

.outstanding-performance {
    background: #32CD32 !important;
}

/* Table Styles */
.participants-table {
    overflow-x: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--dark-blue);
    color: var(--beige);
    font-weight: 600;
}

tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.pagination-info {
    color: var(--dark-blue);
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 2px solid var(--dark-blue);
    border-radius: 25px;
    color: var(--dark-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--dark-blue);
    color: var(--beige);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 41, 81, 0.25);
}

.pagination-btn:disabled {
    border-color: #d4c4a8;
    color: #8b7355;
    cursor: not-allowed;
    opacity: 0.5;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.5rem 0.8rem;
    background: transparent;
    border: 1px solid #e8e0d5;
    border-radius: 8px;
    color: var(--dark-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

.page-btn:hover {
    background: #f5f3f0;
    border-color: var(--dark-blue);
    color: var(--dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(27, 41, 81, 0.15);
}

.page-btn.active {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    color: var(--beige);
    box-shadow: 0 2px 8px rgba(27, 41, 81, 0.3);
}

.page-btn.active:hover {
    background: #1e3a5f;
    border-color: #1e3a5f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 41, 81, 0.4);
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--beige);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--beige);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 245, 220, 0.2);
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--dark-blue);
}

/* Search Message Styling */
#searchMessage {
    animation: fadeIn 0.3s ease-in;
    text-align: center;
    padding: 2rem;
    color: var(--dark-blue);
    font-style: italic;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--dark-blue);
        flex-direction: column;
        padding: 2rem 0;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-bottom: 3px solid var(--gold);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(-20px);
    }
    
    .nav-menu.active .nav-item {
        animation: slideInDown 0.5s ease forwards;
    }
    
    .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active .nav-item:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu.active .nav-item:nth-child(6) { animation-delay: 0.6s; }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        margin: 0.5rem 1rem;
        border-radius: 15px;
        font-size: 1.1rem;
        border: 2px solid transparent;
        transition: all 0.3s ease;
        transform: none;
        box-shadow: none;
    }
    
    .nav-link:hover {
        background: var(--gold);
        color: var(--dark-blue);
        border-color: var(--gold);
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
    }
    
    .nav-link.active {
        background: rgba(255, 215, 0, 0.2);
        border-color: var(--gold);
        color: var(--gold);
        box-shadow: none;
    }
    
    .nav-link.active:hover {
        background: var(--gold);
        color: var(--dark-blue);
        transform: scale(1.05);
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .hero {
        padding-top: 70px;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .portrait-container {
        width: 250px;
        height: 250px;
    }
    
    .mathematical-symbols {
        font-size: 2rem;
        gap: 1.5rem;
    }
    
    .cta-container {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .legend {
        flex-direction: column;
        align-items: center;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .edition-details {
        grid-template-columns: 1fr;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .pagination-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .page-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
        min-width: 35px;
    }
}

@keyframes slideInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 70px;
        padding: 0 1rem;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-logo i {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        top: 70px;
    }
    
    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .hamburger span {
        width: 22px;
        height: 2px;
    }
    
    .nav-overlay {
        top: 70px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .portrait-container {
        width: 200px;
        height: 200px;
    }
    
    .mathematical-symbols {
        font-size: 1.8rem;
        gap: 1rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .euler-quote {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Additional animations and effects */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hamburger,
    .cta-button,
    .register-btn,
    .pagination-container {
        display: none;
    }
    
    .hero {
        padding-top: 0;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* Search Message Styling */
.search-message {
    text-align: center;
    padding: 1rem 2rem;
    margin: 1rem auto 2rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1rem;
    max-width: 600px;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease-in;
}

.search-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.search-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.search-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}


@keyframes confetti-fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes konami-bounce {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    70% {
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Remove the rainbow background animation completely */


.konami-activated {
    animation: rainbow-background 2s ease-in-out infinite alternate;
}
