/* Global Styles */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

section {
    scroll-margin-top: 100px;
    /* Offset for sticky nav */
}

body {
    font-family: 'Fredoka', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    /* Basic background fallback */
    background-color: #3498db;
}

/* Background Image Handling */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/bg.png') no-repeat center center/cover;
    z-index: -1;
}

/* Layout */
/* Layout */
.content-wrapper {
    width: 100%;
    max-width: 600px;
    /* Mobile-first approach, max width for desktop readable area */
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    /* Removed top padding */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header */
.site-header {
    text-align: center;
    margin-top: 0;
    /* Updated to 0 */
    margin-bottom: 20px;
}

.header-img {
    max-width: 80%;
    /* Responsive width */
    height: auto;
    display: block;
    margin: 0 auto;
    /* Optional: simple shadow/filter if the image has rough edges */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    /* If the user wants to try and mask the white background (won't be perfect for complex images) */
    /* mix-blend-mode: multiply; */
}

/* Components */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    text-align: center;
}

h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Video Container */
.video-container {
    width: 100%;
    /* Remove aspect-ratio if videos have different shapes, or keep standard 16/9 */
    /* aspect-ratio: 16 / 9; */
    border-radius: 12px;
    overflow: hidden;
    background: black;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

video {
    display: block;
    width: 100%;
    height: auto;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Social Buttons */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.telegram {
    background: linear-gradient(45deg, #0088cc, #33aadd);
}

.tiktok {
    background: linear-gradient(45deg, #000000, #25F4EE, #FE2C55);
    background-size: 200% auto;
}

.x-twitter {
    background: #000;
    border: 1px solid #333;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .content-wrapper {
        padding: 15px;
        max-width: 100%;
    }

    .social-btn {
        font-size: 1rem;
    }
}

/* Navigation Menu */
.site-nav {
    position: sticky;
    top: 10px;
    z-index: 100;
    margin-bottom: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav.hidden {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
}

.nav-card {
    padding: 10px 15px !important;
    /* Override default glass-card padding */
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    backdrop-filter: blur(15px);
    /* Stronger blur for readability */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.nav-card::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.nav-card {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.site-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Mobile Nav Optimization */
@media (max-width: 480px) {
    .nav-card {
        justify-content: flex-start;
        overflow-x: auto;
        /* Horizontal scroll on small screens */
        padding: 10px !important;
        gap: 10px;
    }

    .site-nav a {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}