/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Moving Canvas Background */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Layout Structure */
section {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem;
}

/* --- SECTION 1: HERO VIEW --- */
.hero-section {
    justify-content: space-between;
}

.welcome-card {
    /* Same see-through glass as .interactive-text-card. No backdrop blur: it smeared the
       background lines here, while the second card (inside an animated wrapper) never blurred. */
    background: rgba(30, 30, 30, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3.5rem; 
    border-radius: 4px;
    max-width: 500px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.welcome-card h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    text-transform: uppercase;
}

.welcome-card p {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-weight: 300;
}

.logo-action-group {
    position: absolute;
    top: 3rem;
    right: 4rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.logo-link-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.logo-image {
    width: 140px;
    height: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-cta {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    max-width: 160px;
    line-height: 1.4;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logo-link-wrapper:hover .logo-image {
    transform: scale(1.03);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

.logo-link-wrapper:hover .logo-cta {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- SECTION 2: INTERACTIVE CONTENT --- */
.interactive-section {
    justify-content: space-between;
    gap: 4rem;
}

/* Slide-In Structural Containers */
.slide-left-box, .slide-right-box {
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

/* Left Side Content Placement */
.slide-left-box {
    transform: translateX(-100px);
    max-width: 550px;
}

/* Right Side Content Placement */
.slide-right-box {
    transform: translateX(100px);
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Triggered Classes via Intersection Observer */
.slide-left-box.reveal {
    opacity: 1;
    transform: translateX(0);
}

.slide-right-box.reveal {
    opacity: 1;
    transform: translateX(0);
}

/* Interactive Text Custom Styling matching version design elements */
.interactive-text-card {
    background: rgba(30, 30, 30, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3.5rem;
    border-radius: 4px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.interactive-text-card h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
}

.interactive-text-card p {
    margin-top: 1.2rem;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    font-weight: 300;
}

/* Media frame layout with solid outer border */
.media-frame {
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 4px;
    background: rgba(20, 20, 20, 0.5);
    max-width: 500px;
    width: 100%;
}

.media-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
    section {
        padding: 2rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-section {
        flex-direction: column-reverse;
        gap: 3rem;
    }

    .interactive-section {
        flex-direction: column;
        gap: 3rem;
    }

    .logo-action-group {
        position: relative;
        top: 0;
        right: 0;
    }

    .slide-left-box, .slide-right-box {
        transform: translateY(50px);
        width: 100%;
        max-width: 500px;
    }

    .slide-right-box {
        justify-content: center;
    }

    .slide-left-box.reveal, .slide-right-box.reveal {
        transform: translateY(0);
    }

    .welcome-card, .interactive-text-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .welcome-card h1, .interactive-text-card h2 {
        font-size: 2rem;
    }
    .logo-image {
        width: 100px;
    }
}
