/* ========================================================
   KGM TEAM — Brand-Aligned CSS
   Colors extracted from mascot Tamima:
   Primary:   Deep Navy  #1e1b4b → #312e81
   Accent:    Magenta    #be185d → #ec4899
   Accent2:   Purple     #6d28d9 → #8b5cf6
   Accent3:   Fuchsia    #a21caf → #d946ef
   Bg light:  #f8f7ff
   ======================================================== */

:root {
    --navy:      #1e1b4b;
    --navy2:     #312e81;
    --purple:    #6d28d9;
    --purple2:   #8b5cf6;
    --magenta:   #be185d;
    --pink:      #ec4899;
    --fuchsia:   #d946ef;
    --bg:        #0f0e1a;
    --bg2:       #16142b;
    --surface:   #1e1b33;
    --surface2:  #252240;
    --text:      #f0eeff;
    --text2:     #a09abf;
    --border:    rgba(139,92,246,0.2);
    --glow-p:    rgba(139,92,246,0.4);
    --glow-m:    rgba(236,72,153,0.4);
    --r:         14px;
    --head:      'Space Grotesk', sans-serif;
    --body:      'Nunito', sans-serif;
    --ease:      cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; cursor: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- CUSTOM SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--purple), var(--pink)); border-radius: 3px; }

/* ======================================================
   CURSOR
   ====================================================== */
.cursor {
    position: fixed; width: 14px; height: 14px;
    background: var(--pink); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    transition: background .3s, transform .15s;
    mix-blend-mode: screen;
}
.cursor-trail {
    position: fixed; width: 40px; height: 40px;
    border: 2px solid var(--purple2);
    border-radius: 50%; pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%);
    transition: transform .18s ease, border-color .3s;
    opacity: .55;
}
.cursor.big { transform: translate(-50%,-50%) scale(2.2); background: var(--purple2); }
.cursor-trail.big { transform: translate(-50%,-50%) scale(1.6); border-color: var(--pink); opacity: .8; }

/* ======================================================
   LOADER
   ====================================================== */
#loader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 16px;
    transition: opacity .7s, visibility .7s;
}
#loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mascot {
    width: 120px; height: 120px; object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--purple2);
    box-shadow: 0 0 30px var(--glow-p);
    animation: mascotBounce 1s var(--ease) infinite alternate;
}
@keyframes mascotBounce { from { transform: translateY(0); } to { transform: translateY(-12px); } }
.loader-brand {
    font-family: var(--head); font-size: 2rem; font-weight: 700;
    color: var(--text); letter-spacing: .05em;
}
.loader-brand span { color: var(--pink); }
.loader-bar { width: 200px; height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.loader-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--pink), var(--fuchsia)); animation: loadFill 1.8s ease forwards; }
@keyframes loadFill { from { width: 0 } to { width: 100% } }
.loader-text { font-size: .8rem; color: var(--text2); letter-spacing: .2em; }

/* ======================================================
   CANVAS / BUBBLES
   ====================================================== */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35; }
#bubbles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bubble {
    position: absolute; border-radius: 50%;
    animation: bubbleRise linear infinite;
    filter: blur(1px);
}
@keyframes bubbleRise {
    0%   { transform: translateY(110vh) scale(0); opacity: 0; }
    10%  { opacity: .7; transform: translateY(90vh) scale(1); }
    90%  { opacity: .4; }
    100% { transform: translateY(-10vh) scale(.8); opacity: 0; }
}

/* ======================================================
   HEADER / NAV
   ====================================================== */
#header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 clamp(18px,5vw,70px);
    transition: background .4s, box-shadow .4s, transform .4s;
}
#header.scrolled {
    background: rgba(15,14,26,.93);
    backdrop-filter: blur(18px);
    box-shadow: 0 2px 30px rgba(0,0,0,.5);
    border-bottom: 1px solid var(--border);
}
#header.hide { transform: translateY(-100%); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.1rem; }
.nav-logo span em { color: var(--pink); font-style: normal; }
.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-radius: 9px; display: flex; align-items: center; justify-content: center;
    font-family: var(--head); font-weight: 900; font-size: 1rem; color: #fff;
    box-shadow: 0 4px 14px var(--glow-p);
    transition: transform .3s var(--ease);
}
.logo-icon.sm { width: 28px; height: 28px; font-size: .85rem; border-radius: 7px; }
.nav-logo:hover .logo-icon { transform: rotate(-8deg) scale(1.1); }

.nav-links { display: flex; gap: 4px; }
.nl {
    font-family: var(--head); font-size: .82rem; font-weight: 600;
    color: var(--text2); padding: 7px 14px; border-radius: 8px;
    transition: color .3s, background .3s; position: relative;
}
.nl::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: linear-gradient(90deg, var(--purple), var(--pink));
    border-radius: 2px; transition: width .3s;
}
.nl:hover, .nl.active { color: var(--text); }
.nl:hover::after, .nl.active::after { width: 60%; }
.nl.active { color: var(--pink); }

.nav-cta {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff; padding: 9px 22px; border-radius: 50px;
    font-family: var(--head); font-size: .8rem; font-weight: 700;
    box-shadow: 0 4px 18px var(--glow-p); transition: all .3s;
    white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 25px var(--glow-m); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--purple2); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-menu { display: none; flex-direction: column; padding: 16px 24px; gap: 6px; background: rgba(15,14,26,.97); border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--head); font-size: .9rem; color: var(--text2); padding: 12px 16px; border-radius: 10px; transition: all .3s; }
.mobile-menu a:hover { color: var(--text); background: rgba(139,92,246,.1); }

/* ======================================================
   SECTIONS SHARED
   ====================================================== */
section { position: relative; z-index: 1; padding: clamp(80px,11vw,130px) clamp(18px,7vw,110px); }

