@import "base.css";
@import "lightdark.css";
/* Readability helpers: central timing / easing variables */
:root {
    --duration-short: 160ms;
    --duration-medium: 320ms;
    --duration-long: 560ms;
    --duration-very-long: 2000ms;

    --ease-standard: cubic-bezier(.2,.9,.3,1);
    --ease-soft: cubic-bezier(.25,.8,.35,1);
}


@keyframes softTextShift {
    0%   { color: #E0E7FF; } /* soft blue-white */
    33%  { color: #EFEFEF; } /* neutral off-white */
    66%  { color: #F0FFF0; } /* warm off-white */
    100% { color: #E0E7FF; } /* loop back */
}

/* configuration variables for the soft text animation */
:root {
    --soft-text-animation-duration: 90s;
    --soft-text-animation-easing: linear;
}

body {
    background: var(--eerie-black);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    font-family: Poppins, sans-serif;
}

.site-container {
    width: 100%;
    min-height: 100%;
    position: relative;

}

.hero-section {
    position: relative;
    width: 100vw;
    height: 92vh;
    min-height: 520px;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background-position: top center, top center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    overflow: visible;
}


.hero-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22vh;
    pointer-events: none;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.header {
    position: fixed;
    z-index: 2;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 5vw;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    will-change: transform, opacity;
    transition: padding 220ms ease, margin 220ms ease, transform var(--duration-medium) var(--ease-standard), opacity var(--duration-short) ease;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 2px;
}

.logo-icon {
    transform:scale(1.5);
}

.nav {
    display: flex;
    gap: 2rem;
    position: relative;
    list-style: none;
}

.nav .open {
    background-color: rgba(255,255,255,0.06);
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0rem;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    backdrop-filter: blur(6px) saturate(120%);
    transition: background 220ms ease, box-shadow 220ms ease, color 180ms ease, transform 180ms ease;
    z-index: 1;
    pointer-events: auto;
}
.nav-link:visited {
    color: var(--white);
}
.nav-link:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.035);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    margin-left: 1rem;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: 100%;
    text-align: center;
    margin-top: 0.5rem;
    animation: fadeIn 1.2s ease;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0 0 0.7rem 0;
    color: var(--accent);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-medium) var(--ease-standard), transform var(--duration-medium) var(--ease-standard);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--duration-medium) 120ms var(--ease-standard), transform var(--duration-medium) 120ms var(--ease-standard);
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
}


.dynamic-title {
    color: #e0e0e0;
    font-weight: 500;
    white-space: nowrap;
}


.typewriter {
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    max-width: 28ch;
    vertical-align: middle;
    border-right: 2px solid var(--white);
    padding-right: 4px;
    box-sizing: content-box;
    transition: opacity 220ms ease;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--duration-medium) 220ms var(--ease-standard), transform var(--duration-medium) 220ms var(--ease-standard);
}

.hero-actions a:visited {
    color: var(--white);
}

.site-container.animate .hero-title {
    opacity: 1;
    transform: translateY(0);
}
.site-container.animate .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}
.site-container.animate .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

.logo, .nav, .hamburger, .header {
    transition: padding 220ms ease, margin 220ms ease, transform 220ms ease;
}


@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-subtitle,
    .hero-actions,
    .logo,
    .nav,
    .hamburger,
    .header {
        transition: none !important;
        animation: none !important;
    }
}

.btn {
    padding: 0.7em 1.7em;
    border: 1.5px solid var(--white);
    border-radius: 2em;
    background: transparent;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 12px 0 rgba(255,115,0,0.08);
    outline: none;
    position: relative;
    overflow: hidden;
}
.btn:hover, .btn:focus {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 4px 24px 0 rgba(255,115,0,0.18);
    animation: btnPulse 0.4s;
}
.btn.glassy {
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    backdrop-filter: blur(6px) saturate(120%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: background 260ms ease, box-shadow 260ms ease, transform 200ms ease;
}
.btn.glassy:hover, .btn.glassy:focus {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 30px rgba(0,0,0,0.40);
    transform: translateY(-1px);
}
@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,115,0,0.18);}
    70% { box-shadow: 0 0 0 10px rgba(255,115,0,0.10);}
    100% { box-shadow: 0 0 0 0 rgba(255,115,0,0.18);}
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}


/* Sheen animation for nav links and CTA buttons */
@keyframes navCtaSheen {
    0% { left: -60%; opacity: 0; }
    10% { opacity: 0.8; }
    60% { left: 110%; opacity: 0.8; }
    100% { left: 110%; opacity: 0; }
}

.skip-link {
    position: absolute;
    top: -999px;
    left: 0;
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    z-index: 9999;
    border-radius: 0 0.5rem 0.5rem 0;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus {
    top: 1rem;
    left: 1rem;
    box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}


:focus {
    outline: none;
}
:focus-visible, .nav-link:focus, .btn:focus, .hamburger:focus {
    outline: 3px solid rgba(255, 115, 0, 0.18);
    outline-offset: 3px;
    border-radius: 6px;
}

.nav-link:focus, .nav-link:focus-visible, .nav-link.navMap{
    color: var(--accent);
    background: rgba(255,115,0,0.06);
    border-radius: 24px;
}


.hamburger {

}
.hamburger:focus {
    box-shadow: 0 6px 24px rgba(255,115,0,0.12);
}


.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* About section layout */
.about-section {
    width: 100%;
    padding: 2.25rem 2rem;
    box-sizing: border-box;
}

.about-inner {
    max-width: 1200px;
    margin: 2.5rem auto;
    box-sizing: border-box;
}

.about-grid {
    display: grid;
    gap: var(--content-gap);
    align-items: center;
    grid-template-areas:
        "left right"
        "left skills";
}

.about-left {
    grid-area: left;
}

.about-right {
    grid-area: right;
}

.skills {
    grid-area: skills;
}

@media (max-width: 970px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "right right"
            "left skills";
        gap: var(--content-gap);
    }
    .about-right {
        grid-column: 1 / 3;
        grid-row: 1;
    }
    .about-left {
        grid-column: 1;
        grid-row: 2;
    }
    .skills {
        grid-column: 2;
        grid-row: 2;
    }
}

