/* ==========================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ========================================== */
:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-dark-secondary: #111111;
    --border-color: rgba(212, 175, 55, 0.15);
    
    --gold-primary: #D4AF37;
    --gold-light: #F4E8C1;
    --gold-dark: #9D7B1C;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --gold-gradient: linear-gradient(135deg, #F4E8C1 0%, #D4AF37 50%, #9D7B1C 100%);
    
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    /* Transitions & Curves */
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Fonts */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   PRELOADER SCREEN
   ========================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #030305;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
}

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

.preloader-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.15;
    animation: pulse-preloader-glow 4s ease-in-out infinite alternate;
}

.preloader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.preloader-logo {
    width: 75px;
    height: 75px;
    margin-bottom: 2rem;
    animation: logo-float 4s ease-in-out infinite;
}

.preloader-text-container {
    margin-bottom: 2.5rem;
}

.preloader-brand {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.preloader-subbrand {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: var(--gold-primary);
    text-indent: 0.4em;
}

.preloader-bar-container {
    width: 100%;
    height: 2px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: var(--gold-gradient);
    box-shadow: 0 0 10px var(--gold-glow);
    transition: width 0.05s ease-out;
}

.preloader-status {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ==========================================
   BACKGROUND VISUAL EFFECTS & SHAPES
   ========================================== */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: auto; /* Allow cursor interactions */
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, rgba(212, 175, 55, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.6s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Shifting mesh gradients */
.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: blur(140px);
    opacity: 0.18;
    mix-blend-mode: screen;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
}

.mesh-blob-1 {
    width: 500px;
    height: 500px;
    top: -10%;
    left: 10%;
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
    animation: float-blob-1 25s ease-in-out infinite alternate;
}

.mesh-blob-2 {
    width: 450px;
    height: 450px;
    bottom: 10%;
    right: 15%;
    background: radial-gradient(circle, var(--gold-dark) 0%, transparent 70%);
    animation: float-blob-2 20s ease-in-out infinite alternate-reverse;
    animation-delay: -5s;
}

.mesh-blob-3 {
    width: 350px;
    height: 350px;
    top: 35%;
    left: 45%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: float-blob-3 30s ease-in-out infinite alternate;
    animation-delay: -10s;
}

/* Luxury Grid Overlay */
.luxury-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.015) 1px, transparent 1px);
    background-size: 85px 85px;
    mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 75%);
    opacity: 0.8;
}

/* Abstract Rotating Shapes overlay for depth */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.06;
    transform-style: preserve-3d;
    animation: float-shape 20s linear infinite;
}

.shape-1 {
    top: 15%;
    left: 10%;
    width: 90px;
    height: 90px;
    animation-duration: 25s;
}

.shape-2 {
    top: 60%;
    right: 8%;
    width: 130px;
    height: 130px;
    animation-duration: 35s;
    animation-delay: -7s;
}

/* ==========================================
   MAIN CONTENT LAYOUT
   ========================================== */
.teaser-wrapper {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    background-color: transparent;
}

.teaser-content {
    text-align: center;
    max-width: 850px;
    width: 90%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   CENTERED COMPONENTS
   ========================================== */
.teaser-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.45em;
    text-indent: 0.45em;
    color: var(--gold-primary);
    margin-bottom: 2.2rem;
    text-transform: uppercase;
}

.teaser-logo-container {
    width: 56px;
    height: 56px;
    margin-bottom: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logo-drift 6s ease-in-out infinite alternate;
}

.teaser-logo {
    width: 100%;
    height: 100%;
    stroke: var(--gold-primary);
    fill: none;
}

.teaser-brand {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.teaser-headline {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 2rem;
    max-width: 800px;
}

.text-gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

.teaser-desc {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    max-width: 520px;
    line-height: 1.7;
}

/* ==========================================
   MINIMAL FOOTER
   ========================================== */
.teaser-footer {
    position: absolute;
    bottom: 2.8rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 300px;
    text-align: center;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.footer-line {
    width: 55px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0.5;
}

.footer-text {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-link {
    color: var(--gold-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--gold-light);
    text-shadow: 0 0 8px var(--gold-glow);
}

/* ==========================================
   ANIMATIONS & TRANSITIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Delay revealing schedules */
.teaser-label.reveal { transition-delay: 0.15s; }
.teaser-logo-container.reveal { transition-delay: 0.3s; }
.teaser-brand.reveal { transition-delay: 0.45s; }
.teaser-headline.reveal { transition-delay: 0.65s; }
.teaser-desc.reveal { transition-delay: 0.85s; }
.teaser-footer.reveal { transition-delay: 1.05s; }

/* Preloader animation rules */
@keyframes pulse-preloader-glow {
    0% {
        transform: scale(0.95);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.05);
        opacity: 0.18;
    }
}

@keyframes logo-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes logo-drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

@keyframes float-shape {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes float-blob-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-30px, -60px) scale(0.95); }
}

@keyframes float-blob-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -50px) scale(1.08); }
    100% { transform: translate(40px, 60px) scale(0.9); }
}

@keyframes float-blob-3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 60px) scale(0.92); }
    100% { transform: translate(60px, -40px) scale(1.15); }
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================== */

/* Tablets / Small Desktops */
@media screen and (max-width: 768px) {
    .teaser-brand {
        font-size: 1.35rem;
        letter-spacing: 0.22em;
        margin-bottom: 2rem;
    }
    .teaser-headline {
        font-size: 2.9rem;
        margin-bottom: 1.8rem;
    }
    .teaser-desc {
        font-size: 1.05rem;
        max-width: 440px;
    }
    .preloader-brand {
        font-size: 1.6rem;
    }
    .preloader-subbrand {
        font-size: 0.75rem;
        letter-spacing: 0.3em;
    }
}

/* Mobile Screen Sizes */
@media screen and (max-width: 480px) {
    .teaser-label {
        font-size: 0.7rem;
        margin-bottom: 1.5rem;
        letter-spacing: 0.35em;
    }
    .teaser-logo-container {
        width: 48px;
        height: 48px;
        margin-bottom: 1.8rem;
    }
    .teaser-brand {
        font-size: 1.15rem;
        letter-spacing: 0.2em;
        margin-bottom: 1.8rem;
    }
    .teaser-headline {
        font-size: 2.1rem;
        margin-bottom: 1.5rem;
    }
    .teaser-desc {
        font-size: 0.92rem;
        max-width: 320px;
        line-height: 1.6;
    }
    .teaser-footer {
        bottom: 2.2rem;
    }
}
