/* Yafet Portfolio - Landing Page Styles (v2) */
/* Fonts loaded in index.php: Bricolage Grotesque (headlines) + Figtree (body) */

/* Dark mode - matches admin panel neumorphic style */
/* --main-color and --gradient come from index.php (admin brand color) */
:root,
html[data-theme="dark"] {
    --bg-color: #0f172a;
    --second-bg-color: #1e293b;
    --text-color: #f1f5f9;
    --text-secondary: #94a3b8;
    --disabled-color: #334155;
    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neumorphic-shadow: 6px 6px 12px rgba(0, 0, 0, 0.4), -2px -2px 8px rgba(255, 255, 255, 0.03);
    --neumorphic-inset: inset 3px 3px 6px rgba(0, 0, 0, 0.3), inset -2px -2px 6px rgba(255, 255, 255, 0.02);
    --neumorphic-raised: 4px 4px 12px rgba(0, 0, 0, 0.35), -2px -2px 8px rgba(255, 255, 255, 0.04);
    --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
    --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
}
html[data-theme="light"],
[data-theme="light"] {
    --bg-color: #f8fafc;
    --second-bg-color: #e2e8f0;
    --text-color: #0f172a;
    --text-secondary: #475569;
    --disabled-color: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(203, 213, 225, 0.5);
    --neumorphic-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --neumorphic-inset: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    --neumorphic-raised: 0 8px 24px rgba(0, 0, 0, 0.12);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: var(--font-body);
}

h1, h2, h3, h4,
.heading,
.home h1,
.logo,
.typed-text,
[class$="-badge"],
.resume-section-label,
.resume-section-title,
.resume-modern-badge,
.contact-box h2,
.playground-title,
.testimonials-title,
.video-badge {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 11rem;
}
html { font-size: 62.5%; overflow-x: hidden; }
body { background: var(--bg-color); color: var(--text-color); overflow-x: hidden; }
section { min-height: 100vh; padding: 10rem 9% 2rem; }
.hidden { display: none !important; }

/* Navigation - High contrast for clarity */
header {
    position: fixed;
    top: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1200px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 1.2rem;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: top 0.3s ease, width 0.3s ease, padding 0.3s ease;
}
[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
header.sticky {
    top: 2rem;
    padding: 0.9rem 2rem;
}
.logo {
    font-size: 1.6rem;
    font-weight: 600;
    display: flex;
    gap: 0.9rem;
    align-items: center;
    letter-spacing: -0.02em;
    transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.9; }
.logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
}
.logo .brand-bold { font-weight: 700; color: var(--main-color); }
.logo .brand-regular { font-weight: 500; color: var(--text-color); opacity: 1; }
[data-theme="light"] .logo .brand-regular { color: #1e293b; }
.logo span#logoLetter { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }
nav.nav-desktop { display: flex; align-items: center; gap: 0.3rem; }
.nav-mobile-drawer { display: none; }
.nav-mobile-header { display: none; }
.nav-footer .nav-theme-label { display: none; }
.nav-footer {
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    background: transparent;
}
.nav-links { display: flex; align-items: center; gap: 0.3rem; }
nav a {
    font-size: 1.4rem;
    font-weight: 500;
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    border-radius: 0.8rem;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
}
nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
[data-theme="light"] nav a:hover { background: rgba(0, 0, 0, 0.04); }
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gradient);
    bottom: 0.2rem;
    left: 0;
    transition: width 0.25s ease;
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a.active { color: var(--main-color); font-weight: 600; }
[data-theme="light"] nav a { color: #475569; }
[data-theme="light"] nav a:hover { color: #0f172a; background: rgba(0, 0, 0, 0.06); }
[data-theme="light"] nav a.active { color: var(--main-color); }
nav a[href^="http"], nav a[href^="admin"] { color: #cbd5e1; }

.header-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.header-menu-btn i {
    font-size: 2.6rem;
    color: #fff;
    transition: color 0.2s ease;
}
.header-menu-btn:hover { background: rgba(255, 255, 255, 0.1); }
[data-theme="light"] .header-menu-btn i { color: #1e293b; }
[data-theme="light"] .header-menu-btn:hover { background: rgba(0, 0, 0, 0.06); }
.header-actions { display: none; }

.theme-toggle-container { display: flex; align-items: center; margin-left: 0.5rem; }
.theme-toggle-header { margin-left: 0; }
.theme-toggle {
    position: relative;
    width: 4.4rem;
    height: 2.4rem;
    border-radius: 1.2rem;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 .35rem;
    justify-content: space-between;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.theme-toggle i { font-size: 1.3rem; color: #94a3b8; z-index: 1; }
.theme-toggle .bx-sun { margin-left: .25rem; }
.theme-toggle .bx-moon { margin-right: .25rem; }
.toggle-ball {
    position: absolute;
    left: .35rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 2px 10px rgba(var(--main-color-rgb, 249, 115, 22), 0.4);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html[data-theme="light"] .toggle-ball { transform: translateX(0); }
html[data-theme="dark"] .toggle-ball { transform: translateX(2.1rem); }

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.home-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat;
    filter: blur(2px) brightness(0.55); transform: scale(1.02);
}
.home-bg-overlay {
    position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.5) 50%, rgba(30,41,59,0.4) 100%);
}
.home-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 5rem; width: 100%; }
.home:not(.has-hero-bg) { background: var(--bg-color); }
[data-theme="light"] .home-bg-overlay { background: linear-gradient(135deg, rgba(248,250,252,0.9) 0%, rgba(241,245,249,0.85) 50%, rgba(226,232,240,0.9) 100%); }
[data-theme="light"] .home-bg { filter: blur(2px) brightness(0.8); }
.home h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.typing-text { font-size: 3.2rem; color: var(--text-secondary); margin-bottom: 2rem; min-height: 4rem; }
.typed-text { color: var(--main-color); font-weight: 600; }
.home-detail p { font-size: 1.8rem; color: var(--text-secondary); margin-bottom: 3rem; max-width: 60rem; line-height: 1.8; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 3.2rem;
    border-radius: 1rem;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 600;
    background: var(--gradient);
    box-shadow: 0 5px 18px rgba(var(--main-color-rgb, 249, 115, 22), 0.35);
    cursor: pointer;
}
.btn-sci { display: flex; align-items: center; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.btn-resume {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 1.4rem 2.8rem; border-radius: 1rem; font-size: 1.5rem;
    font-weight: 600; cursor: pointer; background: transparent;
    border: 2px solid var(--main-color); color: var(--main-color);
    transition: all 0.25s ease;
}
.btn-resume:hover { background: var(--main-color); color: #fff; transform: translateY(-2px); }
.btn-resume i { font-size: 1.8rem; }
.sci { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.sci a, .footer-social a {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--main-color);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}
.sci a:hover, .footer-social a:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

.home-img { width: 32vw; height: 32vw; min-width: 350px; min-height: 350px; }
.img-box {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1.5rem); }
}
.img-item {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: .8rem solid var(--second-bg-color);
    box-shadow: 0 20px 30px rgba(var(--main-color-rgb, 249, 115, 22), 0.25);
    display: grid;
    place-items: center;
    position: relative;
}
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-item .hero-initials {
    font-size: 12rem;
    font-weight: 700;
    color: #fff;
    background: var(--gradient);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.img-item.has-image .hero-initials { display: none !important; }
.img-item.empty-photo {
    color: var(--text-secondary);
    font-size: 1.6rem;
    background: var(--second-bg-color);
}

.heading {
    font-size: 5.5rem;
    text-align: center;
    margin-bottom: 5rem;
    font-weight: 700;
    position: relative;
}
.heading span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.heading::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: .4rem;
    background: var(--gradient);
    border-radius: 2rem;
}

/* Bento Grid - Services */
.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
    grid-auto-flow: dense;
}
.services-container .services-box:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
.services-container .services-box:first-child .icon { min-height: 100px; }
.services-container .services-box:first-child .icon i { font-size: 6rem; }
.services-container .services-box:first-child .icon lottie-player,
.services-container .services-box:first-child .icon .lottie-icon { width: 100px; height: 100px; }
.services-container .services-box:first-child h3 { font-size: 2.8rem; }
.services-container .services-box:first-child p { font-size: 1.7rem; }
@media (max-width: 991px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-container .services-box:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
}
@media (max-width: 600px) {
    .services-container { grid-template-columns: 1fr; }
    .services-container .services-box:first-child { grid-column: span 1; }
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}
/* Glassmorphism - Cards */
.services-box, .video-card, .resume-item, .contact-detail, .portfolio-card, .portfolio-box, .certificate-item {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    box-shadow: var(--neumorphic-shadow);
}
/* 3D Tilt + Cursor Glow - Service Cards */
.services-box {
    padding: 3rem 2.5rem;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    overflow: hidden;
}
.services-box::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--main-color-rgb, 249, 115, 22), 0.22) 0%, transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    left: var(--glow-x, 50%);
    top: var(--glow-y, 50%);
    transform: translate(-50%, -50%);
    z-index: 0;
}
.services-box:hover::before { opacity: 1; }
.services-box .card-inner {
    position: relative;
    z-index: 1;
}
.services-box:hover {
    box-shadow: var(--neumorphic-raised), 0 0 40px rgba(var(--main-color-rgb, 249, 115, 22), 0.15);
    border-color: var(--main-color);
}
.services-box .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    min-height: 80px;
}
.services-box .icon i {
    font-size: 5rem;
    color: var(--main-color);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.services-box .icon .lottie-icon {
    width: 80px;
    height: 80px;
}
.services-box .icon lottie-player {
    --lottie-player-toolbar-height: 0px;
}
.services-box:hover .icon i,
.services-box:hover .icon .lottie-icon { transform: scale(1.1) rotateY(10deg); }
.services-box h3 { font-size: 2.4rem; margin: 0 0 0.5rem; }
.services-box p { font-size: 1.6rem; color: var(--text-secondary); line-height: 1.6; margin: 0; white-space: pre-line; }

.resume-container { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
.resume-sidebar-title {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.resume-sidebar-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.resume-intro-text {
    font-size: 1.45rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.resume-box h2 { font-size: 3rem; margin-bottom: 1.5rem; }
.resume-box p { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 2rem; }
.resume-btns { display: flex; flex-direction: column; gap: 0.75rem; }
.resume-btn {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.2rem 1.4rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}
.resume-btn:hover {
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.4);
    background: rgba(var(--main-color-rgb, 249, 115, 22), 0.06);
}
.resume-btn.active {
    border-color: var(--main-color);
    color: var(--main-color);
    background: rgba(var(--main-color-rgb, 249, 115, 22), 0.1);
}
.resume-detail { display: none; }
.resume-detail.active { display: block; }
.resume-detail .heading { text-align: left; margin-bottom: 3rem; }
.resume-detail .heading::after { left: 0; transform: none; }
.subheading { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 2rem; }
.resume-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 60rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Timeline layout - center spine with icons, alternating left/right cards */
.exp-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.exp-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--main-color) 0%, rgba(var(--main-color-rgb, 249, 115, 22), 0.5) 50%, rgba(var(--main-color-rgb, 249, 115, 22), 0.2) 100%);
    transform: translateX(-50%);
    border-radius: 3px;
    z-index: 0;
}
.exp-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 1.5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}
.exp-row-left .exp-card { grid-column: 1; }
.exp-row-left .exp-node-large { grid-column: 2; grid-row: 1; }
.exp-row-left .exp-spacer { grid-column: 3; }
.exp-row-right .exp-spacer { grid-column: 1; }
.exp-row-right .exp-node-large { grid-column: 2; grid-row: 1; }
.exp-row-right .exp-card { grid-column: 3; }
.exp-spacer { min-width: 0; }
.exp-node-large {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    justify-self: center;
    background: var(--main-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(var(--main-color-rgb, 249, 115, 22), 0.35);
}
.exp-node-large i { font-size: 1.8rem; }
[data-theme="light"] .exp-node-large {
    background: var(--main-color);
    box-shadow: 0 4px 16px rgba(var(--main-color-rgb, 249, 115, 22), 0.25);
}
.exp-card {
    padding: 2rem 2.2rem;
    background: var(--second-bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.exp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(var(--main-color-rgb, 249, 115, 22), 0.08);
}
[data-theme="light"] .exp-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .exp-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(var(--main-color-rgb, 249, 115, 22), 0.12);
}
.exp-card-top {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
.exp-card-logo-wrap {
    flex-shrink: 0;
}
.exp-card-logo,
.exp-card-initial {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    display: block;
}
.exp-card-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 2px 8px rgba(var(--main-color-rgb, 249, 115, 22), 0.25);
}
.exp-card-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.exp-card-company {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.exp-card-date {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--main-color);
    background: rgba(var(--main-color-rgb, 249, 115, 22), 0.12);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    white-space: nowrap;
    width: fit-content;
}
.exp-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.exp-card-desc {
    margin-top: 0.2rem;
}
.exp-card-desc p,
.exp-card-desc .desc-text {
    font-size: 1.4rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0;
}
.exp-card-desc .see-more-btn { margin-top: 0.5rem; }
.exp-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem 2rem;
    font-size: 1.5rem;
}