/* Portrait image (left) */
.about-portrait {
    width: 100%;
    max-width: 360px;
    height: 620px;
    object-fit: contain;
    border-radius: 14px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.04);
}

.about-left img {
    object-fit: cover;
    object-position: center top;
}

.about-left {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: visible;
    z-index: 80;
    will-change: transform, opacity;
}

/* portrait: fade partially when active (keep photo visible) */
.about-left.active .about-portrait {
    opacity: 0.18;
    transform: scale(0.995);
    filter: saturate(0.95) blur(0.2px);
    transition: opacity 260ms ease, transform 260ms ease, filter 260ms ease;
}

.panel-title {
    width: 100%;
    display: flex;
    justify-content: center;
    color: #ff8c1a;
    font-weight: bold;
}

.portrait-panel {
    position: absolute;
    padding: 0.9rem;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(8px) scale(0.995);
    transition: opacity var(--duration-medium) var(--ease-standard), transform 320ms var(--ease-standard);
    z-index: 999;
    pointer-events: none;
    font-size: 0.95rem;
    line-height: 1.35;
    will-change: transform, opacity;
}


.portrait-panel.visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 140ms;
}


.portrait-panel.hiding {
    opacity: 0;
    transform: translateY(6px) scale(0.995);
    transition-duration: 180ms;
    transition-delay: 0ms;
    pointer-events: none;
}

.about-left:not(.active) .portrait-panel {
    opacity: 0;
    pointer-events: none;
}

/* Right column */
.about-heading {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--white);
}
.about-desc {
    margin: 0 0 1rem 0;
}

.primary-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

/* Skills list */
.skills {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--content-gap);
    width: 100%;
    box-sizing: border-box;
}


.skill {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.01);
    padding: 0.55rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(2,2,2,0.55) inset;
    transition: transform 180ms ease, box-shadow 180ms ease, background 160ms ease;
}


.skill.pull {
    transform: translateY(-8px) scale(1.035);
    transition: transform 160ms cubic-bezier(.2,.9,.3,1), box-shadow 160ms ease, background 160ms ease;
    z-index: 3;

    border: 1px solid rgba(255,115,0,0.14);
    background: linear-gradient(180deg, rgba(255,115,0,0.02), rgba(255,115,0,0.005));
    box-shadow:
            0 10px 30px rgba(0,0,0,0.6),
            0 0 0 3px rgba(255,115,0,0.045);
}

.skill-label{
    display: flex;
    align-items: center;
    gap: 2px;
}

.csharp {
    color: black;
    font-weight: 600;
    font-size: 10px;
    border-radius: 50px;
    padding: 1px;
    display: flex;
    align-items: center;
}

.skill-track {
    position: relative;
    width: 100%;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow:
            inset 0 6px 18px rgba(0,0,0,0.72),
            inset 0 -3px 6px rgba(255,255,255,0.02);
    overflow: hidden;
    will-change: transform, opacity;
}

.skill-percent {
    text-align: end;
}


.skill-fill {
    position: relative;
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    box-shadow:
            0 8px 28px rgba(255,115,0,0.06),
            inset 0 2px 10px rgba(0,0,0,0.6);
    overflow: visible;
}

.skill-fill::after {
    content: "";
    position: absolute;
    width: 40%;
    height: 120%;
    background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.24) 50%,
    rgba(255,255,255,0) 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

@keyframes sheenSweep {
    0% { left: -40%; opacity: 0; }
    10% { opacity: 0.9; }
    60% { left: 120%; opacity: 0.9; }
    100% { left: 120%; opacity: 0; }
}

.skill.in-view .skill-fill::after {
    animation: sheenSweep 2000ms cubic-bezier(.2,.9,.3,1) 220ms both infinite;
    opacity: 0.95;
}


.skill.in-view .skill-fill.glassy-sheen::after {
    animation-iteration-count: infinite;
    animation-duration: 1600ms;
    animation-delay: 600ms;
}


.skill-fill[style*="--skill-percent:0"]::before,
.skill-fill[style*="--skill-percent:0%"]::before {
    opacity: 0.18;
}

@media (prefers-reduced-motion: reduce) {
    .skill-fill::before,
    .skill-fill::after {
        animation: none !important;
        opacity: 0.12 !important;
    }
    .skill.in-view .skill-fill::after { opacity: 0.12 !important; }
    .skill-fill { transition: none !important; }
}

@media (hover: hover) and (min-width: 720px) {
    .about-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 28px 72px rgba(6,6,6,0.75);
    }
}


.about-hero-section {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 60vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--eerie-black);
    z-index: 0;

    box-sizing: border-box;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
            url('../assets/photoshoot.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform-origin: center;
    z-index: 0;
    will-change: transform, opacity;
    overflow: hidden;
}


.about-hero-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    pointer-events: none;
    z-index: 1;
}

/* overlay panel centered over the hero background */
.about-hero-overlay {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: clamp(1rem, 2.5vw, 2.25rem);
    max-width: min(1100px, 92vw);
    width: 100%;
    margin: 0 1rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(12,12,12,0.55), rgba(12,12,12,0.38));
    box-shadow: 0 12px 40px rgba(0,0,0,0.56);
    opacity: 0;
    transform: translateY(18px) scale(0.995);
    transition: opacity var(--duration-long) var(--ease-standard), transform var(--duration-long) var(--ease-standard);
    pointer-events: none;
}


.about-hero-overlay.entrance {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}


