/* Layout Structure */
body {
    overflow: hidden;
    background: #000;
    height: 100vh;
    position: relative;
    font-family: 'Inter', sans-serif;
}

/* Full Screen Image */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6); /* Darken image for text contrast */
}

/* Navigation Bar */
.glass-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.3); /* Slightly more transparent */
    backdrop-filter: blur(10px); /* Blur effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: absolute;
    top: 50%;
    right: 5%; /* Position to the right */
    left: auto; /* Reset left */
    transform: translateY(-50%); /* Vertical center only */
    z-index: 10;
    text-align: right; /* Align text to right */
    width: auto;
    max-width: 1000px; /* Increased to fit title in one line */
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: -2px;
    background: linear-gradient(to left, #fff, #ccc); /* Gradient direction match */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInRight 1.2s ease-out; /* Changed animation direction */
    white-space: nowrap; /* Force one line */
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1.2s ease-out 0.3s; /* Added delay */
    margin-bottom: 30px; /* Space for buttons */
}

/* Hero Navigation Buttons */
.hero-nav-buttons {
    display: flex;
    justify-content: flex-end; /* Align right to match text */
    gap: 15px;
    margin-top: 20px;
}

.hero-btn {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: calc(0.5s + (0.1s * var(--i))); /* Staggered animation */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Footer */
.glass-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3); /* Slightly more transparent */
    backdrop-filter: blur(10px); /* Blur effect */
}

.glass-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}



canvas#hero-canvas {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100vw;
    min-height: 100vh;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.overlay-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    pointer-events: none; /* Allow scroll through */
    transition: opacity 0.5s;
}

.header {
    text-align: center;
}

.header h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fadeInDown 1s ease forwards 0.5s;
}

.logo {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    opacity: 0;
    animation: fadeInDown 1s ease forwards;
}

.header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

/* Navigation Section */
.navigation-grid {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 80vh; /* Occupy last part of scroll */
    background: var(--bg-dark);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 100px 5%;
    /* Position it at the end of the scroll container flow */
    margin-top: -100vh; /* Pull it up a bit if needed, or JS will handle exact placement */
}

/* Adjustments for sticky scrolling logic: 
   We actually want the scroll-container to be the "track" and the logic 
   will handle when to show the Navigation Grid.
   A simpler way:
   The user keeps scrolling, the images play.
   Once images finish (at 300vh or so), the .navigation-grid scrolls into view naturally.
*/

.nav-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: white;
}

.nav-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: linear-gradient(145deg, #252525, #1e1e1e);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.nav-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
