body {
    font-family: Arial, sans-serif;
    background: black;
    color: white;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* BINARY BACKGROUND */
#binary-wave-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -100;
    pointer-events: none; 
    /* GPU acceleration for smoother animation */
    will-change: transform;
    backface-visibility: hidden;
}

/* SCROLL CONTAINER & SCROLL BAR */
.scroll-container {
    flex: 1 0 auto;  /* grow to fill available space */
    position: absolute;
    top: var(--nav-height); /* start right below the navbar */
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto; /* scroll only in this area */
    padding-right: 3%;
    padding-left: 3%;
    box-sizing: border-box; /* make padding included in width */
    /* Smooth scrolling performance */
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
    scroll-behavior: smooth;
    will-change: scroll; /* hints browser to optimize scroll */
}

#scroll-fade-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 0vh;   /* START SMALL — grows via JS */
  pointer-events: none;
  z-index: -50;   /* Behind content, above binary */
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.6) 55%,
    rgba(0, 0, 0, 0.9) 80%,
    rgba(0, 0, 0, 1) 100%
  );
  transition: height 0.15s ease-out, opacity 0.25s linear;
  opacity: 0;
}

/* INRTODUCTION SECTION */
#introduction {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.intro-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.intro-text {
    max-width: 650px;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);
}

.intro-text h1 {
    font-size: 2.85rem;
    margin-bottom: 1rem;
}

.intro-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #dddddd;
}

.headshot img {
    max-width: 420px;

    /* max-width: 100%; Ensures image doesn't exceed container width */
    height: auto;    /* Maintains aspect ratio */

    border-radius: 2%;
    filter: drop-shadow(0px 2px 10px rgba(21, 21, 21, 0.75));
}

/* Mobile: stack */
@media (max-width: 900px) {
    .intro-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .headshot img {
        padding-top: 40px;
        max-width: 330px;
    }

    .intro-text {
        margin-top: -20px; /* move text closer to bottom of image */
    }

    .intro-text h1 {
        font-size: 2.4rem; /* optional: slightly smaller for mobile */
    }
}





.additional-info {
    max-width: 1150px;
    margin-top: 60px; /* increase this to add more space */
    margin-bottom: 85px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 45px;
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(137, 137, 137, 0.35);
    opacity: 0;                /* start hidden */
    transform: translateY(5px); /* slide up animation */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.additional-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.additional-info section {
    margin-bottom: 45px;
}

.additional-info h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.additional-info h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #f2f2f2;
}

.additional-info p {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #dddddd;
    margin-bottom: 14px;
}

.additional-info a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;   /* makes text bold */
}

.additional-info p a:hover {
    color: rgb(208, 8, 8);
    text-decoration: underline;
}

.additional-info a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.additional-info h1::after {
    content: '';
    display: block;
    width: 65px;
    height: 3px;
    margin-top: 10px;
    background: rgb(188, 9, 9);
    border-radius: 2px;
}

.additional-info strong {
    color: #ffffff;
}

@media (max-width: 900px) {
    .additional-info {
        margin-top: 55px; /* smaller gap on mobile */
        margin-bottom: 40px;
    }
}

.external-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 20px;
}

.external-links a {
    padding: 12px 18px;
    border-radius: 8px;
    background: rgba(188, 9, 9, 0.85);
    color: white;
    text-decoration: none;
    font-weight: 600;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.external-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(188, 9, 9, 0.25);
}

#about {
    margin-bottom: 60px;
}

#about p:first-of-type {
    font-size: 1.15rem;
    color: #f0f0f0;
}














/* ===== FOOTER ===== */
.footer { 
    position: relative; 
    /* stacking context for gradient */ 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 1.3rem 2rem 2rem; 
    font-size: 0.9rem; gap: 2rem; 
    flex-wrap: wrap; 
    line-height: 1.5; 
    color: #ddd; 
    
}





/* Each column takes equal space */
.footer .left-column,
.footer .middle-column,
.footer .right-column {
    flex: 1 1 0;  /* equal width, grows/shrinks */
    text-align: center;

    position: relative;  /* stack above gradient */
    z-index: 1;


}

/* Column spacing on desktop */
.footer .left-column {
    text-align: left;
}
.footer .middle-column {
    text-align: center;
}
.footer .right-column {
    text-align: right;
}

/* Headings in footer columns */
.footer h3 {
    color: #ddd;
}

.footer div {
    color: #999;
}

/* Links and text */
.footer a {
    color: #007BFF;
    text-decoration: none;
}

.footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.footer div {
    margin-bottom: 0.25rem;
    color: #666;
}




/* Mobile: stack columns vertically */
@media (max-width: 768px) {
    .footer {
        display: flex;
        flex-direction: column;       /* stack columns vertically */
        align-items: flex-start;      /* left-aligned */
        padding: .8rem 1rem 1.75rem; /* top padding first */
        gap: .3rem;                  /* space between sections */

        padding-top: 5px;
    }

    /* Subtle line above footer */
    .footer-divider {
        margin-top: 2rem; 
    }

    /* Each column takes full width */
    .footer .left-column,
    .footer .middle-column,
    .footer .right-column {
        width: 100%;                  /* full width */
        text-align: left;
        margin-bottom: 0;             /* no extra spacing beyond gap */
        font-size: 0.75rem;           /* smaller text for all columns */
        line-height: 1.05;             /* optional: tighter line spacing */
    }

    /* Optional: headings smaller on mobile */
    .footer h3 {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    /* Extra Notes wrap nicely */
    .footer .left-column {
        word-wrap: break-word;
        white-space: normal;
    }
}