.resume-item { padding: 2rem; border-left: 3px solid var(--main-color); }
.resume-item-modern {
    padding: 1.8rem 2rem;
    border-left: none;
    border-radius: 1.2rem;
    background: var(--second-bg-color);
    border: 1px solid var(--glass-border);
    box-shadow: var(--neumorphic-shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.resume-item-modern:hover {
    transform: translateX(6px);
    box-shadow: var(--neumorphic-raised);
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.25);
}
.resume-item-date {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--main-color);
    background: rgba(var(--main-color-rgb, 249, 115, 22), 0.12);
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    margin-bottom: 0.8rem;
}
.year { font-size: 1.3rem; color: var(--main-color); font-weight: 600; }
.company { font-size: 1.35rem; color: var(--text-secondary); margin: .5rem 0; }
.resume-item h3 { font-size: 1.8rem; margin: .6rem 0; font-weight: 600; letter-spacing: -0.01em; }
.resume-item p { font-size: 1.4rem; margin: 0; }
.resume-item .desc-wrap { margin-top: 0.6rem; }
.resume-item .desc-wrap p { font-size: 1.35rem; line-height: 1.7; color: var(--text-secondary); }
.resume-detail.about .about-content { display: grid; gap: 1.4rem; }
.about-bio-card {
    background: linear-gradient(145deg, rgba(var(--main-color-rgb, 249, 115, 22), 0.16), rgba(56, 189, 248, 0.08));
    border: 1px solid rgba(var(--main-color-rgb, 249, 115, 22), 0.28);
    border-radius: 1.2rem;
    padding: 2rem;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.2);
}
.about-bio-card p {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.9;
    color: var(--text-color);
}
.about-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}
.about-meta-item {
    background: var(--second-bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.4rem;
    display: grid;
    gap: .6rem;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.18);
}
.about-meta-item .meta-top {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: var(--main-color);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: .2px;
    text-transform: uppercase;
}
.about-meta-item .meta-top i {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(var(--main-color-rgb, 249, 115, 22), 0.14);
    font-size: 1.45rem;
}
.about-meta-item .meta-value {
    font-size: 1.55rem;
    color: var(--text-color);
    line-height: 1.5;
    word-break: break-word;
}

.skills-container {
    display: grid;
    gap: 2.5rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.skills-container::-webkit-scrollbar { width: 8px; }
.skills-container::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 4px; }
.skills-container::-webkit-scrollbar-thumb { background: rgba(var(--main-color-rgb, 249, 115, 22), 0.4); border-radius: 4px; }
.skills-container::-webkit-scrollbar-thumb:hover { background: rgba(var(--main-color-rgb, 249, 115, 22), 0.6); }
.skill-category h3 { font-size: 2rem; margin-bottom: 1.2rem; color: var(--main-color); }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.2rem; }
.skill-card { background: var(--second-bg-color); border: 1px solid var(--glass-border); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--neumorphic-shadow); }
.skill-icon { width: 5rem; height: 5rem; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--main-color-rgb, 249, 115, 22), 0.1); color: var(--main-color); font-size: 2.2rem; margin-bottom: 1rem; }
.skill-card h4 { font-size: 1.4rem; margin-bottom: .2rem; }
.skill-card p { font-size: 1.2rem; color: var(--text-secondary); margin: 0 0 .8rem; }
.skill-progress { height: .9rem; border-radius: 2rem; background: var(--disabled-color); overflow: hidden; }
.skill-progress-bar { height: 100%; background: var(--gradient); border-radius: 2rem; }

/* Modern skills section */
.skill-category-modern { margin-bottom: 0.5rem; }
.skill-category-badge {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--main-color);
    background: linear-gradient(135deg, rgba(var(--main-color-rgb, 249, 115, 22), 0.08), rgba(var(--main-color-rgb, 249, 115, 22), 0.02));
    border: 1px solid rgba(var(--main-color-rgb, 249, 115, 22), 0.25);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}
.skill-card-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.8rem 1.2rem;
    border-radius: 1.2rem;
    background: var(--second-bg-color);
    border: 1px solid var(--glass-border);
    box-shadow: var(--neumorphic-shadow);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.skill-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--neumorphic-raised), 0 12px 28px rgba(var(--main-color-rgb, 249, 115, 22), 0.12);
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.3);
}
.skill-progress-ring {
    --pct: 0;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: conic-gradient(var(--main-color) calc(var(--pct) * 3.6deg), var(--disabled-color) 0);
    padding: 4px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.skill-progress-ring .skill-icon {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    background: var(--second-bg-color);
    font-size: 2rem;
}
.skill-card-modern h4 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}
.skill-level-badge {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
    font-weight: 500;
}
.skill-progress-modern {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--disabled-color);
    overflow: hidden;
}
.skill-progress-modern .skill-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.certificates-wrap { position: relative; }
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
@media (max-width: 900px) {
    .certificate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .certificate-grid { grid-template-columns: 1fr; }
}
.certificate-item {
    overflow: hidden;
    border-radius: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.certificate-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--neumorphic-raised);
}
.certificate-item.certificate-clickable { cursor: pointer; }
.certificate-item.certificate-clickable:hover .certificate-image { transform: scale(1.05); }
.certificate-image { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.certificate-info { padding: 1rem 1.2rem; }
.certificate-info h4 { font-size: 1.4rem; margin-bottom: .3rem; }
.certificate-info p { font-size: 1.2rem; color: var(--text-secondary); margin: 0; }
.certificate-view-hint { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 1.1rem; color: var(--main-color); margin-top: 0.5rem; opacity: 0.9; }
.certificate-view-hint i { font-size: 1.3rem; }

/* Certificates View More - Modern */
.certificates-view-more {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}
.certificates-view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--main-color);
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}
.certificates-view-more-btn:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--main-color-rgb, 249, 115, 22), 0.35);
}
.certificates-view-more-btn i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}
/* Certificates Modal - View All */
.certificates-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.certificates-modal.active {
    opacity: 1;
    visibility: visible;
}
.certificates-modal-inner {
    background: var(--second-bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.certificates-modal.active .certificates-modal-inner {
    transform: scale(1);
}
.certificates-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}
.certificates-modal-close:hover {
    background: rgba(0, 0, 0, 0.35);
}
.certificates-modal-title {
    padding: 1.8rem 2rem 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}
.certificates-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 2rem 2rem;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}
@media (max-width: 700px) {
    .certificates-modal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 450px) {
    .certificates-modal-grid { grid-template-columns: 1fr; }
}

.video-lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 10003; display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; visibility: hidden; transition: 0.3s;
}
.video-lightbox.active { opacity: 1; visibility: visible; }
.video-lightbox-content {
    max-width: 90vw; max-height: 90vh; position: relative;
}
.video-lightbox-close {
    position: absolute; top: -3rem; right: 0; background: rgba(255,255,255,0.2); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 2rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 1;
}
.video-lightbox-close:hover { background: rgba(255,255,255,0.3); }

.certificate-lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 10002; display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; visibility: hidden; transition: 0.3s;
}
.certificate-lightbox.active { opacity: 1; visibility: visible; }
.certificate-lightbox-content {
    max-width: 95vw; max-height: 95vh; display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.certificate-lightbox-content img {
    max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 0.8rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.certificate-lightbox-close {
    position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 2.2rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.certificate-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.certificate-lightbox-info { text-align: center; color: #fff; } .certificate-lightbox-info h4 { font-size: 1.8rem; margin: 0 0 0.4rem; } .certificate-lightbox-info p { font-size: 1.4rem; color: rgba(255,255,255,0.8); margin: 0; }

/* ===== ULTRA MODERN PORTFOLIO ===== */
.portfolio-ultra,
.portfolio-ultra-modern {
    position: relative;
    overflow: hidden;
}
.portfolio-ultra-modern::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 50%;
    height: 90%;
    background: radial-gradient(ellipse, rgba(var(--main-color-rgb, 249, 115, 22), 0.12) 0%, transparent 65%);
    pointer-events: none;
}
.portfolio-ultra-modern::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.08) 0%, transparent 65%);
    pointer-events: none;
}
.portfolio-ultra-header {
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
.portfolio-ultra-badge {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--main-color);
    margin-bottom: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--main-color-rgb, 249, 115, 22), 0.16), rgba(var(--main-color-rgb, 249, 115, 22), 0.06));
    border: 1px solid rgba(var(--main-color-rgb, 249, 115, 22), 0.28);
}
.portfolio-ultra-title {
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-color);
    margin: 0 0 0.5rem;
}
.portfolio-ultra-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.portfolio-ultra-sub {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 44rem;
    margin: 0 auto;
    line-height: 1.6;
}
.portfolio-ultra-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.portfolio-filter-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.portfolio-ultra-filter-btn {
    padding: 0.5rem 1.2rem;
    font-size: 1.15rem;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-ultra-filter-btn:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.3);
}
.portfolio-ultra-filter-btn.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(var(--main-color-rgb, 249, 115, 22), 0.35);
}
.portfolio-filter-select {
    padding: 0.9rem 2rem 0.9rem 1.2rem;
    font-size: 1.3rem;
    color: var(--text-color);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.6rem;
    padding-right: 3.2rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.portfolio-filter-select:focus {
    outline: none;
    border-color: var(--main-color);
}
.portfolio-ultra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
    position: relative;
    z-index: 1;
}
.portfolio-ultra-modern .portfolio-ultra-grid {
    grid-template-columns: repeat(3, 1fr);
}
.portfolio-ultra-modern .portfolio-ultra-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}
.portfolio-ultra-modern .portfolio-ultra-card:nth-child(1) .portfolio-ultra-media {
    aspect-ratio: 16/10;
}
.portfolio-ultra-modern .portfolio-ultra-card:nth-child(1) .portfolio-ultra-title-card { font-size: 1.8rem; }
.portfolio-ultra-modern .portfolio-ultra-card:nth-child(1) .portfolio-ultra-desc { font-size: 1.35rem; -webkit-line-clamp: 3; }
.portfolio-ultra-card {
    min-height: 0;
}
.portfolio-ultra-card-solo {
    max-width: 500px;
    margin: 0 auto;
}
.portfolio-ultra-card-solo.portfolio-ultra-card {
    grid-column: 1 / -1;
    grid-row: span 1;
}
.portfolio-ultra-modern .portfolio-ultra-card-solo.portfolio-ultra-card:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: span 1;
}
.portfolio-ultra-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.4rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.portfolio-ultra-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(var(--main-color-rgb, 249, 115, 22), 0.2), transparent 40%, transparent 60%, rgba(56, 189, 248, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.portfolio-ultra-card:hover .portfolio-ultra-inner {
    transform: translateY(-6px);
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(var(--main-color-rgb, 249, 115, 22), 0.1);
}
.portfolio-ultra-card:hover .portfolio-ultra-inner::before {
    opacity: 1;
}
.portfolio-ultra-media {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.portfolio-ultra-media:not(a) { cursor: default; }
.portfolio-ultra-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-ultra-card:hover .portfolio-ultra-img {
    transform: scale(1.08);
}
.portfolio-ultra-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, transparent 45%);
    pointer-events: none;
}
.portfolio-ultra-tag {
    position: absolute;
    bottom: 0.8rem;
    left: 0.8rem;
    padding: 0.35rem 0.8rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--main-color), color-mix(in srgb, var(--main-color) 85%, #fff));
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(var(--main-color-rgb, 249, 115, 22), 0.4);
}
.portfolio-ultra-content {
    padding: 1.2rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.portfolio-ultra-title-card {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.portfolio-ultra-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.8rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portfolio-ultra-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}
.portfolio-ultra-tech-tag {
    font-size: 1rem;
    padding: 0.25rem 0.6rem;
    border-radius: 0.4rem;
    background: rgba(var(--main-color-rgb, 249, 115, 22), 0.12);
    color: var(--main-color);
    border: 1px solid rgba(var(--main-color-rgb, 249, 115, 22), 0.25);
}
.portfolio-ultra-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.portfolio-ultra-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 0.6rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
}
.portfolio-ultra-btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--main-color-rgb, 249, 115, 22), 0.35);
}
.portfolio-ultra-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--main-color-rgb, 249, 115, 22), 0.45);
}
.portfolio-ultra-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.portfolio-ultra-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.4);
    color: var(--main-color);
}
.portfolio-ultra-card-empty .portfolio-ultra-content { justify-content: center; text-align: center; }