.section-label {
    font-family: var(--head); font-size: .7rem; font-weight: 700;
    letter-spacing: .35em; color: var(--pink); text-transform: uppercase;
    margin-bottom: 12px; display: block;
}
.section-title {
    font-family: var(--head); font-size: clamp(2rem,5vw,3.2rem); font-weight: 700;
    color: var(--text); margin-bottom: 14px; line-height: 1.15;
    border: none; display: block;
}
.section-title span {
    background: linear-gradient(135deg, var(--purple2), var(--pink));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-sub { color: var(--text2); font-size: clamp(.95rem,2vw,1.1rem); max-width: 540px; margin-bottom: clamp(40px,6vw,70px); }

/* ---- REVEAL ANIMATION ---- */
.reveal-up { opacity: 0; transform: translateY(32px); transition: opacity .75s var(--smooth), transform .75s var(--smooth); transition-delay: var(--d, 0s); }
.reveal-up.in { opacity: 1; transform: translateY(0); }

/* ======================================================
   HERO
   ====================================================== */
#hero {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: space-between; gap: 40px;
    padding-top: 90px; overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px);
    animation: blobFloat ease-in-out infinite alternate;
}
.blob-1 { width: 500px; height: 500px; background: rgba(109,40,217,.18); top: -100px; right: -100px; animation-duration: 8s; }
.blob-2 { width: 400px; height: 400px; background: rgba(190,24,93,.15); bottom: -80px; left: -80px; animation-duration: 10s; }
.blob-3 { width: 300px; height: 300px; background: rgba(217,70,239,.12); top: 40%; left: 30%; animation-duration: 12s; }
@keyframes blobFloat { from { transform: translate(0,0) scale(1); } to { transform: translate(30px,20px) scale(1.1); } }
.grid-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(139,92,246,.2) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-content { position: relative; z-index: 2; max-width: 620px; flex: 1; }
.hero-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.3);
    color: var(--purple2); padding: 6px 16px; border-radius: 50px;
    font-family: var(--head); font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: 28px;
}
.chip-dot { width: 7px; height: 7px; background: var(--pink); border-radius: 50%; animation: chipBlink 1.6s ease-in-out infinite; }
@keyframes chipBlink { 0%,100% { opacity:1; box-shadow: 0 0 6px var(--pink); } 50% { opacity:.3; } }

.hero-title {
    font-family: var(--head); font-size: clamp(2.6rem,6vw,5rem); font-weight: 800;
    line-height: 1.1; letter-spacing: -.01em; margin-bottom: 22px;
    display: flex; flex-direction: column;
}
.gradient-word {
    background: linear-gradient(135deg, var(--purple2) 0%, var(--pink) 50%, var(--fuchsia) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    filter: drop-shadow(0 0 25px rgba(236,72,153,.35));
}
.hero-p { font-size: clamp(.95rem,1.9vw,1.1rem); color: var(--text2); margin-bottom: 36px; line-height: 1.85; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.btn-main {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff; padding: 14px 30px; border-radius: 50px;
    font-family: var(--head); font-size: .85rem; font-weight: 700;
    box-shadow: 0 8px 28px var(--glow-p); transition: all .3s;
    position: relative; overflow: hidden;
}
.btn-main::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--pink), var(--fuchsia)); opacity: 0; transition: opacity .3s; border-radius: 50px; }
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 14px 38px var(--glow-m); }
.btn-main:hover::before { opacity: 1; }
.btn-main span, .btn-main i { position: relative; z-index: 1; }

.btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    border: 2px solid var(--border); color: var(--text2);
    padding: 12px 28px; border-radius: 50px;
    font-family: var(--head); font-size: .85rem; font-weight: 700;
    transition: all .3s;
}
.btn-outline:hover { border-color: var(--purple2); color: var(--purple2); background: rgba(139,92,246,.08); }

.hero-nums { display: flex; align-items: center; gap: 24px; }
.hnum { text-align: center; }
.hnum strong { display: block; font-family: var(--head); font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 800; color: var(--pink); line-height: 1; margin-bottom: 4px; }
.hnum strong::after { content: '+'; font-size: .6em; color: var(--purple2); }
.hnum span { font-size: .72rem; color: var(--text2); letter-spacing: .15em; text-transform: uppercase; font-family: var(--head); }
.hnum-div { width: 1px; height: 36px; background: var(--border); }

/* Hero mascot */
.hero-mascot-wrap {
    position: relative; z-index: 2;
    flex-shrink: 0; width: clamp(280px, 38vw, 480px); height: clamp(320px, 42vw, 540px);
    display: flex; align-items: center; justify-content: center;
}
.hero-mascot {
    width: 75%; height: 75%; object-fit: contain;
    position: relative; z-index: 3;
    filter: drop-shadow(0 20px 60px rgba(236,72,153,.35));
    animation: mascotHover 4s ease-in-out infinite;
}
@keyframes mascotHover { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-18px) rotate(1deg); } }

.mascot-glow {
    position: absolute; inset: 10%;
    background: radial-gradient(ellipse, rgba(139,92,246,.25) 0%, rgba(236,72,153,.15) 50%, transparent 75%);
    border-radius: 50%; animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }

.mascot-ring {
    position: absolute; border-radius: 50%; border: 1px solid;
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    animation: ringExpand 3s linear infinite;
}
.r1 { width: 82%; height: 82%; border-color: rgba(139,92,246,.35); animation-delay: 0s; }
.r2 { width: 95%; height: 95%; border-color: rgba(236,72,153,.2); animation-delay: .8s; }
.r3 { width: 108%; height: 108%; border-color: rgba(217,70,239,.12); animation-delay: 1.6s; }
@keyframes ringExpand { 0% { transform: translate(-50%,-50%) scale(.95); opacity: .8; } 100% { transform: translate(-50%,-50%) scale(1.05); opacity: 0; } }

/* Floating skill tags */
.floating-tag {
    position: absolute; z-index: 4;
    background: var(--surface2); border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 50px;
    font-family: var(--head); font-size: .72rem; font-weight: 700;
    color: var(--text2); box-shadow: 0 4px 20px rgba(0,0,0,.4);
    white-space: nowrap;
}
.tag-1 { top: 12%; left: -5%; animation: tagFloat 3s ease-in-out infinite; }
.tag-2 { top: 22%; right: -8%; animation: tagFloat 3.5s ease-in-out infinite .5s; }
.tag-3 { bottom: 25%; left: -8%; animation: tagFloat 4s ease-in-out infinite 1s; }
.tag-4 { bottom: 14%; right: -5%; animation: tagFloat 3.2s ease-in-out infinite 1.5s; }
@keyframes tagFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-dot {
    width: 26px; height: 42px; border: 2px solid var(--border);
    border-radius: 13px; position: relative;
}
.scroll-dot::after {
    content: ''; position: absolute; left: 50%; top: 6px;
    width: 4px; height: 8px; background: var(--pink);
    border-radius: 2px; transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100% { top: 6px; opacity: 1; } 100% { top: 22px; opacity: 0; } }

/* ======================================================
   ABOUT / TEAM
   ====================================================== */
#about { background: var(--bg2); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 26px; max-width: 1080px; }

.tcard {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; padding: 28px; position: relative; overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s, border-color .3s;
}
.tcard::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--purple), var(--pink), var(--fuchsia));
    opacity: 0; transition: opacity .3s;
}
.tcard:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 24px 60px rgba(109,40,217,.2); border-color: rgba(139,92,246,.4); }
.tcard:hover::before { opacity: 1; }

