/* Basic Reset and Setup */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f8f8f8;
    /*background-color: #1a1a1a;*/
    background-color: #312450;
}

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

/* Header */
.main-header {
    /*background-color: #262626;*/
    background-color: #312450;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: #ffffff;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ff8c00;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 20px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 20px;
}

.btn {
    display: inline-block;
    background-color: #ff8c00;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #e67e00;
}

/* Product Showcase Section */
.product-showcase,
.benefits-section,
.reviews-section {
    padding: 80px 0;
    text-align: center;
}

.product-showcase h2,
.benefits-section h2,
.reviews-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

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

.product-card {
    background-color: #262626;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(80, 82, 181, 1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Updated styling for headers and body text */
.product-card h3 {
    margin: 15px 0 5px;
    color: #ffffff;
}

.product-card p {
    font-size: 1rem;
    margin: 0 15px 15px;
    min-height: 48px;
    color: #ff8c00; /* Sets the body text to orange */
}

.product-link {
    display: inline-block;
    padding: 10px 20px;
    margin: 15px 0;
    border: 2px solid #ff8c00;
    color: #ff8c00;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.product-link:hover {
    background-color: #5052b5;
    color: #fff;
}

/* Benefits Section */
.benefits-section {
    background-color: #1a1a1a;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    padding: 20px;
}

.benefit-item i {
    font-size: 3rem;
    color: #ff8c00;
    margin-bottom: 15px;
}

.benefit-item h3 {
    margin-top: 0;
}

/* Reviews Section */
.reviews-section {
    background-color: #3c2c62;
}

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

.review-card {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.stars {
    color: #ffc107;
    margin-bottom: 10px;
}

.reviewer {
    font-style: italic;
    color: #aaa;
    margin-top: 15px;
}

/* Footer */
footer {
    background-color: #312450;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
}

/* Responsiveness */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }

    .main-nav {
        margin-top: 10px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 5px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}
/* Contact Page Specific Styles */
.contact-section {
    position: relative;
    background-image: url('../../images/stylized-bg.png'); /* The path to your new background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 20px;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Adds a dark overlay for readability */
}

.contact-card-container {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    background-color: rgba(26, 26, 26, 0.85); /* Slightly transparent dark card */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.contact-card h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 0.5em;
}

.contact-card p {
    color: #ff8c00;
    font-size: 1.1rem;
    margin-bottom: 2em;
}

/* iframe styling to make the form fit */
.contact-card iframe {
    width: 100%;
    max-width: 640px; /* Optional: Sets a max width for large screens */
    height: 800px; /* Adjust as needed for your form */
    border: none;
    margin: 0 auto;
    display: block;
}
/* World Map Section Styling */
.map-section {
    padding: 100px 0;
    text-align: center;
    background-color: #1f1f1f;
}

.map-container {
    max-width: 1000px;
    margin: 40px auto;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.rpg-map {
    display: block;
    width: 100%;
    height: auto;
}

/* Styling for the map's links (optional, for visual effect) */
.map-container area {
    outline: none; /* Removes default dotted focus outline */
}

/* Product Categories Sections (already in your CSS, but included here for reference) */
.category-section {
    padding: 80px 0;
    text-align: center;
    /* ... other styles ... */
}
/* --- Base Theme (Ensure these match your index.html theme) --- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f8f8f8;
    background-color: #1a1a1a; /* Dark Background */
}

/* --- Reused Component Styles (for navigation and buttons) --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-header { background-color: #262626; padding: 1rem 0; position: sticky; top: 0; z-index: 1000; }
.logo { font-weight: bold; font-size: 1.5rem; color: #ffffff; text-decoration: none; }
.btn { 
    display: inline-block; 
    background-color: #ff8c00; /* Primary Accent Color: Orange */
    color: white; 
    padding: 15px 30px; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold; 
    transition: background-color 0.3s ease; 
}
.btn:hover { background-color: #e67e00; }

/* --- Portfolio Page Styles --- */

/* Hero Section (Immersive/Atmospheric) */
.hero-rpg {
    background-size: cover;
    background-position: center center;
    color: white;
    text-align: center;
    padding: 200px 20px;
    position: relative;
    /* Use a dark, thematic image for 'portfolio-hero.jpg' */
}

.hero-rpg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text clarity */
    z-index: 1;
}

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

.hero-rpg h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

.hero-rpg p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ffc107; /* Gold/Yellow Subtitle Accent */
}

