:root {
    --primary: #00ff88;
    --secondary: #0077ff;
    --accent: #ff3366;
    --dark: #0a0a0a;
    --light: #ffffff;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --gradient-primary: linear-gradient(45deg, var(--primary), var(--secondary));
    --gradient-dark: linear-gradient(45deg, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    --transition-standard: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: var(--dark);
    padding: 2rem;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.1);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--light);
    transition: var(--transition-standard);
    z-index: 2;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.era-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.era-btn {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    color: var(--light);
    cursor: pointer;
    transition: var(--transition-standard);
}

.era-btn.active {
    background: var(--primary);
    color: var(--dark);
}

.era-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.era-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    opacity: 1;
}

.era-image img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.era-image img:hover {
    transform: scale(1.05);
}

.era-highlights {
    list-style: none;
    margin-top: 1rem;
}

.era-highlights li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.era-highlights li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition-standard);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition-standard);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 119, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 255, 136, 0.2) 0%, transparent 50%);
    animation: bgPulse 10s ease-in-out infinite;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.cta-button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: var(--primary);
    border: none;
    border-radius: 5px;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition-standard);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

.cta-button:hover {
    background: var(--secondary);
    color: var(--light);
    transform: translateY(-3px);
}

/* Weapons Section */
.weapon-section {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.weapon-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.weapon-tab {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    color: var(--light);
    cursor: pointer;
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.weapon-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-standard);
    opacity: 0;
}

.weapon-tab:hover::before {
    left: 0;
    opacity: 0.2;
}

.weapon-tab.active {
    background: var(--primary);
    color: var(--dark);
}

.weapon-content {
    position: relative;
}

.weapon-info {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-info.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

.weapon-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition-standard);
}

.weapon-details:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.weapon-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.weapon-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.weapon-image:hover img {
    transform: scale(1.05);
}

.specs {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    transition: var(--transition-standard);
}

.spec-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Timeline Section */
.timeline-section {
    padding: 6rem 0;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--gradient-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    width: 50%;
    margin-bottom: 3rem;
    padding: 0 2rem;
    position: relative;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    transform: translateX(100px);
}

.timeline-item:nth-child(even).visible {
    transform: translateX(0);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    position: relative;
    transition: var(--transition-standard);
}

.timeline-content:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.timeline-content::before {
    content: attr(data-year);
    position: absolute;
    top: 0;
    width: 60px;
    height: 30px;
    background: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-weight: bold;
    font-size: 0.9rem;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -70px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -70px;
}

/* Legends Section */
.legends-section {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.legends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.legend-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-standard);
}

.legend-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.legend-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.legend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.legend-card:hover .legend-image img {
    transform: scale(1.1);
}

.legend-info {
    padding: 1.5rem;
}

.legend-years {
    color: var(--primary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: block;
}

.legend-medals {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.medal {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--dark);
    font-weight: bold;
}

.medal.gold { background: var(--gold); }
.medal.silver { background: var(--silver); }
.medal.bronze { background: var(--bronze); }

.legend-details-btn {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--light);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-standard);
}

.legend-details-btn:hover {
    background: var(--primary);
    color: var(--dark);
}
/* Legend Details Modal Styles */
.legend-details-content {
    max-width: 800px;
}

.achievement-list {
    margin-top: 2rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

.medal-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.medal-icon.gold {
    background: var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.medal-icon.silver {
    background: var(--silver);
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}

.medal-icon.bronze {
    background: var(--bronze);
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

.achievement-info {
    display: flex;
    flex-direction: column;
}

.achievement-year {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.achievement-event {
    font-size: 1.1rem;
}

.legend-header {
    margin-bottom: 2rem;
}

.legend-main-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.legend-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legend-title {
    text-align: center;
}

.legend-country {
    color: var(--primary);
    margin-top: 0.5rem;
}

/* Statistics Section */
.statistics-section {
    padding: 6rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-standard);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stat-number.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bgPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
/* Medal Standings Section */
.medal-standings {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    position: relative;
    overflow: hidden;
}

.medal-standings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, var(--primary) 0%, transparent 70%),
                radial-gradient(circle at 70% 70%, var(--secondary) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 1;
}

.standings-table-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.standings-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.medal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.medal-dot.gold { background: var(--gold); }
.medal-dot.silver { background: var(--silver); }
.medal-dot.bronze { background: var(--bronze); }

.standings-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.standings-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    display: grid;
    grid-template-columns: auto 1fr 2fr;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.standings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.standings-card:hover {
    transform: translateY(-5px);
}

.standings-card:hover::before {
    opacity: 0.1;
}

.card-position {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    width: 60px;
    text-align: center;
}

.country-info {
    position: relative;
}

.country-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.total-medals {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.medal-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.medal-bar {
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.bar {
    height: 100%;
    border-radius: 15px;
    transition: width 1s ease;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.bar.gold {
    background: linear-gradient(90deg, var(--gold), rgba(255, 215, 0, 0.7));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.bar.silver {
    background: linear-gradient(90deg, var(--silver), rgba(192, 192, 192, 0.7));
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
}

.bar.bronze {
    background: linear-gradient(90deg, var(--bronze), rgba(205, 127, 50, 0.7));
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.2);
}

.medal-count {
    color: var(--dark);
    font-weight: bold;
    font-size: 0.9rem;
    position: absolute;
    right: 1rem;
}

/* Animation for medal bars */
@keyframes fillBar {
    from { width: 0; }
    to { width: var(--fill-width); }
}

.medal-bar .bar {
    animation: fillBar 1.5s ease forwards;
}

/* Hover effects */
.standings-card:hover .bar {
    filter: brightness(1.2);
}

.standings-card:hover .card-position {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Add this to your existing media queries section */
@media (max-width: 768px) {
    .standings-card {
        grid-template-columns: auto 1fr;
    }

    .medal-bars {
        grid-column: 1 / -1;
    }

    .card-position {
        font-size: 2rem;
        width: 40px;
    }
}

@media (max-width: 480px) {
    .standings-legend {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .standings-card {
        padding: 1.5rem;
    }

    .medal-bar {
        height: 25px;
    }
}

/* Media Queries */
@media (max-width: 1200px) {
    .weapon-details {
        grid-template-columns: 1fr;
    }
    
    .era-content.active {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
    }
    
    .timeline-content::before {
        left: -40px !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .legend-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .weapon-tabs {
        flex-direction: column;
    }
    
    .era-navigation {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
/* Achievement Item Color Styles */
.achievement-item.gold {
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid var(--gold);
}

.achievement-item.silver {
    background: rgba(192, 192, 192, 0.1);
    border-left: 3px solid var(--silver);
}

.achievement-item.bronze {
    background: rgba(205, 127, 50, 0.1);
    border-left: 3px solid var(--bronze);
}

.achievement-item.gold .achievement-info {
    color: var(--gold);
}

.achievement-item.silver .achievement-info {
    color: var(--silver);
}

.achievement-item.bronze .achievement-info {
    color: var(--bronze);
}

/* Hover effects */
.achievement-item.gold:hover {
    background: rgba(255, 215, 0, 0.2);
}

.achievement-item.silver:hover {
    background: rgba(192, 192, 192, 0.2);
}

.achievement-item.bronze:hover {
    background: rgba(205, 127, 50, 0.2);
}