.tcard-ceo { border-color: rgba(217,70,239,.3); }
.tcard-ceo:hover { box-shadow: 0 24px 60px rgba(217,70,239,.2); }
.ceo-label {
    position: absolute; top: 0; right: 0; left: 0;
    background: linear-gradient(135deg, rgba(217,70,239,.2), rgba(236,72,153,.1));
    border-bottom: 1px solid rgba(217,70,239,.2);
    padding: 8px 18px; font-family: var(--head); font-size: .68rem;
    font-weight: 700; letter-spacing: .2em; color: #d946ef;
    text-transform: uppercase; display: flex; align-items: center; gap: 6px;
}
.tcard-ceo .tcard-top { margin-top: 34px; }

.tcard-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.tcard-avatar { position: relative; width: 70px; height: 70px; flex-shrink: 0; }
.tcard-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid rgba(139,92,246,.5); }
.avatar-badge {
    position: absolute; bottom: -2px; right: -2px;
    width: 22px; height: 22px; background: linear-gradient(135deg, var(--purple), var(--pink));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .6rem; color: #fff; border: 2px solid var(--surface);
}
.avatar-badge.pink { background: linear-gradient(135deg, var(--magenta), var(--fuchsia)); }
.avatar-badge.gold { background: linear-gradient(135deg, #b45309, #d97706); }

.tcard-role { font-family: var(--head); font-size: .68rem; font-weight: 700; letter-spacing: .14em; color: var(--pink); text-transform: uppercase; display: block; margin-bottom: 4px; }
.tcard-header-info h3 { font-family: var(--head); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.tcard p { color: var(--text2); font-size: .88rem; line-height: 1.75; margin-bottom: 18px; }
.tcard-edu {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(139,92,246,.07); border-left: 2px solid var(--purple2);
    padding: 10px 13px; border-radius: 8px; margin-bottom: 18px; font-size: .8rem;
}
.tcard-edu i { color: var(--purple2); margin-top: 2px; flex-shrink: 0; }
.tcard-edu strong { display: block; color: var(--text); font-weight: 700; margin-bottom: 2px; }
.tcard-edu span { color: var(--text2); font-size: .75rem; }
.tcard-skills { display: flex; flex-wrap: wrap; gap: 7px; }
.tcard-skills span {
    background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.25);
    color: var(--purple2); padding: 3px 11px; border-radius: 4px;
    font-family: var(--head); font-size: .7rem; font-weight: 700;
    transition: all .3s;
}
.tcard:hover .tcard-skills span { background: rgba(139,92,246,.18); border-color: rgba(139,92,246,.5); }

/* ======================================================
   SKILLS
   ====================================================== */
#skills {}
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 22px; max-width: 1200px; }
.skill-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; padding: 26px; position: relative; overflow: hidden;
    transition: transform .4s, box-shadow .4s, border-color .3s;
}
.skill-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--c, var(--purple)), var(--pink));
    opacity: 0; transition: opacity .3s;
}
.skill-card:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(0,0,0,.3); border-color: var(--c, var(--purple)); }
.skill-card:hover::after { opacity: 1; }
.sc-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--purple)) 20%, transparent), color-mix(in srgb, var(--c, var(--purple)) 35%, transparent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--c, var(--purple));
    border: 1px solid color-mix(in srgb, var(--c, var(--purple)) 30%, transparent);
    margin-bottom: 16px;
}
.skill-card h3 { font-family: var(--head); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 18px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span {
    background: color-mix(in srgb, var(--c, var(--purple)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, var(--purple)) 30%, transparent);
    color: color-mix(in srgb, var(--c, var(--purple)) 85%, var(--text));
    padding: 5px 14px; border-radius: 20px;
    font-size: .76rem; font-weight: 600; font-family: var(--head);
    letter-spacing: .02em;
    transition: background .25s, border-color .25s, transform .2s;
    cursor: default;
}
.skill-card:hover .skill-tags span {
    background: color-mix(in srgb, var(--c, var(--purple)) 20%, transparent);
    border-color: color-mix(in srgb, var(--c, var(--purple)) 55%, transparent);
}
.skill-tags span:hover { transform: translateY(-2px); }

/* ======================================================
   PROJECTS
   ====================================================== */
#projects { background: var(--bg2); }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px,1fr)); gap: 26px; max-width: 1200px; }
.pcard {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
    display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 28px 70px rgba(109,40,217,.22); border-color: rgba(139,92,246,.45); }
.pcard-img { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pcard:hover .pcard-img img { transform: scale(1.07); }
.pcard-overlay { position: absolute; inset: 0; background: rgba(15,14,26,.78); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .35s; }
.pcard:hover .pcard-overlay { opacity: 1; }
.pcard-link {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff; padding: 11px 26px; border-radius: 50px;
    font-family: var(--head); font-size: .75rem; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    transform: translateY(8px); transition: transform .35s;
    box-shadow: 0 8px 28px var(--glow-p);
}
.pcard:hover .pcard-link { transform: translateY(0); }
.pcard-num { position: absolute; top: 12px; left: 12px; font-family: var(--head); font-size: .68rem; font-weight: 900; color: rgba(255,255,255,.15); background: rgba(15,14,26,.55); padding: 3px 9px; border-radius: 4px; border: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(4px); }
.pcard-cat { position: absolute; top: 12px; right: 12px; background: rgba(109,40,217,.7); backdrop-filter: blur(4px); color: #fff; padding: 3px 10px; border-radius: 4px; font-family: var(--head); font-size: .65rem; font-weight: 700; letter-spacing: .1em; }
.pcard-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.pcard-body h3 { font-family: var(--head); font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 9px; }
.pcard-body p { color: var(--text2); font-size: .85rem; line-height: 1.7; flex: 1; margin-bottom: 16px; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.pcard-tags span { background: rgba(236,72,153,.1); border: 1px solid rgba(236,72,153,.25); color: var(--pink); padding: 3px 10px; border-radius: 4px; font-family: var(--head); font-size: .7rem; font-weight: 700; }

/* ======================================================
   CERTIFICATES
   ====================================================== */
#certificates {}
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 18px; max-width: 1100px; }
.cert {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; padding: 30px 18px; text-align: center;
    transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
    position: relative; overflow: hidden; cursor: default;
}
.cert::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(109,40,217,.15), transparent 65%); opacity: 0; transition: opacity .4s; }
.cert:hover { transform: translateY(-8px) scale(1.04); border-color: rgba(139,92,246,.5); box-shadow: 0 20px 50px rgba(109,40,217,.2); }
.cert:hover::before { opacity: 1; }
.cert-ico { width: 58px; height: 58px; margin: 0 auto 14px; background: linear-gradient(135deg, rgba(109,40,217,.25), rgba(236,72,153,.25)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.45rem; color: var(--purple2); border: 1px solid rgba(139,92,246,.3); transition: transform .4s var(--ease), box-shadow .4s; }
.cert:hover .cert-ico { transform: rotate(12deg) scale(1.15); box-shadow: 0 0 22px var(--glow-p); }
.cert h4 { font-family: var(--head); font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.cert p { font-size: .75rem; color: var(--text2); letter-spacing: .1em; }

/* ======================================================
   CONTACT
   ====================================================== */
#contact { background: var(--bg2); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.7fr; gap: 36px; max-width: 1080px; }
.contact-left { display: flex; flex-direction: column; gap: 28px; }
.contact-mascot-wrap { position: relative; }
.contact-mascot { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; border: 3px solid rgba(139,92,246,.5); box-shadow: 0 10px 40px var(--glow-p); animation: mascotHover 4s ease-in-out infinite; }
.contact-bubble {
    position: absolute; bottom: 10px; left: 120px;
    background: var(--surface2); border: 1px solid var(--border);
    padding: 10px 16px; border-radius: 14px 14px 14px 0;
    font-size: .83rem; line-height: 1.5; color: var(--text); white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    animation: bubblePop .5s var(--ease) 2.5s both;
}
@keyframes bubblePop { from { opacity: 0; transform: scale(.8) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.contact-bubble::before { content: ''; position: absolute; left: -8px; bottom: 8px; border: 4px solid transparent; border-right-color: var(--border); }

.contact-links { display: flex; flex-direction: column; gap: 14px; }
.clink { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: all .3s; }
.clink:hover { border-color: var(--purple2); background: rgba(139,92,246,.08); transform: translateX(6px); }
.clink-ico { width: 40px; height: 40px; background: linear-gradient(135deg, rgba(109,40,217,.25), rgba(236,72,153,.25)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--purple2); font-size: .95rem; flex-shrink: 0; }
.clink > div span { font-family: var(--head); font-size: .63rem; letter-spacing: .18em; color: var(--text2); text-transform: uppercase; display: block; margin-bottom: 2px; }
.clink > div strong { color: var(--text); font-size: .83rem; display: block; }

.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 40px; height: 40px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: .9rem; transition: all .3s; }
.social-icons a:hover { background: rgba(139,92,246,.18); border-color: var(--purple2); color: var(--purple2); transform: translateY(-3px); box-shadow: 0 8px 20px var(--glow-p); }

.contact-right form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fg { display: flex; flex-direction: column; gap: 7px; }
.fg label { font-family: var(--head); font-size: .68rem; font-weight: 700; letter-spacing: .18em; color: var(--text2); text-transform: uppercase; }
.fg input, .fg textarea { background: var(--surface2); border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 15px; color: var(--text); font-family: var(--body); font-size: .9rem; outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical; }
.fg input::placeholder, .fg textarea::placeholder { color: rgba(160,154,191,.45); }
.fg input:focus, .fg textarea:focus { border-color: var(--purple2); box-shadow: 0 0 0 3px rgba(139,92,246,.12); }
.submit-btn { background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; padding: 14px 32px; border: none; border-radius: 50px; font-family: var(--head); font-size: .85rem; font-weight: 700; cursor: none; transition: all .3s; display: flex; align-items: center; gap: 10px; align-self: flex-start; box-shadow: 0 8px 28px var(--glow-p); }
.submit-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 38px var(--glow-m); }

/* ======================================================
   FOOTER
   ====================================================== */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 50px clamp(18px,7vw,110px) 28px; position: relative; z-index: 1; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.footer-brand { max-width: 300px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.footer-logo-wrap span em { color: var(--pink); font-style: normal; }
.footer-brand p { color: var(--text2); font-size: .85rem; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-nav a { font-family: var(--head); font-size: .75rem; color: var(--text2); padding: 6px 14px; border-radius: 6px; transition: all .3s; }
.footer-nav a:hover { color: var(--purple2); background: rgba(139,92,246,.08); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: .85rem; transition: all .3s; }
.footer-social a:hover { background: rgba(139,92,246,.15); border-color: var(--purple2); color: var(--purple2); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; text-align: center; }
.footer-bottom p { color: var(--text2); font-size: .8rem; }
.footer-bottom i { color: var(--pink); }

/* Responsive moved to responsive.css */

/* ======================================================
   TAMIMA 3D HERO
   ====================================================== */
.hero-mascot-wrap {
    position: relative; z-index: 2;
    flex-shrink: 0;
    width: clamp(300px, 42vw, 520px);
    height: clamp(360px, 50vw, 620px);
}

#tamima-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border-radius: 24px;
    /* subtle inner glow frame */
    filter: drop-shadow(0 0 40px rgba(139,92,246,0.3))
            drop-shadow(0 0 80px rgba(236,72,153,0.15));
}

/* Re-position floating tags over canvas */
.hero-mascot-wrap .floating-tag {
    z-index: 10;
    display: flex; align-items: center; gap: 6px;
    background: rgba(30,27,51,0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139,92,246,0.4);
    color: var(--purple2);
    box-shadow: 0 4px 20px rgba(109,40,217,0.25), 0 0 0 1px rgba(139,92,246,0.15);
    font-size: .72rem;
    transition: transform .3s, box-shadow .3s;
}
.hero-mascot-wrap .floating-tag:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 28px rgba(109,40,217,0.4);
    border-color: var(--pink);
    color: var(--pink);
}
.hero-mascot-wrap .floating-tag i { font-size: .8rem; }

.tap-hint {
    position: absolute;
    bottom: 14px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--head); font-size: .65rem;
    letter-spacing: .15em; color: rgba(139,92,246,.5);
    text-transform: uppercase; white-space: nowrap;
    animation: hintPulse 2.5s ease-in-out infinite;
    z-index: 10;
}
@keyframes hintPulse { 0%,100% { opacity:.4; } 50% { opacity:.9; } }

/* ======================================================
   CONTACT 3D MINI MASCOT
   ====================================================== */
.contact-3d-wrap {
    width: 160px; height: 180px;
    position: relative; flex-shrink: 0;
}
#contact-tamima-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    filter: drop-shadow(0 8px 30px rgba(139,92,246,0.4));
}

/* Remove old static mascot styles */
.contact-mascot { display: none; }

/* ═══════════════════════════════════════════════════
   MASCOT SHARED
   ═══════════════════════════════════════════════════ */
.mascot-img {
    display: block;
    max-width: 100%;
    filter: drop-shadow(0 20px 50px rgba(139,92,246,.35));
    position: relative; z-index: 3;
}

/* ═══════════════════════════════════════════════════
   HERO MASCOT — CSS 3D RINGS + SPARKS
   ═══════════════════════════════════════════════════ */
.hero-mascot-wrap {
    position: relative; z-index: 2; flex-shrink: 0;
    width: clamp(280px, 40vw, 500px);
    display: flex; align-items: center; justify-content: center;
}
.mascot-stage {
    position: relative;
    width: 100%; padding-bottom: 115%;
}
.mascot-stage > * { position: absolute; }

/* CSS 3D rings */
.css-ring {
    border-radius: 50%;
    border: 1.5px solid;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%) rotateX(70deg);
    transform-style: preserve-3d;
    animation: ringRotate linear infinite;
}
.cr1 { width: 75%; padding-bottom: 75%; border-color: rgba(139,92,246,.6); animation-duration: 6s; }
.cr2 { width: 92%; padding-bottom: 92%; border-color: rgba(236,72,153,.4); animation-duration: 9s; animation-direction: reverse; }
.cr3 { width: 110%; padding-bottom: 110%; border-color: rgba(217,70,239,.25); animation-duration: 13s; }
@keyframes ringRotate { from { transform: translate(-50%,-50%) rotateX(70deg) rotateZ(0deg); } to { transform: translate(-50%,-50%) rotateX(70deg) rotateZ(360deg); } }

