/* Index page: demo1 hero animation, preloader, header styling + same colors/background */

:root {
    --bg-dark: #0a0a0c;
    --brand-red: #b9413a;
    --brand-red-light: #d45a4a;
    --accent-gold: #c5a059;
    --accent-gold-light: #e6c27a;
    --text-light: #f0f0f0;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Index page body/hero area uses dark theme */
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* ----- Loader (same as demo1) ----- */
.loader {
    background: var(--bg-dark) !important;
    transition: opacity 0.5s ease, visibility 0.5s ease !important;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    text-align: center !important;
}

.loader-images,
.loader-image-wrapper {
    display: none !important;
}

.loader-img {
    width: 250px;
    opacity: 0;
    transition: opacity 1s ease;
    filter: drop-shadow(0 0 10px var(--accent-gold));
}

.loader-img.show {
    opacity: 1;
}

/* ----- Header / Navbar (demo1 styling, index keeps its links) ----- */
.navbar {
    padding: 20px 0 !important;
    border-bottom: 1px solid var(--glass-border) !important;
    background: transparent !important;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px !important;
    padding: 0 50px !important;
    height: auto !important;
}

.nav-logo .logo-text {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: var(--accent-gold) !important;
    letter-spacing: 1px;
}

.nav-menu {
    gap: 30px !important;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    padding: 0 !important;
    border-bottom: none !important;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold) !important;
    opacity: 1;
}

.dropdown-menu {
    background: rgba(10, 10, 12, 0.95) !important;
    border: 1px solid var(--glass-border) !important;
    padding: 15px !important;
    min-width: 200px;
}

.dropdown-menu li a {
    color: var(--text-light) !important;
    padding: 8px 0 !important;
    font-size: 0.85rem !important;
}

/* ----- Stars background (demo1) ----- */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0c 100%);
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ----- Hero section (demo1 animation, colors, layout) ----- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero .falling-letter,
.hero .hero-subtitle,
.hero .hero-description,
.hero .zodiac-wheel {
    opacity: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-left {
    flex: 1;
}

.hero-title-line {
    height: 2px !important;
    background: linear-gradient(90deg, var(--accent-gold), transparent) !important;
    width: 0 !important;
    margin: 15px 0 !important;
    min-width: 0 !important;
}

.falling-letters {
    font-family: 'Playfair Display', serif !important;
    font-size: 5rem !important;
    font-weight: 700 !important;
    color: var(--text-light) !important;
    text-shadow: none !important;
    letter-spacing: 0.15em;
}

.falling-letter {
    display: inline-block;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.8rem !important;
    color: var(--accent-gold) !important;
    margin-bottom: 10px !important;
    font-style: italic;
    text-shadow: none !important;
}

.hero-description {
    font-size: 1.2rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 30px !important;
    text-shadow: none !important;
}

.hero-cta .btn-primary {
    background: var(--brand-red);
    color: white;
}

.hero-cta .btn-primary:hover {
    background: var(--brand-red-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(185, 65, 58, 0.3);
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zodiac-wheel {
    width: 450px;
    opacity: 0.6;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hide old hero-section / rotating-image rules from affecting new hero */
.hero-image::before {
    display: none !important;
}

.hero-section {
    display: none !important;
}

/* Mobile responsive (hero) */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
    }

    .hero-title-line {
        margin: 15px auto !important;
    }

    .falling-letters {
        font-size: 3.5rem !important;
    }

    .zodiac-wheel {
        width: 300px;
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        display: none !important;
    }
}
