/* ============================================================
   STYLE-RETRO.CSS — Modern Retro Minimal
   Purple as accent only. Dark near-black base. Clean, sharp geometry.

   TO SWITCH THEMES:
     Retro  → change href="style.css" to href="style-retro.css" in all HTML files
     Revert → change href="style-retro.css" back to href="style.css"
   ============================================================ */

/* ============================================================
   1. RESET
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================================
   2. BASE & TYPOGRAPHY
   ============================================================ */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0D0D0D;
    color: #D4CFC9;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */
.layout-grid {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* ============================================================
   4. NAVBAR
   ============================================================ */
.site-header {
    background-color: #0D0D0D;
    border-bottom: 1px solid #1E1E1E;
    flex-shrink: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 28px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    color: #D4CFC9;
    font-family: 'Mea Culpa', cursive;
    font-size: 1.4em;
    text-decoration: none;
    border-radius: 2px;
    border: 1px solid #2A2A2A;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.nav-logo:hover {
    border-color: #9940FF;
    color: #9940FF;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 2px;
    align-items: center;
}

.nav-item {
    position: relative;
    border-radius: 0;
    overflow: visible;
}

/* Replace bubble with bottom-border active indicator */
.nav-bubble { display: none; }

.nav-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 8px;
    color: #555;
    text-decoration: none;
    font-size: 0.72em;
    font-weight: 500;
    font-family: monospace;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-item.active .nav-link {
    color: #9940FF;
    border-bottom-color: #9940FF;
}

.nav-item:not(.active):hover .nav-link {
    color: #D4CFC9;
}

.nav-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Main scrollable area */
main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Slim scrollbar */
main::-webkit-scrollbar,
.detail-scroll-area::-webkit-scrollbar { width: 2px; }

main::-webkit-scrollbar-track,
.detail-scroll-area::-webkit-scrollbar-track { background: transparent; }

main::-webkit-scrollbar-thumb,
.detail-scroll-area::-webkit-scrollbar-thumb {
    background: #2A2A2A;
    border-radius: 999px;
}

main::-webkit-scrollbar-thumb:hover,
.detail-scroll-area::-webkit-scrollbar-thumb:hover { background: #9940FF66; }

/* Page section visibility */
.page-section { display: none; min-height: 100%; }
.page-section.active { display: block; }

/* ============================================================
   5. SHARED / GLOBAL COMPONENTS
   ============================================================ */
.widget {
    background-color: #111111;
    border-radius: 2px;
    border: 1px solid #1E1E1E;
    padding: 28px;
}

/* ============================================================
   6. HOME PAGE
   ============================================================ */
main:has(#home.active) { overflow: hidden; height: 100%; }
#home.active { height: 100%; overflow: hidden; }

.hero {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0D0D0D;
    overflow: hidden;
}

/* Dot-grid removed — solid background */

/* Wave — same mask math, just recolored and subdued */
.wave {
    --size: 50px;
    --b: 100px;
    --m: 0.5;
    --p: calc(var(--m) * var(--size));
    --R: calc(var(--size) * sqrt(var(--m) * var(--m) + 1));

    position: absolute;
    left: 0;
    width: 100%;
    height: 34px;
    pointer-events: none;
    z-index: 2;

    
    mask:
        radial-gradient(var(--R) at left 50% bottom calc(-1*var(--p)), #0000 calc(99% - var(--b)), #000 calc(101% - var(--b)) 99%, #0000 101%) calc(50% - 2*var(--size)) 0/calc(4*var(--size)) 100%,
        radial-gradient(var(--R) at left 50% top calc(-1*var(--p)), #0000 calc(99% - var(--b)), #000 calc(101% - var(--b)) 99%, #0000 101%) 50% var(--size)/calc(4*var(--size)) 100%;
    background: #9940FF;
    opacity: 0.2;
}

.wave-top { top: 0; }
.wave-bottom { bottom: 0; transform: scaleY(-1); }

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 1;
    text-align: center;
}

h1 {
    color: #D4CFC9;
    font-size: 4.5rem !important;
    font-family: 'Mea Culpa', cursive;
    font-weight: bold;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 0.78em;
    color: #555;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: monospace;
    max-width: 560px;
}

.hero-subtitle--small {
    font-size: 0.88em;
    letter-spacing: 0;
    line-height: 1.85;
    color: #555;
    max-width: 460px;
    font-family: 'Inter', sans-serif;
    text-transform: none;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

.hero-btn {
    padding: 10px 28px;
    background-color: transparent;
    color: #9940FF;
    border: 1px solid #9940FF;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.75em;
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.hero-btn:hover {
    background-color: #9940FF;
    color: #0D0D0D;
}

.hero-btn--outline {
    color: #444;
    border-color: #2A2A2A;
}

.hero-btn--outline:hover {
    background-color: #1A1A1A;
    color: #D4CFC9;
    border-color: #555;
}

/* Shared section wrapper */
.section-wrap {
    padding: 48px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Section heading — monospace uppercase, underlined */
.section-heading {
    color: #D4CFC9;
    font-size: 1.1em;
    font-family: monospace;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1E1E1E;
}

/* ============================================================
   8. PROJECTS PAGE
   ============================================================ */
.proj-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.proj-label {
    font-size: 0.65em;
    font-family: monospace;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9940FF;
    margin-bottom: 6px;
}

.proj-heading {
    font-size: 1.8em;
    font-weight: 700;
    color: #D4CFC9;
    line-height: 1.1;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-btn {
    padding: 4px 12px;
    border-radius: 2px;
    border: 1px solid #2A2A2A;
    background-color: transparent;
    color: #555;
    font-size: 0.68em;
    font-family: monospace;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.filter-btn:hover {
    border-color: #555;
    color: #D4CFC9;
}

.filter-btn.filter-active {
    border-color: #9940FF;
    color: #9940FF;
    background-color: transparent;
    font-weight: 600;
}

.proj-hint {
    font-size: 0.72rem;
    color: #333;
    margin-bottom: 16px;
    font-family: monospace;
}

.proj-divider {
    height: 1px;
    background: #1E1E1E;
    margin-bottom: 28px;
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Card — sharp, flat, border-only hover */
.proj-card {
    position: relative;
    background-color: #0F0F0F;
    border-radius: 2px;
    border: 1px solid #1E1E1E;
    overflow: hidden;
    transition: border-color 0.2s;
    cursor: pointer;
    min-height: 280px;
}

.proj-card:hover {
    border-color: #9940FF;
    box-shadow: none;
    transform: none;
}

.proj-card:hover .proj-title { color: #9940FF; }

.proj-card-link {
    position: absolute;
    inset: 0;
    border-radius: 2px;
    z-index: 1;
}

.proj-card-front {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.proj-card-img { width: 100%; flex: 1; min-height: 0; }

.proj-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proj-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0A0A0A;
    border: none;
    color: #2A2A2A;
    font-family: monospace;
    font-size: 0.72em;
    overflow: hidden;
}

.proj-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proj-card-caption {
    padding: 10px 14px;
    background: #0F0F0F;
    border-top: 1px solid #1E1E1E;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.proj-card-back {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    height: 100%;
    min-height: 280px;
    background: #0F0F0F;
}

.proj-card.flipped .proj-card-front { display: none; }
.proj-card.flipped .proj-card-back  { display: flex; }

/* Toggle button — small, sharp, monospace */
.proj-toggle-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 22px;
    height: 22px;
    border-radius: 2px;
    background-color: transparent;
    color: #9940FF;
    border: 1px solid #9940FF44;
    font-size: 0.95em;
    font-weight: bold;
    font-family: monospace;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.proj-toggle-btn:hover {
    background-color: #9940FF;
    color: #0D0D0D;
    border-color: #9940FF;
}

.proj-card-top { display: flex; flex-direction: column; gap: 3px; }

.proj-category {
    font-size: 0.62em;
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9940FF;
}

.proj-title {
    font-size: 0.92em;
    font-weight: 600;
    color: #D4CFC9;
    line-height: 1.3;
    transition: color 0.2s;
}

.proj-desc {
    font-size: 0.82em;
    color: #555;
    line-height: 1.75;
    flex: 1;
}

.proj-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.proj-tag {
    font-size: 0.65em;
    padding: 2px 7px;
    border-radius: 2px;
    background-color: transparent;
    color: #444;
    border: 1px solid #222;
    font-family: monospace;
}

.proj-links {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #1E1E1E;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.proj-link-icon {
    color: #333;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.proj-link-icon:hover { color: #9940FF; }

.proj-empty {
    text-align: center;
    padding: 48px 0;
    color: #333;
    font-family: monospace;
    font-size: 0.8em;
    letter-spacing: 1px;
}

/* Calorimeter / Crawler detail specifics */
.detail-cal-pic1 { width: 100%; max-width: 500px; margin-bottom: 32px; }
.detail-cal-pic1 .carousel-item img { width: 100%; height: 300px; object-fit: cover; object-position: center; }
.crawler-img-sub { height: 500px; width: 700px; }

/* ============================================================
   9. SKILLS PAGE
   ============================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-widget { text-align: center; }

.skill-img {
    width: 140px;
    height: 140px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
    margin: 0 auto 16px;
}

.skill-name {
    color: #9940FF;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.skill-widget .body-text {
    text-align: left;
    font-size: 0.88em;
    color: #555;
    line-height: 1.7;
}

.skills-sub-heading {
    font-size: 0.65em;
    font-family: monospace;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9940FF;
    margin-bottom: 14px;
    margin-top: 36px;
}

.skill-icons-row { display: flex; flex-wrap: wrap; gap: 8px; }

.skill-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background-color: #0F0F0F;
    border-radius: 2px;
    border: 1px solid #1E1E1E;
    color: #444;
    font-size: 0.68em;
    font-family: monospace;
    letter-spacing: 1px;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
    min-width: 80px;
}

.skill-icon-card i {
    font-size: 1.6rem;
    color: #333;
    transition: color 0.2s;
}

.skill-icon-card:hover {
    border-color: #9940FF;
    color: #9940FF;
    box-shadow: none;
    transform: none;
}

.skill-icon-card:hover i { color: #9940FF; }

/* ============================================================
   10. NAVBAR CONTACT ICONS & RESUME BUTTON
   ============================================================ */

/* Resume download button
   Sits between the nav links and contact icons in the navbar.
   The 'download' attribute on the <a> tag triggers the file save —
   CSS here just controls how the button looks and animates. */
.nav-resume-btn {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid #9940FF;
    border-radius: 2px;
    color: #9940FF;
    text-decoration: none;
    font-size: 0.68em;
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;          /* stops 'Resume' breaking onto two lines on small screens */
    transition: background-color 0.2s, color 0.2s; /* smooth 0.2s colour fade on hover */
}

/* On hover: fill solid purple, text goes dark */
.nav-resume-btn:hover {
    background-color: #9940FF;
    color: #0D0D0D;
}

/* Wrapper for the three contact icons (email, LinkedIn, GitHub).
   margin-left: auto pushes this group flush to the right of the navbar. */
.nav-contact-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

/* Each individual icon link — square tap target, icon centred inside */
.nav-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 2px;
    color: #333;                  /* dim by default so icons don't compete with nav links */
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

/* Icon turns purple on hover */
.nav-contact-icon:hover {
    color: #9940FF;
    background-color: transparent;
}

/* ============================================================
   11. ABOUT PAGE
   ============================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.about-photo-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-pic {
    width: 100%;
    max-width: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1E1E1E;
    margin-bottom: 16px;
}

.about-photo-name {
    font-size: 1.05em;
    font-weight: 700;
    color: #D4CFC9;
    margin: 0 0 2px 0;
}

.about-photo-handle {
    font-size: 0.82em;
    color: #666;
    margin: 0 0 16px 0;
}

.about-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.about-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    text-decoration: none;
    font-size: 0.82em;
    transition: color 0.2s;
}

.about-social-link i {
    font-size: 1em;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.about-social-link:hover { color: #9940FF; }

.about-bio-name {
    font-size: 1.6em;
    font-weight: 700;
    color: #D4CFC9;
    margin-bottom: 16px;
}

.about-bio-text {
    font-size: 0.9em;
    line-height: 1.9;
    color: #A09A93;
    margin-bottom: 16px;
}

.about-timeline {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    padding-left: 20px;
    border-left: 1px solid #1E1E1E;
}

.timeline-item {
    padding-bottom: 32px;
    position: relative;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #9940FF;
    position: absolute;
    left: -24px;
    top: 5px;
}

.timeline-date {
    font-family: monospace;
    font-size: 0.68em;
    letter-spacing: 2px;
    color: #9940FF;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.timeline-role {
    font-size: 0.9em;
    font-weight: 600;
    color: #D4CFC9;
    margin-bottom: 2px;
}

.timeline-org {
    font-size: 0.78em;
    color: #444;
    font-family: monospace;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.85em;
    line-height: 1.75;
    color: #444;
}

.about-interests {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.interest-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    background-color: #0F0F0F;
    border: 1px solid #1E1E1E;
    border-radius: 2px;
}

.interest-card i {
    font-size: 1.2rem;
    color: #9940FF;
}

.interest-title {
    font-size: 0.78em;
    font-weight: 600;
    color: #D4CFC9;
    font-family: monospace;
    letter-spacing: 1px;
}

.interest-desc {
    font-size: 0.78em;
    line-height: 1.6;
    color: #444;
}

/* ============================================================
   12. PROJECT DETAIL PAGES
   ============================================================ */
.detail-page {
    background-color: #0D0D0D;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #D4CFC9;
    font-family: 'Inter', sans-serif;
}

.detail-scroll-area { flex: 1; overflow-y: auto; overflow-x: hidden; }

.detail-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #0D0D0D;
    border-bottom: 1px solid #1E1E1E;
    padding: 0 32px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-logo {
    font-family: 'Mea Culpa', cursive;
    font-size: 1.4em;
    color: #D4CFC9;
    text-decoration: none;
    transition: color 0.2s;
}

.detail-logo:hover { color: #9940FF; }

.detail-main {
    max-width: 768px;
    margin: 0 auto;
    padding: 64px 32px 96px;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
    font-size: 0.72em;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.2s;
}

.detail-back:hover { color: #9940FF; }
.detail-back svg { flex-shrink: 0; }

.detail-category {
    font-size: 0.62em;
    font-family: monospace;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9940FF;
    display: block;
    margin-bottom: 8px;
}

.detail-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #D4CFC9;
    line-height: 1.15;
    margin-bottom: 16px;
}

.detail-summary {
    font-size: 0.95em;
    line-height: 1.85;
    color: #555;
    margin-bottom: 28px;
}

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

.detail-tag {
    font-size: 0.7em;
    padding: 3px 10px;
    border-radius: 2px;
    background-color: transparent;
    color: #444;
    border: 1px solid #222;
    font-family: monospace;
}

.detail-links {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 28px;
    border-bottom: 1px solid #1E1E1E;
    margin-bottom: 36px;
}

.detail-gh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 2px;
    border: 1px solid #2A2A2A;
    color: #555;
    text-decoration: none;
    font-size: 0.78em;
    font-family: monospace;
    letter-spacing: 0.5px;
    transition: border-color 0.2s, color 0.2s;
}

.detail-gh-btn:hover {
    border-color: #9940FF;
    color: #9940FF;
    background-color: transparent;
}

.detail-img-wrap {
    width: 100%;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #1E1E1E;
    margin-bottom: 40px;
    background-color: #0F0F0F;
}

.detail-img-wrap img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.detail-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-family: monospace;
    font-size: 0.78em;
    border: 1px solid #1E1E1E;
    border-radius: 2px;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.detail-body { font-size: 0.93em; line-height: 1.9; color: #555; }
.detail-body p { margin-bottom: 20px; }

.detail-body h3 {
    color: #D4CFC9;
    font-size: 0.82em;
    font-weight: 600;
    margin: 36px 0 12px;
    font-family: monospace;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* ============================================================
   12. FOOTER
   ============================================================ */
/* Footer strip — slim 44px bar pinned to the bottom of the page.
   flex-shrink: 0 stops it from being squashed when the page is short.
   Three columns: copyright left | nav links centre | contact icons right.
   The nav links use data-target so the existing JS handles section switching. */
.site-footer {
    flex-shrink: 0;               /* never shrink, always stay full height */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 44px;
    border-top: 1px solid #1E1E1E;
    background-color: #0D0D0D;
}

/* Copyright text on the left */
.footer-copy {
    font-family: monospace;
    font-size: 0.65em;
    color: #333;
    letter-spacing: 1px;
}

/* Quick navigation links in the centre of the footer */
.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    font-family: monospace;
    font-size: 0.65em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover { color: #9940FF; }

/* Contact icon links on the right — same icons as the navbar */
.footer-icons {
    display: flex;
    gap: 12px;
}

.footer-icons a {
    color: #333;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-icons a:hover { color: #9940FF; }

/* ============================================================
   13. SCROLL-IN ANIMATIONS
   ============================================================
   How it works (beginner explanation):
   - Elements start invisible (.fade-in class sets opacity: 0).
   - When JS adds the .visible class, a @keyframes animation plays —
     sliding the element up from 24px below and fading it in.
   - @keyframes is more reliable than CSS transitions for replaying
     animations, because it re-runs every time the class is added.
   ============================================================ */

/* The animation itself: slides up 24px while fading in */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Starting state: invisible. No transform here — the animation handles it. */
.fade-in {
    opacity: 0;
}

/* When .visible is added by JS, play the animation.
   animation-fill-mode: both — holds the "from" state during any delay,
   and holds the "to" state after the animation finishes. */
.fade-in.visible {
    animation: fadeSlideIn 0.5s ease both;
}

/* Stagger delays — each item waits a little longer than the previous.
   Applied via JS by adding delay-1, delay-2, delay-3 classes.
   These only take effect once .visible is also present. */
.fade-in.delay-1.visible { animation-delay: 0.08s; }
.fade-in.delay-2.visible { animation-delay: 0.16s; }
.fade-in.delay-3.visible { animation-delay: 0.24s; }
.fade-in.delay-4.visible { animation-delay: 0.32s; }
.fade-in.delay-5.visible { animation-delay: 0.40s; }

/* ============================================================
   14. RESPONSIVE / MOBILE
   ============================================================ */
@media (max-width: 900px) {
    .proj-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    body { overflow: auto; height: auto; }
    body:has(#home.active) { overflow: hidden; height: 100dvh; }
    .layout-grid { height: auto; }
    .header-inner { padding: 8px 16px; flex-wrap: wrap; }
    .nav-link { font-size: 0; padding: 9px 10px; gap: 0; }
    .nav-icon { width: 18px; height: 18px; }
    main { overflow: visible; }
    .page-section { min-height: auto; }
    .hero { height: auto; min-height: calc(100vh - 60px); }
    .section-wrap { padding: 32px 20px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-photo-widget { align-items: center; }
    .profile-pic { max-width: 120px; }
    .about-interests { grid-template-columns: repeat(2, 1fr); }
    .proj-grid { grid-template-columns: 1fr; }
    .proj-header { flex-direction: column; align-items: flex-start; }
    .skills-grid { grid-template-columns: 1fr; }
    .skill-img { width: 100px; height: 100px; }
    .nav-contact-links { gap: 2px; }
    .nav-contact-icon { width: 30px; height: 30px; font-size: 0.88rem; }
    .nav-resume-btn { display: none; }      /* hide Resume button on mobile — navbar too narrow */
    .footer-nav { display: none; }          /* hide footer nav links on mobile — just show icons */
    .site-footer { justify-content: space-between; padding: 0 16px; }
}