.mascot-blob-glow {
    width: 70%; padding-bottom: 70%;
    top: 15%; left: 15%;
    background: radial-gradient(ellipse, rgba(139,92,246,.3) 0%, rgba(236,72,153,.15) 50%, transparent 75%);
    border-radius: 50%; animation: glowPulse 3s ease-in-out infinite;
}

.hero-mascot-img {
    width: 85%; height: auto;
    top: 5%; left: 7.5%;
    animation: mascotHover 3.5s ease-in-out infinite;
    filter: drop-shadow(0 25px 60px rgba(236,72,153,.4));
}
@keyframes mascotHover { 0%,100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-18px) rotate(.5deg); } }

/* Sparks */
.spark {
    width: 8px; height: 8px; border-radius: 50%;
    animation: sparkOrbit linear infinite;
}
.s1 { background: #ec4899; width:10px; height:10px; top:20%; left:5%;  animation-duration:4s;  animation-delay:0s;   box-shadow:0 0 10px #ec4899; }
.s2 { background: #8b5cf6; width:6px;  height:6px;  top:60%; left:88%; animation-duration:5s;  animation-delay:-.8s; box-shadow:0 0 8px #8b5cf6; }
.s3 { background: #d946ef; width:7px;  height:7px;  top:80%; left:20%; animation-duration:6s;  animation-delay:-2s;  box-shadow:0 0 9px #d946ef; }
.s4 { background: #fbbf24; width:5px;  height:5px;  top:10%; left:75%; animation-duration:4.5s;animation-delay:-1s;  box-shadow:0 0 7px #fbbf24; }
.s5 { background: #ec4899; width:9px;  height:9px;  top:45%; left:2%;  animation-duration:7s;  animation-delay:-3s;  box-shadow:0 0 11px #ec4899;}
.s6 { background: #8b5cf6; width:6px;  height:6px;  top:90%; left:65%; animation-duration:5.5s;animation-delay:-1.5s;box-shadow:0 0 8px #8b5cf6; }
@keyframes sparkOrbit {
    0%   { transform: translate(0,0) scale(1); opacity:.9; }
    25%  { transform: translate(15px,-12px) scale(1.3); opacity:1; }
    50%  { transform: translate(0,-20px) scale(.8); opacity:.6; }
    75%  { transform: translate(-12px,-8px) scale(1.1); opacity:.9; }
    100% { transform: translate(0,0) scale(1); opacity:.9; }
}

/* ═══════════════════════════════════════════════════
   ABOUT — layout with mascot left
   ═══════════════════════════════════════════════════ */
#about { background: var(--bg2); }
.about-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px; align-items: start;
    max-width: 1200px; margin: 0 auto;
}
.about-mascot-col { position: sticky; top: 100px; }
.about-mascot-stage {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
}
.about-blob-bg {
    position: absolute; width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(139,92,246,.2), rgba(236,72,153,.1) 60%, transparent);
    border-radius: 50%; top: 10%; left: 50%; transform: translateX(-50%);
    animation: glowPulse 4s ease-in-out infinite;
}
.about-mascot-img {
    width: 260px; height: auto;
    animation: mascotHover 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 45px rgba(139,92,246,.4));
}
.about-thought-bubble {
    margin-top: 16px; background: var(--surface2);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 10px 18px; font-family: var(--head); font-size: .82rem;
    color: var(--purple2); position: relative;
    animation: bobble 2s ease-in-out infinite;
}
.about-thought-bubble::before {
    content: ''; position: absolute; top: -8px; left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent; border-bottom-color: var(--border);
}
@keyframes bobble { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.about-text-col { min-width: 0; }

/* about responsive → responsive.css */

/* ═══════════════════════════════════════════════════
   SKILLS — layout with mascot right
   ═══════════════════════════════════════════════════ */
#skills {}
.skills-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 50px; align-items: start;
    max-width: 1200px;
}
.skills-mascot-col { position: sticky; top: 100px; }
.skills-mascot-stage {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
}
.skills-blob-glow {
    position: absolute; width: 240px; height: 300px;
    background: radial-gradient(ellipse, rgba(236,72,153,.18), rgba(139,92,246,.1) 60%, transparent);
    top: 0; left: 50%; transform: translateX(-50%);
    animation: glowPulse 4s ease-in-out infinite 1s;
}
.skills-mascot-img {
    width: 240px; height: auto;
    animation: mascotHover 3.8s ease-in-out infinite .5s;
    filter: drop-shadow(0 20px 45px rgba(236,72,153,.35));
}
.skills-label-bubble {
    margin-top: 14px; background: linear-gradient(135deg, rgba(109,40,217,.25), rgba(190,24,93,.15));
    border: 1px solid rgba(139,92,246,.4); border-radius: 20px;
    padding: 8px 16px; font-family: var(--head); font-size: .78rem;
    color: var(--pink); animation: bobble 2.5s ease-in-out infinite .3s;
}
/* skills responsive → responsive.css */

/* ═══════════════════════════════════════════════════
   PROJECTS — banner + mascot
   ═══════════════════════════════════════════════════ */
#projects { background: var(--bg2); }
.projects-mascot-banner {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, rgba(109,40,217,.18), rgba(190,24,93,.12));
    border: 1px solid rgba(139,92,246,.3); border-radius: 24px;
    padding: 28px 40px; margin-bottom: 50px; overflow: hidden;
    position: relative; gap: 20px;
}
.projects-mascot-banner::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%238b5cf6' fill-opacity='0.05'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z'/%3E%3C/g%3E%3C/svg%3E");
}
.pmb-text { position: relative; z-index: 1; }
.pmb-tag {
    display: inline-block; background: rgba(139,92,246,.2);
    border: 1px solid rgba(139,92,246,.4); color: var(--purple2);
    padding: 4px 14px; border-radius: 50px; font-family: var(--head);
    font-size: .72rem; font-weight: 700; letter-spacing: .12em;
    margin-bottom: 10px;
}
.pmb-text p { color: var(--text2); font-size: 1rem; }
.pmb-mascot {
    height: 180px; width: auto; flex-shrink: 0;
    animation: mascotHover 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(139,92,246,.4));
    position: relative; z-index: 1;
}
.pmb-code-snippets { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.code-snip {
    font-family: 'Courier New', monospace; font-size: .72rem;
    background: rgba(15,14,26,.7); border: 1px solid rgba(139,92,246,.2);
    color: var(--purple2); padding: 5px 12px; border-radius: 6px;
    white-space: nowrap;
}
.cs1 { color: #ec4899; animation: codeFlicker 3s ease-in-out infinite; }
.cs2 { color: #8b5cf6; animation: codeFlicker 3s ease-in-out infinite .5s; }
.cs3 { color: #16a34a; animation: codeFlicker 3s ease-in-out infinite 1s; }
@keyframes codeFlicker { 0%,100% { opacity:.7; } 50% { opacity:1; } }
/* projects responsive → responsive.css */

/* ═══════════════════════════════════════════════════
   CERTIFICATES — mascot right با كأس
   ═══════════════════════════════════════════════════ */
#certificates {}
.certs-inner {
    display: grid; grid-template-columns: 1fr 300px;
    gap: 50px; align-items: center; max-width: 1200px;
}
.certs-mascot-col { display: flex; justify-content: center; }
.certs-mascot-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.trophy-glow {
    position: absolute; width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(255,215,0,.2), rgba(236,72,153,.1) 55%, transparent);
    border-radius: 50%; top: 10%; left: 50%; transform: translateX(-50%);
    animation: trophyPulse 2.5s ease-in-out infinite;
}
@keyframes trophyPulse { 0%,100% { transform: translateX(-50%) scale(1); opacity:.8; } 50% { transform: translateX(-50%) scale(1.12); opacity:1; } }
.certs-mascot-img {
    width: 280px; height: auto;
    animation: mascotHover 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 50px rgba(255,215,0,.3)) drop-shadow(0 0 30px rgba(236,72,153,.25));
}
.certs-badge-float {
    position: absolute;
    background: var(--surface2); border: 1px solid rgba(255,215,0,.35);
    padding: 6px 14px; border-radius: 50px;
    font-family: var(--head); font-size: .72rem; font-weight: 700;
    color: #fbbf24; white-space: nowrap;
    animation: badgeFloat linear infinite alternate;
}
.cb1 { top: 10%; left: -10%; animation-duration: 2.8s; }
.cb2 { bottom: 20%; right: -12%; animation-duration: 3.4s; animation-delay: .5s; }
@keyframes badgeFloat { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-10px) rotate(2deg); } }

