* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #1a1a1a; /* Dark charcoal background */
    color: #ffffff;
    height: 100vh;
    overflow: hidden; /* Prevents scrollbars during animation */
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px); /* Adjust for nav height */
    display: flex;
    align-items: center;
    padding-left: 10%;
    position: relative;
    /* border: 2px solid red; */
}

/* Algorithm vis */
.text-content h1 {
font-size: clamp(3rem, 10vw, 3.9rem); 
    line-height: 1.1; /* Adjusted for better spacing */
    font-weight: 650; 
    color: #e0e0e0;
    position: relative;
    z-index: 5;
    pointer-events: none;
    margin: 0; /* REMOVE the -45% margin */
    /* border: 2px solid red; 645 */
}

/* The Container for the Bars */
#barContainer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Spans full height to catch mouse movement */
    display: flex;
    align-items: flex-end; /* Aligns bars to bottom */
    justify-content: center;
    padding: 0 10px;
    z-index: 1;
    /* border: 2px solid red; */
}

/* The Individual Bars */
.bar {
    flex: 1;
    max-width: 25px;
    margin: 0 2px;
    background: linear-gradient(to top, rgba(26, 26, 26, 0) 0%, #1e4eb8 50%, #4a90e2 100%);
    border-radius: 4px 4px 0 0;

    /* Fast transitions: 0.15s for the hover, 1s for the initial load */
    transition: 
        transform 0.08s cubic-bezier(0, 0, 0.2, 1), 
        filter 0.08s linear, 
        height 0.8s ease;
    pointer-events: none;
    will-change: transform;
}

/* Background Layer Styling */
#bgBarContainer {
    position: absolute;
    bottom: -20px; /* Sit slightly lower */
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 10px;
    z-index: 0; /* Behind everything */
    opacity: 0.5; /* Subtle presence */
    filter: blur(12px); /* This creates the "empty background" fix */
    pointer-events: none; /* Mouse ignores these */
    /* border-radius: 1px solid red; */
}

.bg-bar {
    flex: 1;
    margin: 0 8px;
    background: linear-gradient(to top, transparent,#1a3a8b, #1e4eb8);
    border-radius: 10px;
    transition: height 2s ease-in-out;
}

/* Ensure main bars are above the blur */
#barContainer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 10px;
    z-index: 2;
    /* Important: ensures mouse detection works everywhere */
    pointer-events: all;
    cursor: crosshair;
}
/* final one  */

.text-content {
    position: absolute;
    z-index: 100; 
    text-align: center;
    pointer-events: none;
    
    /* This moves the WHOLE block (H1 + P) to the center-right */
    top: 14%;
    left: 50%; 
    transform: translate(-50%, -50%); 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    /* border-radius: 1px solid red; */
}

.hero-description {
    display: block !important;
    color: #ffffff !important;
    font-size: 1.1rem; /* Slightly smaller looks cleaner */
    margin-top: 6px; /* Small gap between H1 and P */
    max-width: 650px;
    opacity: 1 !important;
    line-height: 1.5;
}

/* Ensure the span keywords are visible too */
.hero-description span {
    color: #3498db; 
    font-weight: bold;
}

/* For AlgoFlow Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    /* Moves logo to the left side while nav-links stay right */
    margin-right: auto; 
    transition: transform 0.2s ease;
}

.logo:active {
    transform: scale(0.95);
}

.logo i {
    font-size: 1.8rem;
    color: #3498db; /* Match your bar color */
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5); /* Subtle glow */
}

.logo-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif; /* Or your preferred font */
}

.logo-link {
    text-decoration: none; /* Removes the underline */
    color: inherit;        /* Keeps your white and blue colors */
    display: flex;         /* Ensures the clickable area fits the logo */
}

.logo:hover {
    opacity: 0.8;          /* Adds a subtle feedback when you hover */
    transition: 0.3s;
}