.about-hero-title {
    margin: 0 0 0.35rem 0;
    font-weight: 800;
    font-size: clamp(1.6rem, 4.2vw, 2.6rem);
    color: var(--accent);
    text-shadow: 0 4px 18px rgba(0,0,0,0.65);
}

.about-hero-desc {
    margin: 0;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    color: rgba(255,255,255,0.94);
    opacity: 0.96;
}


.about-hero-qt {
    position: absolute;
    left: clamp(26%, 3.5vw, 48px);
    top: 20%;
    transform: translateY(-50%) translateX(-14%);
    width: clamp(20%, 0%, 320px);
    color: rgba(255,255,255,0.95);
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 420ms cubic-bezier(.2,.9,.3,1), transform 420ms cubic-bezier(.2,.9,.3,1), all 320ms ease;
    will-change: transform, opacity;
}

.about-hero-figure {
    margin: 0;
}

.about-hero-figure figcaption {
    display: flex;
    justify-content: end;
    font-weight: bold;
}

.my-quote {
    font-weight: bold;
    font-style: italic;
}

.about-hero-qt.show {
    opacity: 1;
    transform: translateY(-50%) translateX(6%); /* shifts toward center when shown */
    pointer-events: auto;
}


.about-hero-qt.glassy {
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(12,12,12,0.7), rgba(18,18,18,0.9));
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}


.about-hero-qt blockquote {
    margin: 0 0 0.6rem 0;
    font-size: 0.98rem;
    line-height: 1.35;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
}
.about-hero-qt cite {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.68);
    margin-top: 0.25rem;
    text-align: right;
    font-style: normal;
}

.about-hero-qt.show {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}


.about-hero-overlay.entrance + .about-hero-qt,
.about-hero-qt {
    transition-delay: 120ms;
}


.about-hero-section { overflow-x: hidden; }


.nav-link.glassy,
.btn.glassy {
    position: relative;
    overflow: hidden;
    gap: 0.10rem;
    transition: all 0.9s ease;
}


.nav-link.glassy::after,
.btn.glassy::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    background: linear-gradient(
            110deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.16) 50%,
            rgba(255,255,255,0) 100%
    );
    transform: skewX(-12deg);
    transition: opacity 180ms linear;
}


.glassy.glassy-active::after {
    opacity: 1;
    animation: navCtaSheen var(--duration-very-long) var(--ease-standard) both infinite;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.6;
    color: gray;
    border: 1px solid gray;
}



@media (prefers-reduced-motion: reduce) {
    .glassy.glassy-active::after {
        animation: none;
        opacity: 0.12;
        left: 0;
    }
}

/* subtle hover / focus lift */
.about-bottom-hero-sub:visited,
.about-bottom-hero-sub {
    color: white;
}


.about-bottom-hero-sub:hover,
.about-bottom-hero-sub:focus {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(255,115,0,0.12);
    background: linear-gradient(180deg, rgba(255,115,0,0.18), rgba(255,115,0,0.26));
}

/* accessible focus-visible */
.about-bottom-hero-sub:focus-visible {
    outline: 3px solid rgba(255,115,0,0.18);
    outline-offset: 4px;
    border-radius: 9px;
}

.about-bottom-hero-sub.glassy::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    background: linear-gradient(
            110deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.28) 50%,
            rgba(255,255,255,0) 100%
    );
    transform: skewX(-12deg);
    transition: opacity 180ms linear;
}


.about-bottom-hero-sub.glassy.glassy-active::after {
    opacity: 1;
    animation: navCtaSheen var(--duration-very-long) var(--ease-standard) both infinite;
}


@media (prefers-reduced-motion: reduce) {
    .about-bottom-hero-sub.glassy.glassy-active::after {
        animation: none;
        opacity: 0.12;
        left: 0;
    }
}


/* Profile card layout (picture left, content right) */
.profile-card {
    max-width: 920px;
    width: 50%;
    box-sizing: border-box;
}

.profile-card .profile-left {
    flex: 0 0 360px;
    display: block;
    max-width: 360px;
    width: 100%;
    box-sizing: border-box;

}

.profile-card .profile-photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.04);
}

/* content column */
.profile-card .profile-right {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: 0 8px 20px rgba(2,2,2,0.55) inset;
    padding: 12px;
    border-radius: 12px;
}

#ins {
    box-shadow: 0 8px 20px rgba(32, 20, 0, 0.38) inset;
}

.profile-card .profile-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
}

.profile-card .profile-role {
    margin: 0 0 0.6rem 0;
    font-weight: 600;
}

.profile-card .profile-bio {
    margin: 0 0 1rem 0;
    line-height: 1.5;
}


.childhood-card {
    margin: 2.5rem auto;
    max-width: 1100px;
    width: min(92%, 1100px);
    box-sizing: border-box;
    padding: 1rem;
}

.child-middle {
    grid-column: 1 / 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 220px;
    padding: 0 0.75rem;
    text-align: left;
}

.child-right {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-photo {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.04);
    display: block;
}


.child-middle { display: flex; flex-direction: column; justify-content: center; }


.about-bottom-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    overflow: hidden;
    z-index: 10;
    min-height: 70vh;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: clamp(2rem, 4vw, 3rem) 0;
    background: transparent;
}


.about-bottom-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(to bottom, rgba(24,24,24,0.0) 0%, rgba(24,24,24,0.12) 20%, rgba(24,24,24,0.45) 65%),
            url('../assets/hobby.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform, opacity;
}


.about-bottom-hero-bg::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 22%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(180deg, var(--eerie-black) 0%, rgba(24,24,24,0.2) 60%, rgba(24,24,24,0) 100%);
}


.about-bottom-hero-bg::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 34%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(180deg, rgba(24,24,24,0) 0%, rgba(24,24,24,0.22) 45%, var(--eerie-black) 100%);
}


