/* Variables & base */
:root{
    --bg: #f6f9ff;
    --card: #ffffff;
    --muted: #6b7280;
    --text: #0f172a;
    --accent: #00142e;
    --accent-2: #004080;
    --accent-light: #7fb8ff;
    --glass: rgba(2,6,23,0.04);
}

html,body{height:100%;min-height:100vh;margin:0;padding:0;overflow-x:hidden;}
html {
    background: linear-gradient(to bottom, #040e22 0%, #000000 100%);
    background-attachment: fixed;
    scrollbar-color: rgba(255,255,255,0.2) rgba(0,0,0,0.3);
    scrollbar-width: thin;
}
html::-webkit-scrollbar {
    width: 12px;
}
html::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}
html::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
}
html::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--text);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    min-height: 100vh;
}

@media (max-width:600px) {
    body {
        padding: 0;
    }
}

@media (max-width:420px) {
    body {
        padding: 0;
    }
}

.wrap {max-width:1200px;margin:0 auto;padding:40px 20px;}

/* Hero section */
.hero {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: center;
    padding: 48px;
    background:
        linear-gradient(180deg, rgba(2,6,23,0.45), rgba(2,6,23,0.12)),
        url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--glass);
    color: #fff;
}

/* Greetings rotator (JS-driven) - crossfade layers */
#greeting{display:inline-block;min-width:8ch;vertical-align:middle;position:relative;min-height:1.1em;text-align:center}
#greeting .g-inner{position:absolute;left:50%;transform:translateX(-50%) translateY(6px);top:0;opacity:0;transition:opacity .45s ease, transform .45s ease;white-space:nowrap;text-align:center;pointer-events:none;line-height:1.05}
#greeting .g-inner.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* Left: profile pic (framed) */
.hero-left {display:flex;align-items:center;justify-content:center;}
.profile-frame {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    display: inline-block;
    border: 6px solid rgba(255,255,255,0.06);
    box-shadow: 0 14px 36px rgba(0,0,0,0.55), inset 0 2px 6px rgba(255,255,255,0.02);
    transition: transform .35s ease, box-shadow .35s ease;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

/* Right: text and buttons */
.hero-right {
    max-width: 760px;
}

.hero-right h1 {
    font-size: 44px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 8px 0;
    line-height: 1.05;
}

.hero-right .subtitle{font-size:16px;color:var(--muted);margin-bottom:12px}

.hero-right .description {
    font-size: 16px;
    line-height: 1.7;
    color: #1f2937;
    margin-bottom: 22px;
}

/* Buttons */
.button-group {
    display:flex;gap:14px;align-items:center;margin-top:18px;flex-wrap:wrap;justify-content:flex-start;
}

.btn{
    padding:10px 18px;border-radius:10px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;gap:10px;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease;
}

.btn.primary{
    background: linear-gradient(180deg,var(--accent) 0%, var(--accent-2) 100%);
    color:white;box-shadow:0 8px 18px rgba(0,48,112,0.12);
}

.btn.ghost{
    background:transparent;border:1px solid rgba(2,6,23,0.06);color:var(--accent-2);
}

.btn:active{transform:translateY(0)}
.btn:hover{transform:translateY(-4px)}

/* LinkedIn button */
.btn.linkedin{width:44px;height:44px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#0077b5;color:#fff}
.btn.linkedin img{width:18px;height:18px}



/* small utilities */
.muted{color:var(--muted)}


/* Social LinkedIn icon */
.social{margin-top:10px}
.linkedin-icon{width:32px;height:32px;transition:transform .25s}
.linkedin-icon:hover{transform:scale(1.15)}

/* Lighten text and controls when placed on the dark hero background */
.hero { color: #fff; }
.hero .hero-right h1 { color: #fff; }
.hero .hero-right .subtitle { color: rgba(255,255,255,0.85); }
.hero .hero-right .description { color: rgba(255,255,255,0.92); }
.hero .muted { color: rgba(255,255,255,0.8); }
.hero .btn.ghost { border-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.95); }
.hero .btn.linkedin { box-shadow: 0 6px 18px rgba(0,0,0,0.2); }

/* Make hero buttons more prominent on the dark photo */
.hero .button-group{justify-content:flex-start}
.hero .btn{font-weight:700}
.hero .btn.primary{
    background: #ffffff;
    color: var(--accent);
    padding: 12px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.18);
}
.hero .btn.ghost{
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 10px 18px;
    border-radius: 10px;
}
.hero .btn:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(2,6,23,0.2)}

/* Sections */
section{padding:48px;background:rgba(255, 255, 255, 0.014);margin:20px auto;border-radius:10px;max-width:1000px;box-shadow:0 12px 30px rgba(2,6,23,0.06);border:1px solid rgba(255, 255, 255, 0.048);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}

.section-title{font-size:20px;font-weight:700;color:var(--accent-light);margin-bottom:12px}

/* Ensure plain h2 headings inside sections use the lighter accent (but not Apple-style sections) */
section:not(.section-apple):not(.resume-section) h2{color:var(--accent-light);font-weight:700;margin-bottom:8px}

/* Make section text more readable on dark background */
section p{color:rgba(255,255,255,0.9);line-height:1.7}
section ul li{color:rgba(255,255,255,0.88);line-height:1.6}
section h3{color:var(--accent-light)}
section blockquote{color:rgba(255,255,255,0.85)}

.grid{Display:grid;grid-template-columns:repeat(2,1fr);gap:18px}

/* Projects grid and tiles */
.projects-grid{display:flex;gap:18px;margin-top:18px;overflow-x:auto;padding-bottom:8px;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color: rgba(255,255,255,0.22) transparent;scrollbar-gutter:stable both-edges}
.projects-grid::-webkit-scrollbar{height:10px}
.projects-grid::-webkit-scrollbar-track{background:transparent}
.projects-grid::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.22);border-radius:10px}
.projects-grid{scroll-snap-type:x mandatory}
.project-tile{position:relative;display:block;min-height:200px;border-radius:12px;overflow:hidden;background-size:cover;background-position:center;color:#fff;text-decoration:none;box-shadow:0 8px 24px rgba(2,6,23,0.06);transition:transform .2s ease,box-shadow .2s ease;flex:0 0 320px;scroll-snap-align:start}
.project-tile::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.18) 100%);z-index:0}
.project-content{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:14px 16px;background:rgba(0,0,0,0.72);display:block}
.project-title{font-size:16px;font-weight:700;margin:0 0 6px 0;color: #fff}
.project-desc{font-size:13px;color:rgba(255,255,255,0.92);line-height:1.35;margin:0}
.project-tile:hover{transform:translateY(-6px);box-shadow:0 18px 48px rgba(2,6,23,0.18)}
.project-tile:focus{outline:3px solid rgba(0,80,160,0.12);outline-offset:3px}

@media (max-width:420px){.project-title{font-size:16px}.project-desc{font-size:12px}.projects-grid{gap:12px}.project-tile{flex:0 0 280px;min-height:180px}}

/* Responsive for mobile */
@media (max-width: 920px){
    .hero{grid-template-columns:1fr;grid-auto-rows: auto;text-align:center;padding:32px 20px}
    .hero-left{order:0}
    .hero-right{order:1}
    body.home-page .nav.menu-open .nav-links{ top: 52px; bottom: max(env(safe-area-inset-bottom), 10px); padding: 12px 14px; }
    .profile-frame{width:180px;height:180px;margin:0 auto}
    .button-group{justify-content:center}
    section{padding:32px 20px;margin:16px auto}
}

@media (max-width:600px){
    .wrap{padding:16px 12px}
    .hero{padding:24px 16px;gap:24px}
    .hero-right h1{font-size:28px}
    .hero-right .description{font-size:14px;margin-bottom:16px}
    .profile-frame{width:140px;height:140px}
    .button-group{gap:10px}
    .btn{padding:9px 14px;font-size:13px;border-radius:8px}
    .btn.linkedin{width:40px;height:40px}
    .btn.linkedin img{width:16px;height:16px}
    section:not(.section-apple):not(.resume-section){padding:24px 16px;margin:12px auto;border-radius:8px}
    section:not(.section-apple):not(.resume-section) h2{font-size:20px;margin-bottom:16px}
    .projects-grid{gap:12px;margin-top:14px}
    .project-tile{flex:0 0 170px;min-height:130px}
    .project-title{font-size:13px}
    .project-desc{font-size:11px}
}

@media (max-width:420px){
    .wrap{padding:14px 10px}
    .hero{padding:20px 14px;gap:18px}
    .hero-right h1{font-size:24px;margin-bottom:6px}
    .hero-right .description{font-size:13px;line-height:1.6;margin-bottom:14px}
    .profile-frame{width:120px;height:120px;border-width:4px}
    .button-group{flex-direction:column;gap:8px;justify-content:center}
    .btn:not(.linkedin){padding:8px 10px;font-size:12px;justify-content:center;width:100%;box-sizing:border-box}
    .btn.linkedin{width:40px;height:40px;align-self:center}
    .btn.linkedin img{width:14px;height:14px}
    section:not(.section-apple):not(.resume-section){padding:20px 14px;margin:10px auto;border-radius:8px}
    section:not(.section-apple):not(.resume-section) h2{font-size:18px;margin-bottom:12px}
    section:not(.section-apple):not(.resume-section) p{font-size:13px}
    .projects-grid{gap:10px;margin-top:12px}
    .project-tile{flex:0 0 calc(100vw - 48px);min-height:120px;max-width:180px}
    .project-content{padding:12px 14px}
    .project-title{font-size:12px;margin-bottom:3px}
    .project-desc{font-size:10px}
    .grid{grid-template-columns:1fr}
}

/* Skills tiles */
.skills-grid{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px;align-items:flex-start;justify-content:flex-start}
.skill-tile{background:rgba(255,255,255,0.03);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 6px 18px rgba(2,6,23,0.06);transition:transform .15s ease,box-shadow .15s ease;padding:10px;aspect-ratio:1/1;flex:0 0 84px;width:84px}
.skill-tile img{width:44px;height:44px;object-fit:contain}
.skill-tile::after{content:attr(title);display:block;margin-top:10px;font-size:13px;color:rgba(255,255,255,0.92);font-weight:600;text-align:center;word-break:break-word}
.skill-tile:hover{transform:translateY(-6px);box-shadow:0 14px 40px rgba(2,6,23,0.12)}

/* Skill rating (stars) */
.skill-rating{display:flex;gap:6px;margin-top:8px;align-items:center}
.skill-rating .star{font-size:14px;color:rgba(255,255,255,0.18);line-height:1}
.skill-rating .star.filled{color:#ffd36b;text-shadow:0 1px 0 rgba(0,0,0,0.3)}
.skill-rating .star:before{content:'★'}

/* Hide ratings on project skills strip */
#project-skills .skill-rating{display:none !important}

@media (max-width:600px){.skills-grid{gap:10px}.skill-tile{flex:0 0 56px;width:56px;padding:6px;position:relative}.skill-tile img{width:28px;height:28px}.skill-tile::after{font-size:8px;margin-top:2px}.skill-rating{display:none}.skill-tile::before{content:attr(data-rating);position:absolute;top:3px;right:3px;width:16px;height:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:#fff;z-index:10;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 8px 16px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.5), inset 0 -2px 4px rgba(0,0,0,0.2);border:1.5px solid rgba(255,255,255,0.5);line-height:1;padding-top:1px;text-shadow:0 1px 3px rgba(0,0,0,0.5)}.skill-tile[data-rating="5"]::before{background:linear-gradient(135deg, rgba(16,185,129,0.3) 0%, rgba(5,150,105,0.6) 100%)}.skill-tile[data-rating="4"]::before{background:linear-gradient(135deg, rgba(59,130,246,0.3) 0%, rgba(37,99,235,0.6) 100%)}.skill-tile[data-rating="3"]::before{background:linear-gradient(135deg, rgba(245,158,11,0.3) 0%, rgba(217,119,6,0.6) 100%)}.skill-tile[data-rating="2"]::before{background:linear-gradient(135deg, rgba(249,115,22,0.3) 0%, rgba(234,88,12,0.6) 100%)}.skill-tile[data-rating="1"]::before{background:linear-gradient(135deg, rgba(239,68,68,0.3) 0%, rgba(220,38,38,0.6) 100%)}}

@media (max-width:420px){.skill-rating .star{font-size:12px}}

@media (max-width:420px){.skills-grid{gap:8px}.skill-tile{flex:0 0 48px;width:48px;padding:5px;min-height:48px;position:relative}.skill-tile img{width:24px;height:24px}.skill-tile::after{font-size:8px;margin-top:2px}.skill-rating{display:none}.skill-tile::before{content:attr(data-rating);position:absolute;top:2px;right:2px;width:14px;height:14px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:8px;font-weight:700;color:#fff;z-index:10;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 8px 16px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.5), inset 0 -2px 4px rgba(0,0,0,0.2);border:1.5px solid rgba(255,255,255,0.5);line-height:1;padding-top:1px;text-shadow:0 1px 3px rgba(0,0,0,0.5)}.skill-tile[data-rating="5"]::before{background:linear-gradient(135deg, rgba(16,185,129,0.3) 0%, rgba(5,150,105,0.6) 100%)}.skill-tile[data-rating="4"]::before{background:linear-gradient(135deg, rgba(59,130,246,0.3) 0%, rgba(37,99,235,0.6) 100%)}.skill-tile[data-rating="3"]::before{background:linear-gradient(135deg, rgba(245,158,11,0.3) 0%, rgba(217,119,6,0.6) 100%)}.skill-tile[data-rating="2"]::before{background:linear-gradient(135deg, rgba(249,115,22,0.3) 0%, rgba(234,88,12,0.6) 100%)}.skill-tile[data-rating="1"]::before{background:linear-gradient(135deg, rgba(239,68,68,0.3) 0%, rgba(220,38,38,0.6) 100%)}}

/* ========================================
   APPLE-STYLE FOOTER
   ======================================== */

.footer-apple {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 40px 40px;
    margin-top: 80px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-info .footer-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.footer-info .footer-title {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-contact {
    justify-content: center;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: #4A9EFF;
}

.footer-email i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    align-items: flex-end;
}

.footer-social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.social-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0.9);
}

.footer-bottom {
    padding-top: 32px;
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    letter-spacing: 0.01em;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-apple {
        padding: 50px 32px 32px;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-section {
        align-items: center;
    }
    
    .footer-social-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    /* Global: consistent mobile spacing and subheadline size for all pages */
    .section-header{ margin-bottom: 56px; }
    .footer-apple {
        padding: 40px 24px 28px;
        margin-top: 48px;
    }
    
    .footer-content {
        gap: 32px;
        padding-bottom: 32px;
    }
    
    .footer-info .footer-name {
        font-size: 18px;
    }
    
    .footer-info .footer-title {
        font-size: 14px;
    }
    
    .footer-email {
        font-size: 14px;
        gap: 8px;
    }
    
    .footer-email i {
        font-size: 14px;
    }
    
    .footer-social-links {
        gap: 16px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link img {
        width: 16px;
        height: 16px;
    }
    
    .footer-bottom {
        padding-top: 24px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
    /* Resume: full-bleed tiles for Experience/Education */
    body.resume-page #experience.resume-section,
    body.resume-page #education.resume-section {
        padding-left: 0;
        padding-right: 0;
        margin-left: -12px; /* cancel .wrap horizontal padding */
        margin-right: -12px;
    }
    /* Apple-style: edge-to-edge cards and softer shadows */
    body.resume-page .experience-card,
    body.resume-page .qual-item {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        box-shadow: 0 14px 36px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05);
    }
}

@media (max-width: 420px) {
    /* Global: tighter spacing and subheadline size for very small screens */
    .section-header{ margin-bottom: 44px; }
    .footer-apple {
        padding: 32px 20px 24px;
        margin-top: 40px;
    }
    
    .footer-content {
        gap: 24px;
        padding-bottom: 24px;
    }
    
    .footer-info .footer-name {
        font-size: 16px;
    }
    
    .footer-info .footer-title {
        font-size: 13px;
    }
    
    .footer-email {
        font-size: 13px;
        flex-direction: column;
        gap: 6px;
    }
    
    .footer-social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-link img {
        width: 14px;
        height: 14px;
    }
    
    .footer-copyright {
        font-size: 10px;
    }
    /* Resume: full-bleed tiles for Experience/Education */
    body.resume-page #experience.resume-section,
    body.resume-page #education.resume-section {
        padding-left: 10px;
        padding-right: 10px;
        margin-left: -10px; /* cancel .wrap horizontal padding */
        margin-right: -10px;
    }
    /* Apple-style: edge-to-edge cards and compact padding */
    body.resume-page .experience-card,
    body.resume-page .qual-item {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        box-shadow: 0 12px 28px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.05);
    }
}

@media (max-width:420px){
    .site-footer{left:4px;right:4px;bottom:4px;padding:4px}
    .site-footer .wrap{padding:3px 4px}
    .site-footer .footer-inner{gap:6px;flex-direction:row;justify-content:space-between;align-items:center}
    .footer-brand{display:none}
    .footer-tag{display:none}
    .footer-contact-compact{gap:2px;flex-direction:row}
    .footer-contact-compact .footer-link{font-size:8px}
    .footer-sep{display:inline}
    .footer-center{flex-direction:row;gap:4px;flex:1;justify-content:center}
    .social-icons{display:flex;gap:2px}
    .social-icons a img{width:9px;height:9px;margin-left:0}
    .footer-copyright{font-size:7px;margin-left:0}
}

/* Footer link appearance: remove default blue underline for mailto and match glass style */
.site-footer .footer-link{
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none !important;
    border-bottom: 1px dotted rgba(255,255,255,0.06);
    padding-bottom: 1px;
}

/* Carousel with lightbox for project pages */
:root{
    --carousel-height: 200px;
    --gap: 16px;
    --scroll-duration: 18s;
}

.carousel {
    height: var(--carousel-height);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* Custom navigation arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel:hover .carousel-nav {
    opacity: 0.9;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.carousel-nav.left {
    left: 15px;
}

.carousel-nav.right {
    right: 15px;
}

@media (max-width: 768px) {
    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
        left: 8px !important;
        right: auto !important;
    }
    .carousel-nav.right {
        right: 8px !important;
        left: auto !important;
    }
}

@media (max-width: 500px) {
    .carousel {
        height: 140px;
    }
    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
        left: 6px !important;
    }
    .carousel-nav.right {
        right: 6px !important;
    }
    .carousel-tile img {
        height: calc(140px - 12px);
    }
}

@media (max-width:600px) {
    :root {
        --carousel-height: 140px;
    }
}

@media (max-width:420px) {
    :root {
        --carousel-height: 110px;
    }
}

.carousel-track {
    display: flex;
    gap: var(--gap);
    align-items: center;
    will-change: transform;
    animation: scroll-left linear infinite;
    animation-duration: var(--scroll-duration);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-tile {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-tile img {
    height: calc(var(--carousel-height) - 16px);
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}

.carousel:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Lightbox modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.3s ease-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoom-in 0.4s ease-out;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(12, 16, 26, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
    z-index: 1001;
    box-shadow: 0 8px 22px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.06);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .lightbox-close {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: 14px;
        right: 14px;
    }
}

@media (max-width: 420px) {
    .lightbox-close {
        width: 26px;
        height: 26px;
        font-size: 15px;
        top: 12px;
        right: 12px;
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoom-in {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.site-footer .footer-link:hover,
.site-footer .footer-link:focus{
    color: var(--accent-light) !important;
    text-decoration: none !important;
    border-bottom-color: rgba(127,184,255,0.45) !important;
}

/* Project skills marquee */
.skills-marquee{
    position:relative;
    overflow:hidden;
    padding:10px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.skills-marquee-track{
    display:flex;
    gap:14px;
    align-items:center;
    will-change: transform;
}

.skills-marquee-track .skill-tile{
    flex:0 0 auto;
    min-width:96px;
    padding:10px;
    border-radius:11px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 8px 24px rgba(0,0,0,0.18);
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display:flex;
    align-items:center;
    justify-content:center;
}

#project-skills .skill-tile img{
    width:46px;
    height:46px;
    object-fit:contain;
    filter:drop-shadow(0 3px 10px rgba(0,0,0,0.24));
}

#project-skills .skill-tile::after{
    font-size:12px;
    line-height:1.3;
}

#project-skills .skill-tile:hover{
    transform:translateY(-4px) scale(1.01);
    box-shadow:0 14px 32px rgba(0,0,0,0.24);
    border-color:rgba(127,184,255,0.45);
}

@media (max-width:600px) {
    #project-skills > p.muted {
        display: none;
    }
    .skills-marquee-track .skill-tile{
        min-width:40px;
        padding:4px;
    }
    #project-skills .skill-tile img{
        width:18px;
        height:18px;
    }
    #project-skills .skill-tile::after{
        font-size:7px;
    }
}
@media (max-width:600px) {
    #details h3 {
        font-size: 16px !important;
        margin-top: 18px !important;
        margin-bottom: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
    }
    #details p {
        font-size: 13px !important;
        line-height: 1.7 !important;
        color: rgba(255,255,255,0.92) !important;
    }
    #details ul li {
        font-size: 13px !important;
        line-height: 1.7 !important;
        color: rgba(255,255,255,0.92) !important;
        margin-bottom: 8px;
    }
    #details blockquote {
        font-size: 12px !important;
        line-height: 1.6 !important;
        padding-left: 12px !important;
        border-left: none !important;
        opacity: 0.95 !important;
    }
    #details > div {
        padding: 16px 14px !important;
        margin: 18px 0 !important;
        border-left: none !important;
    }
    #details .button-group {
        border-left: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #details > div > div {
        grid-template-columns: 90px 1fr !important;
        gap: 12px 14px !important;
    }
    #details > div > div > div:nth-child(odd) {
        font-size: 11px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        color: var(--accent-light) !important;
    }
    #details > div > div > div:nth-child(even) {
        font-size: 12px !important;
        color: rgba(255,255,255,0.92) !important;
        line-height: 1.5 !important;
    }
}