/* ===== HERO-STYLE PORTFOLIO (Modern) ===== */
.portfolio-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}
.portfolio-ultra-modern .portfolio-hero-grid {
    grid-template-columns: repeat(4, 1fr);
}
.portfolio-hero-card {
    min-height: 0;
}
.portfolio-hero-card-solo {
    max-width: 380px;
    margin: 0 auto;
}
.portfolio-hero-card-solo.portfolio-hero-card {
    grid-column: 1 / -1;
}
.portfolio-hero-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: var(--second-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-hero-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(var(--main-color-rgb, 249, 115, 22), 0.25), transparent 50%, rgba(56, 189, 248, 0.12));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.portfolio-hero-card:hover .portfolio-hero-inner {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(var(--main-color-rgb, 249, 115, 22), 0.2);
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.25);
}
.portfolio-hero-card:hover .portfolio-hero-inner::before {
    opacity: 1;
}
.portfolio-hero-media {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}
.portfolio-hero-img,
.portfolio-hero-media img.portfolio-hero-img,
.portfolio-hero-media .project-img-main {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-hero-media video.portfolio-hero-img {
    display: block;
    object-fit: contain !important;
}
.portfolio-hero-card:hover .portfolio-hero-img {
    transform: scale(1.06);
}
.portfolio-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 35%, transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.portfolio-hero-card:hover .portfolio-hero-overlay,
.portfolio-hero-card.portfolio-hero-reveal .portfolio-hero-overlay {
    opacity: 1;
}
.portfolio-hero-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 0.5rem;
    background: rgba(var(--main-color-rgb, 249, 115, 22), 0.9);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.portfolio-hero-card:hover .portfolio-hero-tag,
.portfolio-hero-card.portfolio-hero-reveal .portfolio-hero-tag {
    opacity: 1;
}
.portfolio-hero-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.portfolio-hero-play-overlay i {
    font-size: 4rem;
    color: var(--main-color);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.portfolio-hero-play-overlay span {
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.portfolio-hero-card-video .portfolio-hero-play-overlay {
    opacity: 1;
}
.portfolio-hero-card-video:hover .portfolio-hero-play-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}
.portfolio-hero-card-video .portfolio-hero-play-overlay i {
    transition: transform 0.3s ease;
}
.portfolio-hero-card-video:hover .portfolio-hero-play-overlay i {
    transform: scale(1.15);
}
.portfolio-hero-media-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.portfolio-hero-link-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--main-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 2;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(var(--main-color-rgb, 249, 115, 22), 0.45);
}
.portfolio-hero-card:hover .portfolio-hero-link-btn,
.portfolio-hero-card.portfolio-hero-reveal .portfolio-hero-link-btn {
    opacity: 1;
}
.portfolio-hero-link-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(var(--main-color-rgb, 249, 115, 22), 0.55);
}
.portfolio-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0.9rem 0.9rem;
    z-index: 2;
}
.portfolio-hero-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.portfolio-hero-card:hover .portfolio-hero-title,
.portfolio-hero-card.portfolio-hero-reveal .portfolio-hero-title {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.portfolio-hero-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.portfolio-hero-card:hover .portfolio-hero-desc,
.portfolio-hero-card:hover .portfolio-hero-footer,
.portfolio-hero-card.portfolio-hero-reveal .portfolio-hero-desc,
.portfolio-hero-card.portfolio-hero-reveal .portfolio-hero-footer {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}
.portfolio-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.5);
}
.portfolio-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.portfolio-hero-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}
.portfolio-hero-card-empty .portfolio-hero-content {
    position: relative;
    padding: 2rem;
    justify-content: center;
    text-align: center;
}
.portfolio-hero-card-empty .portfolio-hero-title,
.portfolio-hero-card-empty .portfolio-hero-desc,
.portfolio-hero-card-empty .portfolio-hero-content p { color: var(--text-color); opacity: 1; transform: none; }
.portfolio-hero-card-empty .portfolio-hero-desc,
.portfolio-hero-card-empty .portfolio-hero-content p { color: var(--text-secondary); }
.portfolio-hero-card-empty .portfolio-hero-footer { opacity: 1; transform: none; }
.portfolio-hero-card-empty .portfolio-hero-media { aspect-ratio: 4/5; }

/* Hero Portfolio - Responsive */
@media (max-width: 1200px) {
    .portfolio-ultra-modern .portfolio-hero-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .portfolio-ultra-modern .portfolio-hero-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
@media (max-width: 500px) {
    .portfolio-ultra-modern .portfolio-hero-grid,
    .portfolio-hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .portfolio-hero-content {
        padding: 1rem 0.9rem 0.9rem;
    }
    .portfolio-hero-title { font-size: 1.25rem; }
    .portfolio-hero-link-btn {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
}

/* Portfolio Ultra - Responsive */
@media (max-width: 991px) {
    .portfolio-ultra-modern .portfolio-ultra-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-ultra-modern .portfolio-ultra-card:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    .portfolio-ultra-modern .portfolio-ultra-card:nth-child(1) .portfolio-ultra-media {
        aspect-ratio: 16/9;
    }
    .portfolio-ultra-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}
@media (max-width: 600px) {
    .portfolio-ultra-modern .portfolio-ultra-grid,
    .portfolio-ultra-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .portfolio-ultra-modern .portfolio-ultra-card:nth-child(1) {
        grid-column: span 1;
    }
    .portfolio-ultra-filter-bar {
        gap: 0.8rem;
    }
    .portfolio-filter-cats {
        justify-content: center;
    }
    .portfolio-filter-select {
        width: 100%;
    }
    .portfolio-ultra-badge {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }
    .portfolio-ultra-title {
        font-size: clamp(2.2rem, 8vw, 2.8rem);
    }
}

/* Portfolio Showcase - mirrors ultra (client work: UI, web dev, graphics, etc.) */
.portfolio-showcase { position: relative; overflow: hidden; }
.portfolio-showcase::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(var(--main-color-rgb, 249, 115, 22), 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.portfolio-showcase-header {
    margin-bottom: 2rem;
    text-align: center;
}
.portfolio-showcase-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-color);
    margin: 0 0 0.3rem;
}
.portfolio-showcase-title span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.portfolio-showcase-sub {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto;
}
.portfolio-showcase-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.portfolio-showcase-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-showcase-filter-btn:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.08);
}
.portfolio-showcase-filter-btn.active {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}
.portfolio-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}
.portfolio-showcase-card {
    min-height: 0;
}
.portfolio-showcase-card-solo {
    max-width: 400px;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .portfolio-showcase-grid { grid-template-columns: 1fr; }
}
.portfolio-showcase-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.portfolio-showcase-card:hover .portfolio-showcase-inner {
    transform: translateY(-2px);
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.portfolio-showcase-media {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.portfolio-showcase-media:not(a) { cursor: default; }
.portfolio-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-showcase-card:hover .portfolio-showcase-img { transform: scale(1.05); }
.portfolio-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 50%);
    pointer-events: none;
}
.portfolio-showcase-tag {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    padding: 0.25rem 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 0.4rem;
    background: rgba(var(--main-color-rgb, 249, 115, 22), 0.9);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.portfolio-showcase-content {
    padding: 1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.portfolio-showcase-title-card {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-color);
    margin: 0 0 0.4rem;
    line-height: 1.3;
}
.portfolio-showcase-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.8rem;
    flex: 1;
}
.portfolio-showcase-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.portfolio-showcase-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    font-family: inherit;
}
.portfolio-showcase-btn-primary {
    background: var(--main-color);
    color: #fff;
}
.portfolio-showcase-btn-primary:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: inset 0 0 0 2px var(--main-color);
}
.portfolio-showcase-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.portfolio-showcase-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.4);
    color: var(--main-color);
}
.portfolio-showcase-card-empty .portfolio-showcase-content { justify-content: center; text-align: center; }
[data-theme="light"] .portfolio-showcase-inner {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .portfolio-showcase-card:hover .portfolio-showcase-inner {
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .portfolio-showcase-overlay {
    background: linear-gradient(to top, rgba(248, 250, 252, 0.9) 0%, transparent 50%);
}
[data-theme="light"] .portfolio-showcase-title { color: #0f172a; }
[data-theme="light"] .portfolio-showcase-title-card { color: #0f172a; }

.wireframe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    font-size: 1.05rem;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}
.wireframe-btn:hover { border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.4); color: var(--main-color); }

/* Testimonials - Speech Bubble / Review Style */
.testimonials-section {
    position: relative;
    overflow: hidden;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    inset: -15%;
    background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(245, 158, 11, 0.06) 0%, transparent 55%);
    pointer-events: none;
}
.testimonials-header { text-align: center; margin-bottom: 4rem; }
.testimonials-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-top: 0.8rem;
}
.testimonials-grid-modern {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
    align-items: start;
}
.testimonial-card {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    transition: transform 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-avatar-wrap {
    flex-shrink: 0;
    z-index: 2;
}
.testimonial-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .testimonial-avatar-img {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.testimonial-bubble {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.4rem;
    padding: 1.8rem 2rem;
    position: relative;
    margin-left: -24px;
    padding-left: 2.4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.testimonial-bubble::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 28px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 14px solid rgba(255, 255, 255, 0.95);
    filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.06));
}
[data-theme="dark"] .testimonial-bubble {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .testimonial-bubble::before {
    border-right-color: rgba(30, 41, 59, 0.9);
}
.testimonial-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.6rem;
}
.testimonial-quote-mark {
    position: absolute;
    top: 1rem;
    right: 1.4rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(245, 158, 11, 0.25);
    line-height: 1;
}
.testimonial-stars-gold {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 1rem;
}
.testimonial-stars-gold i {
    color: #f59e0b;
    font-size: 1.5rem;
}
.rating-num {
    margin-left: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f59e0b;
}
.testimonial-content {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0 0 1.2rem;
}
[data-theme="dark"] .testimonial-content { color: #e2e8f0; }
.read-more {
    color: var(--main-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 1.3rem;
}
.read-more:hover { text-decoration: underline; }
.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.testimonial-author strong {
    font-size: 1.45rem;
    color: var(--text-color);
}
[data-theme="dark"] .testimonial-author strong { color: #f1f5f9; }
.testimonial-handle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}
.testimonial-role {
    font-size: 1.2rem;
    color: var(--text-secondary);
}
.testimonial-summary {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.testimonial-summary .testimonial-summary-inner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.4rem;
    padding: 2rem;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
[data-theme="dark"] .testimonial-summary .testimonial-summary-inner {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
}
.testimonial-star-gold {
    font-size: 2.8rem;
    color: #f59e0b;
}
.testimonial-summary strong {
    font-size: 1.5rem;
    color: var(--text-color);
}
.testimonial-summary span {
    font-size: 1.3rem;
    color: var(--text-secondary);
}
.testimonial-avatar-top {
    flex-direction: column;
    align-items: center;
}
.testimonial-avatar-top .testimonial-avatar-wrap {
    margin-bottom: -20px;
    z-index: 2;
}
.testimonial-avatar-top .testimonial-bubble {
    margin-left: 0;
    margin-top: 0;
    padding-left: 2rem;
    text-align: center;
}
.testimonial-avatar-top .testimonial-bubble::before { display: none; }
.testimonial-avatar-top .testimonial-author { align-items: center; }
.testimonial-pill .testimonial-bubble {
    border-radius: 999px;
    padding: 1.4rem 2.2rem;
}
.testimonial-pill .testimonial-bubble::before {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
}
.testimonial-card { grid-column: span 4; }
.testimonial-featured { grid-column: span 6; }
.testimonial-summary { grid-column: span 3; }
@media (max-width: 900px) {
    .testimonial-card,
    .testimonial-featured,
    .testimonial-summary { grid-column: span 12; }
    .testimonial-bubble { margin-left: -16px; padding-left: 2rem; }
    .testimonial-avatar-img { width: 56px; height: 56px; }
}

/* Testimonials Modern Section */
.testimonials-modern { position: relative; }
.testimonials-modern::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(var(--main-color-rgb, 249, 115, 22), 0.03) 50%, transparent 100%);
    pointer-events: none;
}
.testimonials-badge {
    display: inline-block; padding: 0.4rem 1rem; font-size: 1.2rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--main-color), color-mix(in srgb, var(--main-color) 80%, #fff));
    color: #fff; border-radius: 2rem; margin-bottom: 1rem;
}
.testimonials-modern .testimonials-subtitle { font-size: 1.5rem; max-width: 36rem; margin: 0 auto; }
.testimonials-empty-msg {
    text-align: center; font-size: 1.5rem; color: var(--text-secondary);
    padding: 3rem 2rem; margin-top: 1rem;
}
.testimonial-summary-modern .testimonial-summary-inner {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
    border: 1px solid rgba(var(--main-color-rgb, 249, 115, 22), 0.2);
    box-shadow: 0 12px 48px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.02);
}
[data-theme="dark"] .testimonial-summary-modern .testimonial-summary-inner {
    background: linear-gradient(135deg, rgba(30,41,59,0.95), rgba(30,41,59,0.88));
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.3);
}
.summary-stars { font-size: 2rem; color: #f59e0b; margin-bottom: 0.4rem; }
.testimonial-summary-modern strong { font-size: 2.2rem; }
.testimonial-card-modern { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.testimonial-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.testimonial-quote-icon {
    position: absolute; top: 1rem; right: 1.2rem;
    font-size: 2.4rem; color: rgba(var(--main-color-rgb, 249, 115, 22), 0.2);
}
.testimonial-card-modern .testimonial-bubble { padding-top: 2.4rem; }

/* Testimonial Request Popup */
.testimonial-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.testimonial-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}
.testimonial-popup {
    background: var(--second-bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    max-width: 440px;
    width: 100%;
    padding: 2.6rem;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.05) inset;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.testimonial-popup::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit;
    padding: 1px; background: linear-gradient(135deg, var(--main-color), transparent 50%, var(--main-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0.4; pointer-events: none;
}
.testimonial-popup-overlay.active .testimonial-popup {
    transform: scale(1) translateY(0);
}
.testimonial-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 0.5rem;
}
.testimonial-popup-close:hover { color: var(--text-color); background: rgba(255,255,255,0.06); }
.testimonial-popup-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), color-mix(in srgb, var(--main-color) 80%, #fff));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    margin: 0 auto 1.2rem;
}
.testimonial-popup-content h3 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem;
    text-align: center;
    color: var(--text-color);
}
.testimonial-popup-content > p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 1.6rem;
}
.testimonial-rating-input {
    margin-bottom: 1.2rem;
}
.testimonial-rating-input span {
    display: block;
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}
.star-rating {
    display: flex;
    gap: 0.4rem;
    font-size: 2.2rem;
    color: #94a3b8;
    cursor: pointer;
}
.star-rating i { transition: color 0.2s, transform 0.2s; }
.star-rating i:hover { transform: scale(1.15); }
.star-rating i.active,
.star-rating i.filled { color: #f59e0b; }
.testimonial-avatar-upload { margin-bottom: 1rem; }
.avatar-file-input { display: none; }
.avatar-upload-label { display: block; cursor: pointer; }
.avatar-upload-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 1.2rem; font-size: 1.35rem;
    border: 2px dashed var(--glass-border); border-radius: 0.8rem;
    background: var(--glass-bg); color: var(--text-secondary);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.avatar-upload-btn:hover { border-color: var(--main-color); color: var(--main-color); background: rgba(var(--main-color-rgb, 249, 115, 22), 0.08); }
.avatar-upload-btn i { font-size: 1.6rem; }
.avatar-preview-wrap {
    position: relative; display: inline-block; margin-top: 0.8rem;
}
.avatar-preview-wrap img {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--main-color);
}
.avatar-remove-btn {
    position: absolute; top: -4px; right: -4px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #ef4444; color: #fff; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; padding: 0;
}
.testimonial-popup-content textarea,
.testimonial-popup-content input[type="text"],
.testimonial-popup-content input[type="email"],
.testimonial-popup-content input[type="url"] {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 0.8rem;
    background: var(--glass-bg);
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: inherit;
}
.testimonial-popup-content textarea:focus,
.testimonial-popup-content input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(var(--main-color-rgb, 249, 115, 22), 0.2);
}
.testimonial-submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--main-color), color-mix(in srgb, var(--main-color) 85%, #fff));
    color: #fff;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--main-color-rgb, 249, 115, 22), 0.4);
}
.testimonial-popup-hint {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem !important;
    opacity: 0.8;
}

