:root {
    --bg-dark: #050b14;
    --primary-purple: #6d28d9;
    --accent-blue: #3b82f6;
    --accent-gold: #f59e0b;
    --text-color: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
.logo {
    font-family: 'Cinzel', serif;
}

/* Background Stars Animation */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
}

/* Dynamic CSS Stars */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Central Horse */
.central-horse-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vmin;
    /* Much larger, responsive to smaller dimension */
    height: 70vmin;
    max-width: 800px;
    max-height: 800px;
    z-index: 5;
    /* Lower than content so text is readable if it overlaps, but we will move it side by side */
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease-out;
    /* Smooth helper */
}

.celestial-horse {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
    animation: float 6s ease-in-out infinite;
}

.horse-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Scroll Content */
.scroll-content {
    position: relative;
    z-index: 20;
    /* Sections will have height to allow scrolling */
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    opacity: 0;
    /* Hidden initially for GSAP */
}

/* Content Wrappers */
.content-wrapper {
    max-width: 600px;
    text-align: center;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.text-left {
    justify-content: flex-start;
    padding-left: 10%;
}

.text-right {
    justify-content: flex-end;
    padding-right: 10%;
}

/* Hero Specifics */
.hero {
    opacity: 1;
    /* Hero always visible initially */
    z-index: 30;
    /* Above horse initially? No, let horse be central */
}

.main-title {
    font-size: 4rem;
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 0 0 20px var(--primary-purple);
}

.highlight {
    color: var(--accent-blue);
    display: block;
}

.subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.arrow {
    font-size: 1.5rem;
    margin-top: 10px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* Gallery Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

/* Contact */
.cta-button {
    margin-top: 20px;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--primary-purple), var(--accent-blue));
    border: none;
    border-radius: 30px;
    color: white;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-blue);
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Responsiveness */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .central-horse-container {
        width: 250px;
        height: 250px;
    }

    .text-left,
    .text-right {
        justify-content: center;
        padding: 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .nav-links a {
        margin: 0 10px;
    }
}