@media (max-width:420px) {
    #details h3 {
        font-size: 14px !important;
        margin-top: 14px !important;
        margin-bottom: 10px !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
    }
    #details p {
        font-size: 12px !important;
        line-height: 1.6 !important;
        color: rgba(255,255,255,0.92) !important;
    }
    #details ul li {
        font-size: 12px !important;
        line-height: 1.6 !important;
        color: rgba(255,255,255,0.92) !important;
        margin-bottom: 6px;
    }
    #details blockquote {
        font-size: 11px !important;
        line-height: 1.5 !important;
        padding-left: 10px !important;
        border-left: none !important;
        opacity: 0.95 !important;
    }
    #details > div {
        padding: 12px 12px !important;
        margin: 12px 0 !important;
        border-left: none !important;
    }
    #details .button-group {
        border-left: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #details > div > div {
        grid-template-columns: 75px 1fr !important;
        gap: 10px 12px !important;
    }
    #details > div > div > div:nth-child(odd) {
        font-size: 9px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        color: var(--accent-light) !important;
    }
    #details > div > div > div:nth-child(even) {
        font-size: 11px !important;
        color: rgba(255,255,255,0.92) !important;
        line-height: 1.4 !important;
    }
}
@media (max-width:420px) {
    .skills-marquee-track .skill-tile{
        min-width:32px;
        padding:3px;
    }
    #project-skills .skill-tile img{
        width:15px;
        height:15px;
    }
    #project-skills .skill-tile::after{
        font-size:6px;
    }
}