.about-bottom-hero-overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: min(980px, 92vw);
    width: 100%;
    padding: 0 1rem;
    pointer-events: auto;
}


.about-bottom-hero-title {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: clamp(1.25rem, 2.6vw, 1.8rem);
    color: var(--accent);
    text-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.about-bottom-hero-sub {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 1.05rem;
    border-radius: 10px;
    font-weight: 700;
    color: white;
    background: linear-gradient(180deg, rgba(255,115,0,0.14), rgba(255,115,0,0.20));
    border: 1px solid rgba(255,115,0,0.24);
    box-shadow: 0 10px 30px rgba(255,115,0,0.06);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    backdrop-filter: blur(6px) saturate(120%);
    transition: transform 180ms var(--ease-standard), box-shadow 200ms var(--ease-standard), background 180ms var(--ease-standard);
}


.about-bottom-hero-sub:hover,
.about-bottom-hero-sub:focus {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(255,115,0,0.12);
    background: linear-gradient(180deg, rgba(255,115,0,0.18), rgba(255,115,0,0.26));
}


.about-bottom-hero-sub:focus-visible {
    outline: 3px solid rgba(255,115,0,0.18);
    outline-offset: 4px;
    border-radius: 9px;
}

.about-bottom-hero-sub.glassy.glassy-active::after {
    opacity: 1;
    animation: navCtaSheen var(--duration-very-long) var(--ease-standard) both infinite;
}


@media (prefers-reduced-motion: reduce) {
    .about-bottom-hero-sub.glassy.glassy-active::after {
        animation: none;
        opacity: 0.12;
        left: 0;
    }
}


.desktop-card {
    margin: 2rem auto;
    padding: 1rem;
    max-width: 920px;
    width: min(92%, 920px);
    box-sizing: border-box;
}

.desktop-inner {
    display: flex;
    gap: var(--content-gap);
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    box-shadow: 0 8px 20px rgba(2,2,2,0.55) inset;
    padding: 12px;
    border-radius: 12px;
}


.desktop-left {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.desktop-photo {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.04);
    display: block;
}


.desktop-body {
    flex: 1 1 auto;
    min-width: 0;
}

.desktop-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
}

.desktop-sub {
    margin: 0 0 0.6rem 0;
    font-weight: 600;
}

.desktop-desc {
    margin: 0;
    line-height: 1.5;
}

/* subtle hover lift consistent with other cards */
@media (hover: hover) and (min-width: 720px) {
    .desktop-card:hover { transform: translateY(-6px); }
}

/* --- Service Section: Grid of Cards --- */
.services-container {
    border-radius: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 3rem auto 2.5rem auto;
    position: relative;
    z-index: 1;
    overflow: visible;

    box-shadow:
            0 12px 48px 0 rgba(0,0,0,0.65),
            0 2px 24px 0 rgba(255,115,0,0.08),
            0 0 0 2px rgba(255,255,255,0.04) inset,
            0 24px 80px 0 rgba(0,0,0,0.45);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: stretch;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.service-list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem 1.5rem 2.5rem 2.5rem / 2rem 2rem 1.2rem 1.2rem;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 85% 100%, 15% 100%, 0 92%);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    min-height: 220px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition:
            box-shadow 220ms var(--ease-standard),
            transform 180ms var(--ease-standard),
            background 180ms var(--ease-standard);
}

/* --- Service Cards Entrance Animation --- */
@keyframes serviceFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-list.services-animate .service-list-item {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: serviceFadeInUp 0.7s var(--ease-standard) forwards;
    box-shadow: 0 8px 20px rgba(2,2,2,0.55) inset;
}

.service-list.services-animate .service-list-item:nth-child(1) { animation-delay: 0.05s; }
.service-list.services-animate .service-list-item:nth-child(2) { animation-delay: 0.13s; }
.service-list.services-animate .service-list-item:nth-child(3) { animation-delay: 0.21s; }
.service-list.services-animate .service-list-item:nth-child(4) { animation-delay: 0.29s; }
.service-list.services-animate .service-list-item:nth-child(5) { animation-delay: 0.37s; }
.service-list.services-animate .service-list-item:nth-child(6) { animation-delay: 0.45s; }
.service-list.services-animate .service-list-item:nth-child(7) { animation-delay: 0.53s; }
.service-list.services-animate .service-list-item:nth-child(8) { animation-delay: 0.61s; }

