html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
}

/* Give every anchor target enough top clearance for the fixed navbar */
#home, #me, #experience, #projects, #contact {
    scroll-margin-top: 12vh;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Space Mono", monospace;
}
body {
    background-color: #f9f6ee;
}
.container {
    min-height: 100vh;   /* was height: 100vh — fixed height was capping scroll range */
    width: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1550px;
    padding: 0 40px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #f9f6ee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1000;
    opacity: 0.98;
    backdrop-filter: blur(8px);
}
.logo {
    color: black;
    font-size: 2.2em;
    justify-content: left;
}
.logo span {
    color: #1e6b83;
}

nav ul li {
    list-style: none;
    display: inline-block;
    padding: 10px 50px;
}

nav ul li a {
    color: #1e6b83;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4em;
    
}
nav ul li a:hover {
    color: black;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 18vh;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}

.hero-container .hero-title {
    color: #1e6b83;
    font-size: 5.8em;
    justify-content: center;
    margin-bottom: 3vh;
}

.hero-container .hero-description {
    color: grey;
    font-size: 1.7em;
    margin-bottom: 3vh;
}

.hero-about {
    background-color: #1b61749a;
    display: flex;
    flex-direction: column;
    height: max-content;
    width: 100%;
    margin-top: 5vh;
    border: #1e6b83;
    border-radius: 15px;
    box-shadow: 0 50px 100px rgba(50, 50, 93, .15), 0 15px 35px rgba(50, 50, 93, .2), 0 5px 15px rgba(0, 0, 0, .12);
    
}
.hero-about a {
    text-decoration: none;
    color: #f9f6ee;
}

.about-bar {
    width: 100%;
    height: 4vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border: grey;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-color: rgb(218, 212, 212);
}

.about-button{
    height: 16px;
    width: 16px;
    display: flex;
    flex-direction: column;
    border: 1px solid;
    border-radius: 50%;
    margin-left: 12px;
    margin-right: 0px;
}
.about-button.red {
    border: 1px solid rgb(245, 43, 43);
    background-color: rgb(245, 43, 43);
}
.about-button.yellow{
    border: 1px solid rgb(255, 196, 0);
    background-color: rgb(255, 196, 0);
}
.about-button.green {
    border: 1px solid rgb(10, 175, 10);
    background-color: rgb(10, 175, 10);
}

.about-window {
    display:flex;
    background-color: transparent;
    flex-direction: column;
    font-size: 26px;
    font-weight: lighter;
    color: #f9f6ee;
    height: 80%;
    width: 80%;
    margin: 1.5vh 1.5vh 1.5vh 1.5vh;
    
}

.section-title {
    color: #1e6b83;
    font-size: 2.5em;
    display: flex;
    justify-content: center;
    margin-top: 10vh;
    margin-bottom: 10vh;
    text-decoration: #1e6b83;
}
.hero-projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.project-card {
    background-color: #f9f6ee;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    box-shadow: 0 50px 100px rgba(50, 50, 93, .15), 0 15px 35px rgba(50, 50, 93, .2), 0 5px 15px rgba(0, 0, 0, .12);
    height: max-content;
    width: 100%;
    max-width: 1400px;   /* controls how wide they get */
    margin: 5vh auto;
    padding: 6vh;
    border: #1e6b83;
    border-radius: 20px;
}
.project-title {
    margin-bottom: 2vh;
    font-size: 1.1em;
    color:black
}
.project-text {
    font-size: 1.15em;
    margin-bottom: 2vh;
    color:black
}

.project-skills {
    font-size: 1.1em;
    margin-bottom: 1vh;
    align-self: center;
    color: #1e6b83;
}
.project-links {
    font-size: 1.2em;
    margin-bottom: 1vh;
    align-self: center;
    color: black;
    
}
.project-links a {
    text-decoration: none;
    color: black;
}


.me-card {
    
    display: flex;
    flex-direction:row;
    justify-content: center;
    align-items: center;
    height: max-content;
    width: 100%;
    max-width: 1500px;   /* controls how wide they get */
    margin: 5vh auto;
    
}

.me-text {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    margin-right: 17px;
    width: 50%;
    height: max-content;
    background-color: transparent;
    font-size: 28px;
    
}
.me-img {
    display: flex;
    flex: 0.7;
    justify-content: center;
    box-shadow: 0 50px 100px rgba(50, 50, 93, .15), 0 15px 35px rgba(50, 50, 93, .2), 0 5px 15px rgba(0, 0, 0, .12);
    align-items: center;
    margin: 10px;
    margin-left: 20px;
    
    border-radius: 15px;
}
.me-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* fills the box nicely */
    border-radius: 15px;
}

