@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #f0a500; /* A gold/yellow accent */
    --dark-color: #1a1a1a;
    --light-gray: #cccccc;
    --dark-gray: #2c2c2c;
    --font-header: 'Libre Baskerville', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-color);
    color: var(--light-gray);
    overflow-x: hidden;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 1rem 2rem;
}

.logo {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Burger Menu --- */
.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- General Section Styling --- */
.content-section, .parallax-section, .hero-section, .cta-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.dark-bg {
    background-color: #111;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: white;
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
    color: var(--light-gray);
}

/* --- 1. Hero Section --- */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 0;
    background: url('image/banner.jpeg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

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

.hero-content h1 {
    font-family: var(--font-header);
    font-size: 6rem;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}
.t35l20 {
    top: 35%;
    left: 20%;
}
.t60l45 {
    top: 60%;
    left: 45%;
}
.t45l45 {
    top: 45%;
    left: 45%;
}
/* --- CTA Button --- */
.cta-button {
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(240, 165, 0, 0.3);
}

.cta-button.large {
    font-size: 1.4rem;
    padding: 1.2rem 3rem;
}

/* --- 2. Premise Section --- */
.premise-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
}
.premise-text { flex: 1; line-height: 1.8; }
.premise-image { flex: 1; }
.premise-image img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* --- 3. Detective Section --- */
.detective-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.detective-image { flex: 1; }
.detective-image img { width: 100%; max-width: 400px; border-radius: 5px; }
.detective-text { flex: 1.5; text-align: left; }
.detective-text p { margin-bottom: 1rem; font-size: 1.1rem; }

/* --- 4. Feature: Interrogations --- */
.feature-showcase {
    max-width: 800px;
    margin: auto;
    background: var(--dark-gray);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #444;
}
.dialogue-box .suspect-name { font-weight: 700; color: var(--primary-color); margin-bottom: 1rem; }
.dialogue-box .dialogue-line { font-style: italic; margin-bottom: 2rem; }
.dialogue-options { display: flex; flex-direction: column; gap: 1rem; }
.dialogue-options .option {
    background: #000000;
    color: white;
    border: 1px solid #555;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 5px;
}
.dialogue-options .option:hover { background: var(--primary-color); color: var(--dark-color); }

/* --- 5. Feature: Olfactory Vision --- */
.olfactory-container {
    position: relative;
    max-width: 800px;
    margin: auto;
    cursor: crosshair;
}
.olfactory-image { width: 100%; border-radius: 10px; }
.scent-clue {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(240, 165, 0, 0.4);
    border-radius: 50%;
    border: 2px dashed var(--primary-color);
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}
.scent-clue:hover { transform: translate(-50%, -50%) scale(1.2); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(240, 165, 0, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(240, 165, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(240, 165, 0, 0); }
}
.clue-tooltip {
    position: absolute;
    background: var(--dark-color);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    font-style: italic;
}

/* --- 6. Rogues' Gallery --- */
.rogues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.rogue-card { background: var(--dark-gray); padding: 1.5rem; border-radius: 10px; transition: transform 0.3s; }
.rogue-card:hover { transform: translateY(-10px); }
.rogue-card img { width: 100%; border-radius: 5px; margin-bottom: 1rem; }
.rogue-card h3 { font-family: var(--font-header); color: var(--primary-color); margin-bottom: 0.5rem; }

/* --- 7. The World (Parallax) --- */
.parallax-section {
    background: url('image/arena1.jpeg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    color: white;
    padding: 10rem 2rem;
}
.parallax-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}
.parallax-title, .parallax-subtitle { position: relative; z-index: 2; text-shadow: 2px 2px 5px #000; }
.parallax-title { font-size: 3.5rem; }
.parallax-subtitle { font-size: 1.3rem; }

/* --- 8. Gameplay Loop --- */
.gameplay-loop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.step-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }

/* --- 9. Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.gallery-grid img { width: 100%; border-radius: 5px; transition: transform 0.3s, filter 0.3s; }
.gallery-grid img:hover { transform: scale(1.05); filter: brightness(1.2); }

/* --- 10. Main CTA Section --- */
.cta-section { background: var(--dark-gray); padding: 8rem 2rem; }
.cta-content h2 { font-size: 3.5rem; margin-bottom: 1rem; }
.cta-content p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2.5rem auto; }
.cta-button i { margin-right: 10px; }

/* --- 11. Contact Form --- */
#contact-form { max-width: 700px; margin: auto; text-align: left; }
.form-group { position: relative; margin-bottom: 2.5rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: white;
    background: transparent;
    border: none;
    border-bottom: 2px solid #555;
    outline: none;
    transition: border-color 0.3s;
}
.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1rem;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    border-bottom-color: var(--primary-color);
}
.form-group input:focus ~ label, .form-group input:valid ~ label,
.form-group textarea:focus ~ label, .form-group textarea:valid ~ label {
    top: -20px;
    left: 0;
    font-size: 0.8rem;
    color: var(--primary-color);
}
.form-group-checkbox { display: flex; align-items: center; margin-bottom: 2rem; }
.form-group-checkbox input { margin-right: 10px; accent-color: var(--primary-color); }
.form-group-checkbox a { color: var(--primary-color); }
#contact-form .cta-button { width: 100%; }


/* --- Animations on Scroll --- */
.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 1s, opacity 1s;
}
.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* --- Hero Intro Animations --- */
.fade-in { animation: fadeIn 1s ease-in forwards; opacity: 0; }
.fade-in-delay1 { animation: fadeIn 1s 0.5s ease-in forwards; opacity: 0; }
.fade-in-delay2 { animation: fadeIn 1s 1s ease-in forwards; opacity: 0; }
@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .premise-content, .detective-content { flex-direction: column; }
    .detective-content .detective-image { order: -1; }
    .gameplay-loop, .rogues-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 60%;
        background: var(--dark-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }
    .nav-links li { margin-left: 0; }
    .burger-menu { display: block; }
    .nav-active { transform: translateX(0%); }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.2rem; }
    .section-title { font-size: 2.2rem; }
    .gameplay-loop { grid-template-columns: repeat(1, 1fr); }
    .rogues-grid, .gallery-grid { grid-template-columns: repeat(1, 1fr); }
}