/* --- RESET & VARIABLES --- */
:root {
    --white: #ffffff;
    --font-script: 'Satisfy', cursive;
}

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

body {
    background-color: #000000;
    overflow: hidden;
    /* Use dynamic viewport height to handle mobile URL bars gracefully */
    height: 100vh; /* Fallback */
    height: 100dvh; 
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Prevent mobile text selection/highlighting */
    -webkit-user-select: none;
    user-select: none;
}

/* =========================================
   ATMOSPHERE (CINEMATIC FOG)
   ========================================= */

.atmosphere {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.fog-layer {
    position: absolute;
    /* Oversize the fog so it covers screens of all aspect ratios */
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    
    background-image: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/img/fog1.png");
    background-size: cover;
    background-repeat: no-repeat;
    
    /* PITCH BLACK BLEND MODE */
    mix-blend-mode: screen; 
    
    opacity: 0.6;
    pointer-events: none;
    
    /* GPU Acceleration Hint for Mobile */
    will-change: transform;
}

/* Layer 1: Foundation */
.fog-1 {
    animation: drift-1 60s linear infinite alternate;
}

/* Layer 2: Detail */
.fog-2 {
    background-image: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/img/fog2.png");
    opacity: 0.4;
    animation: drift-2 45s linear infinite alternate;
}

/* Layer 3: Pulse */
.fog-3 {
    background-image: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/img/fog1.png");
    opacity: 0.2;
    animation: drift-3 30s ease-in-out infinite alternate;
}

.vignette {
    position: absolute;
    inset: 0;
    /* Stronger vignette on mobile to hide texture edges */
    background: radial-gradient(circle at center, transparent 20%, #000000 110%);
    z-index: 2;
    pointer-events: none;
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes drift-1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -20px) rotate(3deg); }
}

@keyframes drift-2 {
    0% { transform: translate(-20px, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

@keyframes drift-3 {
    0% { transform: translate(0, -30px) scale(1.2) rotate(-2deg); }
    100% { transform: translate(40px, 10px) scale(1) rotate(2deg); }
}

/* =========================================
   TEXT ANIMATION (RESPONSIVE)
   ========================================= */

.content-wrapper {
    z-index: 10;
    position: relative;
    opacity: 0; 
    animation: cinematicEntry 3.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.brand-signature {
    font-family: var(--font-script);
    
    /* FLUID TYPOGRAPHY: 
       Never smaller than 3.5rem (Phone).
       Ideally 15% of viewport width.
       Never bigger than 6rem (Desktop). */
    font-size: clamp(3.5rem, 15vw, 6rem);
    
    color: var(--white);
    letter-spacing: 2px;
    transform: rotate(-4deg); 
    
    /* Glow */
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255,255,255,0.5);
    
    /* Prevents horizontal scroll on small screens if rotation pushes content out */
    max-width: 90vw;
    text-align: center;
}

@keyframes cinematicEntry {
    0% {
        opacity: 0;
        transform: scale(1.3);
        filter: blur(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}