/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Color Variables --- */
:root {
    --color-primary: #1a1a1a;       /* Dark Charcoal/Black */
    --color-background: #f0f0e8;   /* Off-White/Cream */
    --color-accent: #006400;       /* Dark Green */
    --color-secondary: #444444;    /* Dark Gray */
    --color-light-text: #ffffff;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-background);
}

/* --- Navigation & Header --- */
.navbar {
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    align-items: center; 
    padding: 25px 5%; 
    background-color: var(--color-background); 
    color: var(--color-primary); 
    position: sticky; 
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0; 
}

/* Logo container styling: FIX for Centering & Layering */
.logo-container {
    grid-column: 2 / 3; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    position: relative; 
    height: 133px; 
}

.logo {
    height: 133px; 
    width: auto;
    display: block; 
    transition: opacity 0.5s ease-in-out; 
    position: absolute; 
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Logo Scroll Fade Effect */
.primary-logo { opacity: 1; }
.secondary-logo { opacity: 0; }
.logo-container.scrolled .primary-logo { opacity: 0; }
.logo-container.scrolled .secondary-logo { opacity: 1; }


/* Left side links */
.nav-links { grid-column: 1 / 2; display: flex; justify-content: flex-start; }
.nav-links nav a {
    color: var(--color-primary); text-decoration: none; margin-right: 20px; 
    font-weight: normal; font-size: 0.9em; letter-spacing: 1px; transition: color 0.3s;
    text-transform: uppercase;
}
.nav-links nav a:hover { color: var(--color-accent); }

/* Right side icons */
.nav-icons {
    grid-column: 3 / 4; display: flex; justify-content: flex-end; align-items: center;
    gap: 15px; font-size: 1.2em; 
}
.icon { cursor: pointer; color: var(--color-primary); border: none; background: none; padding: 0;}
.search-icon-btn { padding: 0; margin: 0; cursor: pointer;}
.social-icon { height: 30px; width: 30px; object-fit: contain; }


/* --- Hero Section (Video Background) --- */
.hero-section {
    position: relative; 
    overflow: hidden; 
    text-align: center;
    padding: 0; 
    height: 80vh; /* DESKTOP HEIGHT */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Styling - ensures it maintains ratio and covers space */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1; 
}

/* Text Overlay Styling */
.hero-content {
    position: relative;
    z-index: 2; 
    color: var(--color-light-text); 
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
    padding: 0 20px;
}

.hero-content .promoted-tagline {
    font-size: 2em; 
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-weight: bold;
    color: var(--color-light-text); 
    max-width: 800px; 
    line-height: 1.4;
}
/* --- END HERO SECTION --- */


/* --- SEARCH BAR STYLING --- */
#search-bar-container {
    background-color: var(--color-primary); 
    width: 100%;
    padding: 15px 5%;
    box-sizing: border-box;
    position: sticky;
    top: 100px; 
    z-index: 999;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1;
}

.search-bar-hidden {
    max-height: 0 !important;
    padding: 0 5% !important;
    opacity: 0 !important;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-form input[type="text"] {
    width: 100%; max-width: 600px; padding: 12px 20px; border: 2px solid var(--color-background);
    background-color: var(--color-primary); color: var(--color-light-text); font-size: 1em; border-radius: 5px;
}
.search-form input[type="text"]::placeholder { color: var(--color-secondary); }
.search-form button[type="submit"] {
    background-color: var(--color-accent); color: var(--color-light-text); padding: 12px 25px;
    border: none; border-radius: 5px; font-weight: bold; cursor: pointer; transition: background-color 0.3s;
}
.search-form button[type="submit"]:hover { background-color: #004d00; }
/* --- END SEARCH BAR STYLING --- */


/* --- Content Sections (General) --- */
.content-section { padding: 60px 5%; text-align: center; }
.content-section h2 { font-size: 2em; margin-bottom: 20px; color: var(--color-primary); }
.cta-link { color: var(--color-accent); text-decoration: none; font-weight: bold; display: block; margin-top: 20px; }
.cta-link:hover { text-decoration: underline; }

/* --- Shop Section --- */
.shop-section { background-color: #e5e5dd; }

/* --- Product Grid Styling --- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.image-placeholder {
    width: 100%; height: 250px; background-color: var(--color-secondary); margin-bottom: 15px;
    display: flex; align-items: center; justify-content: center; color: var(--color-light-text); font-size: 1.2em;
}
.product-item h3 { margin-bottom: 5px; font-size: 1.1em; color: var(--color-primary); }
.product-item .price { color: var(--color-accent); font-weight: bold; margin-bottom: 15px; }


/* --- ABOUT PAGE SPECIFIC STYLES --- */
.about-page { text-align: left; }
.about-page h2 { text-align: center; }
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 40px; }
.about-text h3 { color: var(--color-accent); margin-top: 20px; margin-bottom: 5px; }

/* REPLACED: Added new style for the character image and increased size by 0.5x */
.about-image {
    height: 600px; /* Increased size by 0.5x (400px * 1.5) */
    max-height: 600px; /* Ensures height consistency */
    width: 100%; 
    object-fit: contain; /* Ensures the image fits within the fixed 600px height without being cropped */
    display: block;
    margin: 0 auto; /* Center the image within its grid cell */
}
/* REMOVED: .about-image-placeholder */

/* --- ASSETS PAGE SPECIFIC STYLES --- */
.assets-page { background-color: #e5e5dd; }
.assets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; text-align: left; }
.asset-item { background-color: var(--color-background); padding: 25px; border: 1px solid #d4d4c8; border-radius: 5px; }
.asset-item h3 { color: var(--color-primary); margin-bottom: 10px; }
.download-btn {
    display: inline-block; margin-top: 15px; padding: 10px 15px; background-color: var(--color-accent); 
    color: var(--color-light-text); text-decoration: none; font-weight: bold; border-radius: 3px; transition: background-color 0.3s;
}
.download-btn:hover { background-color: #004d00; }


/* --- Footer --- */
footer {
    background-color: var(--color-primary); color: var(--color-secondary);
    text-align: center; padding: 20px 0; font-size: 0.9em;
}

/* --- Responsiveness (Mobile Adjustments) --- */

@media (max-width: 768px) {
    /* FINAL VIDEO HEIGHT FIX - Fixed height ensures video is manageable on mobile */
    .hero-section {
        height: 350px; /* FIXED height in pixels for reliable sizing on all mobile screens */
    }

    .navbar { display: flex; flex-direction: column; padding: 10px 5%; }
    
    .logo-container, .nav-links, .nav-icons { grid-column: auto; order: auto; width: auto; margin: 5px 0; }
    .nav-links nav { text-align: center; }

    .hero-content .promoted-tagline { font-size: 1.8em; }
    
    .product-grid, .assets-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-page { text-align: center; }
}

@media (max-width: 600px) {
    .product-grid, .assets-grid { grid-template-columns: 1fr; }
}