/* ========================================
   Maere Invest - Landing Page Styles
   ======================================== */

/* CSS Custom Properties */
:root {
    --color-bg: #0a0a0a;
    --color-text: #f5f5f5;
    --color-text-muted: #888888;
    
    --font-logo: 'Cormorant Garamond', Georgia, serif;
    --font-tagline: 'Raleway', 'Helvetica Neue', sans-serif;
    
    --loader-duration: 2.5s;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow: hidden;
}

/* Screen Base */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ========================================
   Loading Screen
   ======================================== */
.loading-screen {
    background-color: var(--color-bg);
    z-index: 100;
    opacity: 1;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    gap: 3rem;
}

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

.logo {
    font-family: var(--font-logo);
    font-weight: 300;
    font-size: clamp(2rem, 8vw, 4.5rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Loading Bar */
.loader {
    width: clamp(150px, 25vw, 250px);
    height: 3px;
    background-color: rgba(245, 245, 245, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1s forwards;
    border-radius: 2px;
}

.loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--color-text);
    animation: loading var(--loader-duration) ease-in-out 1.2s forwards;
    border-radius: 2px;
}

@keyframes loading {
    0% {
        width: 0%;
    }
    20% {
        width: 25%;
    }
    50% {
        width: 60%;
    }
    80% {
        width: 85%;
    }
    100% {
        width: 100%;
    }
}

/* ========================================
   Main Screen
   ======================================== */
.main-screen {
    background-color: var(--color-bg);
    z-index: 50;
}

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

.content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    margin-top: 20vh;
}

.tagline {
    font-family: var(--font-tagline);
    font-weight: 200;
    font-size: clamp(1rem, 3vw, 1.5rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.3s;
}

.location {
    font-family: var(--font-tagline);
    font-weight: 200;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.6s;
}

/* Email */
.email {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    font-family: var(--font-tagline);
    font-weight: 200;
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    text-decoration: none;
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.9s;
    transition: color 0.3s ease;
}

.email:hover {
    color: var(--color-text);
}

/* ========================================
   Keyframe Animations
   ======================================== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 480px) {
    .logo {
        letter-spacing: 0.2em;
    }
    
    .tagline,
    .location {
        letter-spacing: 0.25em;
    }
    
    .email {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .logo,
    .tagline,
    .location,
    .email {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .loading-screen {
        transition: none;
    }
    
    .loader-bar {
        animation: none;
        width: 100%;
    }
}