/* confetti */
.confetti-wrap { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 20px; }
.confetti-piece {
    position: absolute; width: 8px; height: 8px; border-radius: 2px;
    animation: confettiFall linear infinite;
}
@keyframes confettiFall {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(320px) rotate(720deg); opacity: 0; }
}
/* certs responsive → responsive.css */

/* ═══════════════════════════════════════════════════
   CONTACT — mascot يلوّح
   ═══════════════════════════════════════════════════ */
.contact-mascot-stage { position: relative; display: inline-block; }
.contact-blob-glow {
    position: absolute; width: 180px; height: 220px;
    background: radial-gradient(ellipse, rgba(139,92,246,.25), rgba(236,72,153,.12) 60%, transparent);
    top: 0; left: 50%; transform: translateX(-50%);
    animation: glowPulse 3s ease-in-out infinite;
}
.contact-mascot-img {
    width: 180px; height: auto;
    animation: mascotHover 3s ease-in-out infinite, waveArm 1.5s ease-in-out infinite;
    filter: drop-shadow(0 15px 35px rgba(236,72,153,.35));
    position: relative; z-index: 2;
}
@keyframes waveArm {
    0%,100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-8px) rotate(3deg); }
    75%      { transform: translateY(-4px) rotate(-2deg); }
}
.wave-ripple {
    position: absolute; border-radius: 50%;
    border: 2px solid rgba(139,92,246,.3);
    top: 15%; right: -10%;
    animation: waveRipple ease-out infinite;
}
.wr1 { width: 30px; height: 30px; animation-duration: 2s; animation-delay: 0s; }
.wr2 { width: 30px; height: 30px; animation-duration: 2s; animation-delay: .6s; }
@keyframes waveRipple {
    0%   { transform: scale(1); opacity: .8; }
    100% { transform: scale(3.5); opacity: 0; }
}
.contact-bubble {
    position: absolute; bottom: 0; left: 170px;
    background: var(--surface2); border: 1px solid var(--border);
    padding: 10px 16px; border-radius: 14px 14px 14px 0;
    font-size: .83rem; line-height: 1.5; color: var(--text);
    box-shadow: 0 4px 20px rgba(0,0,0,.3); white-space: nowrap;
    animation: bubblePop .5s var(--ease) 2.5s both, bobble 3s ease-in-out infinite 3s;
    z-index: 10;
}

