/* Page System */
.page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
}

/* Home Page */
.home-page {
    justify-content: center;
    align-items: flex-start;
}

.home-page h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.name {
    padding-top: 5rem;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-menu a {
    font-size: 2.5rem;
    font-weight: 300;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    opacity: 0;
    transform: translateY(-30px);
    animation: slideInDown 0.8s ease forwards;
    animation-fill-mode: both; /* Ensures animation state is maintained */
}

.nav-menu a:hover {
    opacity: 0.7;
}

/* Staggered animation delays */
.nav-menu a:nth-child(1) { 
    animation-delay: 0.2s; 
}

.nav-menu a:nth-child(2) { 
    animation-delay: 0.4s; 
}

.nav-menu a:nth-child(3) { 
    animation-delay: 0.6s; 
}

.nav-menu a:nth-child(4) { 
    animation-delay: 0.8s; 
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subpage Styles */
.projects-page,
.experience-page,
.about-page,
.resume-page {
    padding-top: 130px;
    padding-bottom: 2rem;
    overflow-y: auto;
}

/* Projects Page */
.projects-page {
    background-color: #1a1a1a;
    color: #d4915d;
}

.projects-page h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    border-bottom: 3px solid #d4915d;
    display: inline-block;
    padding-bottom: 10px;
    color: #d4915d;
}

.projects-tagline {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    color: #ffffff;
}

/* Experience Page */
.experience-page {
    background-color: #1a1a1a;
    color: #7fb069;
}

.experience-page h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    border-bottom: 3px solid #7fb069;
    display: inline-block;
    padding-bottom: 10px;
    color: #7fb069;
}

/* About Page */
.about-page {
    background-color: #5a9fd4;
    color: #1a1a1a;
}

.about-page h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    border-bottom: 3px solid #1a1a1a;
    display: inline-block;
    padding-bottom: 10px;
    color: #1a1a1a;
}

.page-content {
    font-size: 1.2rem;
    max-width: 800px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* About page content styling */
.about-page .page-content {
    color: #1a1a1a;
}

.about-page .page-content h3 {
    color: #1a1a1a !important;
}

/* Experience page content styling */
.experience-page .page-content {
    color: #ffffff;
}