.service-list-item ion-icon {
    font-size: 3.6rem;
    margin-bottom: 0.7rem;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.service-list-item:hover,
.service-list-item:focus-within {
    box-shadow:
            0 8px 36px 0 rgba(255,115,0,0.18),
            0 16px 48px 0 rgba(0,0,0,0.45),
            0 0 0 2px var(--accent);
    transform: translateY(-8px) scale(1.035);
    z-index: 3;
}

.service-list-item h3 {
    margin: 0 0 0.7rem 0;
    color: var(--accent);
    font-size: 1.15rem;
    font-weight: 700;
}

.service-list-item p {
    margin: 0 0 0.7rem 0;
    opacity: 0.92;
    font-size: 0.98rem;
}

/* --- Custom Icon Animations for Services --- */
@keyframes icon-bounce {
    0%, 100% { transform: translateY(0);}
    30% { transform: translateY(-18px);}
    50% { transform: translateY(0);}
    70% { transform: translateY(-8px);}
    80% { transform: translateY(0);}
}
.icon-bounce { animation: icon-bounce 0.9s cubic-bezier(.2,.9,.3,1); }

@keyframes icon-pulse {
    0%, 100% { transform: scale(1);}
    50% { transform: scale(1.25);}
}
.icon-pulse { animation: icon-pulse 0.7s cubic-bezier(.4,0,.2,1); }

@keyframes icon-rotate {
    0% { transform: rotate(0);}
    60% { transform: rotate(360deg);}
    100% { transform: rotate(360deg);}
}
.icon-rotate { animation: icon-rotate 0.8s cubic-bezier(.4,0,.2,1); }

@keyframes icon-shake {
    0%, 100% { transform: translateX(0);}
    20% { transform: translateX(-8px);}
    40% { transform: translateX(8px);}
    60% { transform: translateX(-6px);}
    80% { transform: translateX(6px);}
}
.icon-shake { animation: icon-shake 0.7s cubic-bezier(.4,0,.2,1); }

@keyframes icon-flip {
    0% { transform: rotateY(0);}
    40% { transform: rotateY(180deg);}
    100% { transform: rotateY(0);}
}
.icon-flip { animation: icon-flip 0.8s cubic-bezier(.4,0,.2,1); }

@keyframes icon-fade {
    0%, 100% { opacity: 1; transform: scale(1);}
    50% { opacity: 0.2; transform: scale(1.4);}
}
.icon-fade { animation: icon-fade 0.7s cubic-bezier(.4,0,.2,1); }

@keyframes icon-scale {
    0%, 100% { transform: scale(1);}
    40% { transform: scale(1.35);}
    60% { transform: scale(0.85);}
    80% { transform: scale(1.15);}
}
.icon-scale { animation: icon-scale 0.8s cubic-bezier(.4,0,.2,1); }

@keyframes icon-swing {
    0% { transform: rotate(0);}
    20% { transform: rotate(-18deg);}
    40% { transform: rotate(14deg);}
    60% { transform: rotate(-8deg);}
    80% { transform: rotate(6deg);}
    100% { transform: rotate(0);}
}
.icon-swing { animation: icon-swing 0.9s cubic-bezier(.4,0,.2,1); }



/* -------------------------
   Utility & Reusable Classes
   ------------------------- */


.u-card,
.about-card,
.profile-card,
.childhood-card,
.school-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    border-radius: 14px;
    padding: var(--card-padding);
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 18px 50px rgba(6,6,6,0.7);
    transition: transform 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard);
    box-sizing: border-box;
}


.u-elevated {
    box-shadow: 0 18px 50px rgba(6,6,6,0.7);
}


@media (hover: hover) and (min-width: 720px) {
    .u-card:hover { transform: translateY(-6px); box-shadow: 0 28px 72px rgba(6,6,6,0.75); }
}


.media {
    display: flex;
    gap: var(--content-gap);
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}
.media__figure {
    flex: 0 0 260px;
    max-width: 360px;
    box-sizing: border-box;
}
.media__body {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}


.media--reverse { flex-direction: row-reverse; }

.media--stack { flex-direction: column; align-items: center; text-align: center; }
@media (max-width: 720px) {
    .media--stack { gap: 0.9rem; }
}

/* Reusable responsive image */
.u-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.04);
}

.u-img--contain { object-fit: contain; max-height: 80vh; }

/* Glass surface: reusable glass panel styling */
.u-glass {
    background: linear-gradient(180deg, rgba(12,12,12,0.7), rgba(18,18,18,0.9));
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}


.u-glassy {
    position: relative;
    overflow: hidden;
}
.u-glassy::after {
    content:"";
    position: absolute;
    top:0; left:-60%;
    width:60%; height:100%;
    pointer-events:none; z-index:2;
    opacity:0;
    background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-12deg);
    transition: opacity 180ms linear;
}
.u-glassy.glassy-active::after {
    opacity:1;
    animation: navCtaSheen var(--duration-very-long) var(--ease-standard) both infinite;
}
@media (prefers-reduced-motion: reduce) {
    .u-glassy.glassy-active::after { animation:none; opacity: 0.12; left:0; }
}

.u-center { margin-left:auto; margin-right:auto; }
.u-maxwidth { max-width: 920px; width: min(92%, 920px); }


.my-profile {
    display: flex;
    gap: 1rem;
}

.profile-card .profile-inner {
    display: flex;
    gap: var(--content-gap);
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}
.profile-card .profile-left {
    flex: 0 0 260px;
    max-width: 260px;
}
.profile-card .profile-photo {

    width: 100%; height: auto; object-fit: cover; border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55); border:1px solid rgba(255,255,255,0.04);
    max-height: 520px;
}


.childhood-card { margin: 2.5rem auto; padding: 1rem; }
.childhood-inner { display:grid; grid-template-columns:1fr minmax(240px,60px); grid-auto-rows:auto; gap:var(--content-gap); align-items:start; justify-content:center; }
.child-middle { grid-column:1 / 2; grid-row:1 / span 2; display:flex; flex-direction:column; justify-content:center; min-width:220px; padding:0 0.75rem; border-radius: 12px; text-align: left; box-shadow: 0 8px 20px rgba(2,2,2,0.55) inset;}
.child-photo { width:100%; height:auto; max-height:420px; object-fit:cover; border-radius:10px; }


.school-card {
    margin: 2rem auto;
    padding: 1rem;
    max-width: 920px;
    width: min(92%, 920px);
}
.school-inner { display:flex; gap:var(--content-gap); align-items:center; justify-content:space-between; min-width:0; border-radius: 12px; padding: 12px; box-shadow: 0 8px 20px rgba(2,2,2,0.55) inset; }
.school-left { flex:1 1 60%; min-width:0; }
.school-right { flex:0 0 260px; max-width:260px; display:flex; align-items:center; justify-content:center; }
.school-photo { width:100%; height:auto; max-height:420px; object-fit:cover; border-radius:12px; }


.profile-name, .child-title, .school-name, .history-heading {
    color: var(--accent);
}