.experience-card {
    border: 8px solid rgb(112, 172, 141);
    background-color: #f9f6ee;
    display: flex;
    flex-direction: column;
    justify-content:flex-start;
    align-items: left;
    box-shadow: 0 50px 100px rgba(50, 50, 93, .15), 0 15px 35px rgba(50, 50, 93, .2), 0 5px 15px rgba(0, 0, 0, .12);
    height: max-content;
    width: 100%;
    max-width: 1400px;   /* controls how wide they get */
    margin: 5vh auto;
    padding: 6vh;
    border-radius: 20px;
}

.experience-card ~ .experience-card {
    border: 8px solid #1b61749a;
    background-color: #f9f6ee;
    display: flex;
    flex-direction: column;
    justify-content:flex-start;
    align-items: left;
    box-shadow: 0 50px 100px rgba(50, 50, 93, .15), 0 15px 35px rgba(50, 50, 93, .2), 0 5px 15px rgba(0, 0, 0, .12);
    height: max-content;
    width: 100%;
    max-width: 1400px;   /* controls how wide they get */
    margin: 5vh auto;
    padding: 6vh;
    border-radius: 20px;
}
.experience-technologies ~ .experience-technologies{
    color: #1b61749a;
}
.experience-title {
    display: flex;
    align-items: center; 
    gap: 20px; 
    margin-bottom: 1vh;
}
.experience-title img {
    height: 1.4em;
    padding-right: 10px;
    width: auto; 
    vertical-align: middle;
}
.experience-title h1 {
    margin: 0; 
}
.experience-company {
    margin-bottom: 3px;
    font-size: 1.3em;
}
.experience-date {
    margin-bottom: 1vh;
    font-size: 1.1em;
}
.experience-text {
    margin-bottom: 1vh;
    font-size: 1.2em;
}
.experience-technologies {
    font-size: 1.1em;
}

.hero-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.contact-list {
    display: flex;
    justify-content: center;
    align-items: center;
    height: max-content;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 10vh;
    font-size: 28px;

}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10vh;
    margin-bottom: 10vh;
}

/* =============================================
   HAMBURGER BUTTON  (hidden on desktop)
   ============================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #1e6b83;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Animate three bars into an X when the menu is open */
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* =============================================
   NARROW WINDOW  (≤ 960px)
   Triggers on any viewport this wide — desktop,
   tablet, or phone. Pure screen-size logic.
   ============================================= */
@media (max-width: 1280px) {

    /* --- Hamburger replaces the inline nav --- */
    .hamburger {
        display: flex;
    }
    .navbar ul {
        display: none;
        position: absolute;
        top: 10vh;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #f9f6ee;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        padding: 8px 0 16px;
        z-index: 999;
    }
    .navbar ul.open {
        display: flex;
    }
    nav ul li {
        display: block;
        padding: 12px 24px;
        text-align: left;
    }
    nav ul li a {
        font-size: 1.2em;
    }

    /* --- Content scaling --- */
    .hero-container .hero-title {
        font-size: 4em;
    }
    .hero-container .hero-description {
        font-size: 1.4em;
    }
    .about-window {
        font-size: 20px;
        width: 90%;
    }
    .me-text {
        font-size: 22px;
    }
    .contact-list {
        font-size: 22px;
    }
}


/* =============================================
   SMALL WINDOW  (≤ 650px)
   Extra scaling for very narrow viewports.
   ============================================= */
@media (max-width: 650px) {

    /* --- Layout --- */
    .container {
        padding: 0 18px;
    }

    /* --- Hero title & description --- */
    .hero-container {
        margin-top: 14vh;
    }
    .hero-container .hero-title {
        font-size: 2.4em;
    }
    .hero-container .hero-description {
        font-size: 1.05em;
    }

    /* --- About / terminal window --- */
    .about-window {
        font-size: 14px;
        width: 94%;
    }

    /* --- Me section: stack image below text --- */
    .me-card {
        flex-direction: column;
        gap: 20px;
        margin: 3vh auto;
    }
    .me-text {
        width: 100%;
        font-size: 17px;
        margin-right: 0;
    }
    .me-img {
        width: 100%;
        margin-left: 0;
        max-width: 420px;
    }

    /* --- Experience & Project cards --- */
    .experience-card,
    .experience-card ~ .experience-card,
    .project-card {
        padding: 4vh 3.5vw;
    }
    .experience-title h1 {
        font-size: 1em;
    }
    .experience-company {
        font-size: 1em;
    }
    .experience-text,
    .project-text {
        font-size: 0.95em;
    }
    .experience-technologies,
    .project-skills {
        font-size: 0.9em;
    }

    /* --- Section titles --- */
    .section-title {
        font-size: 1.8em;
        margin-top: 7vh;
        margin-bottom: 5vh;
    }

    /* --- Contact --- */
    .contact-list {
        font-size: 16px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .contact-list p {
        line-height: 2;     /* more breathing room between the pipe-separated links */
    }
}

