/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(135deg, #ff8c42, #ffd700);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Smooth scrolling and custom properties */
:root {
    --primary-orange: #ff6b35;
    --secondary-orange: #ff8c42;
    --accent-yellow: #ffd700;
    --text-dark: #1a1a1a;
    --text-light: #333;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #ff8c42, #ffd700);
    --gradient-secondary: linear-gradient(45deg, #ff6b35, #ff8c42);
    --gradient-accent: linear-gradient(135deg, #fff5e6, #ffe4b3);
}

html {
    scroll-behavior: smooth;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: var(--text-dark);
}

.loading-logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out infinite;
}

.loading-text {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.loading-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 3px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 140, 66, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header:hover {
    background: rgba(255, 140, 66, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.header.scrolled {
    background: rgba(255, 140, 66, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.4));
    transform: rotate(5deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 18px;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-link::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 ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}



.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.4));
}

.hero-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 4.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-shadow: 
        3px 3px 0px var(--white), 
        6px 6px 0px var(--secondary-orange);
    letter-spacing: 2px;
}

.hero-tagline {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}





.cta-button {
    background: var(--gradient-secondary);
    color: var(--text-dark);
    border: 4px solid var(--text-dark);
    padding: 18px 50px;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Luckiest Guy', cursive;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 0 var(--text-dark), 
        0 20px 30px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    animation: slideInUp 1s ease-out 0.9s both;
    opacity: 0;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}



.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 0 var(--text-dark), 
        0 25px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ff8c42, #ffd700);
}

.cta-button:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 
        0 5px 0 var(--text-dark), 
        0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Hero Particles */




/* Section Titles */
.section-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
    text-shadow: 
        2px 2px 0px var(--white), 
        4px 4px 0px var(--secondary-orange);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

/* Lore Section */
.lore {
    padding: 100px 0;
    background: var(--gradient-accent);
    position: relative;
    overflow: hidden;
}



.lore-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 25px;
    border: 4px solid var(--text-dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}



.lore-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-light);
    text-align: justify;
    position: relative;
}

/* Lore Stats */
.lore-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 140, 66, 0.1);
    border-radius: 15px;
    border: 2px solid var(--text-dark);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.9s both;
    opacity: 0;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 140, 66, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}



.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    border: 4px solid var(--text-dark);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}



.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 3px solid var(--text-dark);
    transition: all 0.3s ease;
    filter: brightness(0.95);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.gallery-caption {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-caption {
    color: var(--primary-orange);
    transform: scale(1.05);
}

/* Banner Section */
.banner-section {
    height: 500px;
    background: url('asset/banner.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.banner-overlay {
    background: rgba(0, 0, 0, 0.7);
    padding: 50px;
    border-radius: 25px;
    border: 4px solid var(--white);
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.banner-text {
    font-family: 'Luckiest Guy', cursive;
    font-size: 3rem;
    color: var(--white);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin: 0;
}

/* Join Us Section */
.join-us {
    padding: 100px 0;
    background: var(--gradient-accent);
    text-align: center;
    position: relative;
    overflow: hidden;
}



.join-text {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 50px;
    font-weight: 500;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.social-button {
    background: var(--gradient-secondary);
    color: var(--text-dark);
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    border: 3px solid var(--text-dark);
    box-shadow: 
        0 8px 0 var(--text-dark), 
        0 15px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Fredoka', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.3s both;
    opacity: 0;
}

.social-button:nth-child(2) {
    animation-delay: 0.6s;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.social-button:hover::before {
    left: 100%;
}

.social-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 13px 0 var(--text-dark), 
        0 20px 30px rgba(0, 0, 0, 0.3);
}

.join-button {
    background: var(--gradient-secondary);
    color: var(--text-dark);
    border: 5px solid var(--text-dark);
    padding: 25px 60px;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Luckiest Guy', cursive;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 0 var(--text-dark), 
        0 25px 35px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.9s both;
    opacity: 0;
}

.join-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.join-button:hover::before {
    left: 100%;
}

.join-button:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 
        0 20px 0 var(--text-dark), 
        0 35px 45px rgba(0, 0, 0, 0.3);
}



/* Footer */
.footer {
    background: var(--gradient-primary);
    padding: 50px 0;
    border-top: 4px solid var(--text-dark);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.4));
}

.footer-text {
    text-align: center;
    flex: 1;
}

.footer-text p {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.footer-socials {
    display: flex;
    gap: 25px;
}

.footer-social {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-social::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 ease;
}

.footer-social:hover::before {
    left: 100%;
}

.footer-social:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border: 3px solid var(--text-dark);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ff8c42, #ffd700);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.scroll-top:hover svg {
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 140, 66, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-top: 3px solid var(--text-dark);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }



    .section-title {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .banner-text {
        font-size: 2.2rem;
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .lore-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        max-width: 300px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }


}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }



    .cta-button {
        padding: 15px 35px;
        font-size: 1.3rem;
    }

    .join-button {
        padding: 20px 40px;
        font-size: 1.6rem;
    }

    .banner-text {
        font-size: 1.8rem;
    }

    .lore-content {
        padding: 30px;
    }

    .lore-text {
        font-size: 1.1rem;
    }

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

    .stat-label {
        font-size: 0.9rem;
    }


}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #ffe4b3;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-secondary);
    border-radius: 6px;
    border: 2px solid var(--text-dark);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff8c42, #ffd700);
    transform: scale(1.1);
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[src] {
    opacity: 1;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
} 