/* ============================================================
   Osama Eid Bakry — Portfolio
   Dark modern theme: gradients, glassmorphism, motion
   ============================================================ */

   
:root, [data-theme="dark"] {
    --bg: #0a0a0f;
    --bg-2: #11111b;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --text: #e7e8ee;
    --muted: #9aa0b5;
    --brand: #6d8bff;
    --brand-2: #8b5cf6;
    --accent: #22d3ee;
    --grad: linear-gradient(135deg, #6d8bff 0%, #8b5cf6 50%, #22d3ee 100%);
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
    --nav-bg: rgba(10, 10, 15, 0.6);
    --nav-bg-solid: rgba(10, 10, 15, 0.85);
    --grid-line: rgba(255,255,255,0.025);
    --bar-track: rgba(255,255,255,0.07);
    --input-bg: rgba(0,0,0,0.25);
    --radius: 18px;
    --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}


[data-theme="light"] {
    --bg: #f6f7fb;
    --bg-2: #eef0f7;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-2: rgba(17, 24, 39, 0.04);
    --border: rgba(17, 24, 39, 0.10);
    --text: #1a1d29;
    --muted: #5b6275;
    --brand: #4f6bff;
    --brand-2: #7c3aed;
    --accent: #0891b2;
    --grad: linear-gradient(135deg, #4f6bff 0%, #7c3aed 50%, #0891b2 100%);
    --shadow: 0 20px 50px -22px rgba(40, 50, 90, 0.35);
    --nav-bg: rgba(246, 247, 251, 0.7);
    --nav-bg-solid: rgba(246, 247, 251, 0.92);
    --grid-line: rgba(17,24,39,0.04);
    --bar-track: rgba(17,24,39,0.08);
    --input-bg: rgba(255,255,255,0.9);
}

html { transition: none; }
body, .nav, .surface, .project-card, .skill-group, .testimonial-card, .form-card, .stat, .field input, .field textarea {
    transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient background glow */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(600px 400px at 15% 0%, rgba(109, 139, 255, 0.16), transparent 60%),
        radial-gradient(700px 500px at 90% 10%, rgba(139, 92, 246, 0.14), transparent 60%),
        radial-gradient(800px 600px at 50% 100%, rgba(34, 211, 238, 0.10), transparent 60%);
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 100px 0; }
.muted { color: var(--muted); }
.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
    background: var(--grad);
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px -10px rgba(109, 139, 255, 0.6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(109, 139, 255, 0.8); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-3px); }

/* ---------- Navbar ---------- */.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    /* خلفية خفيفة من البداية بدل ما تكون transparent تمامًا */
    background: rgba(10, 10, 31, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 31, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand */
.brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.85; }
.brand .dot {
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 2px;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }

/* CTA button */
.nav-cta {
    padding: 10px 22px !important;
    background: linear-gradient(90deg, #06b6d4, #4f46e5);
    border-radius: 999px;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(34, 211, 238, 0.4);
    filter: brightness(1.08);
}

/* Theme toggle */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    position: relative;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
}
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: inline; }

