/* ====== ROOT VARIABLES & GLOBAL STYLES ====== */
:root {
    --color-lavender: #C4B0E0;
    --color-orange: #FFA500;
    --color-cyan: #17C3CE;
    --color-lime: #B8D434;
    --color-cream-tint: rgba(245, 245, 235, 0.25);
    --color-border: rgba(245, 245, 235, 0.8);
    --color-text: #4a4a4a;
    --font-heading: 'Savate', sans-serif;
    --font-body: 'Savate', sans-serif;
}

/* ====== BACKGROUND & BODY ====== */
html { scroll-behavior: smooth; }

body { 
    font-family: var(--font-body); 
    color: var(--color-text); 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden; 
    background-color: transparent;
    position: relative;
    z-index: 1;
}

/* Dual background structure for smooth cross-fades */
#background-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.breathing-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; pointer-events: none; --grad-color-1: var(--color-lavender); --grad-color-2: #d8c8e8; background: radial-gradient(circle at 20% 20%, var(--grad-color-2), var(--grad-color-1)); animation: breathing-gradient 20s ease-in-out infinite alternate; }
#background-a { opacity: 1; }
@keyframes breathing-gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

#main-wrapper { position: relative; z-index: 2; opacity: 0; pointer-events: none; transition: opacity 1.5s ease-in-out; -webkit-user-select: none; -ms-user-select: none; user-select: none; }
#main-wrapper.is-visible { opacity: 1; pointer-events: auto; }

/* Frosted glass panels */
.main-nav, .glass-panel { background: var(--color-cream-tint); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1); }

/* ====== CONTENT STYLING ====== */
.page-content { width: 100%; max-width: 700px; padding: 2rem; text-align: center; }
.page-content h1, .page-content h2, .page-content h3, .page-content p { color: var(--color-border); text-shadow: 0px 2px 10px rgba(0,0,0,0.35); }
.hero-content h1 { font-family: var(--font-heading); font-size: clamp(3rem, 10vw, 5rem); font-weight: 700; /* MODIFIED: Set to Bold weight */ margin: 0; line-height: 1.1; }
.hero-content h2 { font-size: clamp(1.2rem, 4vw, 1.75rem); font-weight: 400; /* MODIFIED: Set to Regular weight */ margin-top: 0.5rem; opacity: 0.9; }
.page-content h3 { font-family: var(--font-heading); font-size: clamp(2rem, 7vw, 2.5rem); font-weight: 700; /* MODIFIED: Set to Bold weight */ margin-top: 0; margin-bottom: 1rem; }
.page-content p { line-height: 1.7; font-size: clamp(1rem, 3vw, 1.1rem); margin-bottom: 1rem; font-style: italic; /* ADDED: Apply italic style */ font-weight: 400; /* ADDED: Specify weight for italic */ }

