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

body {
    font-family: 'Fredoka', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #F0E68C 100%);
    min-height: 100vh;
}

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

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, #2E8B57, #228B22);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.creeper-logo {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.creeper-logo:hover {
    transform: scale(1.1) rotate(5deg);
    animation: creeperPulse 0.5s ease-in-out;
}

@keyframes creeperPulse {

    0%,
    100% {
        transform: scale(1.1) rotate(5deg);
    }

    50% {
        transform: scale(1.2) rotate(5deg);
    }
}

.nav-logo h1 {
    color: #FFD700;
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(145deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    min-width: 140px;
    text-align: center;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(145deg, #FF5252, #FF7979);
}

.nav-btn.active {
    background: linear-gradient(145deg, #4ECDC4, #44A08D);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn {
    background: linear-gradient(145deg, #FFD700, #FFA500);
    color: #333;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.content-section {
    margin-bottom: 4rem;
    padding: 3rem 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1200px;
}

.content-section h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #2E8B57;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Content Grids */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card,
.guide-card,
.story-card,
.redstone-card {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 5px solid #FF6B6B;
}

.info-card:hover,
.guide-card:hover,
.story-card:hover,
.redstone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-card h3,
.guide-card h3,
.story-card h3,
.redstone-card h3 {
    font-family: 'Fredoka One', cursive;
    color: #2E8B57;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-card ul,
.guide-card ul,
.redstone-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li,
.guide-card li,
.redstone-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.1rem;
}

.info-card li:last-child,
.guide-card li:last-child,
.redstone-card li:last-child {
    border-bottom: none;
}

.guide-card ol {
    padding-left: 1.5rem;
}

.guide-card ol li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

/* Materials Grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.material-icon {
    font-size: 1.5rem;
}

/* Cheats Section */
.cheats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cheat-category {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #4ECDC4;
}

.cheat-category h3 {
    font-family: 'Fredoka One', cursive;
    color: #2E8B57;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cheat-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cheat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cheat-item code {
    background: #2d3748;
    color: #68d391;
    padding: 0.5rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
}

.cheat-item span {
    color: #4a5568;
    font-size: 1rem;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.story-card {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 5px solid #9B59B6;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.story-card h3 {
    font-family: 'Fredoka One', cursive;
    color: #2E8B57;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.story-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
}

/* Redstone Section */
.redstone-content {
    margin-top: 2rem;
}

.redstone-intro {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-left: 5px solid #E74C3C;
}

.redstone-intro h3 {
    font-family: 'Fredoka One', cursive;
    color: #2E8B57;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.redstone-intro p {
    font-size: 1.2rem;
    color: #4a5568;
}

.redstone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.redstone-card {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 5px solid #E74C3C;
}

.redstone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2E8B57, #228B22);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-container {
        justify-content: center;
    }

    .creeper-logo {
        width: 50px;
        height: 50px;
    }

    .nav-logo h1 {
        font-size: 1.5rem;
    }

    .nav-menu {
        justify-content: center;
    }

    .nav-btn {
        min-width: 120px;
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .content-grid,
    .cheats-grid,
    .stories-grid,
    .redstone-grid {
        grid-template-columns: 1fr;
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .creeper-logo {
        width: 40px;
        height: 40px;
    }

    .nav-logo h1 {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .nav-btn {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .info-card,
    .guide-card,
    .story-card,
    .redstone-card,
    .cheat-category {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation for content sections */
.content-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for interactive elements */
button,
.nav-btn,
.cta-btn {
    transition: all 0.3s ease;
}

button:active,
.nav-btn:active,
.cta-btn:active {
    transform: translateY(1px);
}

/* Focus styles for accessibility */
button:focus,
.nav-btn:focus,
.cta-btn:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}