/* Mobile hamburger -> X */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 68px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: rgba(10, 10, 31, 0.95);
        backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 12px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-link { padding: 12px 10px; }
    .nav-link::after { display: none; }
    .nav-cta { text-align: center; margin-top: 6px; }
    .nav-toggle { display: flex; }
}
/* Theme switcher */
.theme-toggle {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; cursor: pointer;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    font-size: 1.05rem; transition: transform .2s, background .2s, border-color .2s;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(-8deg); border-color: var(--brand); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

/* About / profile
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: center; }
.about-photo { position: relative; }
.about-photo img {
    width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 26px;
    border: 1px solid var(--border); box-shadow: var(--shadow);
}
.about-photo::after {
    content: ''; position: absolute; inset: -14px; z-index: -1; border-radius: 34px;
    background: var(--grad); opacity: .35; filter: blur(38px);
}
.about-photo .ring {
    position: absolute; inset: -10px; border-radius: 32px; padding: 2px;
    background: var(--grad); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.about-text h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.about-text p { color: var(--muted); font-size: 1.02rem; margin-bottom: 14px; }
.about-text .pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.about-text .pills span {
    font-size: 0.82rem; padding: 7px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
}
@media (max-width: 760px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-photo { max-width: 280px; margin: 0 auto; }
    .about-text .pills { justify-content: center; }
} */

/* ---------- Hero ---------- */
/* .hero { padding: 150px 0 80px; position: relative; overflow: hidden; } */

/* Floating ambient orbs */
/* .hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: .55; } */
/* .hero-orb-1 { width: 420px; height: 420px; background: radial-gradient(circle, #6d8bff, transparent 70%); top: -80px; right: -60px; animation: float 9s ease-in-out infinite; } */
/* .hero-orb-2 { width: 360px; height: 360px; background: radial-gradient(circle, #8b5cf6, transparent 70%); bottom: -120px; left: -80px; animation: float 11s ease-in-out infinite reverse; } */
/* @keyframes float { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-26px) translateX(14px); } } */

/* .hero-grid { display: grid; grid-template-columns: 1.05fr 0.85fr; gap: 50px; align-items: center; } */

/* Portrait */
/* .hero-visual { position: relative; }
.hero-portrait { position: relative; width: min(360px, 90%); margin: 0 auto; aspect-ratio: 1; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; z-index: 2; }
.hero-portrait::after { content: ''; position: absolute; inset: -18px; z-index: 0; border-radius: 40px; background: var(--grad); opacity: .4; filter: blur(40px); animation: glowpulse 5s ease-in-out infinite; }
@keyframes glowpulse { 0%,100% { opacity: .3; } 50% { opacity: .55; } }
.hero-portrait-ring { position: absolute; inset: -8px; z-index: 1; border-radius: 36px; padding: 2px; background: var(--grad); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hero-portrait-fallback { display: none; position: absolute; inset: 0; z-index: 2; border-radius: 30px; background: var(--grad); color: #fff; font-size: 4rem; font-weight: 800; align-items: center; justify-content: center; }
.hero-portrait.no-img img { display: none; }
.hero-portrait.no-img .hero-portrait-fallback { display: flex; } */

/* Floating skill badges around portrait */
/* .float-badge {
    position: absolute; z-index: 3; padding: 9px 15px; border-radius: 14px; font-size: 0.85rem; font-weight: 600;
    background: var(--nav-bg-solid); backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}
.float-badge-1 { top: 14%; left: -38px; animation-delay: .2s; }
.float-badge-2 { bottom: 16%; right: -34px; animation-delay: 1.4s; }
.float-badge-3 { bottom: -14px; left: 18%; animation-delay: .8s; } */

/* Code window accent */
/* .hero-code {
    margin: 26px auto 0; width: min(360px, 90%); border-radius: 14px; overflow: hidden;
    background: rgba(13,16,24,0.92); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.hero-code-dots { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.hero-code-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a4150; }
.hero-code-dots i:nth-child(1){ background:#ff5f57; } .hero-code-dots i:nth-child(2){ background:#febc2e; } .hero-code-dots i:nth-child(3){ background:#28c840; }
.hero-code pre { margin: 0; padding: 16px 18px; font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; color: #cdd3e1; overflow-x: auto; }
.hero-code .c-kw { color: #c792ea; } .hero-code .c-cls { color: #82aaff; } .hero-code .c-fn { color: #82d9ff; } .hero-code .c-str { color: #c3e88d; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 0.82rem; color: var(--muted); margin-bottom: 26px;
}
.hero-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); line-height: 1.07; letter-spacing: -0.03em; font-weight: 800; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 540px; margin: 22px 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 24px; margin-top: 36px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .hero-copy .hero-cta, .hero-copy .hero-meta { justify-content: center; }
    .hero-visual { order: -1; }
    .float-badge-1 { left: 0; } .float-badge-2 { right: 0; }
    .hero-code { display: none; }
} */

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; }
.stat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; text-align: center;
    transition: transform .25s, border-color .25s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(109,139,255,0.4); }
