* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Make the body fill the entire viewport */
body {
    background-color: rgb(255, 255, 255);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Hide toggle button by default */
.toggle-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}
h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1;                /* ensures consistent vertical alignment */
}

.outline1 {
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    margin-top: 2%;
    margin-bottom: 1%;
    padding: 0;
    color: #000000;
    margin-bottom: 20px;
}
header {
    background-color: #ffa300;
    color: aliceblue;
    font-family: "Roboto", serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 80px;
    border-bottom: 4px solid #ffffff;
    position: absolute;   /* header stays at top */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;     /* make sure header is above image */
}
/* Hide toggle button by default */

h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1;                /* ensures consistent vertical alignment */
}
.menu-btn {
    display: none;
  }
  
/*Navigation Link*/
nav a {
    text-align: center;
    text-decoration: none;
}

nav li {
    list-style: none;
}

.topmenu {
    margin-top: 30px;
    margin-bottom: 0;
    margin-right: 30px;
    display: flex;
    justify-content: right;
    gap: 10px;
}

.topmenu li {
    font-size: large;
}

.topmenu a {
    padding: 10px;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
}

.topmenu a:hover {
    text-decoration: none; /* ✅ remove default underline */
    color: #060606;
    border-bottom: 3px solid #060606; /* ✅ single line under the nav */
}
.topmenu a.active{
    text-decoration: none; /* ✅ remove default underline */
    color: #060606;
}
.sidebar {
    display: none;
}
:root {
    --background: #ffffff;
    --foreground: oklch(0.145 0 0);
    --card: #ffffff;
    --card-foreground: oklch(0.145 0 0);
    --muted-foreground: #717182;
    --border: rgba(0, 0, 0, 0.1);
    --radius: 0.625rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    background-color: rgb(255, 255, 255);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.5;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}
main h1 {
    font-family: "Montserrat", sans-serif;
}
.container {
    max-width: 1536px;
    margin-top: 40px;
    padding: 3rem 1rem; 
}

.max-w-6xl {
    max-width: 72rem;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header h1 {
    margin-bottom: 0.5rem;
}

.header p {
    color: var(--muted-foreground);
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Card Styles */
.card {
    background-color: var(--card);
    color: var(--card-foreground);
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid var(--border);
    overflow: hidden;
    max-width: 56rem;
    margin: 0 auto;
    width: 100%;
}

.card-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.image-container {
    position: relative;
}

.image-container img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    display: block;
}

.image-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.card-content {
    padding: 1.5rem;
}

.card-content > div:first-child {
    margin-bottom: 0.75rem;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--muted-foreground);
}

.location svg {
    width: 1rem;
    height: 1rem;
}

.bio {
    color: var(--muted-foreground);
}
/* Footer takes 20% of the page height */
footer {
    background-color: black;
    color: white;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media (max-width: 1000px) {
    .card-images {
        grid-template-columns: 1fr;
    }
    .navbar .links {
        display: flex;
        gap: 2rem;
    }
    .topmenu {
        display: none; /* hide top nav links */
    }
    
    .menu-btn {
        background: none;
        border: none;
        outline: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
    }
    .menu-btn {
    display: block; /* show the hamburger button */
    }

    .sidebar {
    display: block; /* sidebar becomes functional */
    }
        
    .hidden {
        display: none;
    }
        
    
    .menu-button:hover {
        background-color: #e5e7eb;
    }
    
    .menu-button .icon {
        width: 24px;
        height: 24px;
        color: #374151;
        border: none;
    }

    /* Right Sidebar */
    .sidebar {
        position: fixed;
        top: 60px;
        right: 0;
        height: 100%;
        width: 45%;
        max-width: 320px;
        background-color: #ffa300;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 40;
        overflow-y: auto;
    }
    .menu-btn i.hidden {
        display: none;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-content {
        padding: 10px;
    }
    
    
    /* Navigation List */
    .nav-list {
        list-style: none;
    }
    
    .nav-list li {
        margin-bottom: 4px;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0 10px 8px; /* less space on left */
        border-radius: 8px;
        color: #000000;
        text-decoration: none;
        transition: background-color 0.2s;
        font-size: large;
        font-family: "Montserrat", sans-serif;
        font-weight: 500;
    }
    
    
    .nav-link:hover {
        background-color: #f3f4f6;
    }
    
    /* Overlay */
    .overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 30;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease-in-out;
    }
    
    .overlay.show {
        opacity: 1;
        pointer-events: auto;
    }
    header {
        position: fixed;
        background-color: #ffa300;
        color: aliceblue;
        font-family: "Roboto", serif;
        display: flex;                 /* places h1 and button side by side */
        align-items: center;           /* vertically align them */
        justify-content: space-between;/* puts h1 on left, button on right */
        padding: 0 20px;
        height: 60px;                  /* example fixed header height */
    }
    h1 {
        font-size: large;
    } 
    header {
        background-color: #ffa300;
        color: aliceblue;
        font-family: "Roboto", serif;
        display: flex;                 /* places h1 and button side by side */
        align-items: center;           /* vertically align them */
        justify-content: space-between;/* puts h1 on left, button on right */
        padding: 0 20px;
        height: 60px;                  /* example fixed header height */
    }
    h1 {
        font-size: large;
    }   
    .afterheader {
        margin-top: 60px;  /* push image below fixed header */
    }
    
    .afterheader img {
        width: 100%;
        height: 70%;
        display: block;
    } 
    .overlay-text {
        padding: 15px;
    }
    .overlay-text {
        position: absolute;
        top: 25%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        text-align: center;
        background-color: rgba(0,0,0,0.4); /* semi-transparent background */
        padding: 20px;
        border-radius: 10px;
        max-width: 90%; /* prevents text from going too wide */
    }

    .overlay-text h2 {
        margin: 0;
        font-size: 20px;
    }
    .overlay-text p {
        margin: 5px 0 0 0;
        font-size: 15px;
    }.cta-btn {
        display: inline-block;
        margin-top: 15px;
        padding: 8px 30px;
        background-color: #ffa300;
        color: white;
        text-decoration: none;
        font-weight: bold;
        border-radius: 5px;
        transition: background-color 0.3s;
        font-family: "Roboto", serif;
        font-size: small;
    }

    


}