/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    overflow: hidden; /* Prevents scrolling */
    color: white;
}

/* Background Image Setup */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* REPLACE 'your-image-path.jpg' WITH YOUR ACTUAL IMAGE FILE */
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px); /* Adjust blur intensity here */
    transform: scale(1.1); /* Prevents white edges caused by blurring */
    z-index: -2;
}

/* Dark overlay to make text pop regardless of the background image brightness */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Black tint with 40% opacity */
    z-index: -1;
}

/* Centering the Content */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
}

/* Name Styling */
.name {
    font-size: clamp(4rem, 10vw, 5rem);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    /* New Gradient Feature */
    background: linear-gradient(to bottom, #ffffff, #dddddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1rem, 10vw, 1.4rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Navigation Links Styling */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Container for the link and its description */
.nav-group {
    display: grid;
    grid-template-rows: 0fr; /* Starts collapsed */
    transition: grid-template-rows 0.4s ease, margin-bottom 0.4s ease;
    margin:-10px;
}

/* When the group is hovered, expand the row to fit the content */
.nav-group:hover {
    grid-template-rows: 1fr;
    margin-bottom: 15px; /* Adds space for the expanded box */
}

/* The actual description box styling */
.description-box {
    overflow: hidden; /* Required for the grid trick to work */
    color: rgba(255, 255, 255, 0.8); /* Slightly dimmed white for hierarchy */
    font-size: 0.8rem;
    font-weight: 300;
    opacity: 0;       /* Starts invisible */
    transition: opacity 0.4s ease;
}

/* Make the text visible when hovered */
.nav-group:hover .description-box {
    opacity: 1;
    padding: 10px 0px 0px 0px; /* Adds padding only when expanded */
}

.nav-item {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px); /* Glassmorphism effect on links */
    display:block;
}

/* Hover Effects */
.nav-item:hover {
    background: white;
    color: black;
    transform: translateY(-3px); /* Existing lift effect [1] */
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Fade-In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply it hero content */
.hero-content {
    animation: fadeInUp 1.2s ease-out forwards;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 600px) {
    .name {
        font-size: 3rem;
    }
    .subtitle {
        font-size:1rem;
    }
    .nav-item {
        font-size: 1rem;
    }
}
