/* Google Fonts import for Montserrat (Headings) and Lato (Body) */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400&family=Montserrat:wght@400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #000000;
    font-weight: 500;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header & Navigation */
header {
    width: 100%;
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 100;
}

.site-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1.68px;
    margin-bottom: 25px;
}

.site-title a {
    color: #000000;
}

.desktop-nav {
    display: flex;
    gap: 35px;
}

.desktop-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.85px;
    color: #666666;
    padding-bottom: 5px;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: #000000;
}

/* Hamburger Menu (Mobile/Tablet) */
.hamburger-menu {
    display: none;
    position: absolute;
    top: 40px;
    left: 40px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #000000;
    transition: all 0.3s ease;
}

/* Mobile Overlay Navigation */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 900;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 20px 0;
}

.mobile-nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000000;
}

.mobile-nav-links a:hover {
    color: #666666;
}

/* Main Layout Constraints */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 80px 40px;
}

/* Hero Section */
.hero {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 60px;
    background-color: #f5f5f5; /* Fallback if no image */
}

/* Two Column Flex (About layout) */
.split-section {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-top: 60px;
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.split-text p {
    font-size: 16px;
    color: #2A2A2A;
    margin-bottom: 20px;
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.split-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 15px 35px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #333333;
    color: #ffffff;
}

/* Footer Element */
footer {
    padding: 40px;
    text-align: left;
    font-size: 12px;
    color: #999999;
}

footer a {
    color: #666666;
    margin-right: 15px;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    header {
        padding: 30px 20px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .site-title {
        font-size: 30px;
        margin-bottom: 0;
    }
    
    .split-section {
        flex-direction: column;
    }
    
    .hero {
        height: 40vh;
    }
}

/* --- Global Entrance Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation universally to major sections and cards */
section, 
.project-section,
.experience-block,
.work-item,
.honor-card,
.split-section,
.hero {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Ensures elements are invisible before JS/CSS applies the animation */
}

/* Add a slight stagger effect to sibling cards */
.honor-card:nth-child(1), .experience-block:nth-child(1) { animation-delay: 0.1s; }
.honor-card:nth-child(2), .experience-block:nth-child(2) { animation-delay: 0.2s; }
.honor-card:nth-child(3), .experience-block:nth-child(3) { animation-delay: 0.3s; }
.honor-card:nth-child(4), .experience-block:nth-child(4) { animation-delay: 0.4s; }
.honor-card:nth-child(12) ~ .honor-card { animation-delay: 0.1s; /* fallback for many cards */ }
