/* CSS Variables for Theme */
:root {
    --primary-color: #981c20; /* Deep red accent */
    --primary-dark: #751417;
    --text-light: #ffffff;
    --text-muted: #e0e0e0;
    --bg-dark: #0a0a0a;
    --bg-overlay: rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(10, 10, 10, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    cursor: url('assets/cursor_star.svg') 16 16, auto;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: url('assets/cursor_star.svg') 16 16, pointer;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), border-radius 1.2s cubic-bezier(0.77, 0, 0.175, 1), visibility 1.2s;
    transform-origin: top center;
}

.loader-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    height: 250px;
}

.loader-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    animation: spinRing 2s linear infinite;
}

.loader-ring::before {
    content: '';
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 3px solid transparent;
    border-left-color: rgba(255,255,255,0.3);
    border-right-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: spinRing reverse 3s linear infinite;
}

.loader-logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.4));
    animation: advancedLogo 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes advancedLogo {
    0% { transform: perspective(600px) rotateY(0deg) scale(1); filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); }
    50% { transform: perspective(600px) rotateY(180deg) scale(1.1); filter: drop-shadow(0 0 25px rgba(255,255,255,0.8)); }
    100% { transform: perspective(600px) rotateY(360deg) scale(1); filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); }
}

.preloader.fade-out {
    transform: translateY(-100%);
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    visibility: hidden;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.header.scrolled {
    padding: 15px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header img {
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.header img:hover {
    transform: scale(1.05);
}

.header.scrolled img {
    height: 50px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-text-container {
    display: grid;
    place-items: center;
    width: 100%;
}

.time-text {
    grid-area: 1 / 1;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
}

.time-text.active {
    opacity: 1;
    visibility: visible;
}

.text-small { font-size: 0.5em; font-weight: 400; }
.text-large { font-size: 1.2em; }

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}

.title-line.highlight {
    color: var(--primary-color);
    font-weight: 800;
    font-style: italic;
    text-shadow: 
        -1px -1px 0 rgba(255,255,255,0.5),
         1px -1px 0 rgba(255,255,255,0.5),
        -1px  1px 0 rgba(255,255,255,0.5),
         1px  1px 0 rgba(255,255,255,0.5),
         0 5px 15px rgba(0,0,0,0.6);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 2px;
}

.hero-btn {
    position: relative;
    margin-top: 40px;
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    background-color: var(--primary-color);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.5s ease;
}

.hero-btn:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(152, 28, 32, 0.4);
}

.hero-btn:hover::before {
    left: 100%;
}

/* Animations Triggered via JS */
.hero.animate .title-line {
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero.animate .title-line:nth-child(1) { animation-delay: 0.5s; }
.hero.animate .title-line:nth-child(2) { animation-delay: 0.7s; }
.hero.animate .hero-subtitle { animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s forwards; }
.hero.animate .hero-btn { animation: fadeUpBtn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s forwards; }

@keyframes fadeUpBtn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
    z-index: 2;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

.arrow-down {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255,255,255,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.6);
    transform: rotate(45deg);
    animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(5px, 5px); }
}

/* --- Explore Section (Demo content below hero) --- */
.explore-section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #050505;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .header-container { padding: 0 30px; }
}

@media (max-width: 768px) {
    .header img { height: 45px; }
    .header.scrolled img { height: 40px; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .section-title { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .header-container { padding: 0 15px; }
    .header img { height: 35px; }
    .header.scrolled img { height: 30px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-btn { padding: 12px 30px; font-size: 1rem; }
}
