@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Exo+2:wght@300;400;500;600;700;800&family=Rajdhani:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Exo 2', 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 25%, #dce4f0 50%, #e0e8f2 75%, #f2f5f9 100%);
    color: #1a2332;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Light travel pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(64, 224, 208, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 2px solid rgba(64, 224, 208, 0.3);
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    flex: 1;
    min-width: 200px;
}

.site-title a {
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #40e0d0 0%, #8a2be2 50%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
}

.site-title a:hover {
    letter-spacing: 8px;
}

.site-tagline {
    font-size: 0.95rem;
    color: #40e0d0;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 400;
    font-family: 'Rajdhani', sans-serif;
}

/* Navigation Menu */
#menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

#menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

#menu li {
    margin: 0 1.2rem;
    font-size: 1rem;
    line-height: 2.5rem;
    position: relative;
}

#menu li::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #40e0d0, #8a2be2);
    transition: width 0.4s ease;
}

#menu li:hover::before {
    width: 100%;
}

#menu a {
    text-decoration: none;
    color: #1a2332;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

#menu li:hover a {
    color: #40e0d0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem 3rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #40e0d0 0%, #8a2be2 50%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 12px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #5a6c84;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 1rem;
    font-family: 'Rajdhani', sans-serif;
}

/* Europe Map SVG - representing 23 countries */
.europe-map-svg {
    width: 100%;
    max-width: 900px;
    height: 250px;
    margin: 2rem auto 0;
    display: block;
}

.country-marker {
    fill: #40e0d0;
    opacity: 0;
    animation: markerAppear 3s ease-out forwards;
    filter: drop-shadow(0 0 8px rgba(64, 224, 208, 0.6));
    transition: all 0.3s ease;
    cursor: pointer;
}

.country-marker:hover {
    fill: #8a2be2;
    transform: scale(1.5);
    filter: drop-shadow(0 0 12px rgba(138, 43, 226, 0.8));
}

@keyframes markerAppear {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 0.9;
        transform: scale(1);
    }
}

.map-path {
    fill: none;
    stroke: #8a2be2;
    stroke-width: 1.5;
    opacity: 0;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: pathDraw 5s ease-out forwards;
}

@keyframes pathDraw {
    to {
        opacity: 0.4;
        stroke-dashoffset: 0;
    }
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 2rem 3rem;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 2px solid rgba(64, 224, 208, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #40e0d0 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: #5a6c84;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
}

/* Countries Gallery Section */
.countries-gallery {
    max-width: 1800px;
    margin: 2rem auto;
    padding: 0 2rem 4rem;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-intro h2 {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #40e0d0 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 1rem;
}

.gallery-intro p {
    font-size: 1.2rem;
    color: #5a6c84;
    letter-spacing: 1px;
    font-family: 'Rajdhani', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Country Cards Grid */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Country Card - Light, Photo-Focused Design */
.country-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 450px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.country-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.country-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 20px;
}

.country-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.05) saturate(1.1);
}

.country-card:hover .country-image {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.2);
}

/* Minimal overlay - text at bottom only */
.country-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 5;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.95) 60%,
            rgba(255, 255, 255, 0.85) 80%,
            transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.country-card:hover .country-info {
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.92) 70%,
            transparent 100%);
}

.country-name {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    color: #1a2332;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 0.3rem 0;
    transition: all 0.3s ease;
}

.country-card:hover .country-name {
    color: #8a2be2;
}

.location-count {
    font-size: 0.9rem;
    color: #5a6c84;
    letter-spacing: 1px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
}

/* Accent border on hover */
.country-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 3px solid transparent;
    transition: all 0.4s ease;
    pointer-events: none;
}

.country-card:hover::after {
    border-color: rgba(64, 224, 208, 0.6);
    box-shadow: 0 0 25px rgba(64, 224, 208, 0.3);
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 2px solid rgba(64, 224, 208, 0.3);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-title {
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #40e0d0 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

#langlist {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 50px;
    padding: 0.5rem;
    border: 2px solid rgba(64, 224, 208, 0.3);
    margin-bottom: 2rem;
}

#langlist li {
    display: inline-block;
    list-style: none;
    margin: 0.3rem;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

#langlist a {
    text-decoration: none;
    color: #1a2332;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
}

#langlist .highlight {
    background: linear-gradient(135deg, #40e0d0, #8a2be2);
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.3);
}

#langlist .highlight a {
    color: white;
    font-weight: bold;
}

#langlist li:not(.highlight):hover {
    background: rgba(64, 224, 208, 0.2);
}

#langlist li:not(.highlight):hover a {
    color: #40e0d0;
}

.footer-credits {
    color: #5a6c84;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-top: 2rem;
    font-weight: 400;
    font-family: 'Rajdhani', sans-serif;
}

.footer-credits strong {
    background: linear-gradient(135deg, #40e0d0 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .site-branding {
        margin-bottom: 1rem;
    }

    #menu {
        justify-content: center;
    }

    #menu ul {
        justify-content: center;
    }

    .country-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 8px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .country-card {
        height: 380px;
    }

    .stats-section {
        gap: 2rem;
    }
}

@media screen and (max-width: 600px) {
    .site-title a {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .site-tagline {
        font-size: 0.8rem;
    }

    #menu li {
        margin: 0 0.5rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .country-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .country-card {
        height: 350px;
    }

    .gallery-intro h2 {
        font-size: 2rem;
    }

    .gallery-intro p {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}