.site-footer {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 1.25rem 1rem;
    color: var(--white);
    box-sizing: border-box;
    -webkit-backdrop-filter: blur(6px) saturate(110%);
    backdrop-filter: blur(6px) saturate(110%);
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    gap: 1rem;
}
.footer-brand .logo {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
    letter-spacing: 1.5px;
}
.footer-desc {
    margin: 0.25rem 0 0 0;
    font-size: 0.95rem;
}
.footer-nav {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    justify-content: center;
}
.footer-nav a {
    text-decoration: none;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    transition: color 180ms var(--ease-standard), background 180ms var(--ease-standard), transform 160ms ease;
}
.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--accent);
    background: rgba(255,255,255,0.02);
    transform: translateY(-2px);
}
.footer-legal {
    font-size: 0.88rem;
}

.footer-list {
    display: flex;
    list-style: none;
    align-items: center;
    font-size: 34px;
    gap: 1rem;
}


.footer-list a {
    display: flex;
    align-items: center;
}

.footer-list .nav-link {
    padding: 0;
    font-size: 2.5rem;
}

.site-footer { overflow: hidden; }


.footer-nav a:focus-visible { outline: 3px solid rgba(255,115,0,0.14); outline-offset: 4px; border-radius: 6px; }

.projects-container {
    border-radius: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 3rem auto 2.5rem auto;
    position: relative;
    z-index: 1;
    overflow: visible;
    box-shadow:
            0 12px 48px 0 rgba(0,0,0,0.65),
            0 2px 24px 0 rgba(255,115,0,0.08),
            0 0 0 2px rgba(255,255,255,0.04) inset,
            0 24px 80px 0 rgba(0,0,0,0.45);
}

.project-card {
    display: flex;
    gap: 2.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(2,2,2,0.55) inset;
    margin-bottom: 2.5rem;
    padding: 1.5rem 1.2rem;
    flex-direction: column;
    transition: transform 180ms var(--ease-standard), box-shadow 220ms var(--ease-standard), background 180ms var(--ease-standard), display 0.5s ease, height 0.5s ease;
    will-change: transform, box-shadow;
}
.project-upper {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: start;
    width: 100%;
    flex-direction: row;
}
.project-lower {
    display: flex;
    visibility: hidden;
    justify-content: start;
    width: 100%;
    height: 0;
    flex-direction: row;
    align-items: start;
    overflow: hidden;
    opacity: 0;
    transition: height 0.5s cubic-bezier(.2,.9,.3,1), opacity 0.5s ease-in-out;
}

.updates {
    display: flex;
    padding: 1rem;
    flex-direction: column;
    width: auto;
    border-radius: 1rem;
    max-height: 31rem;
    overflow-y: auto;
    gap: 0.70rem;
    transition: all 1s ease;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* WebKit browsers */
.updates::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}
.updates::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
}
.updates::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.08);
    border-radius: 6px;
}

.updates {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(0,0,0,0.08);
}


.preventer {
    display: flex;
    pointer-events: auto;
}
.updates time {
    font-size: 0.55rem;
}

.updates-item {
    position: relative;
    padding: 0 1rem;
    transition: all 1s ease;
    max-width: 15rem;
}



.updates-item:focus-within,
.updates-item-wrapper:focus,
.updates-item-wrapper:hover,
.updates-item:hover {
    border-color: var(--accent);
}
.updates-item:focus-within::before,
.updates-item:hover::before {
    background: var(--accent);
}

.updates-item:before {
    content: '';
    display: inline-block;
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgb(101, 101, 101);
    border-radius: 50%;
    top: 0;
    left: 0;
    transform: translate(-50%, -120%);
    transition: all 0.5s ease-in-out;
}

.updates-item-wrapper {
    border-radius: 0.5rem;
    padding: 0 0.55rem;
    transition: all 0.5s ease;
}

.update-badge {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.versions {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--accent);
}

.update-title {
    max-width: 100%;
    text-overflow-ellipsis: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.history-description {
    width: 100%;
    border-radius: 0.5rem;
    border: 0.1rem solid var(--accent);
    padding: 1rem;
    min-height: 500px;
}

.history-description-head {
    display: flex;
    justify-content: space-between;
    font-size: clamp(.70rem, 1vw, 1.5rem);
}
.related {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.related .custom-modifier-btn {
    background: var(--accent);
    border: none;
    width: 10.434rem;
    height: 2.8rem;
    transition: all 0.5s ease;
}

.custom-modifier-btn p {
    color: white;
}

.fade-out {
    opacity: 0;
}

.btn-text {
    transition: opacity 0.5s ease;
}

/* Mirror the hover treatment used by service cards to lift and emphasize the project */
.project-card:hover,
.project-card:focus-within {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
            0 8px 36px 0 rgba(255,115,0,0.18),
            0 16px 48px 0 rgba(0,0,0,0.45),
            0 0 0 2px var(--accent);
    z-index: 3;
}

/* Keep hover friendly on keyboard too */
.project-card:focus {
    outline: 3px solid rgba(255,115,0,0.12);
    outline-offset: 4px;
    border-radius: 12px;
}


.projects-inner {
    padding: 0;
}

.screen-shots-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(0,0,0,0.08);
}

.screen-shots img {
    border-radius: 1rem;
    width: 20rem;
    height: 20rem;
}

.codes {
    border-radius: 1rem;
    box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.62) inset;
    background: rgba(0,0,0,0.08);
    width: 50%;
}
/* Respect reduced-motion: remove transform animations */
@media (prefers-reduced-motion: reduce) {
    .project-card,
    .projects-container {
        transition: none !important;
        animation: none !important;
    }
    .project-card:hover,
    .project-card:focus-within {
        transform: none;
        box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    }
}

.project-card__img {
    flex: 0 0 320px;
    max-width: 320px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    background: #181818;
    border: 1px solid rgba(255,255,255,0.04);
}
.project-card__body {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 0.5rem;
}
.project-card__body h3 {
    margin: 0 0 0.6rem 0;
    color: var(--accent);
    font-size: 1.18rem;
    font-weight: 700;
}
.project-card__body p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
}
.project-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    margin-top: 0.2rem;
    font-size: 1rem;
    transition: color 180ms var(--ease-standard);
}
.project-link:hover,
.project-link:focus {
    color: #ffb366;
}