/* Position row and company logo (resume page) */
.position-row{
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    column-gap:8px;
}
.company-logo{
    color: var(--accent-light);
    font-size: 24px;
    opacity: 0.9;
    grid-row: 1 / span 2; /* span two text lines */
}
/* Image-based company logo */
.company-logo-img{
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(127,184,255,0.2);
    padding: 2px;
    grid-row: 1 / span 2; /* span two text lines */
}
@media (max-width: 600px){
    .company-logo{ font-size: 22px; opacity: 0.95; }
    .position-row{ column-gap:6px; }
    .company-logo-img{ width: 32px; height: 32px; padding: 1px; }
}
@media (max-width: 420px){
    .company-logo{ font-size: 20px; opacity: 1; }
    .position-row{ column-gap:5px; }
    .company-logo-img{ width: 28px; height: 28px; padding: 1px; }
}

/* Text wrapper inside position row */
.position-text{
    display:grid;
    row-gap: 2px;
}

/* Resume Page Mobile Styles */
@media (max-width: 920px) {
    #experience h2,
    #education h2,
    #qualifications h2 {
        margin-bottom: 20px !important;
    }

    #experience > div,
    #education > div {
        padding: 16px 18px !important;
        margin: 18px 0 !important;
    }

    #experience h3,
    #education h3 {
        margin: 0 0 3px 0 !important;
    }


    #experience > div > p,
    #education > div > p {
        line-height: 1.5 !important;
        margin: 10px 0 0 0 !important;
    }

    #experience ul,
    #education ul {
        margin: 10px 0 0 0 !important;
        padding-left: 18px !important;
        font-size: 13px !important;
    }

    #experience li,
    #education li {
        margin: 6px 0 !important;
        color: rgba(255, 255, 255, 0.88) !important;
    }
}

