* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #EAEAEA;
    --accent: #F8B400;
    --accent-dark: #e0a000;
    --text-dark: #1E1E1E;
    --text-muted: #5A5A5A;
    --white-soft: #FFFFFF;
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-dark);
    font-family: var(--body-font);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
}

.section-label {
    font-family: var(--header-font);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.section-label:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--accent);
}

.section-header-center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header-center .section-label:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title {
    font-family: var(--header-font);
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 1rem;
}

.section-title span {
    color: var(--accent);
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: 0.7rem;
    font-size: 0.95rem;
}

.giant-number {
    position: absolute;
    font-family: var(--header-font);
    font-weight: 900;
    font-size: 14rem;
    color: rgba(0, 0, 0, 0.02);
    pointer-events: none;
    z-index: 0;
    user-select: none;
    top: -20px;
    left: 0;
}

/* ============================================
   FLOATING NAV (reference-style, plain links)
   ============================================ */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(94%, 780px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 60px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.7rem 0.7rem 1.5rem;
    transition: var(--transition);
}

.floating-nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.nav-logo {
    font-family: var(--header-font);
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.nav-logo-dot {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-block;
    position: relative;
    padding-bottom: 3px;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-dark);
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-dark);
    font-weight: 700;
}

.nav-link.active:after {
    width: 100%;
}

.nav-cta {
    background: var(--text-dark);
    color: white;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: var(--text-dark);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 800px) {
    .nav-links {
        position: fixed;
        top: 90px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: 90%;
        max-width: 320px;
        background: white;
        flex-direction: column;
        border-radius: 24px;
        padding: 1.2rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        gap: 0.4rem;
    }

    .nav-links.open {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* ============================================
   HERO SECTION — photo layered as readable background
   ============================================ */
.hero-centered {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9rem 5% 4rem;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(248, 180, 0, 0.08), transparent 55%);
}

.giant-number-hero {
    top: 6rem;
    left: 3%;
    font-size: 9rem;
    z-index: 0;
}

/* Photo layer — no colored panel, sits behind the text, fades at the bottom */
.hero-photo-layer {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -46%);
    width: clamp(400px, 34vw, 460px);
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 97%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 97%);
}

.hero-img-main {
    width: 100%;
    display: block;
    object-fit: contain;
    filter: grayscale(0%);
}

/* Soft glow behind the text block so it stays legible over the photo */
.hero-text-glow {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1000px, 96vw);
    height: 620px;
    background: radial-gradient(ellipse at center, rgba(234, 234, 234, 0.92) 0%, rgba(234, 234, 234, 0.55) 45%, rgba(234, 234, 234, 0) 72%);
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    text-align: center;
    max-width: 780px;
    z-index: 2;
    animation: heroFadeUp 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    background: white;
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 1.3rem;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.6rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    animation: badgePulse 2.4s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    }

    50% {
        box-shadow: 0 4px 14px rgba(248, 180, 0, 0.35);
    }
}

.hero-heading {
    font-family: var(--header-font);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.18;
    color: var(--text-dark);
    text-shadow: 0 2px 20px rgba(234, 234, 234, 0.9), 0 1px 2px rgba(234, 234, 234, 0.8);
}

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

.hero-sub {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-top: 1.3rem;
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 14px rgba(234, 234, 234, 0.85);
}

/* Action row — CTA on the left, socials + resume on the right */
.hero-action-row {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1080px;
    margin-top: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.4rem;
    animation: heroFadeUp 1s cubic-bezier(0.2, 0.9, 0.3, 1) both;
    animation-delay: 0.1s;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-dark);
    color: white;
    padding: 0.95rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.btn-hero-primary:hover {
    background: var(--accent);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(248, 180, 0, 0.3);
}

.hero-social-dock {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
    flex-shrink: 0;
}

.social-icon:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.btn-resume {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--body-font);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
}

.btn-resume:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Floating stat cards — pinned to the section corners, clear of the text */
.hero-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.9rem 1.15rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    z-index: 2;
    animation: floatUpDown 4.2s ease-in-out infinite;
    font-size: 0.82rem;
}

.hf-1 {
    top: 24%;
    left: 4%;
    width: 190px;
    animation-delay: 0s;
}

.hf-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-bottom: 0.3rem;
}

.hf-top i {
    color: var(--accent);
}

