/* Modern Premium CSS Reset & Variables */
:root {
    --bg-color: #0e0e0e;
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent-orange: #f29100;
    --font-family: 'Outfit', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    overflow: hidden; /* Lock viewport for pure showcase experience */
    -webkit-font-smoothing: antialiased;
}

/* Base layout container */
.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
}

/* Background Image Layer with smooth scaling entrance */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    filter: grayscale(100%) contrast(1.1); /* Black and White like mockup */
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.hero-bg.loaded {
    opacity: 0.9;
    transform: scale(1);
}

/* Premium Vignette Overlay for perfect content readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(14, 14, 14, 0.2) 0%, rgba(14, 14, 14, 0.8) 70%, rgba(14, 14, 14, 1) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Elegant Header logo moved deeper into the corners & larger */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 2.5rem; /* Pushed closer to the corners */
    display: flex;
    justify-content: space-between; /* Space them out perfectly to opposite corners */
    align-items: center; /* Perfect vertical alignment */
    z-index: 10;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.6s;
}

.header.loaded {
    opacity: 1;
    transform: translateY(0);
}

.brand-logo {
    height: 44px; /* Increased size for prominence */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.brand-logo:hover {
    transform: scale(1.04);
    filter: brightness(1.1);
}

.we-logo {
    height: 38px; /* Slightly scaled to match the visual optical weight of oviyan logo perfectly */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.we-logo:hover {
    transform: scale(1.04);
    filter: brightness(1.1);
}

/* Main Centerpiece Layout - Centered directly in viewport, slightly shifted up */
.main-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push elements towards the bottom third */
    align-items: center; /* Perfect horizontal centering */
    height: 100%;
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem 14vh 2rem; /* Shifting it slightly upward to sit beautifully on the torso area */
    z-index: 5;
    text-align: center;
}

/* Central Logo Slider Container - shifted lower and taller for larger logos */
.logo-center {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.8s; /* Quicker load in since tagline is gone */
    margin-top: 0;
    position: relative;
    width: 100%;
    height: 200px; /* Increased from 170px to house even larger logos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-center.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Individual slides */
.logo-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(45px); /* Start below */
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

/* Entering active state */
.logo-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Exiting state: slide upwards and out of viewport */
.logo-slide.exit {
    opacity: 0;
    transform: translateY(-45px);
}

.reup-logo {
    height: 150px; /* Increased from 125px */
    max-width: 460px; /* Increased from 420px */
    object-fit: contain;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5));
    transition: var(--transition-smooth);
}

.logo-slide:hover .reup-logo {
    transform: scale(1.05);
}

/* Sleek Minimalist Footer in the corners */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 10;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 1.3s;
}

.footer.loaded {
    opacity: 1;
    transform: translateY(0);
}

.footer-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: var(--transition-smooth);
    text-align: left;
}

.footer-right .footer-link {
    text-align: right;
}

.footer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.footer-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.footer-link:hover .footer-value {
    color: var(--accent-orange);
    transform: translateY(-2px);
}

/* Ambient Cursor Follow Glow */
.ambient-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(242, 145, 0, 0.05) 0%, rgba(242, 145, 0, 0) 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 2s ease;
}

/* Responsive configurations */
@media (max-width: 900px) {
    .reup-logo {
        height: 85px; /* Increased from 70px */
    }

    .header {
        padding: 1.5rem;
        justify-content: space-between;
    }
    
    .brand-logo {
        height: 36px;
    }

    .we-logo {
        height: 30px;
    }

    .footer {
        padding: 1.5rem;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .brand-logo {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-bottom: 18vh; /* Give more clearance on smaller screens */
    }

    .tagline-light, .tagline-bold {
        font-size: 2.1rem;
    }
    
    .reup-logo {
        height: 68px; /* Increased from 56px */
    }

    .footer-value {
        font-size: 0.85rem;
    }
}
