body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    font-family: "Genos", sans-serif;
    font-weight: 300;
}

.established-text {
    position: fixed;
    top: 90vh; /* Position the top edge 90% down from the viewport top */
    right: 4rem; /* Keep it near the right edge */
    color: white;
    font-family: "Genos";
    font-weight: 300;
    font-size: 0.9rem;
    z-index: 2;
    /* Removed text-align and padding */
}

/* Video Background Styling */
.video-background {
    position: fixed; /* Keep video fixed in background */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    z-index: -1; /* Place behind other content */
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
}

/* Scrolling Content Container */
.scroll-container {
    /* We don't need extra height anymore */
    height: 100vh; 
    position: relative;
    z-index: 1; 
}

.scroll-content {
    position: absolute;
    /* --- New Positioning --- */
    left: 4rem;           /* 4rem padding from the left */
    top: 12vh;          /* Position 12% from top */
    width: 80%;         /* Adjust width as needed */
    max-width: 625px;   /* Adjust max-width */
    text-align: left;   /* Left align text */
    color: white;       /* Text color */
}

/* STEP 1: Logo + "BlueCanary.io" (Same delay) */
.scroll-content.animate .logo-title-group .logo,
.scroll-content.animate .logo-title-group h1 {
    transition-delay: 0.5s; /* Start at 0.5s */
}

/* STEP 2: "Who Watches Over You?" H1 (Later delay) */
.scroll-content.animate > h1 {
    transition-delay: 1.0s; /* Start at 1.0s */
}

/* STEP 3: Paragraph (Last delay) */
.scroll-content.animate > p {
    transition-delay: 1.5s; /* Start at 1.5s */
}

/* --- Initial Animation State --- */
.logo-title-group .logo,
.logo-title-group h1,
.scroll-content > h1,
.scroll-content > p {
    opacity: 0;                    /* Start transparent */
    transform: translateY(100px); /* Start 100px below final position */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out; /* Animation timing */
}

/* --- Specific Styles & Animation Delays --- */
.scroll-content h1 {
    font-family: 'Genos';
    font-weight: 500;
    line-height: 2.7rem;
    font-size: 3.5rem;
    margin-bottom: 0; /* Remove bottom margin */
    margin-top: 1rem;
}

.scroll-content p {
    font-size: 1.4rem;
    line-height: 1.1;
    margin-top: 1.0rem; /* Space below the headline */
}

/* --- Final Animation State (Applied via JS) --- */
.scroll-content.animate .logo-title-group .logo,
.scroll-content.animate .logo-title-group h1,
.scroll-content.animate > h1,
.scroll-content.animate > p {
    opacity: 1;           /* Fade to fully visible */
    transform: translateY(0); /* Move to final position */
}
.logo-title-group {
    display: flex;
    
    /* FIX: 'center' vertically aligns them */
    align-items: center; 
    
    /* FIX: 'flex-start' is the correct value for left-align */
    justify-content: flex-start; 

    gap: 1rem; 
}

/* * (Recommended) It's good practice to remove the default
 * browser margin from the h1, which can mess
 * up vertical alignment.
 */
.logo-title-group h1 {
	font-size: 2rem;
  margin: 0;
}

/* * (Optional) You can control your logo size here
 * if it's too big or small.
 */
.logo-title-group .logo {
  height: 70px; /* Example size. Adjust as needed. */
  width: auto;
}
