/* =====================================================
   FROGDOKU - VIBRANT REDESIGN STYLESHEET
   =====================================================
   This stylesheet completely overhauls the visual design
   while maintaining the existing HTML structure.
   
   Color Palette:
   - Primary: #00D4AA (Vibrant Teal - lily pad water)
   - Secondary: #7ED321 (Bright Lime - frog green)
   - Accent: #FF6B9D (Playful Pink - lily flower)
   - Deep: #2E86AB (Deep Water Blue)
   - Warning: #FFC107 (Golden Yellow - sun reflection)
   - Dark: #1A535C (Pond Depths)
   - Light: #F7FFF7 (Morning Mist)
   ===================================================== */

/* Import Google Fonts for playful typography */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

/* =====================================================
   GLOBAL STYLES & RESETS
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core Color Variables */
    --primary-teal: #00D4AA;
    --secondary-lime: #7ED321;
    --accent-pink: #FF6B9D;
    --deep-blue: #2E86AB;
    --warning-yellow: #FFC107;
    --dark-pond: #1A535C;
    --light-mist: #F7FFF7;
    
    /* Gradient Definitions */
    --pond-gradient: linear-gradient(135deg, var(--deep-blue) 0%, var(--primary-teal) 50%, var(--secondary-lime) 100%);
    --sunset-gradient: linear-gradient(45deg, var(--accent-pink) 0%, var(--warning-yellow) 100%);
    --depth-gradient: linear-gradient(180deg, rgba(26, 83, 92, 0.9) 0%, rgba(26, 83, 92, 0.95) 100%);
    
    /* Typography */
    --font-primary: 'Fredoka', cursive;
    --font-secondary: 'Quicksand', sans-serif;
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: var(--font-secondary);
    background: var(--dark-pond);
    color: var(--light-mist);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(ellipse at top left, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(126, 211, 33, 0.1) 0%, transparent 50%);
}

/* =====================================================
   NAVIGATION BAR STYLING
   ===================================================== */
.navbar {
    background: rgba(26, 83, 92, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--primary-teal);
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(26, 83, 92, 0.98) !important;
    box-shadow: 0 6px 30px rgba(0, 212, 170, 0.4);
}

.navbar__links a {
    color: var(--light-mist) !important;
    font-family: var(--font-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar__links a:hover {
    color: var(--primary-teal) !important;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.6);
}

.navbar__links a::after {
    background-color: var(--secondary-lime) !important;
    height: 3px;
    border-radius: 2px;
    transition: var(--transition-bounce);
}
/* =====================================================
   HAMBURGER MENU - ENHANCED
   ===================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition-swift);
}

.hamburger i {
    color: var(--light);
    font-size: 24px;
    transition: var(--transition-swift);
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger:hover i {
    color: var(--royal-gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.navbar__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--shadow-gradient);
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(255, 107, 53, 0.3),
                0 0 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border: 2px solid transparent;
    border-image: var(--hero-gradient) 1;
}

.navbar__links.active li {
    margin-bottom: 10px;
}

.navbar__links.active a {
    font-size: 24px;
}

/* =====================================================
   HERO SECTION & GAME HERO
   ===================================================== */
.game-hero__content h1,
.game-hero__tagline {
    font-family: var(--font-primary) !important;
}

.game-hero__tagline {
    color: var(--primary-teal) !important;
    font-size: 1.4em !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

/* =====================================================
   BUTTON STYLING - COMPLETE OVERHAUL
   ===================================================== */
.btn {
    background: var(--pond-gradient) !important;
    color: var(--light-mist) !important;
    border: 2px solid transparent !important;
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px 28px !important;
    border-radius: 30px !important;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn::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;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.5) !important;
    border-color: var(--secondary-lime) !important;
}

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background: var(--sunset-gradient) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4) !important;
}

.btn--primary:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.6) !important;
}

/* Hero-specific buttons */
.hero__btn {
    background: transparent !important;
    border: 3px solid var(--primary-teal) !important;
    color: var(--light-mist) !important;
    backdrop-filter: blur(5px);
}

.hero__btn:hover {
    background: rgba(0, 212, 170, 0.2) !important;
    border-color: var(--secondary-lime) !important;
    box-shadow: 0 0 30px rgba(126, 211, 33, 0.5) !important;
}

/* =====================================================
   FEATURE CARDS - ENHANCED STYLING
   ===================================================== */
.game-features2 {
    padding: 60px 20px;
    background: 
                url('src/game-pages/froggy.gif') center/cover;
    position: relative;
}


.game-features2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--depth-gradient);
    z-index: 1;
}


.game-features2 .container {
    position: relative;
    z-index: 2;
}

.feature-card {
    background: linear-gradient(135deg, rgba(46, 134, 171, 0.3) 0%, rgba(0, 212, 170, 0.2) 100%) !important;
    border: 2px solid rgba(0, 212, 170, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition-bounce) !important;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(126, 211, 33, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(46, 134, 171, 0.5) 0%, rgba(0, 212, 170, 0.4) 100%) !important;
    border-color: var(--secondary-lime) !important;
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.4),
                inset 0 0 20px rgba(126, 211, 33, 0.2) !important;
}

.feature-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) scale(1.2);
}