.hf-1 strong {
    font-family: var(--header-font);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.hf-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.hf-bar span {
    display: block;
    width: 78%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 10px;
    animation: growBar 1.6s ease forwards;
}

@keyframes growBar {
    from {
        width: 0%;
    }

    to {
        width: 78%;
    }
}

.hf-2 {
    top: 24%;
    right: 4%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 220px;
    animation-delay: 1.2s;
}

.hf-chat-icon {
    width: 42px;
    height: 42px;
    background: #fff6df;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hf-2 strong {
    font-size: 0.82rem;
    display: block;
}

.hf-2 p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}


/* ============================================
   MARQUEE STRIP — single row, attractive
   ============================================ */
.marquee-strip {
    background: var(--text-dark);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee-strip:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span {
    font-family: var(--header-font);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin: 0 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0.5rem 1.1rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.marquee-track span:hover {
    color: var(--text-dark);
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px) scale(1.04);
}

.marquee-track .mx {
    color: var(--accent);
    margin: 0 0.3rem;
    border: none;
    padding: 0;
    font-size: 1rem;
}

.marquee-track .mx:hover {
    background: none;
    color: var(--accent);
    transform: none;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.in-view,
.reveal-left.in-view,
.reveal-right.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   ABOUT SECTION — bento redesign
   ============================================ */
.about-section {
    background: #F9F9F9;
    padding: 5rem 0;
    position: relative;
}

.about-bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "photo intro intro"
        "photo edu exp"
        "photo stats stats";
    gap: 1.5rem;
}

.bento-card {
    background: white;
    border-radius: 22px;
    padding: 1.8rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.bento-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.09);
    transform: translateY(-4px);
}

.bento-photo {
    grid-area: photo;
    padding: 1.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    overflow: hidden;
}

.bento-logo-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: var(--text-dark);
    flex-shrink: 0;
}

.bento-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bento-photo:hover .bento-logo-img {
    transform: scale(1.04);
}

.bento-portrait {
    object-fit: contain;
    object-position: center top;
    background: radial-gradient(circle at 50% 30%, #3c3023 0%, #151515 62%, #090909 100%);
}

.brand-lockup {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
    background: linear-gradient(135deg, #151515 0%, #252525 100%);
}

.brand-monogram {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: var(--accent);
    color: var(--text-dark);
    font-family: var(--header-font);
    font-size: 2rem;
    font-weight: 900;
}

.brand-name {
    font-family: var(--header-font);
    font-size: 1.45rem;
    line-height: 0.95;
    letter-spacing: 0.08em;
    font-weight: 900;
}

.bento-photo-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bento-photo-contact-heading {
    margin-top: 1.4rem;
}

.about-logo-badge {
    position: absolute;
    top: -26px;
    right: -14px;
    width: 100px;
    height: 100px;
    z-index: 4;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2));
}

.rotating-logo {
    width: 100%;
    height: 100%;
    animation: spinLogo 16s linear infinite;
}

@keyframes spinLogo {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo-ring {
    fill: var(--text-dark);
}

.logo-text {
    fill: white;
    font-family: var(--header-font);
    font-weight: 700;
}

.logo-badge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
}

