/* ============================================
   GLOBAL STYLES
   ============================================ */

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.6;
    animation: fadeIn 0.5s ease-in;
    position: relative;
    overflow-x: hidden;
}

/* Main Content Wrapper - contains smoke and sections after hero */
.content-wrapper {
    position: relative;
    overflow: hidden;
    /* Prevents smoke from causing scrollbars */
    background-color: var(--color-bg-black);
}

/* Animated smoke/haze background - contained within .content-wrapper */
.smoke-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Slightly brighter gray for better contrast on black */
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(200, 200, 200, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 40% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 60% 20%, rgba(180, 180, 180, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 60%, rgba(200, 200, 200, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 55%);
    background-size: 200% 200%, 250% 250%, 180% 180%, 220% 220%, 300% 300%, 240% 240%;
    background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 30% 70%, 70% 30%;
    animation: smokeMove 25s ease-in-out infinite;
    pointer-events: none;
    opacity: 1;
    /* Full opacity for the gradients themselves */
}

@keyframes smokeMove {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 30% 70%, 70% 30%;
    }

    25% {
        background-position: 30% 20%, 70% 80%, 40% 60%, 60% 40%, 50% 50%, 50% 60%;
    }

    50% {
        background-position: 50% 50%, 50% 50%, 60% 40%, 40% 60%, 70% 30%, 30% 70%;
    }

    75% {
        background-position: 70% 80%, 30% 20%, 50% 50%, 50% 50%, 40% 60%, 60% 40%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-light);
    letter-spacing: 2px;
}

h1 {
    font-size: var(--font-size-4xl);
    letter-spacing: 8px;
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-lg);
}

p {
    line-height: 1.8;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-text-muted);
}

/* ===== SECTION SPACING ===== */
section {
    padding: var(--spacing-4xl) 0;
    position: relative;
    z-index: 1;
    background-color: transparent !important;
    /* Force transparency for all sections */
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}