/* ═══════════════════════════════════════════════════
   LOGO STYLES
   ═══════════════════════════════════════════════════ */

/* Nav logo */
.nav-logo-img {
    height: 38px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 12px rgba(236,72,153,.35));
    transition: transform .3s var(--ease), filter .3s;
}
.nav-logo:hover .nav-logo-img {
    transform: scale(1.06);
    filter: drop-shadow(0 4px 20px rgba(236,72,153,.6));
}

/* Hero logo — أكبر وبارز */
.hero-logo-img {
    width: clamp(180px, 28vw, 340px);
    height: auto;
    margin-bottom: 22px;
    filter: drop-shadow(0 6px 30px rgba(190,24,93,.45))
            drop-shadow(0 0 60px rgba(139,92,246,.2));
    animation: logoGlow 3s ease-in-out infinite alternate;
}
@keyframes logoGlow {
    from { filter: drop-shadow(0 6px 30px rgba(190,24,93,.4)) drop-shadow(0 0 40px rgba(139,92,246,.15)); }
    to   { filter: drop-shadow(0 8px 40px rgba(190,24,93,.7)) drop-shadow(0 0 80px rgba(139,92,246,.3)); }
}

/* Loader logo */
.loader-logo-img {
    width: clamp(160px, 30vw, 280px);
    height: auto;
    filter: drop-shadow(0 4px 24px rgba(190,24,93,.5));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

/* Footer logo */
.footer-logo-img {
    width: clamp(120px, 18vw, 200px);
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 14px rgba(190,24,93,.35));
    opacity: .9;
    transition: opacity .3s, filter .3s;
}
.footer-logo-img:hover {
    opacity: 1;
    filter: drop-shadow(0 4px 22px rgba(190,24,93,.6));
}

/* إزالة loader-brand القديم إن وُجد */
.loader-brand { display: none; }

