/* General Styles */
body {
    font-family: "Times New Roman", serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns content to the top */
    align-items: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.intro-wrapper {
    position: fixed;
    top: 45px;
    width: 100vw;
    background: white;
    z-index: 999;
    overflow: visible; /* prevent clipping */
    display: flex;
    justify-content: center;
}

.intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

h1 {
    font-size: 2.3em;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0px;
    padding: 0px;
}

h2 {
    font-size: 2.0em;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0px;
    padding: 0px;
}

/* Top Ribbon */
.top-ribbon {
    background-color: #333;
    color: white;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.top-ribbon ul,
.top-ribbon ul li {
    list-style: none;  /* remove bullets */
    margin: 0;          /* remove default spacing */
    padding: 0;         /* remove default spacing */
}

.top-ribbon > a {
    display: flex;
    flex-shrink: 1;
    flex-grow: 0;
    min-width: 0;
}

.top-ribbon .logo {
    height: auto;
    max-height: 35px;
    width: auto;
    margin-left: 5px;
    margin-right: 5px;
    display: flex;
    flex-shrink: 1;
    flex-grow: 0;
    align-items: center;
    justify-content: center;
}

/* Navigation Menu */
.top-ribbon .desktop-nav {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    margin-left: auto; /* pushes desktop nav to the right */
}

.top-ribbon .desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}
.top-ribbon .desktop-nav ul li {
    list-style: none;
}

.top-ribbon .desktop-nav ul li a {
    color: white;
    text-decoration: none;
    font-variant: small-caps;
    padding: 5px 10px;
    white-space: nowrap;
}

.mobile-nav {
    margin-left: 0;    
    flex: 0 0 auto;  /* prevent stretching */

}

.instagram-nav {
    display: flex;
    padding-left: 20px;
    padding-right: 15px;
    flex-shrink: 0;
}



.instagram-icon {
    width: 17px;
    height: auto;
    vertical-align: middle;
    margin-bottom: 0;
}

.hamburger-wrapper {
    display: none;
    position: relative;
}

.hamburger-menu {
    display: none;
    font-size: 1.8em;
    color: white;
    cursor: pointer;
    padding-right: 0;
}

.hamburger-dropdown li {
    display: none;
}




h3 {
    font-size: 1.7em;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0px;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    grid-template-rows: auto auto auto; /* Three rows */
    align-items: start;
    gap: 20px;
    padding: 0px;
    padding-bottom: 25px;
    max-width: 900px;
    margin: 20px;
    text-align: Justify;
    position: absolute;
    top: 115px;
}

.portrait {
    grid-column: 1 / 2;
    grid-row: 1 / 3; /* Spans two rows */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: 100%;
    padding: 5px;
}

.about-portrait {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    object-fit: contain;
}

.credentials-container {
    text-align: justify;
    max-width: 600px;
    margin: 20px auto; /* Adds spacing below the portrait */
    padding: 0px;
}

.credentials-container p {
    display: block; /* Ensures each paragraph is treated as a block element */
    margin: 3px 0; /* Adjust top and bottom margins for spacing */
}

.section-title {
    font-size: 2em;  /* Slightly larger than other h2s */
    font-variant: small-caps;
    font-weight: bold;
    margin-bottom: 0px; /* Adjust space below */
    text-align: center;
}

.about-text {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.skills {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.credentials {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.indent {
    display: inline-block; 
    text-indent: 0px; /* Adjust indent as needed */
    padding-left: 10px
}

.clients {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.about-me-container p,
.skills-container p,
.clients-container p {
    margin-top: 5px;  /* tighten the gap */
}


/* Footer Stays at Bottom (Matching Landing Page) */
.footer-wrapper {
    display: flex;   /* shrink-to-fit the widest content */
    flex-direction: column;        /* stack vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    width: auto;
    box-sizing: border-box;
}

.footer-wrapper ul {
    display: block;          /* now fills the wrapper */
    width: 100%;             /* ensures text width matches wrapper */
    margin: 0;
    white-space: nowrap;     /* prevents line breaks */
    text-align: center;      /* keeps text centered */
}

.footer {
  background-color: #333;
  color: white;
  padding: 8px 0;
  font-size: 0.9em;
  font-variant: small-caps;
  text-align: center;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
}

.tagline {
    font-size: 1.2em;
    font-style: italic;
    font-variant: small-caps;
}

.year-fix {
    font-size: 0.8em;
    /* Adjust size to match surrounding text */
}

/* Clean, evenly spaced item list */
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px; /* even spacing between lines */
}

.footer-list li {
  line-height: 1;
}

.footer-list a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-list a:hover {
  opacity: 0.8;
}


@media (max-width: 825px) {

    /* Top Ribbon flex setup */
    .top-ribbon {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 8px;
    }

    /* Logo container flex */
    .top-ribbon > a {
        display: flex;
        flex-shrink: 1;      
        flex-grow: 1;        
        min-width: 0;
        margin-right: 10px;  
    }

    .top-ribbon .logo {
        max-width: 85%;
        max-height: 35px;    
        width: auto;
        height: auto;
    }

    /* Nav container (hamburger + Instagram) */
    .top-ribbon nav {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        padding-left: 15px;
        padding-right: 15px; 
    }

    /* Hamburger icon */
    .hamburger-menu {
    display: flex;             /* make container a flexbox */
    align-items: center;       /* vertically center the img */
    justify-content: center;   /* horizontally center if needed */
    cursor: pointer;
    padding: 0;
    line-height: 0;            /* removes any inline-gap issues */
    }

    /* Hamburger image */
    .hamburger-menu img {
        display: block;
        height: 17px;              /* match Instagram icon */
        width: auto;
    }


    /* Instagram icon */
    .instagram-icon {
        display: block;
        width: 17px;
        margin-bottom: 0;
    }


    /* Hamburger dropdown - hidden by default */
    .hamburger-dropdown {
        display: none;
        flex-direction: column;       /* vertical stacking */
        position: absolute;
        top: calc(100% + 4px);
        right: 0px;
        background-color: #333;
        list-style: none;
        padding: 0;
        margin: 0;
        min-width: 140px;
        z-index: 2000;                /* above ribbon */
    }

    .hamburger-dropdown li {
    display: block;
    }

    .hamburger-dropdown li a {
        display: block;
        padding: 12px;
        color: white;
        text-decoration: none;
        font-variant: small-caps;
        white-space: nowrap;
    }

    .hamburger-dropdown li a:hover {
        background-color: rgba(236, 233, 233, 0.2);
    }

    /* Hamburger wrapper */
    .hamburger-wrapper {
        display: block;
        position: relative;
    }

    /* Hide desktop nav in mobile */
    .top-ribbon .desktop-nav {
        display: none;
    }

    /* Show dropdown only when active */
    .hamburger-wrapper.active .hamburger-dropdown {
        display: flex;
    }

}



@media (max-width: 685px) {

    .intro-wrapper {
        display: inline-flex;
        top: 20px;
        padding-top: 25px;
        transform: scale(0.80);
        transform-origin: top center;
        width: 100vh;
    }

 .intro-wrapper h1, .intro-wrapper h2 {
        display: block;    
         white-space: nowrap;

    }

    .about-container {
        display: grid;
        top: auto;          /* remove top offset */
        bottom: auto;       /* remove bottom offset */
        grid-template-columns: 1fr;
        align-items: start; /* optional, keeps content at top */
        padding-top: 80px;
        padding-bottom: 80px; /* space for fixed footer */
        max-width: 90%; /* optional for mobile */
        margin: 20px auto;
        justify-items: center;
    }

    .left-column {
     display: flex;
     flex-direction: column;
     align-items: center;  /* center all child elements horizontally */
     width: 100%;          /* full width of container */    
    }

    .image-container {
        width: 100%;           /* ensure container spans full width */
        display: flex;
        justify-content: center;  /* center image horizontally */
    }

    .about-portrait {
        max-width: 90%;
        display: block;
    }
     
    .credentials-container {
        align-self: stretch;       /* let it take full width of column */
        text-align: justify;       /* match right-column text alignment */
        max-width: 600px;          /* optional: keep same max width as desktop */
        margin: 20px 0;            /* adjust spacing */
    }

    .footer {
        padding-top: 8px;
        padding-bottom: 0px;
    }

    .footer-wrapper ul {
        display: inline-flex;
        transform: scale(0.80);
        transform-origin: top center;

}   
}