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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #030712;
    color: #f9fafb;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Glassmorphic floating header */
.main-header {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    pointer-events: none; /* Allows hover events to pass through to the blocks below */
    width: 100%;
    padding: 0 20px;
}

.main-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.main-header p {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
}

/* Flex Container for the columns */
.landing-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Stream Block Styling */
.stream-block {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    /* Smooth transition for width (flex) and filter effects */
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.3, 1), filter 0.6s ease;
}

/* Dividers between blocks */
.stream-block:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gradients for each pathway */
.science {
    background-image: linear-gradient(180deg, #090d16 0%, #00223e 50%, #0891b2 100%);
}

.commerce {
    background-image: linear-gradient(180deg, #040d06 0%, #06402b 50%, #059669 100%);
}

.humanities {
    background-image: linear-gradient(180deg, #0e0514 0%, #3b0764 50%, #db2777 100%);
}

.neutral {
    background-image: linear-gradient(180deg, #07040f 0%, #1e1b4b 50%, #7c3aed 100%);
}

/* Overlay for dimming/ambient glow */
.block-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(3, 7, 18, 0.4);
    transition: background-color 0.6s ease;
    z-index: 1;
}

/* Content Container inside blocks */
.block-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    width: 100%;
}



/* Header/Title within block (initially smaller) */
.stream-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    /* Transform-based scaling is GPU-accelerated and pixel-perfect compared to animating font-size */
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1), color 0.4s ease;
}

/* --- Interactive Hover Behavior --- */

/* When the user hovers over the container, slightly dim and blur non-hovered columns */
.landing-container:hover .stream-block {
    flex: 0.85;
    filter: brightness(0.65) saturate(0.85);
}

/* The actively hovered column expands and highlights */
.landing-container .stream-block:hover {
    flex: 1.45;
    filter: brightness(1.1) saturate(1.1);
}

.landing-container .stream-block:hover .block-overlay {
    background-color: rgba(3, 7, 18, 0.15); /* Lighten overlay to reveal color */
}

/* Trigger 50% font increase on mouse-hover via GPU transform */
.landing-container .stream-block:hover .stream-title {
    transform: scale(1.5); /* 1.5x of base size represents exactly a 50% increase */
    color: #ffffff;
}


/* Responsive adjustment for portrait/mobile layout */
@media (max-width: 768px) {
    .landing-container {
        flex-direction: column;
    }
    
    .stream-block {
        width: 100%;
        height: 25%;
        border-right: none;
    }
    
    .stream-block:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .main-header {
        top: 20px;
    }
    
    .main-header h1 {
        font-size: 1.7rem;
    }
    
    .main-header p {
        font-size: 0.8rem;
    }
    
    .landing-container:hover .stream-block {
        flex: 0.85;
    }
    
    .landing-container .stream-block:hover {
        flex: 1.45;
    }
    
    .stream-title {
        font-size: 1.15rem;
    }
}
