/* ==========================================
   MESSON INVEST - Bold Red Theme
   Inspired by romanjeanelie.com
   ========================================== */

/* CSS Custom Properties */
:root {
    --bg-primary: #000000;
    --bg-dark: #0a0a0a;
    
    --text-primary: #ffffff;
    --text-accent: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    
    --font-display: 'Montserrat', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background-color: var(--text-accent);
    color: var(--bg-primary);
}

/* ==========================================
   PRELOADER
   ========================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* Logo Container with Reveal Effect */
.logo-container {
    position: relative;
    overflow: hidden;
}

.preloader-logo {
    width: 220px;
    height: auto;
    display: block;
    opacity: 0;
}

.logo-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    transform: translateX(-100%);
}

/* Loading Line */
.loading-line {
    width: 220px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--text-primary);
}

/* ==========================================
   SITE WRAPPER
   ========================================== */

.site-wrapper {
    opacity: 0;
    transition: opacity 1s ease;
}

.site-wrapper.visible {
    opacity: 1;
}


/* ==========================================
   VIDEO BACKGROUND
   ========================================== */

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70vh;
    overflow: hidden;
    z-index: 0;
    background-color: var(--bg-primary);
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.8) 85%,
        rgba(0, 0, 0, 1) 100%
    );
    pointer-events: none;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 60px 60px;
    z-index: 1;
}

.hero-content {
    text-align: right;
    width: 100%;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(30px);
}


/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .hero {
        padding: 0 40px 40px;
    }
    
    .video-container {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .video-container {
        height: 55vh;
    }
    
    .hero {
        padding: 0 20px 30px;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0 15px 40px;
    }
    
    .preloader-logo {
        width: 150px;
    }
    
    .loading-line {
        width: 150px;
    }
}

/* ==========================================
   CURSOR (Desktop only)
   ========================================== */

@media (hover: hover) and (pointer: fine) {
    body {
        cursor: crosshair;
    }
    
    a, button {
        cursor: pointer;
    }
}