/* ====== GENERAL UI & INTERACTION STYLES ====== */
.cursor-spotlight { display: none; }
@media (hover: hover) and (pointer: fine) { .cursor-spotlight { display: block; } }
.cursor-spotlight { position: fixed; top: 0; left: 0; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 176, 224, 0.15), transparent 70%); transform: translate(-50%, -50%); pointer-events: none; z-index: 102; transition: width 0.4s ease, height 0.4s ease; }
.cursor-spotlight.pulse { animation: cursor-pulse 0.5s ease-out; }
@keyframes cursor-pulse { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.5; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 1rem 0; }
.main-nav { width: 90%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 2rem; border-radius: 12px; }
.main-nav .logo { font-family: var(--font-heading); font-weight: 700; /* MODIFIED: Set to Bold weight */ font-size: clamp(1.2rem, 4vw, 1.5rem); }
.main-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--color-text); font-weight: 700; /* MODIFIED: Set to Bold weight */ position: relative; padding: 0.5rem 0; transition: color 0.3s ease; }
.main-nav a::before { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background-color: var(--color-border); border-radius: 2px; filter: blur(1px); opacity: 0; transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.main-nav a:hover { color: #000; }
.main-nav a:hover::before { width: 110%; opacity: 1; }
.page-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 6rem 2rem; box-sizing: border-box; }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; width: 100%; max-width: 500px; }
.gallery-item img { width: 100%; height: auto; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 2px solid var(--color-border); }
.gallery-item img:hover { transform: scale(1.03); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }
.cta-button { display: inline-block; background-color: var(--color-orange); color: #fff; padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: 700; /* MODIFIED: Set to Bold weight */ margin-top: 1.5rem; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4); }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 165, 0, 0.5); background-color: #ffb732; }
footer { text-align: center; padding: 2rem; font-size: 0.9rem; color: var(--color-text); background-color: rgba(245, 245, 235, 0.4); }
.reveal { opacity: 0; filter: blur(5px); transform: translateY(30px) scale(0.95); transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out; }
.reveal.visible { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
.settings-icon { position: fixed; top: 25px; right: 30px; z-index: 101; width: 40px; height: 40px; background: rgba(245, 245, 235, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.3s ease, background-color 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); }
.settings-icon:hover { transform: scale(1.1) rotate(45deg); background: rgba(245, 245, 235, 0.2); }
.settings-icon i { color: var(--color-text); }
.settings-panel { position: fixed; top: 90px; right: 30px; width: 280px; max-width: calc(100vw - 60px); z-index: 100; padding: 1.5rem; text-align: left; opacity: 0; transform: translateY(-10px) scale(0.95); pointer-events: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); border-radius: 16px; }
.settings-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.settings-title { font-family: var(--font-heading); font-weight: 700; /* MODIFIED: Set to Bold weight */ margin-top: 0; margin-bottom: 1rem; font-size: 1.2rem; border-bottom: 1px solid rgba(74, 74, 74, 0.2); padding-bottom: 0.5rem; }
.button-group { display: flex; gap: 0.5rem; }
.settings-section { margin-bottom: 1.5rem; }
.settings-section:last-child { margin-bottom: 0; }
.sound-btn, .mode-btn, .effect-btn, .ambient-btn, .reset-btn { flex-grow: 1; padding: 0.5rem 0.75rem; font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; /* MODIFIED: Set to Bold weight */ border: 2px solid transparent; border-radius: 8px; background-color: rgba(0, 0, 0, 0.1); color: var(--color-text); cursor: pointer; transition: all 0.2s ease; }
.sound-btn:hover, .mode-btn:hover, .effect-btn:hover, .ambient-btn:hover, .reset-btn:hover { background-color: rgba(0, 0, 0, 0.2); }
.sound-btn.active, .mode-btn.active, .effect-btn.active, .ambient-btn.active { background-color: var(--color-orange); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.reset-btn { width: 100%; background-color: rgba(255, 255, 255, 0.2); }
.reset-btn:hover { background-color: rgba(255, 255, 255, 0.4); }

/* Interactive Header Styles */
.word-wrapper { display: inline-block; }
.interactive-header span span { display: inline-block; cursor: pointer; position: relative; transition: transform 0.2s ease, color 0.2s ease; }
.interactive-header span span:hover { transform: translateY(-5px) scale(1.1); color: var(--color-orange); }
.falling { animation-name: fall-and-tumble; animation-duration: 2s; animation-timing-function: ease-in; animation-fill-mode: forwards; z-index: 10; }
@keyframes fall-and-tumble { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(150vh) rotate(360deg); opacity: 0; } }
#start-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 200; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity 1s ease; }
#start-screen h1 { font-size: clamp(3rem, 15vw, 10rem); font-weight: 700; /* MODIFIED: Set to Bold weight */ color: var(--color-border); }

/* Media Query for Mobile Responsiveness */
@media (max-width: 768px) {
    .main-header { padding: 0.5rem 0; }
    .main-nav { flex-direction: column; gap: 0.5rem; padding: 0.75rem 1rem; }
    .main-nav ul { gap: 1rem; justify-content: center; flex-wrap: wrap; }
    .main-nav a { font-size: 0.9rem; }
    .page-section { padding: 6rem 1rem; }
    .page-content { padding: 2rem 1rem; }
    .cta-button { padding: 0.8rem 2rem; font-size: 0.9rem; }
    .settings-icon { top: 15px; right: 15px; }
    .settings-panel { top: 70px; left: 15px; right: 15px; width: auto; transform: translateY(-10px) scale(1); padding: 1rem; }
    .settings-panel.is-open { transform: translateY(0) scale(1); }
    .button-group { flex-wrap: wrap; }
    footer p { font-size: 0.8rem; }
}