@media (max-width: 600px) {
    #experience h2,
    #education h2,
    #qualifications h2 {
        margin-bottom: 16px !important;
    }

    #experience > div,
    #education > div {
        padding: 14px 14px !important;
        margin: 14px 0 !important;
        border-left: none !important;
    }

    #experience h3,
    #education h3 {
        margin: 0 0 2px 0 !important;
        font-weight: 700 !important;
    }

    #experience > div > div > div > p,
    #education > div > div > div > p {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    #experience > div > p,
    #education > div > p {
        line-height: 1.5 !important;
        margin: 8px 0 0 0 !important;
        color: rgba(255, 255, 255, 0.92) !important;
    }

    #experience ul,
    #education ul {
        margin: 8px 0 0 0 !important;
        padding-left: 16px !important;
        font-size: 12px !important;
    }

    #experience li,
    #education li {
        margin: 4px 0 !important;
        color: rgba(255, 255, 255, 0.88) !important;
    }

    #qualifications h3 {
        font-size: 16px !important;
        margin-top: 24px !important;
        margin-bottom: 12px !important;
    }

    #qualifications ul {
        font-size: 12px !important;
        padding-left: 16px !important;
        line-height: 1.6 !important;
    }

    #qualifications li {
        margin: 6px 0 !important;
    }
}

@media (max-width: 420px) {
    #experience h2,
    #education h2,
    #qualifications h2 {
        margin-bottom: 14px !important;
    }

    #experience > div,
    #education > div {
        padding: 12px 12px !important;
        margin: 12px 0 !important;
    }


    #experience > div > p,
    #education > div > p {
        line-height: 1.4 !important;
    }

    #experience ul,
    #education ul {
        font-size: 11px !important;
        padding-left: 14px !important;
    }

    #experience li,
    #education li {
        margin: 3px 0 !important;
    }

    #qualifications h3 {
        font-size: 14px !important;
        margin-top: 18px !important;
        margin-bottom: 10px !important;
    }

    #qualifications ul {
        font-size: 11px !important;
        padding-left: 14px !important;
        line-height: 1.5 !important;
    }

    #qualifications li {
        margin: 4px 0 !important;
    }
}

@keyframes skills-scroll{
    0%{transform:translateX(0);}
    100%{transform:translateX(-50%);}
}

/* Apple-inspired homepage styles */
/* Base scroll behavior and anchor offset (page-scoped via --nav-height) */
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height, 0px); }

/* Default nav metrics (overridden per page/breakpoint) */
:root { --nav-height: 0px; --nav-x-pad: 20px; --toggle-size: 40px; }

