/* =============================================
   KELONIA GAMES - Website Styles
   Theme: Kelonia (soft greens/turquoise) + Fresco (golden/sandstone)
   ============================================= */

/* CSS Variables */
:root {
    /* Kelonia Colors */
    --kelonia-green: #90C695;
    --kelonia-mint: #A8E6CF;
    --kelonia-turquoise: #6ECFCF;
    --kelonia-dark: #1E4D4D;
    --kelonia-cream: #F5F5F0;
    --kelonia-yellow: #F5E6A3;
    
    /* Fresco Colors */
    --fresco-gold: #D4A84B;
    --fresco-light-gold: #F5D998;
    --fresco-sand: #C9A86C;
    --fresco-stone: #8B7355;
    --fresco-dark: #2D1810;
    --fresco-glow: #FFE4A0;
    
    /* Typography */
    --font-display: 'Cinzel', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
}


/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--kelonia-cream);
    color: var(--kelonia-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}


/* =============================================
   HEADER
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(245, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(30, 77, 77, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 15px 20px;
}

.header-logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease, height 0.3s ease;
}

.header.scrolled .header-logo {
    height: 50px;
}

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


.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--kelonia-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--kelonia-turquoise), var(--kelonia-mint));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--kelonia-turquoise);
}

.nav-link:hover::after {
    width: 100%;
}


/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--kelonia-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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


/* =============================================
   HERO KELONIA
   ============================================= */
.hero-kelonia {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--kelonia-cream) 0%, var(--kelonia-mint) 50%, var(--kelonia-turquoise) 100%);
    position: relative;
    overflow: hidden;
}

.hero-kelonia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(168, 230, 207, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(110, 207, 207, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

.hero-kelonia-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
}


.hero-logo {
    max-width: 500px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(30, 77, 77, 0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.6rem;
    color: var(--kelonia-dark);
    margin: 40px 0;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--kelonia-dark) 0%, var(--kelonia-turquoise) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-explore {
    display: inline-block;
    padding: 15px 40px;
    background: var(--kelonia-dark);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(30, 77, 77, 0.3);
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 77, 77, 0.4);
    background: var(--kelonia-turquoise);
}


/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
    padding: var(--section-padding) 0;
    background: var(--kelonia-cream);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.kelonia-title {
    color: var(--kelonia-dark);
}

.kelonia-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--kelonia-turquoise), var(--kelonia-mint));
    margin: 20px auto 0;
    border-radius: 2px;
}


.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.about-text strong {
    color: var(--kelonia-dark);
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-turtle {
    max-width: 300px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(30, 77, 77, 0.2));
}


/* =============================================
   FRESCO SECTION
   ============================================= */
.fresco-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--fresco-dark) 0%, #1a0f08 100%);
    position: relative;
    overflow: hidden;
}

.fresco-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L35 15L45 15L37 22L40 32L30 26L20 32L23 22L15 15L25 15Z' fill='%23D4A84B' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.fresco-header {
    text-align: center;
    margin-bottom: 60px;
}

.fresco-logo {
    max-width: 450px;
    filter: drop-shadow(0 0 60px rgba(212, 168, 75, 0.5));
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 40px rgba(212, 168, 75, 0.4)); }
    to { filter: drop-shadow(0 0 80px rgba(212, 168, 75, 0.7)); }
}


.fresco-subtitle {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--fresco-light-gold);
    letter-spacing: 4px;
    margin-top: 20px;
    text-transform: uppercase;
}

.fresco-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.fresco-description {
    color: var(--kelonia-cream);
}

.fresco-description h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--fresco-gold);
    margin-bottom: 25px;
}

.fresco-description p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(245, 245, 240, 0.9);
}


.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: rgba(245, 245, 240, 0.85);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--fresco-gold);
    text-shadow: 0 0 10px rgba(212, 168, 75, 0.5);
}

/* Video Container */
.video-container h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--fresco-gold);
    margin-bottom: 20px;
    text-align: center;
}


.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 168, 75, 0.2);
    border: 2px solid var(--fresco-sand);
}

.video-wrapper video {
    width: 100%;
    display: block;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.video-overlay.hidden {
    display: none;
}


.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--fresco-gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(212, 168, 75, 0.5);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(212, 168, 75, 0.8);
}

.play-btn svg {
    width: 35px;
    height: 35px;
    color: var(--fresco-dark);
    margin-left: 5px;
}


/* CTA Section */
.cta-section {
    margin-top: 80px;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.1) 0%, rgba(139, 115, 85, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(212, 168, 75, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--fresco-gold);
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(245, 245, 240, 0.8);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-steam {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--fresco-gold) 0%, var(--fresco-sand) 100%);
    color: var(--fresco-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(212, 168, 75, 0.4);
}


.btn-steam:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(212, 168, 75, 0.6);
}

.steam-icon {
    width: 24px;
    height: 24px;
}

.cta-hieroglyphs {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    font-size: 3rem;
    color: rgba(212, 168, 75, 0.1);
}

/* =============================================
   FRESCO GALLERY (inside Fresco section)
   ============================================= */
.fresco-gallery {
    margin-top: 80px;
    text-align: center;
}

.fresco-gallery h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--fresco-gold);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 12px;
    flex: 1;
    border: 2px solid var(--fresco-sand);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 168, 75, 0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 0;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--fresco-sand);
    background: rgba(45, 24, 16, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--fresco-gold);
    border-color: var(--fresco-gold);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    color: var(--fresco-sand);
}

.carousel-btn:hover svg {
    color: var(--fresco-dark);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--fresco-sand);
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    opacity: 1;
    background: var(--fresco-gold);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(212, 168, 75, 0.6);
}

/* =============================================
   SCROLL REVEAL HELPERS
   ============================================= */
.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.2s; }
.reveal-delay-4 { transition-delay: 0.28s; }


/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--kelonia-mint) 0%, var(--kelonia-turquoise) 100%);
}

.contact-content {
    text-align: center;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--kelonia-dark);
    margin-bottom: 30px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--kelonia-dark);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 15px 30px;
    background: white;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(30, 77, 77, 0.2);
}

.contact-email:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 77, 77, 0.3);
}

.contact-email svg {
    width: 24px;
    height: 24px;
}


.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(30, 77, 77, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    color: var(--kelonia-dark);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--kelonia-dark);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 60px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-seo {
    font-size: 0.75rem !important;
    opacity: 0.5;
    margin-top: 10px;
}


/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablet */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-visual {
        order: -1;
    }
    
    .floating-turtle {
        max-width: 200px;
    }
    
    .fresco-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .fresco-logo {
        max-width: 350px;
    }
    
    .carousel-slide img {
        height: 300px;
    }
}


/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--kelonia-cream);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-logo {
        max-width: 250px;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .fresco-logo {
        max-width: 280px;
    }
    
    .fresco-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .fresco-description h3 {
        font-size: 1.4rem;
    }
}


@media (max-width: 768px) {
    .carousel-container {
        flex-direction: column;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .carousel-slide img {
        height: 250px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .btn-steam {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .contact-email {
        font-size: 1rem;
        padding: 12px 24px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-logo {
        max-width: 200px;
    }
    
    .fresco-logo {
        max-width: 220px;
    }
    
    .features-list li {
        font-size: 0.9rem;
    }
    
    .play-btn {
        width: 60px;
        height: 60px;
    }
    
    .play-btn svg {
        width: 25px;
        height: 25px;
    }
}