.stat .num { font-size: 2.1rem; font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* ---------- Section heading ---------- */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .eyebrow {
    font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--brand);
}
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-top: 12px; }
.sec-head p { color: var(--muted); max-width: 560px; margin: 14px auto 0; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.project-card {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; overflow: hidden;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.project-card::before {
    content: ''; position: absolute; inset: 0; padding: 1px; border-radius: var(--radius);
    background: var(--grad); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card:hover::before { opacity: 1; }

/* Cards with a cover image: image flush to edges, padding moves to the body */
.project-card.has-image { padding: 0; display: flex; flex-direction: column; }
.project-card .project-thumb { display: block; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16 / 9; background: var(--surface-2); }
.project-card .project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card.has-image:hover .project-thumb img { transform: scale(1.06); }
.project-card .project-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.project-card .project-body .project-foot { margin-top: auto; padding-top: 4px; }
.project-card .cat {
    font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px; display: inline-block;
}
.project-card h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.project-card .desc { color: var(--muted); font-size: 0.95rem; margin: 12px 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
    font-size: 0.74rem; padding: 5px 11px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.project-foot { display: flex; align-items: center; justify-content: space-between; }
.project-link { color: var(--brand); font-weight: 600; font-size: 0.9rem; }
.project-link:hover { color: var(--accent); }
.badge-featured {
    position: absolute; top: 18px; right: 18px; font-size: 0.68rem; font-weight: 700;
    padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #fff;
}

/* ---------- Projects carousel ----------
.carousel { position: relative; padding: 0 8px; }
.carousel-viewport { overflow: hidden; border-radius: 24px; }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.slide {
    flex: 0 0 100%; min-width: 100%;
    display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
    background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden;
}
.slide-media { position: relative; min-height: 420px; background: #0d1018; display: flex; align-items: center; justify-content: center; }
.slide-media img { width: 100%; height: 100%; max-height: 480px; object-fit: contain; }
.slide-noimg {
    width: 100%; height: 100%; min-height: 420px; display: grid; place-items: center;
    font-family: var(--mono); color: var(--muted); background: var(--grad); opacity: .9; color: #fff; font-size: 1.1rem;
}
.slide-media .badge-featured { top: 18px; left: 18px; right: auto; }
.slide-info { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.slide-info .cat {
    font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px; display: inline-block;
}
.slide-info h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.slide-info .desc { color: var(--muted); font-size: 1.02rem; margin: 16px 0 22px; line-height: 1.7; }
.slide-info .tags { margin-bottom: 28px; }
.slide-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
    background: var(--nav-bg-solid); backdrop-filter: blur(8px); border: 1px solid var(--border);
    color: var(--text); font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
    transition: transform .2s, background .2s, border-color .2s; padding-bottom: 4px;
}
.carousel-btn:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-50%) scale(1.08); }
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.carousel-dots .dot {
    width: 10px; height: 10px; border-radius: 999px; border: none; cursor: pointer; padding: 0;
    background: var(--border); transition: all .3s;
}
.carousel-dots .dot.active { width: 30px; background: var(--grad); } */

@media (max-width: 820px) {
    .slide { grid-template-columns: 1fr; }
    .slide-media { min-height: 220px; }
    .slide-noimg { min-height: 220px; }
    .slide-info { padding: 30px 26px; }
   

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.skill-group {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px;
}
.skill-group h4 { font-size: 1.05rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.skill-group h4 .ico { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.skill-row { margin-bottom: 14px; }
.skill-row .top { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 6px; }
.skill-row .top .pct { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }
.bar { height: 7px; border-radius: 999px; background: var(--bar-track); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--grad); width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }

/* ---------- Experience timeline ---------- */
.timeline { max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 18px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(var(--brand), var(--brand-2), transparent);
}
.tl-item { position: relative; padding-left: 60px; margin-bottom: 38px; }
.tl-item .node {
    position: absolute; left: 9px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--bg-2); border: 3px solid var(--brand); box-shadow: 0 0 0 4px rgba(109,139,255,0.15);
}
.tl-item .period { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); }
.tl-item h4 { font-size: 1.2rem; margin: 6px 0 2px; }
.tl-item .company { color: var(--brand); font-weight: 600; font-size: 0.95rem; }
.tl-item ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.tl-item ul li { margin-bottom: 6px; font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
/* .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.testimonial-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; display: flex; flex-direction: column; transition: transform .3s, border-color .3s;
}
.testimonial-card:hover { transform: translateY(-5px); border-color: rgba(139,92,246,0.4); }
.testimonial-card .stars { color: #fbbf24; letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 14px; }
.testimonial-card blockquote { color: var(--text); font-size: 0.98rem; line-height: 1.7; flex: 1; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.testimonial-card .avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    font-weight: 700; color: #fff; background: var(--grad);
}
.testimonial-card figcaption strong { display: block; font-size: 0.95rem; }
.testimonial-card .t-meta { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 2px; } */

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info h3 { font-size: 1.6rem; margin-bottom: 14px; }
.contact-info .row { display: flex; align-items: center; gap: 14px; margin: 16px 0; color: var(--muted); }
.contact-info .row .ic {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border); flex-shrink: 0;
}
.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border); transition: all .2s;
}
.socials a:hover { background: var(--grad); transform: translateY(-3px); color: #fff; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; margin-bottom: 7px; color: var(--muted); }
.field input, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 12px; font-family: inherit; font-size: 0.95rem;
    background: var(--input-bg); border: 1px solid var(--border); color: var(--text); transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 130px; }
.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 0.9rem; }
.alert-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.4); color: #86efac; }
.error { color: #fca5a5; font-size: 0.82rem; margin-top: 5px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 36px 0; text-align: center; color: var(--muted); font-size: 0.88rem; }
.footer a { color: var(--brand); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
        background: var(--nav-bg-solid); padding: 20px; gap: 18px; border-bottom: 1px solid var(--border);
    }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .section { padding: 70px 0; }
}