.project-stores {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0 0.2rem 0;
    align-items: center;
    flex-wrap: wrap;
}
.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: 0.7em;
    padding: 0.3em 0.7em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    border: 1px solid rgba(255,255,255,0.06);
    min-width: 44px;
    min-height: 36px;
    cursor: pointer;
    color: var(--accent);
}
.store-badge:hover,
.store-badge:focus {
    background: rgba(255,115,0,0.10);
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 18px rgba(255,115,0,0.10);
    outline: none;
}


.mentor-card.glassy {

    background: linear-gradient(180deg, rgba(255,115,0,0.14), rgba(255,115,0,0.06));
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255,115,0,0.20);
    box-shadow:
            0 18px 48px rgba(6,6,6,0.7),
            0 10px 40px rgba(255,115,0,0.06);
    transition: transform 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard), background 220ms ease;
}


.mentor-card .mentor-quote {
    position: relative;
    display: block;
    margin: 0.6rem 0;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,115,0,0.02), rgba(0,0,0,0.0));
    color: rgba(255,200,120,0.98);
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.02);
    border-left: 3.5px solid rgba(255,115,0,0.18);
    overflow: hidden; /* required so sheen pseudo is clipped */
    transition: box-shadow 180ms ease, transform 160ms ease, color 200ms ease;
}


.mentor-card figcaption {
    display: flex;
    justify-content: end;
    margin-top: 0.45rem;
    color: rgba(255,200,120,0.86);
    font-weight: 600;
    font-size: 0.92rem;
}


.mentor-card .mentor-quote::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
            110deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.26) 50%,
            rgba(255,255,255,0) 100%
    );
    transform: skewX(-12deg);
    transition: opacity 160ms linear;
    z-index: 2;
}


.mentor-card.glassy.glassy-active .mentor-quote::after {
    opacity: 1;
    animation: navCtaSheen 1400ms cubic-bezier(.2,.9,.3,1) both;
}


.mentor-card .mentor-quote:focus,
.mentor-card .mentor-quote:focus-visible {
    outline: 3px solid rgba(255,115,0,0.14);
    outline-offset: 4px;
    border-radius: 8px;
}

#bst {
    background: linear-gradient(180deg, rgba(208, 0, 255, 0.14), rgba(221, 0, 255, 0.06));
    border: 1px solid rgba(208, 0, 255, 0.14);
}

#friend-card-title {
    color: #cb02f6;
}

#friend {
    box-shadow: 0 6px 18px rgba(45, 1, 55, 0.14) inset, inset 0 1px 0 rgba(19, 0, 23, 0.47);
}

#mtv {
    background: linear-gradient(90deg, rgba(208, 0, 255, 0.06), rgba(221, 0, 255, 0.06));
    color: #cb02f6;
    line-height: 1.35;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.02);
    border-left: 3.5px solid rgba(208, 0, 255, 0.14);
}

#best {
    color: #cb02f6;
}

.profile-right cite {
    display: flex;
    justify-content: end;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mentor-card.glassy.glassy-active .mentor-quote::after {
        animation: none;
        opacity: 0.14;
        left: 0;
    }
}

.contact-section {
    border-radius: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 3rem auto 2.5rem auto;
    position: relative;
    z-index: 1;
    box-shadow:
            0 12px 48px 0 rgba(0,0,0,0.65),
            0 2px 24px 0 rgba(255,115,0,0.08),
            0 0 0 2px rgba(255,255,255,0.04) inset,
            0 24px 80px 0 rgba(0,0,0,0.45);
}

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-content {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-info {
    flex: 1 1 320px;
    min-width: 260px;
    max-width: 340px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    color: #ffd9b3;
    margin-bottom: 1.5rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-list ion-icon {
    font-size: 1.4rem;
    color: var(--accent);
}

.contact-list a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.18s;
}

.contact-list a:visited {
    color: gray;
}

.contact-list a:hover,
.contact-list a:focus {
    color: #ffb366;
}

.contact-form-container {
    flex: 2 1 420px;
    min-width: 300px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    color: #ffd9b3;
}
.contact-info h3,
.contact-form-container h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    justify-content: center;
    display: flex;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 1rem;
    font-weight: 500;
    justify-content: end;
}

#ratings {
    display: flex;
    justify-content: end;
}

.form-group input,
.form-group textarea {
    padding: 0.7em 1em;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    transition: border 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 10px rgba(32, 32, 32, 0.56) inset;
    border: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border: 1.5px solid var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,115,0,0.10);
}

.rating-group {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.2em;
    justify-content: flex-start;
    align-items: center;
    font-size: 1.5rem;
    margin-top: 0.2em;
}

.rating-group input[type="radio"] {
    display: none;
}

.rating-group label {
    cursor: pointer;
    transition: color 0.18s;
    font-size: 1.6rem;
    padding: 0 0.1em;
}

.rating-group input[type="radio"]:checked ~ label,
.rating-group label:hover,
.rating-group label:hover ~ label {
    color: var(--accent);
}

.contact-form button[type="submit"] {
    margin-top: 0.5rem;
    align-self: flex-start;
}

