:root {
    --primary-gold: #d4af37;
    --light-gold: #f4d03f;
    --pure-white: #ffffff;
    --soft-white: rgba(255, 255, 255, 0.85);
    --deep-overlay: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Cairo', sans-serif;
    color: var(--pure-white);
    background: #000;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: none;
    /* Hide default cursor */
}

/* Custom Cursor */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s ease-out, opacity 0.3s ease;
    opacity: 0.5;
}

/* Cinematic Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s cubic-bezier(0.77, 0, 0.175, 1), visibility 1s;
}

.preloader-content {
    text-align: center;
}

.loader-logo {
    font-family: 'Amiri', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--primary-gold);
    margin-bottom: 20px;
    letter-spacing: 5px;
    animation: pulseLogo 2s infinite alternate;
}

.loader-bar {
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    box-shadow: 0 0 15px var(--primary-gold);
    animation: loadingBar 2s forwards;
}

@keyframes pulseLogo {
    from {
        opacity: 0.5;
        filter: blur(2px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes loadingBar {
    from {
        width: 0;
    }

    to {
        width: 150px;
    }
}

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

/* Cinematic Grain */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 10;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: slowZoom 40s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 90%;
    max-width: 900px;
    z-index: 1;
    padding: 20px;
}

/* Brand Identity */
.header {
    margin-bottom: 2rem;
    animation: fadeInDown 1.5s ease-out;
}

.brand-title {
    font-family: 'Amiri', serif;
    font-size: clamp(3rem, 10vw, 5.5rem);
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);

    /* Golden Shimmer Effect */
    background: linear-gradient(to right,
            #d4af37 20%,
            #f4d03f 40%,
            #f4d03f 60%,
            #d4af37 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.brand-subtitle {
    font-family: 'Cinzel Decorative', cursive;
    font-size: clamp(0.7rem, 2vw, 1rem);
    letter-spacing: clamp(5px, 2.5vw, 15px);
    text-transform: uppercase;
    color: var(--soft-white);
    opacity: 0.9;
}

/* Tagline & Subtext */
.hero-text {
    width: 100%;
    margin-bottom: 3rem;
    animation: fadeInUp 1.8s ease-out;
}

.tagline {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 1rem;
    display: inline-block;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 8px;
}

.subtext {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--soft-white);
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    /* Reduced from default */
}

/* Countdown: Elegant Glassmorphism Style */
.countdown-minimal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin: 0 auto 2.5rem auto;
    /* Reduced from 3.5rem */
    padding: clamp(1.2rem, 4vw, 2rem) clamp(2rem, 8vw, 4rem);
    /* Reduced padding */
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 40px;
    width: fit-content;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 2s ease-out;
}

.unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 60px;
}

/* Perfect Centering Bridge */
.unit:not(:last-child)::after {
    content: ":";
    position: absolute;
    /* Bridge the gap perfectly */
    left: calc(-1 * clamp(1.5rem, 4vw, 3rem));
    /* Exact match to the gap width */
    width: clamp(1.5rem, 4vw, 3rem);
    /* Match the gap width */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center horizontally and vertically in the gap */

    top: -20px;
    /* Adjust upward to align with numbers */
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    color: var(--primary-gold);
    opacity: 0.7;
    font-family: 'Cinzel Decorative', cursive;
    line-height: 1;
}

.unit span {
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 200;
    color: var(--primary-gold);
    font-family: 'Cinzel Decorative', cursive;
    line-height: 1;
}

.unit label {
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-top: 10px;
}

/* Form Styling */
.cta-form {
    display: flex;
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
    max-width: 480px;
    width: 100%;
    padding: 15px 0;
    margin: 0 auto 4rem auto;
    animation: fadeInUp 2.2s ease-out;
}

.cta-form input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 10px;
    flex: 1;
    outline: none;
    text-align: center;
}

.cta-form button {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 10px 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s;
    text-transform: uppercase;
}

.cta-form button:hover {
    background: var(--primary-gold);
    color: black;
}

/* Footer Items */
.footer-minimal {
    display: flex;
    gap: 3rem;
    justify-content: center;
    animation: fadeInUp 2.5s ease-out;
}

.social-item {
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
}

.social-item:hover {
    color: white;
}

/* Mobile Fixes */
@media (max-width: 600px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 40px 0;
    }

    .cta-form {
        flex-direction: column;
        border-bottom: none;
        gap: 15px;
    }

    .cta-form input {
        border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    }

    .cta-form button {
        width: 100%;
    }

    .countdown-minimal {
        padding: 1.5rem 0.5rem;
        gap: 1rem;
    }

    .unit:not(:last-child)::after {
        left: -1rem;
        width: 1rem;
        top: -15px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cursor hover state */
body.hovering .cursor-follower {
    transform: scale(1.8);
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--light-gold);
}

@media (max-width: 1024px) {
    body {
        cursor: auto;
    }

    .custom-cursor,
    .cursor-follower {
        display: none;
    }
}