.feature-card h3 {
    color: var(--primary-teal) !important;
    font-family: var(--font-primary) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-card p {
    color: var(--light-mist) !important;
    opacity: 0.9;
}

.feature-card i {
    color: var(--secondary-lime) !important;
    filter: drop-shadow(0 0 10px rgba(126, 211, 33, 0.5));
    transition: var(--transition-smooth);
}

.feature-card:hover i {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 20px rgba(126, 211, 33, 0.8));
}

/* =====================================================
   MEDIA GRID & GALLERY - VIBRANT OVERLAYS
   ===================================================== */
.media-item {
    border: 3px solid transparent;
    background: linear-gradient(45deg, var(--dark-pond), var(--deep-blue)) padding-box,
                var(--pond-gradient) border-box;
    transition: var(--transition-smooth);
}

.media-item:hover {
    border-color: var(--secondary-lime);
    box-shadow: 0 10px 30px rgba(126, 211, 33, 0.4),
                inset 0 0 20px rgba(0, 212, 170, 0.3) !important;
    transform: scale(1.05) rotate(1deg) !important;
}

.media-overlay {
    background: radial-gradient(circle, rgba(0, 212, 170, 0.8) 0%, rgba(126, 211, 33, 0.6) 100%) !important;
}

.media-overlay i {
    color: var(--light-mist) !important;
    font-size: 32px !important;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* =====================================================
   MODAL STYLING - POND THEME
   ===================================================== */
#imageModal {
    background-color: rgba(26, 83, 92, 0.95) !important;
}

.modal-nav {
    background-color: var(--primary-teal) !important;
    border: 2px solid var(--secondary-lime);
    transition: var(--transition-bounce);
}

.modal-nav:hover {
    background-color: var(--secondary-lime) !important;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(126, 211, 33, 0.6);
}

.modal-info h3 {
    color: var(--primary-teal) !important;
    font-family: var(--font-primary);
}

/* =====================================================
   SECTION HEADINGS - PLAYFUL TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h2 {
    color: var(--primary-teal) !important;
    text-align: center;
    font-size: 2.5em !important;
    margin-bottom: 40px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--pond-gradient);
    border-radius: 2px;
}

/* =====================================================
   STORY & DETAIL SECTIONS
   ===================================================== */
.story-content {
    background: rgba(0, 212, 170, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 170, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 212, 170, 0.1);
}

.detail-card {
    background: linear-gradient(135deg, rgba(46, 134, 171, 0.2) 0%, rgba(26, 83, 92, 0.3) 100%) !important;
    border-left: 5px solid var(--secondary-lime) !important;
    transition: var(--transition-smooth);
}

.detail-card:hover {
    transform: translateX(10px);
    box-shadow: -5px 5px 20px rgba(0, 212, 170, 0.3);
}

/* =====================================================
   FOOTER - POND BOTTOM THEME
   ===================================================== */
.footer {
    background: linear-gradient(180deg, var(--dark-pond) 0%, rgba(26, 83, 92, 0.95) 100%) !important;
    border-top: 3px solid var(--primary-teal);
    margin-top: 50px;
}

.footer__links a {
    color: var(--primary-teal) !important;
    transition: var(--transition-smooth);
}

.footer__links a:hover {
    color: var(--secondary-lime) !important;
    text-shadow: 0 0 10px rgba(126, 211, 33, 0.6);
}

/* =====================================================
   SPECIAL EFFECTS & ANIMATIONS
   ===================================================== */
@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

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

/* Floating animation for lily pad buttons */
.feature-card img[alt*="Lilypad"] {
    animation: float 3s ease-in-out infinite;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 768px) {
    h2 {
        font-size: 2em !important;
    }
    
    .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
}
/* =====================================================
   HAMBURGER MENU RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .navbar__links {
        display: none;
        flex-direction: column;
        gap: 10px;
    }

    .hamburger {
        display: flex;
    }

    .navbar__links.active {
        display: flex;
    }

    .navbar__links.active a {
        font-size: 20px;
        padding: 12px 20px;
    }
}
/* =====================================================
   GLOW EFFECTS - REDESIGNED RED GLOW
   ===================================================== */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow-effect:hover::before {
    opacity: 0.6;
}

/* Red glow for special elements - now using pink accent */
.red-glow {
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5),
                0 0 40px rgba(255, 107, 157, 0.3),
                inset 0 0 20px rgba(255, 107, 157, 0.2);
    border: 2px solid rgba(255, 107, 157, 0.5) !important;
}

.red-glow:hover {
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.7),
                0 0 60px rgba(255, 107, 157, 0.5),
                inset 0 0 30px rgba(255, 107, 157, 0.3);
    border-color: var(--accent-pink) !important;
}

/* =====================================================
   GAME-SPECIFIC CTA SECTION
   ===================================================== */
.game-cta {
    background: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, var(--dark-pond) 0%, var(--deep-blue) 100%) !important;
    position: relative;
    overflow: hidden;
}

.game-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(126, 211, 33, 0.2) 0%, transparent 70%);
    animation: ripple 4s linear infinite;
}

.cta-buttons {
    position: relative;
    z-index: 1;
}

/* =====================================================
   SCROLLBAR STYLING
   ===================================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-pond);
}

::-webkit-scrollbar-thumb {
    background: var(--pond-gradient);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-lime);
}

/* =====================================================
   SELECTION STYLING
   ===================================================== */
::selection {
    background: var(--primary-teal);
    color: var(--light-mist);
}

::-moz-selection {
    background: var(--primary-teal);
    color: var(--light-mist);
}