/* Artifact Showcase Grid */
.artifacts-showcase {
    padding: 80px 0;
    background-color: #1f1f1f; /* Slightly lighter dark background */
    text-align: center;
}

.artifacts-showcase h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.artifact-grid {
    display: flex;
    flex-direction: column;
    gap: 60px; /* Spacing between each artifact entry */
}

.artifact-card {
    display: flex;
    align-items: center;
    text-align: left;
    background-color: #262626;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.artifact-card img {
    width: 50%; /* Image takes up half the card width */
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px; /* Ensures visual impact */
}

.artifact-text {
    width: 50%; /* Text takes up the other half */
    padding: 40px;
}

.artifact-card h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-top: 0;
}

.artifact-card p {
    color: #aaa; /* Lighter text for descriptions */
    margin-bottom: 25px;
}

.artifact-link {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #ff8c00;
    color: #ff8c00;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.artifact-link:hover {
    background-color: #ff8c00;
    color: #fff;
}

/* Alternating Layout (Reverse) */
.artifact-card.reverse {
    flex-direction: row-reverse; /* Swaps the image and text blocks */
}

/* Final Call to Action */
.final-cta {
    margin-top: 80px;
    padding: 40px;
    background-color: #262626;
    border-radius: 10px;
}

.final-cta h3 {
    font-size: 2rem;
    color: #ff8c00;
    margin-bottom: 10px;
}

.large-btn {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* --- Footer --- */
footer {
    background-color: #262626;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
}
/* --- Image Stack Setup (NEW STYLES) --- */

.artifact-image-stack {
    position: relative; 
    overflow: hidden;
    /* Ensure the stack takes up its required 50% width on the card */
    width: 50%; 
    height: auto; 
}

.artifact-image-stack .default-img,
.artifact-image-stack .hover-img {
    /* Ensure images fill the stack container */
    width: 100%;
    height: auto; 
    display: block;
    object-fit: cover;
    min-height: 300px; /* Maintains consistency with card height */
    transition: opacity 0.3s ease-in-out; /* Smooth transition for the swap */
}

.artifact-image-stack .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Hide the hover image by default */
}


/* --- Hover Effects (MODIFIED STYLES) --- */

.artifact-card {
    /* Modify the existing artifact-card style: */
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, border-color 0.3s ease-in-out;
    border: 3px solid transparent; /* Added transparent border for glow effect */
}

.artifact-card:hover {
    /* 1. Purple Glow Effect */
    /* Adjust color (#8A2BE2) and intensity (20px spread) as desired */
    box-shadow: 0 0 25px 8px #8A2BE2; 
    
    /* Optional: Slight lift effect for depth */
    transform: translateY(-5px);
    
    /* Optional: Highlight the border itself */
    border-color: #8A2BE2;
}

/* 2. Image Swap on Hover */
.artifact-card:hover .default-img {
    opacity: 0; /* Hide the default image */
}

.artifact-card:hover .hover-img {
    opacity: 1; /* Show the hover image */
}

@media (max-width: 768px) {
    /* 1. Reset artifact card to stack vertically */
    .artifact-card {
        flex-direction: column !important; /* Forces the image and text to stack vertically */
        width: 90%; /* Use most of the screen width */
        margin: 0 auto 30px auto; /* Center the card horizontally and add spacing below */
    }

    /* 2. Reset the width for the image and text containers */
    .artifact-card img,
    .artifact-card .artifact-image-stack,
    .artifact-card .artifact-text {
        width: 100%; /* Make both the image and text use the full width of the card */
        min-height: auto; /* Remove the fixed minimum height constraint */
    }
    
    /* 3. Adjust image object fit for stacking visibility */
    .artifact-card img {
        height: 250px; /* Give the mobile image a fixed height for visual impact */
        object-fit: cover;
    }

    /* 4. Adjust padding/margins for mobile readability */
    .artifact-card .artifact-text {
        padding: 20px; /* Reduce padding on mobile */
        text-align: center; /* Center the text inside the card */
    }

    /* 5. Ensure the text links/buttons are full width (optional) */
    .artifact-link {
        display: block; /* Makes the button fill the available width */
        margin-top: 15px;
    }

    /* Optional: Make the hero section text smaller */
    .hero-rpg h1 {
        font-size: 2.5rem; 
    }
    .hero-rpg p {
        font-size: 1.2rem;
    }
}