.content-grid { grid-template-columns: repeat(auto-fit, minmax(31rem, 1fr)); gap: 2.2rem; }
.video-card {
    border-radius: 1.4rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--neumorphic-shadow);
    background: var(--second-bg-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(var(--main-color-rgb, 249, 115, 22), 0.2);
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.4);
}
.video-thumbnail { aspect-ratio: 16/9; position: relative; overflow: hidden; background: rgba(0,0,0,0.3); }
.video-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--main-color);
    background: rgba(255, 255, 255, 0.9);
}
.video-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .2px;
    background: rgba(2, 6, 23, 0.7);
    color: #fed7aa;
    border: 1px solid rgba(var(--main-color-rgb, 249, 115, 22), 0.35);
}
.video-info { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.video-info h3 { font-size: 1.9rem; margin-bottom: .8rem; line-height: 1.35; color: var(--text-color); font-weight: 600; }
.video-info p { font-size: 1.4rem; color: var(--text-secondary); margin-bottom: .9rem; line-height: 1.7; white-space: pre-line; }
.desc-wrap { position: relative; }
.desc-text.desc-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.see-more-btn {
    background: none;
    border: none;
    color: var(--main-color);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0;
    margin-top: 0.3rem;
    font-family: inherit;
}
.see-more-btn:hover { text-decoration: underline; }
.video-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; padding-top: 1rem; }
.video-meta .views-badge,
.video-meta .date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--main-color);
    background: rgba(var(--main-color-rgb, 249, 115, 22), 0.12);
    border: 1px solid rgba(var(--main-color-rgb, 249, 115, 22), 0.25);
}
.video-meta .views-badge i,
.video-meta .date-badge i { font-size: 1.3rem; }
.social-buttons { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1.2rem 2.4rem;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    font-size: 1.6rem;
}
.youtube-btn { background: #FF0000; }
.tiktok-btn { background: #000000; }

.contact-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(33rem, 1fr)); gap: 3rem; }
.contact-box h2 { font-size: 3rem; margin-bottom: 1.4rem; }
.contact-box .desc { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; }
.contact-detail { padding: 1.5rem; display: flex; gap: 1.4rem; align-items: center; margin-bottom: 1rem; }
.contact-detail i {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.1rem;
    color: var(--main-color);
    background: rgba(var(--main-color-rgb, 249, 115, 22), 0.08);
}
.detail p:first-child { font-size: 1.3rem; color: var(--text-secondary); margin-bottom: .2rem; }
.detail p:last-child { font-size: 1.5rem; }
.contact-link-tel, .contact-link-email {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-link-tel:hover, .contact-link-email:hover { color: var(--main-color); }
.input-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.field-box { margin-bottom: 1rem; }
input, textarea {
    width: 100%;
    padding: 1.2rem;
    border-radius: .8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-size: 1.45rem;
}
textarea { min-height: 14rem; resize: vertical; }
.notice { display: none; margin-top: .8rem; padding: .8rem 1rem; border-radius: .8rem; font-size: 1.3rem; }
.notice.ok { display: block; background: #eafaf0; border: 1px solid #b9e8c8; color: #0b6740; }
.notice.err { display: block; background: #fff0f0; border: 1px solid #f2c0c0; color: #8f1b1b; }

footer { padding: 5rem 9% 3rem; border-top: 1px solid var(--glass-border); background: var(--second-bg-color); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); gap: 2rem; margin-bottom: 2.3rem; }
.footer-col h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--main-color); }
.footer-col p, .footer-col a { font-size: 1.45rem; color: var(--text-secondary); margin-bottom: .7rem; display: block; }
.quick-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.6rem; }
.quick-links-col a { display: block; }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 1.8rem; text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.copyright { font-size: 1.3rem; color: var(--text-secondary); }

.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gradient);
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}
.back-to-top.active { opacity: 1; visibility: visible; }
.nav-overlay { display: none; }