.work-card {
    background: var(--text-dark);
    padding: 1.1rem;
    border-radius: 18px;
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    bottom: -28px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.work-card:hover {
    transform: translateY(-4px);
}

.qr-sim {
    background: var(--accent);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.qr-sim i {
    font-size: 1.8rem;
    color: white;
}

.work-card h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.work-card p {
    font-size: 0.72rem;
    color: #ccc;
    margin: 0.15rem 0;
}

.bento-intro {
    grid-area: intro;
}

.quote-icon {
    font-size: 1.7rem;
    color: var(--accent);
}

.hello-large {
    font-family: var(--header-font);
    font-size: 2.4rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0.3rem 0 0.9rem;
}

.bio-text {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

.bento-stats {
    grid-area: stats;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--text-dark);
    padding: 1.8rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.bento-stats:before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(248, 180, 0, 0.18), transparent 70%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-item:not(:last-child):after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.12);
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(248, 180, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    color: var(--accent);
    font-size: 0.95rem;
}

.stat-number {
    font-family: var(--header-font);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bento-edu {
    grid-area: edu;
}

.bento-exp {
    grid-area: exp;
}

.bento-skills {
    grid-area: skills;
}

.bento-contact {
    grid-area: contact;
}

.bento-card h4 {
    font-family: var(--header-font);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.92rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bento-card h4 i {
    color: var(--accent);
    font-size: 0.85rem;
}

.exp-item,
.edu-item {
    margin-bottom: 1rem;
    padding-left: 0.9rem;
    border-left: 2px solid var(--accent);
}

.exp-item:last-child,
.edu-item:last-child {
    margin-bottom: 0;
}

.exp-item p:first-child,
.edu-item p:first-child {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.88rem;
}

.exp-item .meta,
.edu-item .meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.skill-icons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.skill-badge {
    background: #2c2c2c;
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-badge:hover {
    background: var(--accent);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.contact-small p {
    font-size: 0.82rem;
    margin: 0.45rem 0;
}

.contact-small i {
    width: 22px;
    color: var(--accent);
}

@media (max-width: 1000px) {
    .about-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "photo photo"
            "intro intro"
            "edu exp"
            "stats stats";
    }
}

@media (max-width: 680px) {
    .about-bento {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photo"
            "intro"
            "edu"
            "exp"
            "stats";
    }
}

/* ============================================
   PROJECTS SECTION  (this rule was missing — caused the
   squashed / no-gap look above & below Section 3)
   ============================================ */
.projects-section {
    padding: 5rem 0;
    background: var(--primary-bg);
    position: relative;
}

.projects-container {
    position: relative;
}

/* ============================================
   FINDER WINDOW — used for Projects & Certificates
   ============================================ */
.finder-window {
    background: #f7f7f7;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.finder-titlebar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.3rem;
    background: linear-gradient(180deg, #efefef, #e4e4e4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.mac-dots .dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #28c840;
}

.finder-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.finder-title i {
    color: var(--accent);
}

.finder-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: #999;
}

.finder-body {
    display: flex;
    min-height: 380px;
}

.finder-sidebar {
    width: 190px;
    flex-shrink: 0;
    background: #ececec;
    padding: 1.3rem 1rem;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.finder-sidebar-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin: 1.1rem 0 0.5rem;
    font-weight: 600;
}

.finder-sidebar-label:first-child {
    margin-top: 0;
}

.finder-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    cursor: default;
    transition: background 0.2s ease;
}

.finder-sidebar-item i {
    width: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.finder-sidebar-item.active {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

.finder-sidebar-item.active i {
    color: white;
}

.tag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.tag-dot-js {
    background: #f0db4f;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) inset;
}

.tag-dot-py {
    background: #3776ab;
}

.tag-dot-html {
    background: #e34f26;
}

.tag-dot-Pandas {
    background: #150458;
}

.tag-dot-mysql {
    background: #00758f;
}


.tag-dot-ibm {
    background: #052FAD;
}

.tag-dot-google {
    background: #0F9D58;
}

.tag-dot-aws {
    background: #FF9900;
}

.tag-dot-Canva {
    background: #f20684;
}

.finder-grid {
    flex: 1;
    padding: 1.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.6rem;
    align-content: start;
}

/* Folder / file tile */
.finder-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    padding: 0.8rem 0.4rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    user-select: none;
    opacity: 0;
    transform: translateY(16px);
}

.finder-tile.in-view {
    opacity: 1;
    transform: translateY(0);
}

.finder-tile:hover {
    background: rgba(248, 180, 0, 0.1);
    transform: translateY(-3px);
}

.finder-tile:active {
    transform: scale(0.96);
}

.finder-tile-icon {
    font-size: 2.6rem;
    color: var(--accent);
    position: relative;
    transition: transform 0.25s ease;
}

.finder-tile:hover .finder-tile-icon {
    transform: scale(1.08) rotate(-2deg);
}

.finder-tile-icon .badge-dot {
    position: absolute;
    top: -4px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.finder-tile-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    max-width: 110px;
}

@media (max-width: 700px) {
    .finder-sidebar {
        display: none;
    }
}

/* ============================================
   MODALS — MAC WINDOW STYLE (Projects + Certs)
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mac-modal {
    background: white;
    width: min(880px, 100%);
    max-height: 88vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), width 0.3s ease, height 0.3s ease, max-height 0.3s ease;
}

.modal-overlay.active .mac-modal {
    transform: scale(1) translateY(0);
}

.mac-modal.maximized {
    width: 96vw;
    max-height: 94vh;
}

.mac-modal.minimizing {
    transform: scale(0.15) translateY(400px);
    opacity: 0;
}

.mac-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1.2rem;
    background: #ececec;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.mac-dots .dot {
    cursor: pointer;
    transition: filter 0.2s ease;
}

.mac-dots .dot:hover {
    filter: brightness(0.85);
}

.mac-addressbar {
    flex: 1;
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mac-titlebar-spacer {
    width: 61px;
}

.mac-modal-body {
    overflow-y: auto;
    padding: 2.2rem;
}

.modal-project-title {
    font-family: var(--header-font);
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    line-height: 1.05;
}

.modal-project-title span {
    color: var(--accent);
}

.modal-project-desc {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}

.modal-tag {
    background: #f0f0f0;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    border: 1px solid transparent;
    transition: transform 0.2s ease;
}

.modal-tag:hover {
    transform: translateY(-2px);
}

/* Color-coded per technology */
.tag-js {
    background: rgba(240, 219, 79, 0.18);
    color: #8a6d00;
    border-color: rgba(191, 161, 0, 0.4);
}

.tag-html {
    background: rgba(227, 76, 38, 0.12);
    color: #c8431f;
    border-color: rgba(227, 76, 38, 0.35);
}

.tag-css {
    background: rgba(21, 114, 182, 0.12);
    color: #1572b6;
    border-color: rgba(21, 114, 182, 0.35);
}

.tag-python {
    background: rgba(55, 118, 171, 0.12);
    color: #3776ab;
    border-color: rgba(55, 118, 171, 0.35);
}

.tag-node {
    background: rgba(83, 166, 58, 0.12);
    color: #3c873a;
    border-color: rgba(83, 166, 58, 0.35);
}

.tag-mongo {
    background: rgba(71, 162, 72, 0.12);
    color: #2f8b3a;
    border-color: rgba(71, 162, 72, 0.35);
}

.tag-php {
    background: rgba(119, 123, 180, 0.16);
    color: #5b5fa8;
    border-color: rgba(119, 123, 180, 0.4);
}

.tag-mysql {
    background: rgba(0, 117, 143, 0.12);
    color: #00758f;
    border-color: rgba(0, 117, 143, 0.35);
}

.tag-chartjs {
    background: rgba(255, 99, 132, 0.15);
    color: #e34a68;
    border-color: rgba(255, 99, 132, 0.4);
}

.tag-pandas {
    background: rgba(21, 4, 88, 0.1);
    color: #150458;
    border-color: rgba(21, 4, 88, 0.3);
}

.tag-numpy {
    background: rgba(77, 171, 247, 0.15);
    color: #2f8fd6;
    border-color: rgba(77, 171, 247, 0.4);
}

.tag-sklearn {
    background: rgba(249, 115, 22, 0.15);
    color: #e0670e;
    border-color: rgba(249, 115, 22, 0.4);
}

.tag-ml {
    background: rgba(147, 51, 234, 0.12);
    color: #9333ea;
    border-color: rgba(147, 51, 234, 0.35);
}

.tag-storage {
    background: rgba(107, 114, 128, 0.15);
    color: #4b5563;
    border-color: rgba(107, 114, 128, 0.4);
}

.tag-default {
    background: #f0f0f0;
    color: var(--text-dark);
}

.modal-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.6rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.modal-btn-live {
    background: var(--accent);
    color: white;
}

.modal-btn-live:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
}

.modal-btn-code {
    background: var(--text-dark);
    color: white;
}

.modal-btn-code:hover {
    background: #000;
    transform: translateY(-3px);
}

.modal-btn-report {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.modal-btn-report:hover {
    background: var(--text-dark);
    color: white;
    transform: translateY(-3px);
}

.modal-screens-label {
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.modal-screens {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}

.modal-screens img {
    height: 220px;
    width: auto;
    max-width: 90%;
    object-fit: cover;
    border-radius: 12px;
    scroll-snap-align: start;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-screens::-webkit-scrollbar {
    height: 8px;
}

.modal-screens::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* Certificate modal specifics */
.mac-modal-cert .mac-modal-body {
    text-align: center;
}

.modal-cert-title {
    font-family: var(--header-font);
    font-weight: 900;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.modal-cert-org {
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.modal-cert-date {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.modal-cert-image {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.6rem;
    background: #f5f5f5;
}

body.modal-open {
    overflow: hidden;
}

/* ============================================
   SKILLS SECTION — compact & sleek
   ============================================ */
.skills-section {
    padding: 2.6rem 0 3rem;
    background: #F9F9F9;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    max-width: 860px;
    margin: 0 auto;
}

.skill-cloud-item {
    background: white;
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.86rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(16px) scale(0.92);
}

.skill-cloud-item.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill-cloud-item i {
    color: var(--accent);
    transition: var(--transition);
    font-size: 0.85rem;
}

.skill-cloud-item:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.06);
}

.skill-cloud-item:hover i {
    color: white;
}

/* ============================================
   CERTIFICATES SECTION
   ============================================ */
.certificates-section {
    padding: 5rem 0;
    background: var(--primary-bg);
}

/* Badge accents reused inside modal */
.certificate-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.certificate-badge.coursera {
    background: #2A73FF;
    color: white;
}

.certificate-badge.ibm {
    background: #052FAD;
    color: white;
}

.certificate-badge.google {
    background: #0F9D58;
    color: white;
}

.certificate-badge.aws {
    background: #FF9900;
    color: white;
}

/*  CONTACT SECTION - HORIZONTAL  */
.contact-section {
    padding: 5rem 0;
    background: #F9F9F9;
}

.contact-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-horizontal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    background: #f8f8f8;
    border-radius: 60px;
    transition: var(--transition);
    flex: 1;
    min-width: 220px;
    justify-content: center;
    cursor: pointer;
}

.contact-horizontal-item:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.contact-horizontal-item:hover i,
.contact-horizontal-item:hover .contact-label,
.contact-horizontal-item:hover a {
    color: white;
}

.contact-horizontal-item i {
    font-size: 1.8rem;
    color: var(--accent);
    transition: var(--transition);
}

.contact-horizontal-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.contact-horizontal-info a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.contact-horizontal-info a:hover {
    color: white;
}

/*  FOOTER  */
.footer {
    background: #1c1c1c;
    color: #ccc;
    padding: 1.5rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left p {
    font-size: 0.8rem;
    margin: 0;
}

.footer-center {
    display: flex;
    gap: 1.5rem;
}

.footer-center a {
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.footer-center a:hover {
    color: var(--accent);
}

.footer-right p {
    font-size: 0.8rem;
    margin: 0;
    color: #aaa;
}

/*  RESPONSIVE  */
@media (max-width: 1000px) {
    .giant-number {
        font-size: 8rem;
    }

    .contact-horizontal {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-horizontal-item {
        justify-content: flex-start;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .hf-1,
    .hf-2 {
        display: none;
    }

    .hero-action-row {
        flex-direction: column;
        align-items: center;
    }

    .hero-social-dock {
        justify-content: center;
    }

    .hero-photo-layer {
        width: clamp(260px, 50vw, 380px);
    }

    .hero-text-glow {
        height: 480px;
    }
}

@media (max-width: 680px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hello-large {
        font-size: 1.9rem;
    }

    .contact-horizontal-item {
        padding: 0.8rem 1rem;
    }

    .contact-horizontal-info a {
        font-size: 0.75rem;
    }

    .mac-modal-body {
        padding: 1.4rem;
    }

    .modal-overlay {
        padding: 0.8rem;
    }

    .finder-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 1rem;
        padding: 1.2rem;
    }

    .finder-tile-icon {
        font-size: 2.1rem;
    }
}

/* Toast animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Indonesian portfolio identity */
.modal-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 1rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(248, 180, 0, 0.14);
    color: #8a6300;
    border: 1px solid rgba(248, 180, 0, 0.4);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.project-showcase {
    min-height: 180px;
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: white;
    background:
        radial-gradient(circle at 85% 10%, rgba(248, 180, 0, 0.42), transparent 34%),
        linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

.project-showcase div {
    display: grid;
    gap: 0.55rem;
}

.project-showcase-label {
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    font-weight: 800;
}

.project-showcase strong {
    font-family: var(--header-font);
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    line-height: 1.05;
}

.project-showcase > i {
    color: var(--accent);
    font-size: clamp(2.2rem, 8vw, 4.6rem);
}

.learning-card {
    position: relative;
    overflow: hidden;
    margin-top: 1.6rem;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(145deg, #151515, #292929);
    color: white;
    border-top: 5px solid var(--learning-accent);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

.learning-card::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    background: var(--learning-accent);
    opacity: 0.14;
}

.learning-card-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    background: var(--learning-accent);
    font-size: 1.5rem;
}

.learning-card > span {
    color: var(--learning-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.learning-card p {
    max-width: 620px;
    margin: 0.8rem auto;
    line-height: 1.65;
}

.learning-card small {
    color: #aaa;
}

.floating-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: min(360px, calc(100vw - 32px));
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    color: white;
    background: rgba(24, 24, 24, 0.96);
    border-left: 4px solid var(--accent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    animation: slideInRight 0.3s ease;
}

.floating-toast > i {
    color: var(--accent);
}

.toast-close {
    border: 0;
    padding: 0;
    color: white;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
}

@media (max-width: 680px) {
    .project-showcase {
        min-height: 150px;
        padding: 1.35rem;
    }

    .brand-monogram {
        width: 62px;
        height: 62px;
        font-size: 1.6rem;
    }

    .brand-name {
        font-size: 1.15rem;
    }
}