/* جعل كل tcard-top يترك مسافة للـ label */
.tcard.tcard-ceo .tcard-top { margin-top: 36px; }


/* =====================================================
   KGM TEAM — RESPONSIVE CSS
   Tablet: 768px – 1024px
   Mobile Large: 480px – 767px
   Mobile Small: < 480px
   ===================================================== */

/* ======================================================
   TABLET — 1024px
   ====================================================== */
@media (max-width: 1024px) {

    /* Sections padding */
    section { padding: 70px clamp(16px, 5vw, 60px); }

    /* Hero */
    #hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 90px;
        padding-bottom: 50px;
        gap: 30px;
        min-height: auto;
    }
    .hero-content { max-width: 100%; }
    .hero-logo-img { width: clamp(160px, 35vw, 280px); margin: 0 auto 18px; }
    .hero-title { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
    .hero-btns { justify-content: center; }
    .hero-nums { justify-content: center; }
    .hero-p { font-size: .95rem; }

    /* Hero mascot */
    .hero-mascot-wrap {
        width: clamp(240px, 55vw, 380px);
        margin: 0 auto;
    }
    .floating-tag { font-size: .65rem; padding: 5px 10px; }
    .tag-1 { left: -2%; }
    .tag-4 { right: -2%; }

    /* About */
    .about-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-mascot-col {
        position: static;
        display: flex;
        justify-content: center;
    }
    .about-mascot-img { width: 200px; }

    /* Skills */
    .skills-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .skills-mascot-col {
        position: static;
        display: flex;
        justify-content: center;
        order: -1;
    }
    .skills-mascot-img { width: 180px; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }

    /* Projects */
    .proj-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-mascot-banner { padding: 22px 28px; }
    .pmb-mascot { height: 150px; }

    /* Certificates */
    .certs-inner { grid-template-columns: 1fr; gap: 30px; }
    .certs-mascot-col { order: -1; }
    .certs-mascot-img { width: 200px; }
    .certs-grid { grid-template-columns: repeat(3, 1fr); }

    /* Contact */
    .contact-wrap { grid-template-columns: 1fr; gap: 30px; }
    .fg-row { grid-template-columns: 1fr 1fr; }

    /* Team */
    .team-grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer */
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* ======================================================
   TABLET SMALL — 768px
   ====================================================== */
@media (max-width: 768px) {

    /* Hide desktop nav, show hamburger */
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }

    /* Nav logo smaller */
    .nav-logo-img { height: 30px; }

    /* Section spacing */
    section { padding: 60px 18px; }
    .section-title { font-size: 1.85rem; }

    /* Hero */
    .hero-title { font-size: clamp(1.9rem, 7vw, 3rem); }
    .hero-logo-img { width: clamp(140px, 50vw, 240px); }
    .hero-p { font-size: .88rem; }
    .btn-main, .btn-outline { padding: 11px 22px; font-size: .78rem; }
    .hnum strong { font-size: 1.8rem; }

    /* Mascot hero */
    .hero-mascot-wrap { width: clamp(210px, 70vw, 320px); }
    .tag-1, .tag-2, .tag-3, .tag-4 { display: none; } /* إخفاء تاقات على موبايل صغير */

    /* About */
    .about-mascot-img { width: 170px; }
    .about-thought-bubble { font-size: .75rem; }

    /* Skills — single column */
    .skills-grid { grid-template-columns: 1fr; }
    .skills-mascot-img { width: 150px; }

    /* Projects */
    .proj-grid { grid-template-columns: 1fr; }
    .projects-mascot-banner { flex-direction: column; text-align: center; padding: 20px 16px; gap: 14px; }
    .pmb-mascot { height: 120px; order: -1; }
    .pmb-code-snippets { display: none; }

    /* Team */
    .team-grid { grid-template-columns: 1fr; }

    /* Certs */
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .certs-mascot-img { width: 170px; }

    /* Contact */
    .contact-mascot-stage { display: flex; justify-content: center; }
    .contact-mascot-img { width: 140px; }
    .contact-bubble { left: 130px; font-size: .75rem; padding: 8px 12px; }
    .fg-row { grid-template-columns: 1fr; }

    /* Walker — smaller on mobile */
    #tamima-walker .tw-img { width: 65px; }

    /* Footer */
    .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .footer-nav { justify-content: center; }
    .footer-logo-img { width: clamp(100px, 40vw, 160px); }
}

/* ======================================================
   MOBILE LARGE — 600px
   ====================================================== */
@media (max-width: 600px) {

    /* Body */
    body { cursor: auto; } /* إلغاء الـ custom cursor على الموبايل */
    .cursor, .cursor-trail { display: none; }

    /* Loader */
    .loader-mascot { width: 80px; height: 80px; }
    .loader-logo-img { width: 160px; }
    .loader-text { font-size: .72rem; }

    /* Nav */
    #header { padding: 0 14px; }
    .nav-wrap { height: 58px; }
    .nav-logo-img { height: 26px; }

    /* Hero */
    #hero { padding-top: 72px; padding-bottom: 40px; gap: 20px; }
    .hero-logo-img { width: clamp(120px, 60vw, 200px); margin-bottom: 14px; }
    .hero-chip { font-size: .65rem; padding: 5px 12px; }
    .hero-title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
    .hero-p { font-size: .82rem; line-height: 1.7; }
    .hero-btns { gap: 10px; }
    .btn-main, .btn-outline { padding: 10px 18px; font-size: .75rem; }
    .hero-nums { gap: 16px; }
    .hnum strong { font-size: 1.6rem; }
    .hnum span { font-size: .65rem; }
    .hnum-div { height: 28px; }

    /* Hero mascot */
    .hero-mascot-wrap { width: clamp(180px, 80vw, 280px); }
    .mascot-blob-glow { opacity: .6; }

    /* Section */
    section { padding: 50px 16px; }
    .section-label { font-size: .62rem; }
    .section-title { font-size: 1.65rem; }
    .section-sub { font-size: .85rem; }

    /* About */
    .about-inner { gap: 20px; }
    .about-mascot-img { width: 150px; }

    /* Skills */
    .skills-layout { gap: 20px; }
    .skill-card { padding: 20px; }
    .sc-icon { width: 40px; height: 40px; font-size: 1.1rem; }

    /* Projects */
    .pcard-body { padding: 16px; }
    .pcard-body h3 { font-size: .95rem; }
    .pcard-body p { font-size: .8rem; }
    .projects-mascot-banner { border-radius: 16px; padding: 16px; }
    .pmb-text p { font-size: .85rem; }
    .pmb-mascot { height: 100px; }

    /* Team */
    .tcard { padding: 22px 18px; }
    .tcard-avatar { width: 58px; height: 58px; }
    .tcard-header-info h3 { font-size: 1rem; }
    .ceo-label { font-size: .6rem; }

    /* Certs */
    .certs-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cert { padding: 20px 12px; border-radius: 14px; }
    .cert-ico { width: 48px; height: 48px; font-size: 1.2rem; }
    .certs-mascot-img { width: 150px; }
    .certs-badge-float { display: none; } /* تخفي الـ badges على موبايل لتفادي التداخل */

    /* Contact */
    .contact-left { align-items: center; text-align: center; }
    .contact-mascot-img { width: 120px; }
    .contact-bubble { display: none; }
    .clink { justify-content: flex-start; }
    .contact-right form { padding: 24px 20px; }
    .submit-btn { width: 100%; justify-content: center; }

    /* Footer */
    .footer-top { gap: 18px; }
    .footer-nav { flex-wrap: wrap; justify-content: center; gap: 4px; }
    .footer-bottom p { font-size: .72rem; }

    /* Walker mascot */
    #tamima-walker .tw-img { width: 55px; }
    #tamima-walker { bottom: 10px; right: 12px; }
    .tw-bubble { font-size: .65rem; padding: 6px 10px; }
}

