:root {
    --pig-pink: #dd17ec;
    --gold: #ffcc00;
    --bg-dark: #121212;
    --nav-white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Arial Black', Gadget, sans-serif;
    background: var(--bg-dark);
    color: white;
}

/* --- NEW RESPONSIVE NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--nav-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.logo {
    color: #000;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
}

/* Hamburger Logic */
.menu-toggle { display: none; }

.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #000;
    border-radius: 3px;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
}

.nav-links a:hover {
    color: var(--pig-pink);
}

.btn-nav {
    background: var(--pig-pink);
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
}

/* --- HERO & COUNTDOWN --- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle, #222 0%, #000 100%);
    padding: 40px 20px;
}

h1 { font-size: 4rem; color: var(--pig-pink); margin: 10px 0; }

#countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.time-box {
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--pig-pink);
    padding: 20px;
    border-radius: 12px;
    min-width: 90px;
}

.time-box span { font-size: 2.5rem; color: var(--gold); display: block; }
.time-box p { margin: 0; font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; }

/* --- PAGE CONTAINERS --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* NEW: Added wide container to fit 5 cards side-by-side */
.container-wide {
    max-width: 95%;
    margin: 0 auto;
    padding: 40px 20px;
}

.media-container {
    width: 80%;
    max-width: 800px;
    height: 400px;
    background: #1a1a1a;
    border: 4px solid var(--pig-pink);
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.log-entry {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-left: 5px solid var(--gold);
    text-align: left;
}

/* --- ABOUT US & BACKSTORY --- */
.backstory {
    text-align: center;
    margin-bottom: 100px;
}

.backstory h1 {
    font-size: 4.5rem;
    color: var(--pig-pink);
    margin: 20px 0;
}

.story-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #e0e0e0;
    text-align: left;
    max-width: 750px;
    margin: 0 auto;
}

.story-content p { margin-bottom: 25px; }
.story-content strong { color: var(--gold); }

.team-overview {
    text-align: center;
    padding-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.team-overview h2 { font-size: 2.5rem; color: white; }

.dept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.dept-box {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    text-align: left;
    transition: transform 0.3s ease;
    border-bottom: 5px solid var(--pig-pink);
    box-shadow: 0 10px 20px rgba(221, 23, 236, 0.1);
}

.dept-box:hover { transform: translateY(-5px); }

.dept-box h3 {
    margin: 0 0 10px 0;
    color: var(--gold);
    font-size: 1.4rem;
    text-transform: uppercase;
}

.dept-box p { color: #bbb; font-size: 1rem; line-height: 1.5; margin: 0; }

/* --- FOOTER --- */
.site-footer {
    background: #000000;
    color: #ffffff;
    padding: 60px 5% 30px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: var(--pig-pink);
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-section p { font-size: 0.85rem; line-height: 1.6; opacity: 0.7; }

.social-icons { display: flex; flex-direction: column; gap: 10px; }

.social-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.social-link:hover { color: white; }
.footer-section:last-child { text-align: right; }

.btn-discord {
    background: #5865F2;
    color: white;
    padding: 20px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: transform 0.2s;
    display: inline-block;
}

/* --- SHARED MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    .menu-toggle:checked ~ .nav-links { display: flex; }
    .menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    h1, .backstory h1 { font-size: 2.5rem; }
    .dept-grid, .profile-grid-five { grid-template-columns: 1fr !important; }
    #countdown { flex-wrap: wrap; }
}

/* --- LORE PAGE STYLES --- */
.lore-header {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('your-hero-art.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    border-bottom: 3px solid var(--pig-pink);
}

.lore-header h1 {
    font-size: 4.5rem;
    letter-spacing: -2px;
}

.lore-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* FIXED: Ensuring Side-by-Side layout for Game Overview */
.lore-row {
    display: flex; 
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
    width: 100%;
}

.lore-row.reverse {
    flex-direction: row-reverse;
}

.lore-image {
    flex: 1;
    max-width: 50%;
}

.img-frame {
    width: 100%;
    height: 350px;
    background: #1a1a1a;
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pig-pink);
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-frame::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-top: 3px solid var(--gold);
    border-right: 3px solid var(--gold);
}

.lore-text {
    flex: 1;
    max-width: 50%;
}

.chapter {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 10px;
}

.lore-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--pig-pink);
}

.lore-text p {
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #ccc;
}

/* --- CHARACTER SECTION --- */
.character-profiles {
    background: #0a0a0a;
    padding: 40px 0 150px 0; 
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.character-profiles h2 {
    margin-top: 10px;
    font-size: 2.8rem;
    margin-bottom: 30px;
}

/* Forced 5-column layout for "Meet the Piggies" */
.profile-grid-five {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px;
    align-items: start;
    margin-top: 20px;
}

.profile-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    margin-bottom: 40px; 
}

.profile-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(221, 23, 236, 0.2);
}

.profile-img {
    width: 100%;
    height: 400px;
    background: #333;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background-color: #1a1a1a; 
    color: white; 
}

/* Stats that appear on hover */
.stats-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--pig-pink);
    opacity: 0.9;
    color: white;
    padding: 15px 0;
    transition: 0.3s ease;
    font-size: 0.8rem;
    font-weight: bold;
}

.profile-card:hover .stats-overlay {
    bottom: 0;
}

.profile-card h3 {
    color: var(--gold);
    margin: 10px 0 5px 0;
    font-size: 1.5rem;
}

.role {
    color: var(--pig-pink);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.bio {
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.4;
    text-align: left;
    font-family: 'Georgia', serif;
}

/* Large feature image box style */
.lore-image-feature {
    width: 100%;
    max-width: 1100px;
    height: 400px;
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin: 80px auto 0 auto;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
}

.lore-image-feature:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(221, 23, 236, 0.2);
}

.lore-image-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* --- LORE MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .lore-header h1 {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    .lore-row, 
    .lore-row.reverse {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
    }

    .lore-image, 
    .lore-text {
        width: 100%;
        max-width: 100%;
    }

    .img-frame {
        height: 250px;
    }

    .profile-grid-five {
        grid-template-columns: 1fr !important;
        gap: 30px;
        padding: 0 10px;
    }

    .profile-card {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .profile-img {
        height: 350px;
    }

    .lore-image-feature {
        height: 250px;
        margin-top: 40px;
    }
}

/* Fit image utility */
.lore-fit-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}