/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap&text=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789&font-display=swap');
@import url('https://fonts.googleapis.com/css2?family=Yellowtail&display=swap&font-display=swap');

html {
    scroll-behavior: smooth;
    min-height: 100vh;
    overflow-y: scroll;
}

body {
    background-color: #2b2523;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-display: swap;
    min-height: 200vh;  /* Force page to be scrollable */
    margin: 0;
    padding: 0;
}

/* Hero Container with snowMtns.jpg */
.hero-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.2) 85%,
        rgba(26, 38, 52, 0.6) 95%,
        rgba(26, 38, 52, 0.9) 100%
    ),
    url('../images/journey.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4rem;
    padding-top: 2rem;
    background-color: #2b2523;
    opacity: 0;  /* Start hidden */
    transition: opacity 0.3s ease;
}

.hero-container.visible {
    opacity: 1;
}

.hero-container h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-display: swap;
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 60px;
    z-index: 1;
    text-align: center;
}

body, 
.about-section {
    background: linear-gradient(
        to bottom,
        #1a2634,  /* Dark blue-gray from bottom of mountain lake */
        #141e2a   /* Slightly darker shade for depth */
    ) !important;
}

/* About Section */
.about-section {
    position: relative;
    min-height: 300px;
    padding: 2rem;
    margin: 2rem 0;
    background: rgb(43, 48, 35);
}

/* Add the shadow transition at the top of about section */
.about-section::before {
    content: '';
    position: absolute;
    top: -50px;  /* Pull it up to overlap with hero section */
    left: 0;
    width: 100%;
    height: 50px;

    z-index: 1;
}

.about-section h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-display: swap;
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 3rem;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .hero-container h1 {
        font-size: 2rem;
    }

    .about-section h2 {
        font-size: 2rem;
    }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    padding: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: rgba(43, 37, 35, 0.95);
    border-radius: 15px;
    padding: 0;  /* Remove padding */
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;  /* For image corners */
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 200px;  /* Adjust height as needed */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-content {
    padding: 2rem;  /* Move padding to content area */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.card:hover .card-image img {
    transform: scale(1.05);  /* Subtle zoom on hover */
}

.card h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-display: swap;
    color: #ffa07a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    line-height: 1.6;
    font-size: 1rem;
}

/* Make it responsive */
@media screen and (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        padding: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
    }
}

.headerContainer {
    width: 80%;
    max-width: 1200px;
    background-color: rgba(43, 37, 35, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    min-height: 60px;
    position: fixed !important;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: none !important;  /* Force no transition */
}

.headerContainer.scrolled {
    width: 100% !important;
    max-width: none !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    background-color: rgba(43, 37, 35, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    transition: none !important;  /* Force no transition in scrolled state too */
}

.logo-link {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
    height: 100%;  /* Make link full height */
    padding: 5px 0;  /* Add some padding */
    z-index: 1000;  /* Ensure it's clickable */
}

.header-logo {
    height: 65px;
    width: auto;
    cursor: pointer;
    display: block;  /* Ensure image is block level */
    pointer-events: none;  /* Make sure image doesn't interfere with link */
}

.nav-link {
    text-decoration: none;
    position: relative;
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
    opacity: 0;
}

.nav-link:hover::after {
    width: 100%;
    opacity: 1;
}

@media screen and (max-width: 1030px) and (min-width: 768px) {
    #menu {
        gap: 0.8rem;  /* Slightly reduced gap */
    }
    
    .nav-link {
        font-size: 0.9rem;
    }

    /* Specifically target Resume and Contact */
    #menu li:nth-last-child(2) .nav-link,  /* Resume */
    #menu li:last-child .nav-link {        /* Contact */
        font-size: 0.85rem;  /* Slightly smaller than other links */
        padding: 0.4rem;     /* Less padding */
    }

    .headerContainer {
        padding: 1.5rem 1rem;
    }

    .logo-link {
        left: 1rem;
    }
}