/* Resume nav horizontal on tablets and smaller */
@media (max-width: 1200px) {
    .resume-btns {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.6rem;
        justify-content: center;
    }
    .resume-btn {
        width: auto !important;
        padding: 0.9rem 1.4rem;
        font-size: 1.35rem;
        flex-shrink: 0;
    }
}
/* Resume nav: horizontal scroll on small screens (no wrap, no overflow) */
@media (max-width: 991px) {
    .resume-container > .resume-box:first-child { min-width: 0; }
    .resume-btns {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        gap: 0.5rem;
        padding-bottom: 0.4rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        margin: 0 -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .resume-btns::-webkit-scrollbar { height: 4px; }
    .resume-btns::-webkit-scrollbar-track { background: var(--disabled-color); border-radius: 2px; }
    .resume-btns::-webkit-scrollbar-thumb { background: var(--main-color); border-radius: 2px; }
    .resume-btn { white-space: nowrap !important; }
}
@media (max-width: 991px) {
    html { font-size: 56%; }
    section { padding: 10rem 5% 2rem; }
    .heading { font-size: 4rem; margin-bottom: 3.5rem; }
    header { width: calc(100% - 2rem); top: 1rem; padding: 1rem 1.5rem; }
    .home-inner { flex-direction: column-reverse; text-align: center; gap: 2rem; }
    .home-detail { display: flex; flex-direction: column; align-items: center; }
    .home-img { width: 58vw; height: 58vw; min-width: 220px; min-height: 220px; }
    .content-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 2rem; }
    .contact-container { grid-template-columns: 1fr; }
    .resume-container { grid-template-columns: 1fr; gap: 2rem; }
    .exp-timeline::before { left: 28px; transform: none; }
    .exp-row { grid-template-columns: 48px 1fr; gap: 1.2rem; }
    .exp-row-left .exp-card,
    .exp-row-right .exp-card { grid-column: 2; }
    .exp-row-left .exp-node-large,
    .exp-row-right .exp-node-large { grid-column: 1; }
    .exp-row-left .exp-spacer,
    .exp-row-right .exp-spacer { display: none; }
    .exp-node-large { width: 48px; height: 48px; }
    .exp-node-large i { font-size: 1.7rem; }
    .resume-sidebar-title { font-size: 2.4rem; margin-bottom: 1rem; }
    .resume-intro-text { font-size: 1.35rem; margin-bottom: 1.5rem; }
    .resume-detail .heading { margin-bottom: 2rem; }
    .subheading { font-size: 1.4rem; margin-bottom: 1.5rem; }
    .btn-sci { justify-content: center; }
    nav { gap: 0; }
}
@media (max-width: 768px) {
    html { scroll-padding-top: 9rem; }
    .nav-overlay { display: block; }
    .header-menu-btn { display: flex; }
    .header-actions { display: flex; align-items: center; }
    .nav-footer-desktop { display: none; }
    nav.nav-desktop { display: none; }
    .nav-mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 85vw);
        max-width: 320px;
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 12px 0 48px rgba(0, 0, 0, 0.5);
        padding: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s ease, visibility 0.35s ease;
        z-index: 1001;
    }
    .nav-mobile-drawer.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }
    body.nav-open { overflow: hidden; }
    header {
        width: calc(100% - 1.6rem);
        top: 0.8rem;
        padding: 0.85rem 1.2rem;
        border-radius: 1.2rem;
        background: rgba(15, 23, 42, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.2);
        gap: 1rem;
    }
    [data-theme="light"] header {
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(0, 0, 0, 0.1);
    }
    header .logo { flex: 1; justify-content: center; min-width: 0; }
    header .logo img { width: 36px; height: 36px; }
    header #brandName { font-size: 1.5rem; }
    .nav-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.6rem 1.5rem 1.4rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(0, 0, 0, 0.15);
    }
    .nav-mobile-brand {
        font-size: 1.6rem;
        font-weight: 800;
        background: linear-gradient(135deg, var(--main-color), #fbbf24);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: -0.03em;
    }
    .nav-mobile-close {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        background: transparent;
        border: none;
        border-radius: 12px;
        color: #e2e8f0;
        font-size: 2rem;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
    }
    .nav-mobile-close:hover {
        background: rgba(var(--main-color-rgb, 249, 115, 22), 0.12);
        color: var(--main-color);
    }
    .nav-mobile-links {
        flex: 1;
        overflow-y: auto;
        padding: 1.2rem 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    .nav-mobile-links a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.2rem;
        border-radius: 14px;
        font-size: 1.5rem;
        font-weight: 600;
        color: #e2e8f0;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-mobile-links a i {
        font-size: 1.6rem;
        color: var(--main-color);
        opacity: 0.9;
        flex-shrink: 0;
    }
    .nav-mobile-links a:hover {
        background: rgba(var(--main-color-rgb, 249, 115, 22), 0.12);
        color: #fff;
        transform: translateX(4px);
    }
    .nav-mobile-links a:hover i {
        opacity: 1;
    }
    .nav-mobile-links a.active {
        background: rgba(var(--main-color-rgb, 249, 115, 22), 0.15);
        color: var(--main-color);
        font-weight: 600;
    }
    .nav-mobile-links a.active i {
        opacity: 1;
    }
    [data-theme="light"] .nav-mobile-drawer {
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border-right-color: rgba(0, 0, 0, 0.08);
    }
    [data-theme="light"] .nav-mobile-header {
        background: rgba(0, 0, 0, 0.03);
        border-bottom-color: rgba(0, 0, 0, 0.06);
    }
    [data-theme="light"] .nav-mobile-links a { color: #334155; }
    [data-theme="light"] .nav-mobile-links a:hover { background: rgba(var(--main-color-rgb, 249, 115, 22), 0.08); color: var(--main-color); }
    [data-theme="light"] .nav-mobile-close { color: #475569; }
    .nav-overlay {
        position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px); z-index: 1000;
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .nav-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
    .input-group { grid-template-columns: 1fr; }
    .about-meta-grid { grid-template-columns: 1fr; }
    .resume-btns {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        gap: 0.5rem;
        padding-bottom: 0.4rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .resume-btns::-webkit-scrollbar { height: 4px; }
    .resume-btns::-webkit-scrollbar-track { background: var(--disabled-color); border-radius: 2px; }
    .resume-btns::-webkit-scrollbar-thumb { background: var(--main-color); border-radius: 2px; }
    .resume-btn { white-space: nowrap; }
    section { padding: 9rem 5% 2rem; }
    section.resume,
    #resume { padding-left: 6%; padding-right: 6%; }
    .heading { font-size: 3.2rem; margin-bottom: 2.5rem; }
    .home-img { width: 55vw; height: 55vw; min-width: 200px; min-height: 200px; }
    .home-detail h1 { font-size: 2.8rem; }
    .typing-text { font-size: 2rem; }
    .home-detail p { font-size: 1.5rem; }
    .btn-sci { flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
    .btn, .btn-resume { padding: 0.8rem 1.6rem; font-size: 1.4rem; }
    .services-box { padding: 2rem 1.8rem; }
    .services-box .icon i { font-size: 4rem; }
    .services-box .icon .lottie-icon,
    .services-box .icon lottie-player { width: 64px; height: 64px; }
    .services-box h3 { font-size: 2rem; }
    .services-box p { font-size: 1.45rem; }
    .services-container .services-box:first-child .icon i { font-size: 5rem; }
    .services-container .services-box:first-child .icon .lottie-icon,
    .services-container .services-box:first-child .icon lottie-player { width: 80px; height: 80px; }
    .content-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .video-card .video-info { padding: 1.4rem; }
    .video-info h3 { font-size: 1.6rem; }
    .video-info p { font-size: 1.3rem; }
    .portfolio-ultra-sub { font-size: 1.35rem; padding: 0 1rem; }
    .playground-section,
    .timeline-section { padding: 6rem 5% 3rem; }
    .playground-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .playground-card-thumb { height: 180px; }
    .timeline-item { flex: 0 0 280px; padding: 1.5rem; }
    .contact-box h2 { font-size: 2.5rem; }
    .contact-box .desc { font-size: 1.4rem; }
    .contact-detail { padding: 1.2rem; }
    .ai-chat-panel { width: min(100%, 380px); max-height: 85vh; }
    .command-palette { min-width: min(100%, 340px); max-width: 95vw; }
    .case-study-content { padding: 2rem 1.5rem; max-height: 90vh; }
    .resume-container { gap: 1.5rem; }
    .resume-sidebar-title { font-size: 2.2rem; }
    .resume-intro-text { font-size: 1.3rem; margin-bottom: 1.2rem; }
    .resume-detail .heading { margin-bottom: 1.5rem; font-size: 2.2rem; }
    .subheading { font-size: 1.3rem; margin-bottom: 1.2rem; }
    .resume-list { gap: 1rem; max-height: none; padding-right: 0; }
    .exp-node-large { width: 48px; height: 48px; }
    .exp-node-large i { font-size: 1.7rem; }
    .exp-card { padding: 1.6rem 1.6rem; }
    .exp-card-logo, .exp-card-initial { width: 42px; height: 42px; }
    .exp-card-title { font-size: 1.6rem; }
    .resume-item-modern { padding: 1.4rem 1.5rem; }
    .resume-item h3 { font-size: 1.6rem; }
    .resume-item .desc-wrap p { font-size: 1.25rem; }
    .resume-item-date { font-size: 1.1rem; padding: 0.3rem 0.75rem; }
    .skills-container { gap: 1.5rem; }
    .skill-category-badge { font-size: 1.2rem; padding: 0.4rem 1rem; }
    .skill-grid { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
    .skill-card-modern { padding: 1.4rem 1rem; }
    .skill-progress-ring { width: 4.5rem; height: 4.5rem; }
    .skill-progress-ring .skill-icon { font-size: 1.6rem; }
    .skill-card-modern h4 { font-size: 1.25rem; }
    .skill-level-badge { font-size: 1rem; }
    .certificate-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .certificate-item .certificate-info { padding: 0.9rem 1rem; }
    .certificate-item .certificate-info h4 { font-size: 1.25rem; }
    .about-bio-card { padding: 1.5rem; }
    .about-bio-card p { font-size: 1.4rem; }
    .about-meta-grid { gap: 1rem; }
    .about-meta-item { padding: 1.2rem; }
    .about-meta-item .meta-value { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    html { scroll-padding-top: 7.5rem; }
    section { padding: 8rem 5% 1.5rem; }
    section.resume,
    #resume { padding-left: 6%; padding-right: 6%; }
    .heading { font-size: 2.6rem; margin-bottom: 2rem; }
    .heading::after { width: 5rem; }
    .home-img { width: 70vw; height: 70vw; min-width: 180px; min-height: 180px; }
    .home-detail h1 { font-size: 2.2rem; }
    .typing-text { font-size: 1.7rem; }
    .home-detail p { font-size: 1.35rem; }
    .btn-sci { gap: 0.6rem; }
    .btn, .btn-resume { padding: 0.7rem 1.2rem; font-size: 1.3rem; }
    .sci a { width: 3.6rem; height: 3.6rem; font-size: 1.6rem; }
    .services-box { padding: 1.6rem 1.4rem; }
    .services-box .icon i { font-size: 3.5rem; }
    .services-box .icon .lottie-icon,
    .services-box .icon lottie-player { width: 56px; height: 56px; }
    .services-box h3 { font-size: 1.8rem; }
    .services-box p { font-size: 1.35rem; }
    .services-container .services-box:first-child .icon i { font-size: 4.5rem; }
    .services-container .services-box:first-child .icon .lottie-icon,
    .services-container .services-box:first-child .icon lottie-player { width: 70px; height: 70px; }
    .services-container .services-box:first-child h3 { font-size: 2.2rem; }
    .services-container .services-box:first-child p { font-size: 1.5rem; }
    .portfolio-ultra-header { margin-bottom: 1.5rem; }
    .portfolio-ultra-title { font-size: 2.4rem; }
    .portfolio-ultra-sub { font-size: 1.2rem; padding: 0; }
    .portfolio-ultra-filter-bar { flex-direction: column; gap: 1rem; }
    .portfolio-filter-cats { justify-content: center; }
    .portfolio-filter-select { width: 100%; }
    .playground-section,
    .timeline-section { padding: 5rem 5% 2rem; }
    .playground-title { font-size: 2.4rem; }
    .playground-sub { font-size: 1.2rem; }
    .playground-card-title { font-size: 1.45rem; }
    .playground-card-desc { font-size: 1.2rem; }
    .timeline-item { flex: 0 0 260px; padding: 1.2rem; }
    .timeline-date { font-size: 1.2rem; }
    .timeline-company { font-size: 1.3rem; }
    .testimonials-header .heading { font-size: 2.4rem; }
    .testimonials-subtitle { font-size: 1.3rem; }
    .testimonial-card,
    .testimonial-featured { padding: 1.5rem; }
    .contact-box h2 { font-size: 2.2rem; }
    .contact-modern form .heading { font-size: 2.4rem; }
    .contact-box .desc { font-size: 1.3rem; }
    .contact-detail { padding: 1rem; flex-wrap: wrap; }
    .contact-detail i { width: 4rem; height: 4rem; font-size: 1.8rem; }
    .detail p:last-child { font-size: 1.4rem; }
    .social-btn { padding: 1rem 1.8rem; font-size: 1.4rem; }
    .ai-chat-toggle { left: auto; right: 1rem; bottom: 1rem; width: 48px; height: 48px; font-size: 2rem; }
    .ai-chat-panel { left: 0; right: 0; width: 100%; max-width: 100%; max-height: 90vh; border-radius: 1.2rem 1.2rem 0 0; bottom: 0; top: auto; }
    .command-palette { min-width: 0; width: calc(100% - 2rem); max-width: 95vw; padding: 1.2rem; }
    .case-study-modal { padding: 1rem; }
    .case-study-content { padding: 1.5rem 1.2rem; max-height: 85vh; }
    .certificates-modal-inner { max-width: 95vw; padding: 1.5rem; }
    .certificate-lightbox-content { padding: 1rem; }
    .certificate-lightbox img { max-height: 60vh; }
    .site-footer { padding: 3rem 5% 2rem; }
    .footer-grid { gap: 2rem; }
    .back-to-top { right: 1rem; bottom: 5rem; width: 44px; height: 44px; }
    .testimonials-grid-modern { gap: 1.2rem; }
    .testimonial-bubble { padding: 1.2rem 1rem; }
    .testimonial-avatar-img { width: 48px; height: 48px; }
    .testimonial-summary-modern strong { font-size: 1.8rem; }
    header {
        width: calc(100% - 1.2rem);
        top: 0.6rem;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    header .logo img { width: 32px; height: 32px; }
    header #brandName { font-size: 1.35rem; }
    .header-menu-btn { width: 40px; height: 40px; }
    .header-menu-btn i { font-size: 2.2rem; }
    .nav-mobile-drawer { width: min(300px, 90vw); }
    .nav-mobile-links a { font-size: 1.4rem; padding: 1rem 1.2rem; }
    /* Resume section - extra small screens */
    .resume-container { gap: 1.2rem; }
    .resume-sidebar-title { font-size: 2rem; margin-bottom: 0.8rem; }
    .resume-intro-text { font-size: 1.2rem; margin-bottom: 1rem; }
    .resume-detail .heading { margin-bottom: 1.2rem; font-size: 2rem; }
    .subheading { font-size: 1.2rem; margin-bottom: 1rem; }
    .resume-btns { gap: 0.5rem; padding: 0.4rem 0.5rem 0.4rem; }
    .resume-btn { font-size: 1.1rem; padding: 0.6rem 1rem; }
    .resume-list { gap: 0.8rem; }
    .exp-timeline { gap: 1.5rem; }
    .exp-row { grid-template-columns: 44px 1fr; gap: 1rem; }
    .exp-node-large { width: 44px; height: 44px; }
    .exp-node-large i { font-size: 1.5rem; }
    .exp-card { padding: 1.4rem 1.4rem; }
    .exp-card-logo, .exp-card-initial { width: 36px; height: 36px; }
    .exp-card-initial { font-size: 1.2rem; }
    .exp-card-title { font-size: 1.5rem; }
    .exp-card-date { font-size: 1.05rem; padding: 0.3rem 0.75rem; }
    .exp-card-desc p, .exp-card-desc .desc-text { font-size: 1.2rem; }
    .resume-item-modern { padding: 1.2rem 1.2rem; }
    .resume-item h3 { font-size: 1.5rem; }
    .resume-item .desc-wrap p { font-size: 1.2rem; }
    .resume-item-date { font-size: 1rem; padding: 0.25rem 0.6rem; }
    .skill-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .skill-card-modern { padding: 1.2rem 0.8rem; }
    .skill-progress-ring { width: 4rem; height: 4rem; }
    .skill-progress-ring .skill-icon { font-size: 1.5rem; }
    .skill-card-modern h4 { font-size: 1.15rem; }
    .certificate-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .certificate-item .certificate-info { padding: 0.8rem 0.9rem; }
    .certificate-item .certificate-info h4 { font-size: 1.15rem; }
    .about-bio-card { padding: 1.2rem; }
    .about-bio-card p { font-size: 1.3rem; }
    .about-meta-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .about-meta-item { padding: 1rem; }
    .about-meta-item .meta-value { font-size: 1.3rem; }
}

::selection { background: rgba(var(--main-color-rgb, 249, 115, 22), 0.3); color: #fff; }
body {
    background:
        radial-gradient(900px 500px at 10% -20%, rgba(var(--main-color-rgb, 249, 115, 22), 0.12), transparent 60%),
        radial-gradient(900px 550px at 90% -30%, rgba(56, 189, 248, 0.08), transparent 60%),
        var(--bg-color);
}
section {
    min-height: auto;
    padding: 10rem 9% 6rem;
    scroll-margin-top: 11rem;
}
.home {
    min-height: 100vh;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}
.home::before,
.home::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    pointer-events: none;
}
.home::before {
    right: -70px;
    top: 18%;
    background: rgba(var(--main-color-rgb, 249, 115, 22), 0.22);
    filter: blur(2px);
}
.home::after {
    left: -70px;
    bottom: 10%;
    background: rgba(14, 165, 233, 0.18);
}
header { box-shadow: var(--neumorphic-shadow); }
[data-theme="light"] header { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04); }
[data-theme="light"] .typing-text,
[data-theme="light"] .home-detail p { color: #334155; }
[data-theme="light"] .services-box,
[data-theme="light"] .video-card,
[data-theme="light"] .resume-item,
[data-theme="light"] .contact-detail,
[data-theme="light"] .portfolio-ultra-inner {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .portfolio-ultra-card:hover .portfolio-ultra-inner {
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .portfolio-ultra-overlay {
    background: linear-gradient(to top, rgba(248, 250, 252, 0.9) 0%, transparent 50%);
}
[data-theme="light"] .portfolio-ultra-title { color: #0f172a; }
[data-theme="light"] .portfolio-ultra-title-card { color: #0f172a; }
[data-theme="light"] .portfolio-filter-select {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .portfolio-ultra-filter-btn:not(.active) {
    background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .portfolio-ultra-filter-btn:not(.active):hover {
    background: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .portfolio-card,
[data-theme="light"] .portfolio-box,
[data-theme="light"] .certificate-item,
[data-theme="light"] .skill-card-modern,
[data-theme="light"] .skill-card,
[data-theme="light"] .about-meta-item,
[data-theme="light"] .resume-item-modern {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
}
[data-theme="light"] .resume-btn {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
[data-theme="light"] .contact-modern .contact-box,
[data-theme="light"] .contact-modern form,
[data-theme="light"] .playground-card,
[data-theme="light"] .playground-card-modern,
[data-theme="light"] .timeline-item,
.heading { letter-spacing: -0.02em; }
.services-box, .resume-item, .skill-card, .video-card, .contact-detail, .certificate-item, .portfolio-card, .portfolio-box {
    box-shadow: var(--neumorphic-shadow);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.services-box:hover, .resume-item:hover, .skill-card:hover, .video-card:hover, .portfolio-card:hover, .portfolio-box:hover, .certificate-item:hover {
    box-shadow: var(--neumorphic-raised);
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.45);
}
.resume-item:hover:not(.resume-item-modern), .skill-card:hover, .video-card:hover, .portfolio-card:hover, .portfolio-box:hover, .certificate-item:hover {
    transform: translateY(-8px);
}
/* Portfolio & skill cards - subtle 3D tilt on hover */
.portfolio-card, .portfolio-box, .skill-card, .playground-card, .playground-card-modern, .timeline-item {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}
.btn { border-radius: 1.2rem; position: relative; overflow: hidden; }
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.18), transparent 45%);
    opacity: 0;
    transition: opacity .2s ease;
}
.btn:hover::after { opacity: 1; }
.portfolio-layer {
    backdrop-filter: blur(2px);
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.15));
}
.video-card { overflow: hidden; }
.video-thumbnail img { transition: transform .4s ease; }
.video-card:hover .video-thumbnail img { transform: scale(1.05); }
input:focus, textarea:focus {
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.65);
    box-shadow: 0 0 0 4px rgba(var(--main-color-rgb, 249, 115, 22), 0.16);
}
footer {
    background: var(--second-bg-color);
}
.back-to-top { box-shadow: 0 10px 25px rgba(var(--main-color-rgb, 249, 115, 22), 0.4); }
.back-to-top:hover { transform: translateY(-6px) scale(1.05); }

.contact-modern .contact-container { grid-template-columns: 1fr 1.1fr; gap: 2.2rem; }
.contact-modern .contact-box {
    background: var(--second-bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 1.3rem;
    padding: 2rem;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.22);
}
.contact-modern .contact-box .desc { margin-bottom: 2.4rem; }
.contact-modern .contact-detail {
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: var(--glass-bg);
    margin-bottom: 1.2rem;
    transition: transform .25s ease, border-color .25s ease;
}
.contact-modern .contact-detail:hover {
    transform: translateX(6px);
    border-color: rgba(var(--main-color-rgb, 249, 115, 22), 0.45);
}
.contact-modern form {
    background: var(--second-bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    padding: 2rem;
}
.contact-modern form .heading { text-align: left; font-size: 3.2rem; margin-bottom: 1.8rem; }
.contact-modern form .heading::after { left: 0; transform: none; width: 6rem; }
.contact-modern form .btn { width: 100%; justify-content: center; margin-top: .6rem; }

.site-footer {
    background: #e8edf5 !important;
    border-top: 1px solid #d8deea;
    padding: 4.6rem 9% 2.8rem;
}
.site-footer .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    margin-bottom: 3.4rem;
}
.site-footer .footer-col h3 { color: var(--main-color); font-size: 2.2rem; margin-bottom: 1.4rem; }
.site-footer .footer-col p, .site-footer .footer-col a { color: #4b5563; font-size: 1.5rem; margin-bottom: .8rem; }
.site-footer .quick-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.6rem; }
.site-footer .quick-links-col a { display: block; margin-bottom: .8rem; }
.site-footer .footer-col a:hover { color: var(--main-color); }
.site-footer .footer-bottom { border-top: 1px solid #d2d9e6; padding-top: 2rem; }
.site-footer .footer-social a {
    width: 3.8rem;
    height: 3.8rem;
    background: #fff;
    color: var(--main-color);
    border: 1px solid #dbe2ef;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}
.site-footer .footer-social a:hover { background: var(--main-color); color: #fff; }
.site-footer .copyright { color: #6b7280; font-size: 1.35rem; }
.footer-feedback-btn {
    display: inline-flex; align-items: center; gap: 0.6rem; margin: 1rem 0;
    padding: 0.8rem 1.6rem; font-size: 1.4rem; font-weight: 500;
    background: var(--gradient); color: #fff; border: none; border-radius: 2rem;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(var(--main-color-rgb, 249, 115, 22), 0.3);
}
.footer-feedback-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(var(--main-color-rgb, 249, 115, 22), 0.4); }
.footer-feedback-btn i { font-size: 1.6rem; }
.footer-feedback-thanks {
    display: none; margin: 1rem 0; font-size: 1.4rem; color: var(--main-color);
}
.footer-feedback-thanks i { margin-right: 0.4rem; vertical-align: middle; }
@media (max-width: 991px) {
    .contact-modern .contact-container { grid-template-columns: 1fr; }
    .site-footer .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .site-footer .footer-quick-links .quick-links-grid { width: fit-content; margin-left: auto; margin-right: auto; }
}

/* New Features */
.reading-progress {
    position: fixed; top: 0; left: 0; height: 4px; background: var(--gradient); z-index: 9999; width: 0%; transition: width 0.1s ease;
}
.command-palette {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--second-bg-color); border: 1px solid var(--glass-border); border-radius: 1.2rem; padding: 1.5rem; z-index: 10000; display: none; min-width: 400px; box-shadow: var(--neumorphic-shadow);
}
.command-palette.active { display: block; }
.command-palette input { width: 100%; padding: 1rem 1.2rem; font-size: 1.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 0.8rem; color: var(--text-color); margin-bottom: 1rem; }
.command-item { padding: 0.8rem 1rem; cursor: pointer; border-radius: 0.6rem; font-size: 1.4rem; }
.command-item:hover { background: var(--glass-bg); }
.case-study-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; visibility: hidden; transition: 0.3s;
}
.case-study-modal.active { opacity: 1; visibility: visible; }
.case-study-content {
    background: var(--second-bg-color); border: 1px solid var(--glass-border); border-radius: 1.2rem; padding: 3rem; max-width: 720px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--neumorphic-shadow);
}
.case-study-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-color); font-size: 2.4rem; cursor: pointer; }
.case-study-content h3 { font-size: 2.2rem; margin-bottom: 1.5rem; }
.case-study-content h4 { font-size: 1.6rem; margin: 1.5rem 0 0.5rem; color: var(--main-color); }
.case-study-media-wrap { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.case-study-media { width: 100%; }
.case-study-video-wrap { width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.case-study-video-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.2rem; background: var(--main-color); color: #fff; border-radius: 0.8rem; text-decoration: none; font-weight: 600; transition: opacity 0.2s; }
.case-study-video-link:hover { color: #fff; opacity: 0.9; }
.case-study-video-fallback { display: inline-block; margin-top: 0.8rem; font-size: 1.3rem; color: var(--main-color); text-decoration: none; }
.case-study-video-fallback:hover { text-decoration: underline; }
.case-study-desc { margin-bottom: 1.5rem; line-height: 1.6; }

/* Full Resume Modal - Ultra Modern */
.resume-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 10002; display: flex; align-items: center; justify-content: center;
    padding: 2rem; opacity: 0; visibility: hidden; transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0.35s;
}
.resume-modal-overlay.active {
    opacity: 1; visibility: visible;
}
.resume-modal-overlay.active .resume-modal {
    transform: scale(1);
    opacity: 1;
}
.resume-modal {
    background: #030306; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px; max-width: 960px; width: 100%; max-height: 94vh;
    display: flex; flex-direction: column; position: relative;
    box-shadow: 0 50px 120px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
    overflow: hidden;
    transform: scale(0.96); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.35s ease;
}
.resume-modal-header {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.5rem; background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    flex-shrink: 0;
}
.resume-modal-actions {
    display: flex; justify-content: flex-end; gap: 1rem; flex-wrap: wrap; flex: 1;
}
.resume-modal-close {
    flex-shrink: 0;
    background: #f1f5f9; border: 1px solid #e2e8f0;
    color: #64748b; font-size: 1.8rem; cursor: pointer; padding: 0.5rem;
    border-radius: 12px; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.2s, color 0.2s;
}
.resume-modal-close:hover {
    background: #e2e8f0; transform: scale(1.05); color: #334155;
}
.btn-download-pdf, .btn-print {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.9rem 1.8rem; font-size: 1.35rem; font-weight: 600;
    border: none; border-radius: 14px; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.btn-download-pdf::after,
.btn-print::after { display: none !important; }
.btn-download-pdf {
    background: var(--gradient); color: #fff;
    box-shadow: 0 4px 16px rgba(var(--main-color-rgb, 249, 115, 22), 0.35);
}
.btn-download-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--main-color-rgb, 249, 115, 22), 0.45);
}
.btn-download-pdf i { font-size: 1.4rem; }
.btn-print {
    background: #f1f5f9; color: #334155;
    border: 1px solid #e2e8f0;
}
.btn-print:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}
.btn-print i { font-size: 1.4rem; }
.resume-modal-content {
    overflow-y: auto; padding: 0; flex: 1; background: #0a0a0f;
}
.resume-modal-content::-webkit-scrollbar { width: 8px; }
.resume-modal-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 4px; }
.resume-modal-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* Ultra Modern Resume Layout */
.resume-ultramodern { font-size: 1.4rem; line-height: 1.6; }
.resume-header-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem 2.5rem;
    border-bottom: 4px solid var(--main-color);
}
.resume-header-inner {
    display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.resume-avatar-wrap { flex-shrink: 0; }
.resume-avatar {
    width: 100px; height: 100px; border-radius: 50%;
    object-fit: cover; border: 4px solid var(--main-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.resume-header-text { flex: 1; min-width: 180px; }
.resume-header-text .resume-name {
    font-size: 2.8rem; font-weight: 800; margin: 0 0 0.2rem;
    color: #fff; letter-spacing: -0.03em;
}
.resume-header-text .resume-role {
    font-size: 1.5rem; color: var(--main-color); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.resume-body { display: flex; min-height: 400px; }
.resume-sidebar {
    width: 300px; min-width: 260px; background: #1e293b;
    color: #f1f5f9; padding: 2rem 1.8rem;
}
.resume-sidebar-section { margin-bottom: 2rem; }
.resume-sidebar-section:last-child { margin-bottom: 0; }
.resume-sidebar-title {
    font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--main-color); margin: 0 0 1rem;
    display: flex; align-items: center; gap: 0.6rem;
}
.resume-contact-item {
    display: flex; align-items: center; gap: 0.6rem; font-size: 1.25rem;
    color: #94a3b8; margin: 0 0 0.6rem; line-height: 1.5;
}
.resume-contact-item i { font-size: 1.4rem; color: var(--main-color); flex-shrink: 0; }
.resume-bio { font-size: 1.3rem; color: #cbd5e1; margin: 0; line-height: 1.65; }
.resume-skills-list { display: flex; flex-direction: column; gap: 0.8rem; }
.resume-skill-row { display: flex; flex-direction: column; gap: 0.3rem; }
.resume-skill-name { font-size: 1.2rem; color: #e2e8f0; }
.resume-skill-bar {
    height: 6px; background: rgba(255,255,255,0.1); border-radius: 999px;
    overflow: hidden;
}
.resume-skill-fill {
    height: 100%; background: var(--gradient); border-radius: 999px;
    transition: width 0.6s ease;
}

.resume-main {
    flex: 1; padding: 2.5rem 3rem; background: #f8fafc; color: #1e293b;
}
.resume-section { margin-bottom: 2.5rem; }
.resume-section:last-child { margin-bottom: 0; }
.resume-section-title {
    font-size: 1.6rem; font-weight: 700; margin: 0 0 1.5rem;
    color: #0f172a; display: flex; align-items: center; gap: 0.8rem;
}
.resume-section-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--main-color); flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(var(--main-color-rgb, 249, 115, 22), 0.2);
}

/* Timeline layout */
.resume-timeline .resume-timeline-track {
    position: relative; padding-left: 2rem;
    border-left: 2px solid #e2e8f0; margin-left: 5px;
}
.resume-timeline-item {
    position: relative; padding-bottom: 1.8rem;
}
.resume-timeline-item:last-child { padding-bottom: 0; }
.resume-timeline-item::before {
    content: ''; position: absolute; left: -2.5rem; top: 0.4rem;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--main-color); border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--main-color);
}
.resume-timeline-date {
    font-size: 1.15rem; font-weight: 700; color: var(--main-color);
    margin-bottom: 0.4rem; display: block;
}
.resume-timeline-content h3 {
    font-size: 1.5rem; font-weight: 700; margin: 0 0 0.2rem;
    color: #0f172a;
}
.resume-timeline-content .resume-company {
    font-size: 1.25rem; color: #64748b; margin: 0 0 0.5rem;
}
.resume-timeline-content .resume-desc {
    font-size: 1.35rem; color: #475569; line-height: 1.65; margin: 0;
}
.resume-card {
    padding: 1.2rem 0; border-bottom: 1px solid #e2e8f0;
}
.resume-card:last-child { border-bottom: none; }
.resume-card h3 { font-size: 1.45rem; margin: 0 0 0.2rem; color: #0f172a; font-weight: 600; }
.resume-card .resume-company { font-size: 1.2rem; color: #64748b; margin: 0; }

/* Legacy resume-ultra (fallback) */
.resume-ultra { display: flex; min-height: 100%; font-size: 1.45rem; line-height: 1.65; }
.resume-ultra .resume-sidebar { width: 280px; background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); }
.resume-ultra .resume-sidebar-accent { position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gradient); }
.resume-skills-grid { display: flex; flex-wrap: wrap; gap: 1rem; }
.resume-skill-card { padding: 1rem 1.4rem; background: #f8fafc; border-radius: 0.8rem; border: 1px solid #e2e8f0; flex: 1; min-width: 180px; }
.resume-skill-card h4 { font-size: 1.2rem; margin: 0 0 0.5rem; color: #0f172a; font-weight: 600; }
.resume-skill-card p { font-size: 1.25rem; color: #64748b; margin: 0; line-height: 1.5; }

[data-theme="dark"] .resume-modal-content { background: var(--second-bg-color); }
[data-theme="dark"] .resume-modal { background: var(--second-bg-color); }
[data-theme="dark"] .resume-main { background: #1e293b; color: var(--text-color); }
[data-theme="dark"] .resume-section-title { color: var(--text-color); }
[data-theme="dark"] .resume-timeline-content h3,
[data-theme="dark"] .resume-card h3 { color: var(--text-color); }
[data-theme="dark"] .resume-timeline-content .resume-company,
[data-theme="dark"] .resume-timeline-content .resume-desc,
[data-theme="dark"] .resume-card .resume-company { color: var(--text-secondary); }
[data-theme="dark"] .resume-timeline .resume-timeline-track { border-color: var(--glass-border); }
[data-theme="dark"] .resume-card { border-color: var(--glass-border); }

@media (max-width: 768px) {
    .resume-body { flex-direction: column; }
    .resume-sidebar { width: 100%; padding: 1.8rem; }
    .resume-header-inner { flex-direction: column; text-align: center; }
    .resume-header-text .resume-name { font-size: 2.2rem; }
    .resume-main { padding: 1.8rem 1.5rem; }
    .resume-timeline .resume-timeline-track { padding-left: 1.6rem; margin-left: 3px; }
    .resume-timeline-item::before { left: -2.1rem; width: 8px; height: 8px; }
}

/* ========== Resume Cards - Ultra Modern Two-Column Layout ========== */
.resume-full.resume-cards {
    background: #030306; font-family: var(--font-body);
    font-size: 1.35rem; line-height: 1.7; color: #e2e8f0; min-height: 100%;
    position: relative; overflow: hidden;
    animation: resumeFadeIn 0.5s ease forwards;
}
@keyframes resumeFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.resume-full.resume-cards::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 100% 80% at 0% 0%, rgba(249,115,22,0.12), transparent 60%),
                radial-gradient(ellipse 70% 50% at 100% 50%, rgba(249,115,22,0.06), transparent 50%);
    opacity: 1;
}

/* Two-column grid */
.resume-grid {
    display: grid; grid-template-columns: 280px 1fr; min-height: 100%;
}
.resume-sidebar {
    background: linear-gradient(180deg, #0c0e14 0%, #080a0e 100%);
    border-right: 1px solid rgba(249,115,22,0.15);
    padding: 2.5rem 1.8rem; position: relative;
}
.resume-sidebar::after {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(180deg, #f97316, #ea580c, transparent);
    opacity: 0.8;
}
.resume-sidebar-inner { position: relative; z-index: 1; }
.resume-photo-ring {
    width: 120px; height: 120px; margin: 0 auto 1.5rem;
    padding: 5px; border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c, #c2410c);
    box-shadow: 0 0 40px rgba(249,115,22,0.4), 0 8px 24px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
.resume-photo-ring:hover { transform: scale(1.03); }
.resume-photo-ring .resume-avatar {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.resume-name {
    font-size: 2rem; font-weight: 800; margin: 0 0 0.3rem; color: #fff;
    letter-spacing: -0.03em; line-height: 1.15; text-align: center;
}
.resume-title {
    font-size: 1rem; font-weight: 600; color: var(--main-color);
    text-transform: uppercase; letter-spacing: 0.18em; margin: 0 0 1.5rem;
    text-align: center;
}
.resume-contact { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.5rem; }
.resume-contact-item {
    display: flex; align-items: center; gap: 0.7rem; font-size: 1.15rem;
    color: #94a3b8; text-decoration: none; transition: color 0.2s;
}
.resume-contact-item:hover { color: #f97316; }
.resume-contact-item i { font-size: 1.4rem; color: var(--main-color); flex-shrink: 0; }
.resume-socials {
    display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 1.8rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.resume-social-link {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.2);
    border-radius: 12px; color: #f97316; font-size: 1.4rem;
    transition: background 0.2s, transform 0.2s;
}
.resume-social-link:hover {
    background: rgba(249,115,22,0.25); transform: translateY(-2px);
}
.resume-social-link:active,
.resume-photo-ring:active { transform: scale(0.98); }
.resume-sidebar-label {
    font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--main-color); margin: 0 0 1rem;
}
.resume-skill-rings {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem;
}
.resume-skill-ring {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    transition: transform 0.2s ease;
}
.resume-skill-ring:hover { transform: scale(1.05); }
.resume-ring-ring {
    width: 64px; height: 64px; position: relative;
}
.resume-ring-ring svg {
    width: 100%; height: 100%; transform: rotate(-90deg);
}
.resume-ring-bg {
    fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 3;
}
.resume-ring-fill {
    fill: none; stroke: url(#resumeGrad); stroke-width: 3; stroke-linecap: round;
    transition: stroke-dasharray 0.8s ease;
}
.resume-ring-ring svg { filter: drop-shadow(0 0 8px rgba(249,115,22,0.3)); }
.resume-ring-label {
    font-size: 1rem; color: #cbd5e1; font-weight: 500; text-align: center;
    line-height: 1.2;
}

/* Main content */
.resume-main {
    padding: 2.5rem 2.5rem 2.5rem 2rem; overflow-y: auto;
    background: linear-gradient(180deg, rgba(8,10,14,0.5) 0%, #030306 100%);
}
.resume-about {
    margin-bottom: 2rem; padding: 1.5rem 1.8rem;
    background: rgba(15,23,42,0.4); border: 1px solid rgba(255,255,255,0.04);
    border-radius: 1rem; border-left: 4px solid var(--main-color);
}
.resume-bio {
    font-size: 1.3rem; color: #94a3b8; margin: 0; line-height: 1.7;
}
.resume-bio strong { color: #f1f5f9; font-weight: 600; }
.resume-section-label {
    display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.18em; color: var(--main-color);
    margin: 2rem 0 1rem;
}
.resume-label-line {
    width: 32px; height: 3px; background: linear-gradient(90deg, var(--main-color), transparent);
    border-radius: 2px;
}
.resume-cards-grid { display: grid; gap: 1.2rem; margin-bottom: 1.5rem; }
.resume-exp-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.resume-edu-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Experience & Education cards */
.resume-full.resume-cards .resume-card {
    position: relative; padding: 1.6rem 1.8rem 1.6rem 2.2rem;
    background: rgba(15,23,42,0.5); border: 1px solid rgba(255,255,255,0.04);
    border-radius: 1.2rem; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
    overflow: hidden;
}
.resume-full.resume-cards .resume-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--main-color), #ea580c);
    border-radius: 4px 0 0 4px;
}
.resume-full.resume-cards .resume-card:hover {
    border-color: rgba(249,115,22,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(249,115,22,0.08);
    transform: translateY(-2px);
}
.resume-full.resume-cards .resume-card-exp:nth-child(1),
.resume-full.resume-cards .resume-card-edu:nth-child(1) { animation: resumeCardIn 0.5s ease 0.1s forwards; opacity: 0; }
.resume-full.resume-cards .resume-card-exp:nth-child(2),
.resume-full.resume-cards .resume-card-edu:nth-child(2) { animation: resumeCardIn 0.5s ease 0.2s forwards; opacity: 0; }
.resume-full.resume-cards .resume-card-exp:nth-child(3),
.resume-full.resume-cards .resume-card-edu:nth-child(3) { animation: resumeCardIn 0.5s ease 0.3s forwards; opacity: 0; }
.resume-full.resume-cards .resume-card-exp:nth-child(n+4),
.resume-full.resume-cards .resume-card-edu:nth-child(n+4) { animation: resumeCardIn 0.5s ease 0.4s forwards; opacity: 0; }
@keyframes resumeCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.resume-exp-header,
.resume-edu-header {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
    margin-bottom: 0.9rem; flex-wrap: wrap;
}
.resume-exp-title,
.resume-edu-title {
    font-size: 1.45rem; font-weight: 700; color: #fff; margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
}
.resume-exp-role {
    font-size: 1.15rem; color: var(--main-color); margin: 0; font-weight: 600;
}
.resume-date-pill {
    flex-shrink: 0; padding: 0.35rem 1rem; background: linear-gradient(135deg, rgba(249,115,22,0.25), rgba(249,115,22,0.1));
    border: 1px solid rgba(249,115,22,0.3); border-radius: 999px;
    font-size: 1rem; font-weight: 700; color: #f97316;
}
.resume-bullets { list-style: none; padding: 0; margin: 0; }
.resume-bullets li {
    position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem;
    font-size: 1.2rem; color: #94a3b8; line-height: 1.6;
}
.resume-bullets li::before {
    content: ''; position: absolute; left: 0; top: 0.65em;
    width: 6px; height: 6px; border-radius: 50%; background: var(--main-color);
    box-shadow: 0 0 8px rgba(249,115,22,0.5);
}
.resume-edu-detail { font-size: 1.15rem; color: #94a3b8; margin: 0; line-height: 1.5; }
.resume-desc { font-size: 1.15rem; color: #94a3b8; margin: 0.5rem 0 0; line-height: 1.6; }

/* Certificates */
.resume-card-certs {
    padding: 1.6rem 1.8rem; background: rgba(15,23,42,0.5);
    border: 1px solid rgba(255,255,255,0.04); border-radius: 1.2rem;
    border-left: 4px solid var(--main-color);
}
.resume-certs-list { display: flex; flex-direction: column; gap: 0.8rem; }
.resume-cert-item {
    padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.resume-cert-item:last-child { border-bottom: none; }
.resume-cert-item h4 { font-size: 1.25rem; color: #fff; margin: 0 0 0.2rem; font-weight: 600; }
.resume-cert-item p { font-size: 1.1rem; color: #94a3b8; margin: 0; }

/* Modal */
.resume-modal .resume-modal-content { background: #030306; }

/* Responsive */
@media (max-width: 900px) {
    .resume-grid { grid-template-columns: 1fr; }
    .resume-sidebar {
        padding: 2rem 1.5rem; border-right: none;
        border-bottom: 1px solid rgba(249,115,22,0.15);
    }
    .resume-sidebar::after { display: none; }
    .resume-photo-ring { width: 100px; height: 100px; }
    .resume-main { padding: 1.8rem 1.5rem; }
    .resume-skill-rings { grid-template-columns: repeat(3, 1fr); }
    .resume-exp-grid, .resume-edu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .resume-modal { max-height: 98vh; border-radius: 0; }
    .resume-modal-overlay { padding: 0; align-items: stretch; }
    .resume-sidebar { padding: 1.5rem 1.2rem; }
    .resume-photo-ring { width: 80px; height: 80px; }
    .resume-name { font-size: 1.7rem; }
    .resume-title { font-size: 0.9rem; letter-spacing: 0.12em; }
    .resume-main { padding: 1.2rem 1.2rem; }
    .resume-skill-rings { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .resume-ring-ring { width: 56px; height: 56px; }
    .resume-full.resume-cards .resume-card { padding: 1.2rem 1.4rem 1.2rem 1.8rem; }
    .resume-exp-header, .resume-edu-header { flex-direction: column; }
    .resume-date-pill { align-self: flex-start; }
    .resume-modal-header { flex-wrap: wrap; padding: 1rem; }
    .resume-modal-close { order: 1; margin-left: auto; }
    .resume-modal-actions { order: 2; flex-basis: 100%; flex-direction: column; gap: 0.8rem; }
    .btn-download-pdf, .btn-print { width: 100%; justify-content: center; }
}
@media (max-width: 400px) {
    .resume-photo-ring { width: 70px; height: 70px; }
    .resume-name { font-size: 1.5rem; }
    .resume-exp-title, .resume-edu-title { font-size: 1.3rem; }
}

/* Dark theme - resume cards always dark */
[data-theme="dark"] .resume-modal .resume-modal-content,
[data-theme="light"] .resume-modal .resume-modal-content { background: #050508; }

/* ========== Resume - Modern Design ========== */
.resume-full.resume-modern {
    background: #fff; font-family: var(--font-body);
    font-size: 1.4rem; line-height: 1.65; color: #334155;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    border-radius: 20px; overflow: hidden;
    animation: resumeSlideIn 0.4s ease;
}
@keyframes resumeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.resume-modern-layout {
    display: grid; grid-template-columns: 300px 1fr; min-height: 100%;
}
.resume-modern-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 2.5rem 1.8rem; color: #e2e8f0;
}
.resume-modern-profile {
    text-align: center; margin-bottom: 2.2rem;
}
.resume-modern-profile img {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; border: 4px solid var(--main-color);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(249,115,22,0.2);
}
.resume-modern-profile h1 {
    font-size: 1.85rem; font-weight: 700; margin: 1.2rem 0 0.3rem;
    color: #fff; letter-spacing: -0.02em;
}
.resume-modern-profile p {
    font-size: 1.1rem; color: var(--main-color); font-weight: 600;
    margin: 0.2rem 0 0;
}
.resume-modern-contact {
    display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.8rem;
}
.resume-modern-contact a, .resume-modern-contact span {
    display: flex; align-items: center; gap: 0.75rem; font-size: 1.2rem;
    color: #cbd5e1; text-decoration: none; transition: color 0.2s;
}
.resume-modern-contact a:hover { color: #fff; }
.resume-modern-contact i { font-size: 1.4rem; color: var(--main-color); flex-shrink: 0; }
.resume-modern-socials {
    display: flex; gap: 0.6rem; margin-bottom: 1.8rem; flex-wrap: wrap;
}
.resume-modern-socials a {
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    background: rgba(249,115,22,0.2); border-radius: 14px;
    color: #fff; font-size: 1.4rem;
    transition: background 0.2s, transform 0.2s;
}
.resume-modern-socials a:hover {
    background: var(--main-color); transform: translateY(-3px);
}
.resume-modern-skills h3 {
    font-size: 1.05rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--main-color);
    margin: 0 0 1.2rem;
}
.resume-modern-skill-list {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
}
.resume-modern-skill-list span {
    padding: 0.55rem 0.9rem; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
    font-size: 1.05rem; color: #e2e8f0; font-weight: 500;
}
.resume-modern-main {
    padding: 2rem 2.5rem; background: #f8fafc; overflow-y: auto;
}
.resume-modern-card {
    background: #fff; border-radius: 16px; padding: 1.5rem 1.8rem;
    margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}
.resume-modern-card:last-child { margin-bottom: 0; }
.resume-modern-card h2 {
    font-size: 1.1rem; font-weight: 700; color: #0f172a;
    margin: 0 0 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.resume-modern-card h2 i { color: var(--main-color); font-size: 1.3rem; }
.resume-modern-card > p {
    font-size: 1.2rem; color: #64748b; margin: 0; line-height: 1.7;
}
.resume-modern-card > p strong { color: #334155; }
.resume-modern-item {
    padding: 1rem 0; border-bottom: 1px solid #f1f5f9;
}
.resume-modern-item:last-child { border-bottom: none; padding-bottom: 0; }
.resume-modern-item:first-child { padding-top: 0; }
.resume-modern-item-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1rem; flex-wrap: wrap;
}
.resume-modern-item h3 {
    font-size: 1.3rem; font-weight: 700; color: #0f172a; margin: 0;
}
.resume-modern-badge {
    padding: 0.25rem 0.75rem; background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(249,115,22,0.08));
    border-radius: 999px; font-size: 1rem; font-weight: 600; color: var(--main-color);
}
.resume-modern-sub {
    font-size: 1.1rem; color: var(--main-color); font-weight: 600;
    margin: 0.3rem 0 0.5rem;
}
.resume-modern-item p, .resume-modern-item li {
    font-size: 1.15rem; color: #64748b; margin: 0 0 0.3rem; line-height: 1.6;
}
.resume-modern-item ul {
    margin: 0.5rem 0 0; padding-left: 1.5rem;
}
.resume-modern-item li::marker { color: var(--main-color); }

/* Certificates grid - small */
.resume-modern-cert-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}
.resume-modern-cert-item {
    padding: 0.8rem 1rem; background: #f8fafc;
    border-radius: 10px; border: 1px solid #e2e8f0;
}
.resume-modern-cert-item h4 {
    font-size: 1rem; font-weight: 600; color: #0f172a; margin: 0 0 0.3rem;
    line-height: 1.3;
}
.resume-modern-cert-item p {
    font-size: 0.95rem; color: #64748b; margin: 0; line-height: 1.4;
}

.resume-modal .resume-modal-content:has(.resume-modern) { background: #e2e8f0 !important; }

/* Resume Modern Responsive */
@media (max-width: 900px) {
    .resume-modern-layout { grid-template-columns: 1fr; }
    .resume-modern-sidebar { padding: 1.5rem; }
}
@media (max-width: 600px) {
    .resume-modern-sidebar { padding: 1.2rem; text-align: center; }
    .resume-modern-contact { align-items: center; }
    .resume-modern-socials { justify-content: center; }
    .resume-modern-skill-list { justify-content: center; }
    .resume-modern-main { padding: 1.5rem 1.2rem; }
    .resume-modern-card { padding: 1.2rem 1.4rem; }
    .resume-modern-item-top { flex-direction: column; }
    .resume-modern-cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
    .resume-modern-profile img { width: 100px; height: 100px; }
    .resume-modern-profile h1 { font-size: 1.5rem; }
    .resume-modern-skill-list { grid-template-columns: 1fr; }
    .resume-modern-cert-item h4 { font-size: 0.95rem; }
    .resume-modern-cert-item p { font-size: 0.85rem; }
}

.ai-chat-toggle {
    position: fixed; bottom: 2rem; left: 2rem; width: 56px; height: 56px; border-radius: 16px; background: var(--gradient); color: #fff; border: none; cursor: pointer; z-index: 999; box-shadow: 0 8px 32px rgba(var(--main-color-rgb, 249, 115, 22),0.35), 0 0 0 1px rgba(255,255,255,0.1) inset; transition: transform 0.25s ease, box-shadow 0.25s ease; display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.ai-chat-toggle:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(var(--main-color-rgb, 249, 115, 22),0.45); }
.ai-chat-toggle:active { transform: scale(0.98); }
.ai-chat-panel {
    position: fixed; bottom: 5.5rem; left: 2rem; width: 380px; max-height: 520px; background: var(--second-bg-color); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); border: 1px solid var(--glass-border); border-radius: 20px; z-index: 998; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--neumorphic-shadow); opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.94); transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0.35s; pointer-events: none;
}
.ai-chat-panel.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.ai-chat-header {
    padding: 1.2rem 1.4rem; background: var(--bg-color); border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center;
}
.ai-chat-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; font-weight: 600; color: var(--text-color); }
.ai-chat-title i { font-size: 1.5rem; color: var(--main-color); }
.ai-chat-close { padding: 0.5rem; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; border-radius: 10px; font-size: 1.4rem; transition: color 0.2s, background 0.2s; }
.ai-chat-close:hover { color: var(--text-color); background: rgba(255,255,255,0.06); }
.ai-chat-messages { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: 1rem; min-height: 120px; }
.ai-chat-messages::-webkit-scrollbar { width: 6px; }
.ai-chat-messages::-webkit-scrollbar-track { background: transparent; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.ai-msg { padding: 0.9rem 1.2rem; border-radius: 14px; font-size: 1.3rem; line-height: 1.5; max-width: 88%; }
.ai-msg.user { align-self: flex-end; background: var(--gradient); color: #fff; border-radius: 14px 14px 4px 14px; }
.ai-msg.bot { align-self: flex-start; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px 14px 14px 4px; }
.ai-msg { animation: aiMsgIn 0.3s ease; }
.ai-msg.ai-typing { padding: 1rem 1.2rem; }
.ai-typing-dots { display: inline-flex; gap: 5px; align-items: center; height: 12px; }
.ai-typing-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--main-color);
    animation: aiDotBounce 1.2s ease-in-out infinite;
}
.ai-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiDotBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
    40% { transform: translateY(-5px); opacity: 1; }
}
@keyframes aiMsgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ai-welcome { color: var(--text-secondary); font-size: 1.25rem; }
.ai-chat-input-wrap { display: flex; gap: 0.6rem; padding: 1rem 1.2rem; background: var(--bg-color); border-top: 1px solid var(--glass-border); }
.ai-chat-input-wrap input { flex: 1; padding: 0.9rem 1.2rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; color: var(--text-color); font-size: 1.3rem; transition: border-color 0.2s, background 0.2s; }
.ai-chat-input-wrap input::placeholder { color: var(--text-secondary); opacity: 0.7; }
.ai-chat-input-wrap input:focus { outline: none; border-color: var(--main-color); background: rgba(255,255,255,0.08); box-shadow: 0 0 0 3px rgba(var(--main-color-rgb, 249, 115, 22),0.15); }
.ai-chat-send { padding: 0.9rem 1.2rem; background: var(--gradient); color: #fff; border: none; border-radius: 12px; cursor: pointer; font-size: 1.3rem; transition: transform 0.2s, box-shadow 0.2s; }
.ai-chat-send:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(var(--main-color-rgb, 249, 115, 22),0.4); }
.ai-chat-send:active { transform: translateY(0); }
[data-theme="light"] .ai-chat-panel { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.06); box-shadow: 0 24px 64px rgba(0,0,0,0.12); }
[data-theme="light"] .ai-chat-header, [data-theme="light"] .ai-chat-input-wrap { background: rgba(248,250,252,0.8); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .ai-msg.bot { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .ai-chat-input-wrap input { background: rgba(255,255,255,0.9); border-color: rgba(0,0,0,0.08); }
.geo-greeting { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 1rem; }
.portfolio-img-wrap { position: absolute; inset: 0; overflow: hidden; }
.portfolio-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; }
.wireframe-btn, .case-study-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; font-size: 1.2rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 0.6rem; color: var(--text-color); cursor: pointer; margin-right: 0.5rem; margin-top: 0.5rem; }
.wireframe-btn:hover, .case-study-btn:hover { background: var(--main-color); color: #fff; border-color: var(--main-color); }
/* Playground - Modern */
.playground-section { padding: 8rem 9% 4rem; position: relative; overflow: hidden; }
.playground-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(var(--main-color-rgb, 249, 115, 22), 0.08) 0%, transparent 65%);
    pointer-events: none;
}
.playground-header { text-align: center; margin-bottom: 3rem; position: relative; z-index: 1; }
.playground-badge {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--main-color);
    margin-bottom: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--main-color-rgb, 249, 115, 22), 0.16), rgba(var(--main-color-rgb, 249, 115, 22), 0.06));
    border: 1px solid rgba(var(--main-color-rgb, 249, 115, 22), 0.28);
}
.playground-title {
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-color);
    margin: 0 0 0.5rem;
}
.playground-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.playground-sub {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 44rem;
    margin: 0 auto;
    line-height: 1.6;
}
.playground-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.playground-card-modern {
    position: relative;
    background: var(--second-bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: var(--neumorphic-shadow);
}
.playground-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(var(--main-color-rgb, 249, 115, 22), 0.15);
}
.playground-card-link { text-decoration: none; color: inherit; display: block; }
.playground-card-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.playground-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.playground-card-modern:hover .playground-card-thumb img { transform: scale(1.06); }
.playground-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.playground-card-modern:hover .playground-card-overlay { opacity: 1; }
.playground-card-overlay i {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 0.4rem;
}
.playground-card-overlay span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}
.playground-card-body { padding: 1.6rem 1.8rem; }
.playground-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-color);
    line-height: 1.3;
}
.playground-card-desc {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.playground-tech-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.playground-tech-pill {
    font-size: 1.1rem;
    padding: 0.35rem 0.8rem;
    background: rgba(var(--main-color-rgb, 249, 115, 22), 0.12);
    color: var(--main-color);
    border-radius: 999px;
    font-weight: 500;
}
.playground-card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}
.playground-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: background 0.2s, transform 0.2s;
}
.playground-action-btn:hover {
    background: var(--main-color);
    transform: scale(1.1);
}
.playground-empty, .timeline-empty { text-align: center; color: var(--text-secondary); padding: 3rem; font-size: 1.5rem; }
/* Legacy scroll fallback */
.playground-scroll { display: flex; gap: 2rem; overflow-x: auto; padding: 2rem 0; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.playground-card { flex: 0 0 280px; scroll-snap-align: start; }
.timeline-section { padding: 8rem 9% 4rem; }
.timeline-scroll { display: flex; gap: 2rem; overflow-x: auto; padding: 2rem 0; scroll-snap-type: x mandatory; }
.timeline-item { flex: 0 0 320px; scroll-snap-align: start; background: var(--second-bg-color); border: 1px solid var(--glass-border); border-radius: 1.2rem; padding: 2rem; border-left: 4px solid var(--main-color); box-shadow: var(--neumorphic-shadow); }
.timeline-date { font-size: 1.3rem; color: var(--main-color); font-weight: 600; }
.timeline-company { font-size: 1.4rem; color: var(--text-secondary); margin: 0.5rem 0; }
body[data-cursor="pointer"] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E") 12 12, pointer; }