.nav{
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    backdrop-filter: saturate(1.2) blur(14px);
    background: linear-gradient(to bottom, rgba(10,15,25,0.55), rgba(10,15,25,0.25));
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner{
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand img{ width:24px; height:24px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.brand span{ color:#fff; font-weight:600; letter-spacing:0.3px; }
.nav-links{ display:flex; gap:16px; }
.nav-links a{ color:rgba(255,255,255,0.85); text-decoration:none; font-weight:500; position:relative; }
.nav-links a:hover{ color:#fff; }
.nav-links a::after{
    content:''; position:absolute; left:0; bottom:-6px; height:2px; width:0;
    background: linear-gradient(90deg, #7fb8ff 0%, #ffffff 100%);
    transition: width 200ms ease; opacity:0.85;
}
.nav-links a:hover::after{ width:100%; }
.nav.nav-scrolled{ background: linear-gradient(to bottom, rgba(5,10,18,0.75), rgba(5,10,18,0.4)); }

/* Mobile menu toggle button (index page only) */
.menu-toggle{ display:none; align-items:center; justify-content:center; width:40px; height:40px; border-radius:12px; border:1px solid rgba(255,255,255,0.12); background: rgba(12,16,26,0.45); color:#fff; cursor:pointer; transition: background 220ms ease, transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease; backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); box-shadow: 0 8px 22px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06); }
.menu-toggle:hover{ background: rgba(12,16,26,0.6); transform: translateY(-1px); border-color: rgba(255,255,255,0.18); }
.menu-toggle.is-open{ background: linear-gradient(135deg, rgba(31,114,255,0.35) 0%, rgba(38,208,206,0.35) 100%); border-color: rgba(255,255,255,0.22); }
.menu-toggle .bar{ display:block; height:2px; border-radius:2px; margin:4px 0; transition: transform 240ms ease, opacity 160ms ease, width 240ms ease, background 240ms ease; transform-origin: center; background: linear-gradient(90deg, #7fb8ff 0%, #ffffff 100%); }
.menu-toggle .bar:nth-child(1){ width:22px; }
.menu-toggle .bar:nth-child(2){ width:14px; margin-left:auto; margin-right:auto; opacity:0.9; }
.menu-toggle .bar:nth-child(3){ width:22px; }
/* Morph hamburger to X when menu is open */
.menu-toggle.is-open .bar:nth-child(1){ transform: translateY(6px) rotate(45deg); width:22px; background:#fff; }
.menu-toggle.is-open .bar:nth-child(2){ opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open .bar:nth-child(3){ transform: translateY(-6px) rotate(-45deg); width:22px; background:#fff; }

/* When open, keep the same control in the same spot above overlay */
.menu-toggle.is-open{ visibility: hidden; pointer-events: none; }

/* Home page: declare nav height for reliable offset handling */
body.home-page { --nav-height: 56px; }
/* Resume page: declare nav metrics for consistent offsets and controls */
body.resume-page { --nav-height: 56px; --nav-x-pad: 20px; --toggle-size: 40px; }
/* Project page: declare nav metrics */
body.project-page { --nav-height: 56px; --nav-x-pad: 20px; --toggle-size: 40px; }

/* Animate hamburger into an X when open */
.nav.menu-open .menu-toggle .bar:nth-child(1){ transform: translateY(5px) rotate(45deg); }
.nav.menu-open .menu-toggle .bar:nth-child(2){ opacity: 0; }
.nav.menu-open .menu-toggle .bar:nth-child(3){ transform: translateY(-5px) rotate(-45deg); }

/* Overlay used when mobile menu is open */
.menu-overlay{ position: fixed; inset: 0; background: rgba(0,0,0,0.38); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity 200ms ease; z-index: 900; }
.menu-overlay.active{ opacity: 1; pointer-events: auto; }

/* Prevent background scroll when menu is open */
body.no-scroll{ overflow: hidden; }

/* ========================================
     DEDICATED FULL-SCREEN MOBILE MENU (HOME)
     ======================================== */
.mobile-menu{ position: fixed; inset: 0; z-index: 3000; display: none; }
.mobile-menu.open{ display: block; }
.mobile-menu-backdrop{ position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 0%, rgba(0,0,0,0.46) 0%, rgba(0,0,0,0.38) 40%, rgba(0,0,0,0.32) 100%); backdrop-filter: blur(6px) saturate(1.05); -webkit-backdrop-filter: blur(6px) saturate(1.05); opacity: 0; transition: opacity 220ms ease; }
.mobile-menu.open .mobile-menu-backdrop{ opacity: 1; }
.mobile-menu-panel{ position: absolute; inset: 0; color: #fff; display: flex; flex-direction: column; padding: calc(var(--nav-height) + 16px) 16px 16px; transform: translateY(-8%); opacity: 0; transition: transform 240ms ease, opacity 240ms ease; background: linear-gradient(180deg, rgba(12,16,26,0.90) 0%, rgba(8,12,20,0.92) 100%); border-top: 1px solid rgba(255,255,255,0.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.mobile-menu.open .mobile-menu-panel{ transform: translateY(0); opacity: 1; }
.mobile-menu.open .menu-close{
    display: inline-flex;
    position: fixed;
    top: calc((var(--nav-height) - var(--toggle-size)) / 2);
    right: var(--nav-x-pad);
    width: var(--toggle-size);
    height: var(--toggle-size);
    border-radius: 12px;
    z-index: 4001;
}
.mobile-menu-header{ display:flex; align-items:center; justify-content:flex-end; padding: 0; border: none; margin: 0; }
.mobile-menu-title{ display: none; }
.mobile-menu-title{ font-weight: 700; color:#fff; letter-spacing: .2px; }
.menu-close{ display:inline-flex; align-items:center; justify-content:center; width:var(--toggle-size); height:var(--toggle-size); border-radius:12px; border:1px solid rgba(255,255,255,0.12); background: rgba(12,16,26,0.45); color:#fff; cursor:pointer; box-shadow: 0 8px 22px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
.menu-close .bar{ display:block; width:18px; height:2px; background: linear-gradient(90deg, #7fb8ff 0%, #ffffff 100%); border-radius:2px; }
.menu-close .bar:first-child{ transform: rotate(45deg); }
.menu-close .bar:last-child{ transform: rotate(-45deg); margin-top:-2px; }
.menu-item{ display:flex; align-items:center; justify-content:center; gap:0; padding: 18px 16px; border-radius: 14px; 
    background: linear-gradient(135deg, rgba(31,114,255,0.16) 0%, rgba(38,208,206,0.12) 100%);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
    color:#fff; text-decoration:none; font-size: 16px; font-weight: 600; letter-spacing: 0.2px;
    margin-top: 12px; text-align:center; opacity: 0; transform: translateY(8px); 
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease; }
.menu-item::after{ content: none; display:none; }
.menu-item:hover{ transform: translateY(-2px) scale(1.01); box-shadow: 0 14px 32px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.20); background: linear-gradient(135deg, rgba(31,114,255,0.22) 0%, rgba(38,208,206,0.18) 100%); }
.menu-item:active{ transform: translateY(0) scale(0.995); box-shadow: 0 8px 18px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.08); }
.menu-item:focus-visible{ outline: 2px solid rgba(127,184,255,0.8); outline-offset: 2px; }
@keyframes itemIn{ from{ opacity:0; transform: translateY(8px);} to{ opacity:1; transform:none;} }
.mobile-menu.open .menu-item{ animation: itemIn .26s ease forwards; }
.mobile-menu.open .menu-item:nth-of-type(1){ animation-delay: .08s; }
.mobile-menu.open .menu-item:nth-of-type(2){ animation-delay: .14s; }
.mobile-menu.open .menu-item:nth-of-type(3){ animation-delay: .20s; }
.mobile-menu.open .menu-item:nth-of-type(4){ animation-delay: .26s; }
.mobile-menu.open .menu-item:nth-of-type(5){ animation-delay: .32s; }
.mobile-menu.open .menu-item:nth-of-type(6){ animation-delay: .38s; }

@media (min-width: 601px){
    /* Hide mobile menu infrastructure on larger screens */
    .mobile-menu{ display: none !important; }
}

.hero-apple{
    min-height: 92vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 24px 60px; /* extra space under fixed nav */
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 24px;
}
.hero-copy{ padding: 12px 0; }
.hero-headline{
    font-size: clamp(32px, 6vw, 72px);
    line-height: 1.04;
    margin: 0 0 14px 0;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff 0%, #cfe7ff 40%, #9ed0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-subheadline{
    font-size: clamp(16px, 2.4vw, 24px);
    color: rgba(255,255,255,0.85);
    margin: 0 0 28px 0;
}
.cta-row{ display:flex; gap:12px; flex-wrap:wrap; }
.btn.primary{
    background: linear-gradient(135deg, #1b72ff 0%, #26d0ce 100%);
    color: #fff;
    border: none;
    box-shadow: 0 10px 24px rgba(31, 135, 255, 0.25);
}
.cta-btn{ transition: transform 140ms ease, box-shadow 140ms ease; }
.cta-btn:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31,135,255,0.28); }

.hero-visual{ position: relative; isolation:isolate; }
.hero-img{
    width: 92%;
    max-width: 520px;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 2px 10px rgba(255,255,255,0.04) inset;
    transform: translate3d(0,0,0);
    will-change: transform;
    animation: hero-float 10s ease-in-out infinite;
}
.hero-glow{
    position: absolute; inset: -6% -10% -10% -6%;
    background: radial-gradient(60% 60% at 40% 40%, rgba(127,184,255,0.25) 0%, rgba(127,184,255,0.05) 40%, transparent 70%);
    z-index: -1;
    filter: blur(8px);
}

@keyframes hero-float{
    0%{ transform: translate3d(0,0,0); }
    50%{ transform: translate3d(0,-6px,0); }
    100%{ transform: translate3d(0,0,0); }
}

.scroll-cue{ display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,0.2); color:#fff; margin-top:24px; transition: transform 200ms ease, border-color 200ms ease; }
.scroll-cue:hover{ transform: translateY(2px); border-color: rgba(127,184,255,0.4); }
.scroll-cue span{ width:10px; height:10px; border-right:2px solid rgba(255,255,255,0.9); border-bottom:2px solid rgba(255,255,255,0.9); transform: rotate(45deg); margin-top:-2px; }

.section{ max-width: 1080px; margin: 0 auto; padding: 40px 24px; }
.section h2{ margin:0 0 18px 0; font-weight:800; letter-spacing:0.2px; background: linear-gradient(90deg, #ffffff 0%, #cfe7ff 50%); -webkit-background-clip:text; background-clip:text; color:transparent; font-size: clamp(22px, 3.4vw, 34px); }

/* Prevent fixed header overlap on in-page anchors (home page) */
body.home-page .hero-apple,
body.home-page .section-apple {
    scroll-margin-top: calc(var(--nav-height, 0px) + 8px);
}

/* Prevent fixed header overlap on project page anchors */
body.project-page .project-hero-section,
body.project-page .section-apple{
    scroll-margin-top: calc(var(--nav-height, 0px) + 8px);
}

/* Reveal-on-scroll */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in-view{ opacity:1; transform:none; }

/* Project tiles hover polish */
.projects-grid .project-tile{ transform: translateZ(0); will-change: transform, box-shadow; transition: transform 240ms ease, box-shadow 240ms ease; }
.projects-grid .project-tile:hover{ transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px rgba(0,0,0,0.45); }

@media (max-width:920px){
    .hero-apple{ grid-template-columns: 1fr; text-align:center; }
    .hero-visual{ display:flex; justify-content:center; }
    .cta-row{ justify-content:center; }
}
@media (max-width:600px){
    /* Update computed nav height and spacing on small screens */
    body.home-page { --nav-height: 48px; --nav-x-pad: 10px; --toggle-size: 36px; }
    body.resume-page { --nav-height: 48px; --nav-x-pad: 10px; --toggle-size: 36px; }
    body.project-page { --nav-height: 48px; --nav-x-pad: 10px; --toggle-size: 36px; }
    /* Slimmer header bar on mobile */
    .nav-inner{ padding: 6px 12px; position: relative; }
    .brand span{ font-size: 13px; font-weight: 700; }
    body.home-page .menu-toggle{ width:36px; height:36px; border-radius:10px; }
    .nav-links{ gap: 12px; }
    .nav-links a{ font-size: 13px; }

    /* Hide links behind a toggle on small screens (home + resume + project) */
    body.home-page .menu-toggle,
    body.resume-page .menu-toggle,
    body.project-page .menu-toggle{ display:inline-flex; margin-left: 8px; }
    body.home-page .nav-inner,
    body.resume-page .nav-inner,
    body.project-page .nav-inner{ display:flex; align-items:center; justify-content:space-between; }
    body.home-page .nav-inner .nav-links,
    body.resume-page .nav-inner .nav-links,
    body.project-page .nav-inner .nav-links{ display:none; }
    body.home-page .nav.menu-open .nav-links{ 
        display:flex !important; flex-direction:column; gap:10px; 
        position: fixed; left: 0; right: 0; top: 56px; bottom: max(env(safe-area-inset-bottom), 12px);
        background: rgba(10,15,25,0.96); /* solid to keep buttons crisp */
        border-top: 1px solid rgba(255,255,255,0.1);
        border-radius: 16px 16px 0 0; 
        padding: 14px 16px; z-index: 2000; box-shadow: 0 18px 42px rgba(0,0,0,0.45);
        overflow-y: auto;
        transform: translateY(-6px); opacity: 0; animation: menuDrop 220ms ease forwards;
    }
    @keyframes menuDrop{
        to{ transform: translateY(0); opacity: 1; }
    }
    body.home-page .nav.menu-open .nav-links a{ 
        background: rgba(255,255,255,0.08); 
        border-radius: 12px; padding: 16px 18px; 
        font-size: 16px; line-height: 1; display:flex; align-items:center; gap:10px; color:#fff;
    }
    body.home-page .nav.menu-open .nav-links a::after{
        content: '›'; margin-left:auto; color: rgba(255,255,255,0.8); font-size: 18px;
    }
    
    /* Hero: center section vertically within viewport on mobile */
    body.home-page .hero-apple{ 
        min-height: calc(100vh - var(--nav-height) - 16px);
        padding: calc(var(--nav-height) + 2px) 18px 32px;
        gap: 20px; 
        align-content: center;
        justify-items: center;
    }
    .hero-headline{ margin: 0 0 10px 0; }
    .hero-subheadline{ margin: 0 0 18px 0; font-size: 15px; }
    .cta-row{ flex-direction: column; gap: 10px; }
    .cta-row .btn{ width: 100%; justify-content: center; }
    .hero-img{ width: 70%; max-width: 280px; }
    .hero-glow{ filter: blur(6px); }
    .scroll-cue{ margin-top: 16px; }
    
    .section{ padding: 28px 18px; }

    /* Improve base readability on mobile */
    body { font-size: 16px; line-height: 1.6; }
    section p{ font-size: 15px; }

    /* Cards: reduce blur/shadow for crisper mobile */
    .experience-card{ padding: 24px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06); }
    .qual-item{ padding: 16px 18px; box-shadow: 0 12px 28px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08); }
    .key-skills{ padding: 28px; }

    /* Projects: stack cards, full-width */
    .projects-grid{ display: grid; grid-template-columns: 1fr; gap: 14px; overflow: visible; scroll-snap-type: none; }
    .project-tile{ flex: 0 0 auto; width: 100%; min-height: 200px; }
    .project-content{ padding: 12px 14px; }
    .project-title{ font-size: 15px; }
    .project-desc{ font-size: 12px; }

    /* Skills: centered compact grid */
    .skills-grid{ justify-content: center; gap: 12px; }
    .skill-tile{ flex: 0 0 64px; width: 64px; padding: 8px; }
    .skill-tile img{ width: 34px; height: 34px; }
    .skill-tile::after{ font-size: 10px; margin-top: 6px; }

    /* CTA: compact comfortable padding on mobile */
    .cta-section{ padding: 48px 24px; max-width: 94%; }

    /* Tick lists: scale text and checkmarks for small screens */
    .skills-list li{ font-size: 15px; }
    .skills-list li::before{ font-size: 16px; left: -24px; }
    .achievements li{ font-size: 14px; }
    .achievements li::before{ font-size: 16px; left: -22px; }

    /* Resume: make Key Expertise items full-width with padding on mobile */
    body.resume-page #qualifications .key-skills .skills-list{ padding-left: 0 !important; margin: 0; }
    body.resume-page #qualifications .key-skills .skills-list li{
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
        margin: 6px 0;
    }
    body.resume-page #qualifications .key-skills .skills-list li::before{ display: none; }
}

@media (max-width:420px){
    /* Even smaller nav height at very small widths */
    body.home-page { --nav-height: 44px; --nav-x-pad: 10px; --toggle-size: 32px; }
    body.resume-page { --nav-height: 44px; --nav-x-pad: 10px; --toggle-size: 32px; }
    body.project-page { --nav-height: 44px; --nav-x-pad: 10px; --toggle-size: 32px; }
    .brand span{ font-size: 12.5px; }
    .nav-links{ gap: 8px; }
    .nav-links a{ font-size: 12px; }
    .nav-inner{ padding: 6px 10px; }
    body.home-page .menu-toggle,
    body.resume-page .menu-toggle,
    body.project-page .menu-toggle{ width:34px; height:34px; }
    body.home-page .nav.menu-open .nav-links{ top: 52px; }
    
    body.home-page .hero-apple{ 
        min-height: calc(100vh - var(--nav-height) - 12px);
        padding: calc(var(--nav-height) + 2px) 16px 26px; 
        gap: 16px; 
        align-content: center; 
        justify-items: center; 
    }
    .hero-subheadline{ font-size: 14px; }
    .cta-row{ gap: 8px; }
    .hero-img{ width: 65%; max-width: 240px; }
    .scroll-cue{ margin-top: 12px; width: 34px; height: 34px; }
    
    .section{ padding: 22px 14px; }
    .experience-card{ padding: 20px; }
    .skills-subtitle{ font-size: 24px; }
    .skills-list li{ font-size: 14px; }
    .project-tile{ min-height: 180px; }
    .project-title{ font-size: 14px; }
    .project-desc{ font-size: 11px; }
    .skill-tile{ flex: 0 0 56px; width: 56px; padding: 6px; }
    .skill-tile img{ width: 30px; height: 30px; }
    .skill-tile::after{ font-size: 9px; }

    /* CTA: tighter on very small screens */
    .cta-section{ padding: 40px 18px; }

    /* Tick lists: further scale at very small widths */
    .skills-list li::before{ font-size: 14px; left: -22px; }
    .achievements li{ font-size: 13px; }
    .achievements li::before{ font-size: 14px; left: -20px; }

    /* Resume: keep Key Expertise items full-width with padding on very small screens */
    body.resume-page #qualifications .key-skills .skills-list{ padding-left: 0 !important; }
    body.resume-page #qualifications .key-skills .skills-list li{ padding: 10px; margin: 6px 0; }
    body.resume-page #qualifications .key-skills .skills-list li::before{ display: none; }
}

@media (max-width: 360px) {
    .nav-inner{ padding: 10px 12px; }
    .brand span{ font-size: 12px; }
    .nav-links{ gap: 6px; }
    .nav-links a{ font-size: 11px; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce){
    .reveal{ transition:none; opacity:1; transform:none; }
    .cta-btn, .projects-grid .project-tile{ transition:none; }
    .hero-img{ animation: none; }
}

/* Ensure slimmer header on the homepage at small sizes (override conflicts) */
@media (max-width: 600px) {
    body.home-page .nav-inner { padding: 6px 10px !important; }
    body.resume-page .nav-inner { padding: 6px 10px !important; }
    body.project-page .nav-inner { padding: 6px 10px !important; }
}
@media (max-width: 420px) {
    body.home-page .nav-inner { padding: 4px 10px !important; }
    body.home-page .menu-toggle { width: 32px; height: 32px; }
    body.resume-page .nav-inner { padding: 4px 10px !important; }
    body.resume-page .menu-toggle { width: 32px; height: 32px; }
    body.project-page .nav-inner { padding: 4px 10px !important; }
    body.project-page .menu-toggle { width: 32px; height: 32px; }
}

/* Remove hover effect on circular profile and add subtle glow */
.profile-frame{ transition: none; }
.profile-pic{ transition: none; }
.profile-frame::after{
    content: '';
    position: absolute;
    inset: -6% -6% -6% -6%;
    border-radius: 50%;
    background: radial-gradient(60% 60% at 50% 40%, rgba(127,184,255,0.18) 0%, rgba(127,184,255,0.04) 45%, transparent 70%);
    pointer-events: none;
    filter: blur(6px);
}

/* Disable hover flourishes on touch devices */
@media (hover: none){
    .projects-grid .project-tile:hover{ transform: none; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
    .skill-tile:hover{ transform: none; box-shadow: 0 10px 28px rgba(0,0,0,0.18); }
    .nav-links a:hover::after{ width: 0; }
}
/* ========================================
   APPLE-STYLE SECTIONS
   ======================================== */

/* Section container - modern Apple style */
.section-apple {
    padding: 100px 40px;
    background: transparent;
    margin: 0 auto;
    border-radius: 0;
    max-width: 1200px;
    box-shadow: none;
    border: none !important;
    backdrop-filter: none;
}

/* Section headers - Apple minimalist */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-headline {
    font-size: clamp(40px, 6.8vw, 56px);
    font-weight: 800;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    line-height: 1.08;
    background: linear-gradient(90deg, #ffffff 0%, #cfe7ff 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subheadline {
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 0.003em;
}

/* ========================================
   PROJECTS SECTION - APPLE STYLE
   ======================================== */

.projects-grid-apple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.project-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.project-media {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-info {
    padding: 32px;
}

.project-name {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.project-description {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 20px 0;
}

.project-link-text {
    font-size: 17px;
    font-weight: 500;
    color: #4A9EFF;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.project-card:hover .project-link-text {
    gap: 12px;
}

.project-link-text i {
    font-size: 14px;
}

/* ========================================
   SKILLS SECTION - APPLE STYLE
   ======================================== */

.skill-category {
    margin-bottom: 64px;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
    letter-spacing: -0.01em;
}

.skills-grid-apple {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* Keep existing skill-tile styling but ensure compatibility */
.skills-grid-apple .skill-tile {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    aspect-ratio: 1/1;
    flex: 0 0 100px;
    width: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.skills-grid-apple .skill-tile:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.skills-grid-apple .skill-tile img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.skills-grid-apple .skill-tile::after {
    content: attr(title);
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-align: center;
    word-break: break-word;
}

/* ========================================
   RESPONSIVE - APPLE SECTIONS
   ======================================== */

@media (max-width: 900px) {
    
    .projects-grid-apple {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .project-card {
        border-radius: 20px;
    }
    
    .project-media {
        aspect-ratio: 16/9;
    }
    
    .category-title {
        font-size: 28px;
        margin-bottom: 28px;
    }
    
    .skill-category {
        margin-bottom: 56px;
    }
    
    .skills-grid-apple {
        gap: 18px;
    }
    
    .skills-grid-apple .skill-tile {
        flex: 0 0 90px;
        width: 90px;
        padding: 16px;
        border-radius: 14px;
    }
    
    .skills-grid-apple .skill-tile img {
        width: 42px;
        height: 42px;
    }
    
    .skills-grid-apple .skill-tile::after {
        font-size: 11px;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    
    .projects-grid-apple {
        gap: 20px;
    }
    
    .project-card {
        border-radius: 18px;
    }
    
    .project-media {
        aspect-ratio: 4/3;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-name {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .project-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    .project-link-text {
        font-size: 15px;
    }
    
    .project-link-text i {
        font-size: 12px;
    }
    
    .skill-category {
        margin-bottom: 44px;
    }
    
    .category-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .skills-grid-apple {
        gap: 12px;
        justify-content: center;
    }
    
    .skills-grid-apple .skill-tile {
        flex: 0 0 72px;
        width: 72px;
        padding: 12px;
        border-radius: 12px;
    }
    
    .skills-grid-apple .skill-tile img {
        width: 34px;
        height: 34px;
    }
    
    .skills-grid-apple .skill-tile::after {
        font-size: 9px;
        margin-top: 8px;
        line-height: 1.2;
    }
}

@media (max-width: 420px) {
    
    .projects-grid-apple {
        gap: 16px;
    }
    
    .project-card {
        border-radius: 16px;
    }
    
    .project-media {
        aspect-ratio: 1/1;
    }
    
    .project-info {
        padding: 16px;
    }
    
    .project-name {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .project-description {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 14px;
    }
    
    .project-link-text {
        font-size: 14px;
    }
    
    .project-link-text i {
        font-size: 11px;
    }
    
    .skill-category {
        margin-bottom: 36px;
    }
    
    .category-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .skills-grid-apple {
        gap: 10px;
    }
    
    .skills-grid-apple .skill-tile {
        flex: 0 0 64px;
        width: 64px;
        padding: 10px;
        border-radius: 11px;
    }
    
    .skills-grid-apple .skill-tile img {
        width: 30px;
        height: 30px;
    }
    
    .skills-grid-apple .skill-tile::after {
        font-size: 8px;
        margin-top: 6px;
        line-height: 1.2;
    }
    
    /* Adjust hover effects on very small screens */
    .project-card:hover {
        transform: translateY(-4px);
    }
    
    .skills-grid-apple .skill-tile:hover {
        transform: translateY(-3px);
    }
}
/* ========================================
   RESUME PAGE STYLES
   ======================================== */

/* Resume Hero Section */
.resume-hero {
    padding: 140px 40px 80px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.resume-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.resume-headline {
    font-size: 72px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1;
}

.resume-subheadline {
    font-size: 21px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 700px;
    line-height: 1.5;
}

.resume-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

/* Active nav link */
.nav-links a.active {
    color: #ffffff;
}

.nav-links a.active::after {
    width: 100%;
}

/* Removed resume-specific section title override; using global `.section-headline` clamp for consistency */

/* Prevent fixed header overlap on resume anchors */
body.resume-page .resume-hero,
body.resume-page .resume-section{
    scroll-margin-top: calc(var(--nav-height, 0px) + 8px);
}

/* ========================
   Resume Mobile Polishing
   ======================== */
@media (max-width: 900px) {
    .resume-hero { padding: 120px 24px 60px; max-width: 760px; }
    .resume-headline { font-size: 56px; line-height: 1.05; }
    .resume-subheadline { font-size: 18px; max-width: 640px; }
    .resume-actions { gap: 12px; }
}

@media (max-width: 600px) {
    /* Compact fixed header and center hero on resume */
    body.resume-page .nav-inner { padding: 8px 12px; }
    body.resume-page .resume-hero { 
        min-height: calc(100vh - var(--nav-height) - 16px);
        padding: calc(var(--nav-height) + 8px) 16px 36px; 
        display: grid; align-content: center; justify-items: center;
    }
    .resume-hero-content { gap: 14px; }
    .resume-headline { font-size: 42px; }
    .resume-subheadline { font-size: 16px; line-height: 1.55; }
    .resume-actions { flex-direction: column; align-items: stretch; }
    .resume-actions .btn { width: 100%; padding: 11px 12px; font-size: 14px; }

    .resume-section { padding: 48px 18px; }
    .experience-card { padding: 18px; border-radius: 16px; }
    .card-header { gap: 14px; }
    .company-logo { width: 48px; height: 48px; border-radius: 10px; }
    .position-title { font-size: 18px; }
    .company-name { font-size: 14px; }
    .date-range { font-size: 13px; }
    .position-description { font-size: 14px; margin-bottom: 12px; }
    .achievements { padding-left: 22px; }
    .achievements li { font-size: 14px; line-height: 1.6; margin-bottom: 6px; }
}

@media (max-width: 420px) {
    body.resume-page .nav-inner { padding: 8px 10px; }
    body.resume-page .resume-hero { 
        min-height: calc(100vh - var(--nav-height) - 12px);
        padding: calc(var(--nav-height) + 8px) 12px 28px; 
        display: grid; align-content: center; justify-items: center;
    }
    .resume-hero-content { gap: 12px; }
    .resume-headline { font-size: 36px; }
    .resume-subheadline { font-size: 15px; }
    .resume-section { padding: 40px 14px; }
    .experience-card { padding: 16px; }
    .company-logo { width: 44px; height: 44px; border-radius: 10px; }
    .position-title { font-size: 17px; }
    .achievements li { font-size: 13.5px; }
}

/* Resume Sections */
.resume-section {
    padding: 80px 40px;
    border: none !important;
    box-shadow: none !important;
}

/* Experience/Education Cards */
.experience-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

.experience-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.card-company {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.company-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.position-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.company-name {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.date-range {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    font-weight: 500;
}

.position-description {
    font-size: clamp(14px, 1.9vw, 16px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 16px 0;
}

.achievements {
    margin: 0;
    padding-left: 24px;
    list-style: none;
}

.achievements li {
    font-size: clamp(12px, 2.0vw, 14px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
    position: relative;
}

.achievements li::before {
    content: "\2713"; /* checkmark */
    position: absolute;
    left: -24px;
    color: #4A9EFF;
    font-weight: 700;
    font-size: clamp(12px, 3.2vw, 16px);
}

.achievements li:last-child {
    margin-bottom: 0;
}

/* Qualifications Section */
.qualifications-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.qual-item {
    background: linear-gradient(135deg, rgba(31,114,255,0.16) 0%, rgba(38,208,206,0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
    box-shadow: 0 16px 36px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}

.qual-item:hover {
    background: linear-gradient(135deg, rgba(31,114,255,0.22) 0%, rgba(38,208,206,0.18) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 44px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.10);
}

.qual-icon {
    font-size: 28px;
    color: #4A9EFF;
    flex-shrink: 0;
}

.qual-item span {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Key Skills */
.key-skills {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 40px;
}

.skills-subtitle {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 24px 0;
    letter-spacing: -0.01em;
}

.skills-list {
    margin: 0;
    padding-left: 28px;
    list-style: none;
}

.skills-list li {
    font-size: clamp(14px, 3.8vw, 17px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    position: relative;
    transition: color 160ms ease;
}

.skills-list li::before {
    content: "\2713"; /* checkmark */
    position: absolute;
    left: -28px;
    color: #28D0CE;
    font-weight: 700;
    font-size: clamp(12px, 3.5vw, 18px);
    text-shadow: 0 1px 1px rgba(0,0,0,0.45);
}

.skills-list li:last-child {
    margin-bottom: 0;
}
 
.skills-list li:hover {
    color: rgba(255, 255, 255, 0.98);
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 900px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-headline {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.cta-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ========================================
   RESUME PAGE - FORCE NO SECTION BORDERS
   ======================================== */
/* Remove generic section chrome on resume page only */
body.resume-page section {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
/* Also ensure Apple sections and CTA have no borders on resume */
body.resume-page .section-apple,
body.resume-page .resume-section,
body.resume-page .cta-section {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Guard against any inner-card mobile accents on resume */
body.resume-page #experience > div,
body.resume-page #education > div {
    border-left: none !important;
}

/* ========================================
   PROJECT PAGE - DISABLE LEFT EDGE ACCENTS
   ======================================== */
/* Ensure project details never show left borders on mobile or otherwise */
body.project-page #details > div,
body.project-page #details blockquote,
body.project-page .publication-quote {
    border-left: none !important;
}

/* ========================================
   PROJECT PAGE STYLES
   ======================================== */

/* Project Hero Section */
.project-hero-section {
    padding: 120px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.project-hero-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-title {
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1;
}

.project-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.project-intro {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.project-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
}

/* Minimalist inline meta line for project hero */
.project-meta-line{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    align-items:center;
    color:rgba(255,255,255,0.75);
    font-size:15px;
}
.project-meta-line span+span::before{
    content:'•';
    opacity:0.7;
    margin:0 8px 0 4px;
}

.meta-item i {
    font-size: 16px;
    color: #4A9EFF;
}

/* Project Gallery */
.project-gallery {
    padding: 80px 40px;
}

.project-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-image-item {
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-image-item:hover {
    transform: scale(1.02);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Technologies Section */
.project-tech {
    padding: 80px 40px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.tech-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.tech-item span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

/* Project Details Section */
.project-details {
    padding: 80px 40px;
}

.project-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 60px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: start;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 13px;
    font-weight: 700;
    color: #4A9EFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.publication-link {
    color: #4A9EFF;
    text-decoration: none;
    border-bottom: 1px solid rgba(74, 158, 255, 0.3);
    padding-bottom: 2px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.publication-link:hover {
    border-bottom-color: #4A9EFF;
}

.publication-link i {
    font-size: 12px;
}

/* Content Sections */
.content-section {
    margin-bottom: 48px;
}

.content-heading {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.content-text {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 16px 0;
}

.feature-list {
    margin: 0;
    padding-left: 28px;
    list-style: none;
}

.feature-list li {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    position: relative;
}

.feature-list li::before {
    content: "\2713"; /* checkmark */
    position: absolute;
    left: -28px;
    color: #4A9EFF;
    font-weight: 700;
    font-size: 24px;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.publication-quote {
    background: rgba(74, 158, 255, 0.05);
    border-left: none;
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 24px;
}

.publication-quote p {
    font-size: 16px;
    font-style: italic;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.project-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========================================
   RESPONSIVE - PROJECT PAGE
   ======================================== */

@media (max-width: 900px) {
    .project-hero-section {
        grid-template-columns: 1fr;
        padding: 100px 32px 48px;
        gap: 40px;
    }
    
    .project-title {
        font-size: 48px;
    }
    
    .project-subtitle {
        font-size: 20px;
    }
    
    .project-intro {
        font-size: 16px;
    }
    
    .project-meta {
        gap: 24px;
    }
    .project-meta-line{ font-size:14px; }
    
    .project-gallery,
    .project-tech,
    .project-details {
        padding: 60px 32px;
    }
    
    .project-images-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .project-info-card {
        padding: 32px;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .content-heading {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    body.project-page .project-hero-section {
        min-height: calc(100vh - var(--nav-height) - 16px);
        padding: calc(var(--nav-height) + 8px) 24px 40px;
        gap: 32px;
        display: grid; align-content: center; justify-items: center;
    }
    
    .project-title {
        font-size: 36px;
    }
    
    .project-subtitle {
        font-size: 18px;
    }
    
    .project-intro {
        font-size: 15px;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 12px;
    }
    .project-meta-line{ font-size:13px; }
    
    .project-gallery,
    .project-tech,
    .project-details {
        padding: 48px 24px;
    }
    
    .project-images-grid {
        gap: 16px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 16px;
    }
    
    .tech-item {
        padding: 20px;
    }
    
    .tech-item img {
        width: 48px;
        height: 48px;
    }
    
    .tech-item span {
        font-size: 12px;
    }
    
    .project-info-card {
        padding: 24px;
        border-radius: 20px;
    }
    
    .info-row {
        gap: 6px;
        padding-bottom: 20px;
    }
    
    .info-label {
        font-size: 12px;
    }
    
    .info-value {
        font-size: 15px;
    }
    
    .content-heading {
        font-size: 24px;
    }
    
    .content-text {
        font-size: 15px;
    }
    
    .feature-list li {
        font-size: 15px;
    }
    
    .publication-quote {
        padding: 20px;
    }
    
    .publication-quote p {
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    body.project-page .project-hero-section {
        min-height: calc(100vh - var(--nav-height) - 12px);
        padding: calc(var(--nav-height) + 8px) 20px 32px;
        display: grid; align-content: center; justify-items: center;
    }
    
    .project-title {
        font-size: 32px;
    }
    
    .project-subtitle {
        font-size: 16px;
    }
    
    .project-intro {
        font-size: 14px;
    }
    .project-meta-line{ font-size:12px; }
    
    .project-gallery,
    .project-tech,
    .project-details {
        padding: 40px 20px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 12px;
    }
    
    .tech-item {
        padding: 16px;
    }
    
    .tech-item img {
        width: 40px;
        height: 40px;
    }
    
    .tech-item span {
        font-size: 11px;
    }
    
    .project-info-card {
        padding: 20px;
    }
    
    .content-heading {
        font-size: 20px;
    }
    
    .content-text {
        font-size: 14px;
    }
    
    .feature-list li {
        font-size: 14px;
    }
}
