/* Using semantic container styling [HTML5 norm] */
header {
    width: 100%;
    height: 90vh;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

main, footer {
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--spacing-md);
    box-shadow: var(--shadow);
    position: relative; /* Ensures pseudo-element is positioned correctly */
    border-radius: var(--border-radius);
    margin: 0 auto;
    margin-top: 1em;
    width: 85%;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
}

header::before { /* Pseudo-element for header background effect */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none; 
}

.site-title {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 130px;
}

.site-img {
    height: auto;
    position: relative;
    top: -20px; /* Adjusts the image position */
}

.site-subtitle {
    position: relative;
    top: -20px; /* Adjusts the subtitle position */
    font-size: 1.4rem;
    margin: var(--spacing-sm) 23rem var(--spacing-lg);
}



/* Navigation styling - Added fixed positioning */
nav {
    background-color: var(--color-primary);
}

/* CSS for fixed navigation */
nav.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -20%);
    width: 85%;
    margin-top: 1em;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -20%);
    }
    to {
        transform: translate(-50%, 0%);
    }
}

.logo {
    height: 100%;
    width: 80%;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-list a {
    color: var(--color-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-list a:hover,
.nav-list a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
