/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #F5F5DC 0%, #FAF0E6 100%); /* Premium gradient from cream to ivory */
    color: #333333; /* Dark text for readability */
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23D4AF37" opacity="0.05"/></svg>') repeat; /* Subtle gold dot pattern for premium texture */
    pointer-events: none;
    z-index: -1;
}

/* Header with Name Animation */
#header {
    text-align: center;
    padding: 120px 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white for elegance */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Deeper shadow for premium feel */
    border-bottom: 2px solid #D4AF37; /* Gold accent border */
}

#name, #header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #D4AF37; /* Gold for premium accent */
    animation: fadeIn 2s ease-out;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

#subtitle, #header p {
    font-size: 1.5rem;
    color: #666666;
    animation: fadeIn 2.5s ease-out;
    margin-top: 10px;
    font-style: italic;
}

/* Animations - Subtle and professional */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1s ease-out 0.5s both;
    border: 1px solid #D4AF37;
    display: none; /* Hidden by default, shown via JS */
}

section.active {
    display: block;
}

section h2 {
    font-family: 'Playfair Display', serif;
    color: #D4AF37;
    text-align: center;
    margin-bottom: 30px;
}

/* Grid Layout for Lists */
.project-list, .site-list, .course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

/* Box Styles for Items */
.project-item, .site-item, .course-item {
    background-color: #FEFEFE; /* Off-white for premium look */
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: fadeInUp 1s ease-out both;
    border: 2px solid #E6E6E6; /* Default border */
    cursor: pointer; /* Makes it feel selectable */
}

.project-item:hover, .site-item:hover, .course-item:hover {
    transform: translateY(-8px) scale(1.02); /* Lift and slight zoom for selection feel */
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); /* Gold glow on hover */
    border-color: #D4AF37; /* Gold border on hover */
}

/* Links Inside Boxes */
.project-item a, .site-item a, .course-item a {
    color: #D4AF37; /* Gold accent */
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.project-item a:hover, .site-item a:hover, .course-item a:hover {
    color: #B8860B; /* Darker gold on hover */
    text-decoration: underline;
}

/* Navigation */
#nav {
    text-align: center;
    padding: 30px;
    background-color: rgba(245, 245, 220, 0.8); /* Matches gradient */
}

.nav-btn {
    background-color: #D4AF37;
    color: #FFFFFF;
    text-decoration: none;
    padding: 15px 30px;
    margin: 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    animation: fadeIn 1s ease-out 1s both;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    display: inline-block;
}

.nav-btn:hover {
    background-color: #B8860B;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.5);
}

/* Footer */
#footer {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1s ease-out both;
    border-top: 2px solid #D4AF37;
}

#footer h2 {
    font-family: 'Playfair Display', serif;
    color: #D4AF37;
    margin-bottom: 20px;
}

.links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.link {
    color: #D4AF37;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.link:hover {
    color: #B8860B;
}

/* Responsive Design */
@media (max-width: 768px) {
    #name, #header h1 {
        font-size: 3rem;
    }
    .project-list, .site-list, .course-list {
        gap: 15px;
    }
    .project-item, .site-item, .course-item {
        width: 100%; /* Full width on mobile */
    }
    .links {
        flex-direction: column;
    }
}