/* ======================================================
   MOBILE SMALL — 480px
   ====================================================== */
@media (max-width: 480px) {

    /* Hero */
    .hero-title { font-size: clamp(1.5rem, 9vw, 2.1rem); }
    .hero-logo-img { width: clamp(110px, 65vw, 180px); }
    .hero-btns { flex-direction: column; align-items: center; width: 100%; }
    .btn-main, .btn-outline { width: 100%; max-width: 280px; justify-content: center; }
    .hero-nums { gap: 12px; }

    /* Mascot */
    .hero-mascot-wrap { width: clamp(160px, 85vw, 260px); }

    /* Certs grid */
    .certs-grid { grid-template-columns: repeat(2, 1fr); }

    /* Projects */
    .pcard-tags { gap: 5px; }
    .pcard-tags span { font-size: .65rem; padding: 2px 8px; }

    /* Team card skills */
    .tcard-skills span { font-size: .65rem; padding: 2px 9px; }

    /* Skills bar text */
    .sb-row > span { font-size: .72rem; }
    .sb-row em { font-size: .68rem; }

    /* Scroll indicator */
    .scroll-indicator { display: none; }

    /* Contact */
    .fg-row { gap: 12px; }
    .fg input, .fg textarea { padding: 10px 12px; font-size: .85rem; }
}

/* ======================================================
   MOBILE TINY — 360px
   ====================================================== */
@media (max-width: 360px) {
    .hero-title { font-size: 1.4rem; }
    .section-title { font-size: 1.45rem; }
    .team-grid { gap: 16px; }
    .certs-grid { grid-template-columns: 1fr; }
    section { padding: 40px 12px; }
    .nav-logo-img { height: 22px; }
}

/* ======================================================
   TOUCH DEVICES — إلغاء hover effects
   ====================================================== */
@media (hover: none) {
    .cursor, .cursor-trail { display: none !important; }
    body { cursor: auto; }
    .tcard:hover { transform: none !important; }
    .pcard:hover { transform: translateY(-4px) !important; }
    .cert:hover { transform: translateY(-4px) scale(1.02) !important; }
    .skill-card:hover { transform: translateY(-3px) !important; }
    .nav-cta:hover { transform: none !important; }
}

/* ======================================================
   LANDSCAPE MOBILE — هاتف بالوضع الأفقي
   ====================================================== */
@media (max-width: 768px) and (orientation: landscape) {
    #hero {
        flex-direction: row;
        padding-top: 70px;
        min-height: 100vh;
        text-align: left;
        gap: 20px;
    }
    .hero-btns { justify-content: flex-start; }
    .hero-nums { justify-content: flex-start; }
    .hero-content { text-align: left; }
    .hero-mascot-wrap { width: clamp(160px, 35vw, 240px); flex-shrink: 0; }
    .hero-logo-img { margin: 0 0 14px; }
    .hero-title { font-size: clamp(1.4rem, 4vw, 2rem); }
}

/* ======================================================
   PRINT — إخفاء العناصر غير الضرورية
   ====================================================== */
@media print {
    #tamima-walker, #tamima-intro, #bg-canvas, #bubbles,
    .cursor, .cursor-trail, .scroll-indicator,
    .mascot-blob-glow, .css-ring, .spark { display: none !important; }
    body { background: white; color: black; cursor: auto; }
    #header { position: static; }
}

/* ======================================================
   3D SECTION STYLES
   ====================================================== */
.three-d-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 60px 0;
    flex-wrap: wrap;
}

.three-d-content {
    flex: 1;
    min-width: 300px;
}

.three-d-features {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.three-d-features li {
    margin-bottom: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.three-d-features i {
    color: var(--fuchsia);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px var(--fuchsia));
}

.three-d-model-container {
    flex: 1;
    min-width: 300px;
    height: 600px;
    /* الارتفاع للشاشات الكبيرة */
    position: relative;
    display: flex !important;
    /* التأكد من ظهوره كـ flex */
    justify-content: center;
    align-items: center;
    background-color: transparent;
    flex-direction: column;
    /* لضمان عدم وجود لون يحجبه */
}

/* تأكد من إضافة z-index للموديل في التنسيق العام */
model-viewer {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    /* إضافة هذه الخاصية ضرورية ليعمل الـ z-index */
    z-index: 2;
    /* جعل الموديل في الطبقة الأمامية */
}

.model-glow {
    position: absolute;
    width: 400px;
    /* يمكنك تكبيرها قليلاً لتبدو كخلفية أوسع */
    height: 400px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.25) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 1;
    /* جعل الدائرة في الطبقة الخلفية */
    pointer-events: none;
    /* إضافة هذه الخاصية تضمن أن الدائرة لا تعيق تدوير الموديل بالماوس */
}

/* التوافق مع الشاشات الصغيرة */
@media (max-width: 768px) {

    /* ضمان ظهور السيكشن بالكامل */
    #three-d-section {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .three-d-wrapper {
        flex-direction: column-reverse;
        /* يضع الموديل فوق النص في الموبايل */
        gap: 30px;
    }

    .three-d-model-container {
        width: 100% !important;
        height: 400px !important;
        /* ارتفاع ثابت للموبايل */
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 350px;
    }

    model-viewer {
        display: block !important;
        min-height: 350px;
    }
}

.model-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    z-index: 10;
    /* للتأكد من أنها فوق التوهج */
}

.control-btn {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    background: var(--purple);
    transform: translateY(-3px);
    border-color: var(--fuchsia);
}

.control-btn.active {
    background: linear-gradient(135deg, var(--purple), var(--fuchsia));
    border-color: transparent;
    color: white;
    box-shadow: 0 0 15px var(--fuchsia);
}

/* تنسيق الموبايل للأزرار */
@media (max-width: 768px) {
    .model-controls {
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .control-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}