@media (max-width: 980px) {
    .contact-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    .contact-info,
    .contact-form-container {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .contact-section {
        padding: 1.5rem 0.5rem;
    }
    .contact-inner {
        padding: 0 0.5rem;
    }
    .contact-info,
    .contact-form-container {
        padding: 1.2rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 1rem 0.2rem;
    }
    .contact-info,
    .contact-form-container {
        padding: 0.8rem 0.3rem;
    }
}

.cv-container {
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 2.5rem 2rem;
    font-family: var(--font-main, Arial, sans-serif);
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 900px) and (min-width: 601px) {
    .cv-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    .cv-left, .cv-right {
        align-items: flex-start !important;
        text-align: left;
    }
    .cv-section {
        align-items: flex-start !important;
        text-align: left;
    }
    .cv-section h2 {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .cv-cert-list,
    .cv-contact-list {
        align-items: flex-start !important;
        text-align: left;
        display: flex;
        flex-direction: column;
    }
    .cv-photo {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

.profile-inner.history {
    flex-direction: column;
    gap: 0.6rem;
    height: 100%;
}


.timeline {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    --t-gap: 3rem;
    gap: var(--t-gap);
    padding: 0.5rem 0.25rem 0.75rem;
    width: 100%;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    height: 100%;
}


/* Individual timeline cards */
.timeline-item {
    position: relative;
    flex: 0 0 auto;
    min-width: 220px;
    max-width: 280px;
    scroll-snap-align: start;
    padding: 0.8rem 0.9rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.28);
    line-height: 1.45;
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}


.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(var(--t-gap) / -1);      /* spans the gap */
    width: var(--t-gap);
    height: 1px;
    background: linear-gradient(90deg, rgba(255,115,0,0.35), rgba(255,115,0,0.9));
    pointer-events: none;
}
.timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: calc(50% - 4px);
    right: calc((var(--t-gap) / -1) - 4px);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px rgba(255,115,0,0.18);
    pointer-events: none;
}


/* Content */
.timeline-date {
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: center;
}
.timeline-desc {
    margin: 0;
    font-size: 0.98rem;
}

/* Focus states for accessibility */
.timeline-item:focus,
.timeline-item:focus-visible {
    outline: 3px solid rgba(255,115,0,0.16);
    outline-offset: 3px;
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
    .timeline { scroll-behavior: auto; }
}


.timeline {
    scrollbar-width: none;
}
.timeline::-webkit-scrollbar {
    display: none; /* WebKit */
}


.timeline-wrapper {
    box-shadow: rgba(0, 0, 0, 0.5) 0 2px 10px inset;
    position: relative;
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 3rem;
    height: 100%;
}

.timeline-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    transition: transform 160ms var(--ease-standard), background 160ms var(--ease-standard), box-shadow 160ms var(--ease-standard), opacity 160ms ease;
}
.timeline-btn:hover,
.timeline-btn:focus {
    background: rgba(255,255,255,0.09);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 12px 36px rgba(0,0,0,0.55);
}
.timeline-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}
.timeline-btn--prev { left: 0.5rem; }
.timeline-btn--next { right: 0.5rem; }

.timeline-indicator {
    position: absolute;
    left: 3rem;
    right: 3rem;
    bottom: 0.3rem;
    height: 6px;
    z-index: 4;
    cursor: pointer;
    user-select: none;
}
.timeline-indicator.is-hidden { opacity: 0; pointer-events: none; }
.timeline-indicator__track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.timeline-indicator__thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 4px 14px rgba(255,115,0,0.25);
    transition: left 200ms var(--ease-standard), width 200ms var(--ease-standard);
}

/* Make controls comfortable on small screens */
@media (max-width: 720px) {
    .timeline-wrapper { padding: 0.25rem 2.5rem 1.2rem; }
    .timeline-btn { width: 34px; height: 34px; }
    .timeline-indicator { left: 2.5rem; right: 2.5rem; }
}
@media (max-width: 480px) {
    .timeline-wrapper { padding: 0.25rem 2rem 1rem; }
    .timeline-btn { width: 30px; height: 30px; }
    .timeline-indicator { left: 2rem; right: 2rem; }
}

/* Loading animation styles */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    height: 60px;
}

.loading-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.loading-dots .dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    animation: jumpingDots 1.5s infinite;
    display: inline-block;
}

.loading-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes jumpingDots {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

.success-message ion-icon {
    font-size: 24px;
    color: #4CAF50;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}
/* Loading animation styles */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    height: 60px;
}

.loading-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.loading-dots .dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    animation: jumpingDots 1.5s infinite;
    display: inline-block;
}

.loading-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

/* --- Performance: render containment and offscreen skipping --- */
.about-section,
.services,
.projects-container,
.contact-section {
    content-visibility: auto;
    contain-intrinsic-size: 1000px 800px; /* reserve space to avoid layout shift */
}
.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes jumpingDots {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

/* Success message styles */
.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    color: #4CAF50;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

.success-message ion-icon {
    font-size: 24px;
    color: #4CAF50;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Auto-hide header behavior */
.header {
    will-change: transform, opacity;
    transition: padding 220ms ease, margin 220ms ease, transform var(--duration-medium) var(--ease-standard), opacity var(--duration-short) ease;
}
.header.is-visible { transform: translateY(0); opacity: 1; }
.header.is-hidden { transform: translateY(-110%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    .header { transition: none !important; }
}

/* ==========================================
   Image Expander Styles
   ========================================== */

/* Expandable image cursor */
.img-expandable {
    cursor: zoom-in;
    transition: transform var(--duration-medium) var(--ease-standard),
                box-shadow var(--duration-medium) var(--ease-standard);
}

.img-expandable:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(255, 115, 0, 0.2);
}

/* Modal overlay */
.img-expander-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn var(--duration-medium) var(--ease-standard);
}

.img-expander-modal.active {
    display: flex;
}

/* Expanded image */
.img-expander-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
    animation: zoomIn var(--duration-medium) var(--ease-standard);
    cursor: zoom-out;
}

/* Close button */
.img-expander-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: none;
    color: white;
    z-index: 2;
    transition: all var(--duration-short) var(--ease-standard);
    display: flex;
    justify-content: center;
    padding: 0;
}

.img-expander-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .img-expander-modal img {
        max-width: 95vw;
        max-height: 95vh;
    }

    .img-expander-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

.text-truncate-toggle {
    color: var(--accent);
}

