/* ════════════════════════════════════════════
   OMAR ALFAROUK PORTFOLIO - STYLES
   ════════════════════════════════════════════ */

:root { --ts: 0.35s; }

[data-theme="dark"] {
  --bg:#0a0a0a; --bg2:#0d0d0d; --bg-card:#141414; --bg-card-h:#1a1a1a;
  --nav-bg:rgba(10,10,10,0.92);
  --pink:#e8427c; --pink2:#c9366a;
  --border:#1e1e1e; --border2:#1a1a1a;
  --tag-bg:#1a1a1a; --tag-border:#2a2a2a;
  --text:#ffffff; --text2:#aaa; --text3:#888; --text4:#666; --text5:#444;
  --dot:#333340; --stroke:#fff;
}
[data-theme="light"] {
  --bg:#f8f8fc; --bg2:#f0f0f6; --bg-card:#ffffff; --bg-card-h:#f4f4fa;
  --nav-bg:rgba(248,248,252,0.92);
  --pink:#d63a6e; --pink2:#c02e5e;
  --border:#dcdce6; --border2:#e4e4ee;
  --tag-bg:#eeeef4; --tag-border:#dcdce6;
  --text:#1a1a2e; --text2:#4a4a62; --text3:#6a6a7e; --text4:#8a8a9e; --text5:#aaaabc;
  --dot:#d0d0de; --stroke:#1a1a2e;
}

* {
  margin:0; padding:0; box-sizing:border-box;
  -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none;
}
input, textarea, .selectable, .selectable * {
  -webkit-user-select:text; -moz-user-select:text; user-select:text;
}
html { scroll-behavior:smooth; }
body {
  background:var(--bg); color:var(--text);
  font-family:'Space Grotesk', sans-serif;
  overflow-x:hidden;
  transition:background var(--ts), color var(--ts);
}

.dot-bg {
  position:fixed; top:0; left:0; right:0; bottom:0;
  background-image:radial-gradient(circle, var(--dot) 1.2px, transparent 1.2px);
  background-size:32px 32px;
  z-index:0; pointer-events:none;
}

/* Floating Circles */
.float-circles {
  position:fixed; top:0; left:0; right:0; bottom:0;
  z-index:0; pointer-events:none; overflow:hidden;
}
.fc {
  position:absolute; border-radius:50%;
  border:1.5px solid var(--pink); opacity:0.15;
  transition:transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fc:nth-child(1) { width:200px; height:200px; top:10%; left:5%; }
.fc:nth-child(2) { width:120px; height:120px; top:60%; right:8%; }
.fc:nth-child(3) { width:80px; height:80px; top:30%; right:20%; }
.fc:nth-child(4) { width:160px; height:160px; bottom:15%; left:15%; }
.fc:nth-child(5) { width:60px; height:60px; top:50%; left:40%; }

/* ═══ NAV ═══ */
nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; justify-content:space-between; align-items:center;
  padding:1rem 3.5rem;
  background:var(--nav-bg); backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  transition:all var(--ts);
}
.nav-logo { display:flex; align-items:center; gap:0.7rem; }
.nav-shapes { display:flex; align-items:center; gap:4px; }
.s-circle { width:16px; height:16px; border-radius:50%; background:linear-gradient(135deg, #a8e063, #56ab2f, #26d0ce); }
.s-square { width:14px; height:14px; background:linear-gradient(135deg, #667eea, #764ba2, #f093fb); }
.s-tri { width:0; height:0; border-top:8px solid transparent; border-bottom:8px solid transparent; border-right:14px solid #f7971e; }

.nav-links { display:flex; gap:2rem; list-style:none; align-items:center; }
.nav-links a {
  color:var(--text3); font-size:0.78rem; text-decoration:none;
  letter-spacing:0.05em; font-weight:500; transition:color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color:var(--text); }
.nav-right { display:flex; align-items:center; gap:0.8rem; }

.theme-btn {
  background:var(--bg-card); border:1px solid var(--border);
  width:36px; height:36px; border-radius:50%; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:0.9rem; transition:all 0.3s; color:var(--text3);
}
.theme-btn:hover { border-color:var(--pink); color:var(--pink); }

.nav-hire {
  background:transparent; border:1px solid var(--pink); color:var(--pink);
  padding:0.4rem 1.2rem; font-family:'Space Grotesk', sans-serif;
  font-size:0.75rem; font-weight:600; letter-spacing:0.08em;
  cursor:pointer; border-radius:2px; transition:all 0.2s;
}
.nav-hire:hover { background:var(--pink); color:#fff; }

.mob-btn { display:none; background:none; border:none; cursor:pointer; padding:4px; }
.mob-btn span { display:block; width:20px; height:2px; background:var(--text); margin:4px 0; border-radius:2px; }

.mobile-nav {
  position:fixed; top:0; left:0; right:0; bottom:0;
  background:var(--bg); z-index:150;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2rem;
  transform:translateX(100%); transition:transform 0.3s;
}
.mobile-nav.open { transform:translateX(0); }
.mobile-nav a { color:var(--text); font-size:1.2rem; text-decoration:none; font-weight:600; }
.mobile-nav-close {
  position:absolute; top:1rem; right:1.5rem;
  background:none; border:none; color:var(--text); font-size:1.5rem; cursor:pointer;
}

section { position:relative; z-index:1; }
.divider { border:none; border-top:1px solid var(--border2); margin:0; transition:border-color var(--ts); }
.wrap { max-width:1200px; margin:0 auto; padding:5.5rem 3.5rem; }
.sec-tag { font-size:0.68rem; letter-spacing:0.25em; color:var(--pink); font-weight:600; text-transform:uppercase; margin-bottom:0.6rem; }
.sec-title {
  font-size:clamp(2rem, 4vw, 3rem); font-weight:900;
  letter-spacing:-0.02em; line-height:1.0; margin-bottom:2.5rem;
}
.sec-title em {
  color:transparent; -webkit-text-stroke:1px var(--stroke);
  font-style:normal; transition:-webkit-text-stroke-color var(--ts);
}

/* ═══ HERO ═══ */
#hero {
  min-height:100vh; display:flex; flex-direction:column; justify-content:center;
  padding:6rem 3.5rem 3rem; max-width:1200px; margin:0 auto; position:relative;
}
.hero-content { width:100%; position:relative; z-index:2; text-align:center; }

.hero-bigtext-bg {
  position:absolute; top:50%; left:50%; transform:translate(-50%, -50%);
  font-size:clamp(14rem, 30vw, 26rem); font-weight:900;
  color:transparent; -webkit-text-stroke:1.5px var(--text5);
  opacity:0.08; pointer-events:none; letter-spacing:-0.05em;
  z-index:0; line-height:1; white-space:nowrap;
}

.hero-greeting {
  font-size:1rem; color:var(--text3); font-weight:400;
  margin-bottom:0.5rem; letter-spacing:0.02em;
  opacity:0; animation:fadeUp 0.7s 0.2s forwards;
}
.hero-name {
  font-size:clamp(3.5rem, 9vw, 7rem); font-weight:900;
  line-height:0.95; letter-spacing:-0.03em; margin-bottom:1.2rem;
  opacity:0; animation:fadeUp 0.7s 0.3s forwards;
}
.hero-name .last {
  color:transparent; -webkit-text-stroke:1.8px var(--stroke);
  transition:-webkit-text-stroke-color var(--ts);
}

/* Animated name characters */
.name-omar { display:inline-block; }
.name-omar .char {
  display:inline-block;
  transition:transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
  cursor:default;
}
.name-omar .char:hover {
  transform:translateY(-12px) rotate(-5deg) scale(1.1);
  color:var(--pink);
}
.name-omar .char:nth-child(1) { animation:dropIn 0.6s 0.3s both; }
.name-omar .char:nth-child(2) { animation:dropIn 0.6s 0.4s both; }
.name-omar .char:nth-child(3) { animation:dropIn 0.6s 0.5s both; }
.name-omar .char:nth-child(4) { animation:dropIn 0.6s 0.6s both; }
@keyframes dropIn {
  from { opacity:0; transform:translateY(-30px); }
  to { opacity:1; transform:translateY(0); }
}

.name-alfarouk {
  display:inline-block;
  position:relative;
  background:linear-gradient(90deg, transparent 0%, transparent 100%);
  background-clip:text;
  -webkit-background-clip:text;
  transition:all 0.4s;
}
.name-alfarouk:hover {
  -webkit-text-stroke:1.8px var(--pink);
  transform:translateX(8px);
}

.hero-typed-wrap {
  display:flex; align-items:center; justify-content:center;
  margin-bottom:1.8rem; font-size:1.4rem; color:var(--text2);
  min-height:2.2rem;
  opacity:0; animation:fadeUp 0.7s 0.4s forwards;
}
.hero-typed-label { color:var(--text3); font-weight:300; }
.hero-typed { color:var(--pink); font-weight:700; font-size:1.5rem; }
.hero-cursor { color:var(--pink); animation:blink 0.8s infinite; font-weight:300; margin-left:2px; font-size:1.5rem; }
@keyframes blink { 0%, 50% { opacity:1; } 51%, 100% { opacity:0; } }

.hero-desc {
  color:var(--text3); font-size:0.95rem; font-weight:300;
  line-height:1.8; margin:0 auto 1.5rem; max-width:680px;
  opacity:0; animation:fadeUp 0.7s 0.5s forwards;
}
.hero-desc strong { color:var(--text); font-weight:600; }

/* Hero Meta - Location & Languages */
.hero-meta {
  display:flex; justify-content:center; align-items:center;
  gap:0.8rem; flex-wrap:wrap;
  margin-bottom:2rem;
  opacity:0; animation:fadeUp 0.7s 0.55s forwards;
}
.meta-item {
  display:inline-flex; align-items:center; gap:0.4rem;
  font-size:0.78rem; color:var(--text2); font-weight:500;
}
.meta-flag { font-size:1rem; }
.meta-divider { color:var(--text5); font-size:0.8rem; }

.hero-stats-row {
  display:flex; gap:1rem; flex-wrap:wrap; justify-content:center;
  margin-bottom:2.5rem;
  opacity:0; animation:fadeUp 0.7s 0.6s forwards;
}
.hero-stat-pill {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:50px; padding:0.7rem 1.5rem;
  display:flex; align-items:baseline; gap:0.2rem;
  transition:all 0.3s; cursor:default;
}
.hero-stat-pill:hover {
  border-color:var(--pink); transform:translateY(-3px);
  box-shadow:0 8px 24px rgba(232, 66, 124, 0.2);
}
.hero-stat-pill .stat-num { font-size:1.4rem; font-weight:900; color:var(--text); line-height:1; }
.hero-stat-pill .stat-plus { font-size:1.2rem; font-weight:900; color:var(--pink); }
.hero-stat-pill .stat-label {
  font-size:0.65rem; color:var(--text3); letter-spacing:0.1em;
  text-transform:uppercase; margin-left:0.4rem;
}

.hero-actions {
  display:flex; align-items:center; justify-content:center;
  margin-bottom:1.2rem;
  opacity:0; animation:fadeUp 0.7s 0.7s forwards;
}
.hero-btns { display:flex; gap:1rem; flex-wrap:wrap; justify-content:center; }
.hero-socials-row {
  display:flex; justify-content:center; gap:0.7rem; margin-bottom:3rem;
  opacity:0; animation:fadeUp 0.7s 0.8s forwards;
}
.hero-socials-row .slink { width:40px; height:40px; }

.btn-main {
  background:var(--text); color:var(--bg); border:none;
  padding:0.9rem 2.4rem; font-family:'Space Grotesk', sans-serif;
  font-size:0.84rem; font-weight:700; letter-spacing:0.06em;
  cursor:pointer; border-radius:2px; transition:all 0.25s;
}
.btn-main:hover {
  background:var(--pink); color:#fff;
  transform:translateY(-2px); box-shadow:0 10px 28px rgba(232, 66, 124, 0.35);
}
.btn-ghost {
  background:transparent; color:var(--text);
  border:1px solid var(--border);
  padding:0.9rem 2.4rem; font-family:'Space Grotesk', sans-serif;
  font-size:0.84rem; font-weight:500; letter-spacing:0.06em;
  cursor:pointer; border-radius:2px; transition:all 0.25s;
}
.btn-ghost:hover { border-color:var(--pink); color:var(--pink); transform:translateY(-2px); }

/* Scroll Hint */
.scroll-hint {
  display:flex; flex-direction:column; align-items:center; gap:0.6rem;
  color:var(--text3); font-size:0.62rem; letter-spacing:0.25em; font-weight:500;
  opacity:0; animation:fadeUp 0.7s 1s forwards;
}
.scroll-line {
  width:1px; height:48px;
  background:linear-gradient(to bottom, var(--pink), transparent);
  animation:scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity:0.3; } 50% { opacity:1; } }

/* Floating Glow Orbs */
.hero-orb {
  position:absolute; border-radius:50%; filter:blur(80px); pointer-events:none; z-index:0;
}
.hero-orb-1 {
  width:300px; height:300px;
  background:radial-gradient(circle, rgba(232, 66, 124, 0.4) 0%, transparent 70%);
  top:5%; left:-100px;
  animation:floatOrb 10s ease-in-out infinite;
}
.hero-orb-2 {
  width:240px; height:240px;
  background:radial-gradient(circle, rgba(105, 65, 198, 0.35) 0%, transparent 70%);
  bottom:5%; right:-80px;
  animation:floatOrb 12s ease-in-out 2s infinite;
}
@keyframes floatOrb {
  0%, 100% { transform:translate(0, 0) scale(1); }
  50% { transform:translate(30px, -20px) scale(1.1); }
}

/* Social Links */
.slink {
  width:34px; height:34px; border-radius:6px;
  background:var(--tag-bg); border:1px solid var(--tag-border);
  display:flex; align-items:center; justify-content:center;
  text-decoration:none; transition:all 0.25s; color:var(--text3);
}
.slink:hover { border-color:var(--pink); color:var(--pink); transform:translateY(-2px); }
.slink svg { width:16px; height:16px; fill:currentColor; }

/* ═══ TECH STACK ═══ */
#skills { background:var(--bg2); transition:background var(--ts); }

.tech-icons {
  display:flex; flex-wrap:wrap; gap:0.7rem;
  margin-bottom:2.5rem; justify-content:center;
}
.tech-icon {
  display:flex; align-items:center; gap:0.5rem;
  padding:0.4rem 1rem 0.4rem 0.5rem;
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:8px; font-size:0.78rem; font-weight:600;
  color:var(--text2); transition:all 0.3s; cursor:default;
}
.tech-icon:hover {
  border-color:var(--pink); color:var(--text);
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(0, 0, 0, 0.15);
}
.ti-img {
  width:32px; height:32px; flex-shrink:0;
  border-radius:8px; object-fit:contain;
}

.skills-grid {
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:1px; background:var(--border2);
  border:1px solid var(--border2);
}
.skill-cell { background:var(--bg2); padding:1.8rem; transition:background 0.2s; }
.skill-cell:hover { background:var(--bg-card); }
.skill-cell-tag {
  font-size:0.62rem; letter-spacing:0.2em; color:var(--pink);
  font-weight:600; text-transform:uppercase; margin-bottom:0.5rem;
}
.skill-cell h3 { font-size:1rem; font-weight:700; margin-bottom:0.8rem; color:var(--text); }
.tags { display:flex; flex-wrap:wrap; gap:0.35rem; }
.tag {
  font-size:0.65rem; padding:0.22rem 0.55rem;
  background:var(--tag-bg); border:1px solid var(--tag-border);
  color:var(--text2); border-radius:2px; font-weight:500;
  letter-spacing:0.03em; transition:all 0.2s;
}
.skill-cell:hover .tag { border-color:var(--border); color:var(--text); }

/* ═══ EXPERIENCE ═══ */
.exp-row {
  display:grid; grid-template-columns:150px 1fr; gap:2.5rem;
  padding:2.2rem 0; border-bottom:1px solid var(--border2);
}
.exp-row:last-child { border-bottom:none; }
.exp-period { font-size:0.7rem; color:var(--text3); letter-spacing:0.08em; font-weight:500; line-height:1.5; }
.exp-flag { margin-top:0.5rem; font-size:1rem; }
.exp-role { font-size:1.1rem; font-weight:700; margin-bottom:0.2rem; }
.exp-company { font-size:0.8rem; color:var(--pink); margin-bottom:0.7rem; font-weight:500; }
.exp-desc { font-size:0.83rem; color:var(--text3); line-height:1.75; margin-bottom:0.8rem; font-weight:300; }
.exp-chips { display:flex; flex-wrap:wrap; gap:0.35rem; }
.chip {
  font-size:0.63rem; padding:0.18rem 0.5rem;
  background:rgba(232, 66, 124, 0.06); border:1px solid rgba(232, 66, 124, 0.15);
  color:var(--pink); border-radius:2px; letter-spacing:0.03em;
}

/* ═══ PROJECTS ═══ */
#projects { background:var(--bg2); transition:background var(--ts); }
.proj-grid {
  display:grid; grid-template-columns:repeat(2, 1fr); gap:1px;
  background:var(--border2); border:1px solid var(--border2);
}
.proj-card {
  background:var(--bg2); padding:2.2rem; transition:background 0.25s;
  position:relative; overflow:hidden;
}
.proj-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg, var(--pink), #764ba2, #4776e6);
  opacity:0; transition:opacity 0.25s;
}
.proj-card:hover { background:var(--bg-card); }
.proj-card:hover::before { opacity:1; }
.proj-type { font-size:0.6rem; letter-spacing:0.2em; color:var(--pink); font-weight:600; text-transform:uppercase; margin-bottom:0.7rem; }
.proj-card h3 { font-size:1.05rem; font-weight:700; margin-bottom:0.5rem; }
.proj-card p { font-size:0.8rem; color:var(--text3); line-height:1.75; margin-bottom:1rem; font-weight:300; }

/* ═══ DASHBOARDS ═══ */
#dashboards { overflow:hidden; }
.dash-wrap { position:relative; }
.dash-arrow {
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:42px; height:42px; border-radius:50%;
  background:var(--pink); color:#fff; border:none;
  font-size:1.1rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all 0.2s; box-shadow:0 4px 15px rgba(232, 66, 124, 0.3);
}
.dash-arrow:hover { background:var(--pink2); transform:translateY(-50%) scale(1.1); }
.dash-arrow-l { left:-12px; }
.dash-arrow-r { right:-12px; }

.dash-scroll {
  display:flex; gap:1.2rem; overflow-x:auto;
  scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
  padding-bottom:1rem; scrollbar-width:thin;
  scrollbar-color:var(--pink) var(--bg2);
}
.dash-scroll::-webkit-scrollbar { height:6px; }
.dash-scroll::-webkit-scrollbar-track { background:var(--bg2); border-radius:3px; }
.dash-scroll::-webkit-scrollbar-thumb { background:var(--pink); border-radius:3px; }
.dash-card {
  flex:0 0 min(500px, 85vw); scroll-snap-align:start;
  border-radius:8px; overflow:hidden; border:1px solid var(--border);
  transition:transform 0.3s, box-shadow 0.3s;
  background:var(--bg-card); cursor:pointer;
}
.dash-card:hover { transform:translateY(-4px); box-shadow:0 8px 30px rgba(0, 0, 0, 0.2); }
.dash-card img { width:100%; display:block; }
.dash-card-label { padding:0.8rem 1rem; font-size:0.72rem; color:var(--text3); font-weight:500; letter-spacing:0.05em; }

/* ═══ CONTACT ═══ */
.contact-wrap { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:start; }
.contact-left h2 {
  font-size:clamp(1.6rem, 3vw, 2.3rem); font-weight:900;
  line-height:1.15; margin-bottom:1rem; letter-spacing:-0.02em;
}
.contact-left p { color:var(--text3); font-size:0.88rem; line-height:1.8; margin-bottom:1rem; font-weight:300; }
.contact-left p strong { color:var(--text); font-weight:600; }
.clinks { display:flex; flex-direction:column; gap:0.5rem; }
.clink {
  display:flex; align-items:center; gap:0.8rem;
  color:var(--text3); font-size:0.8rem; text-decoration:none;
  padding:0.6rem 1rem; border:1px solid var(--border);
  border-radius:2px; transition:all 0.2s;
  font-family:'Space Grotesk', sans-serif;
}
.clink:hover { border-color:var(--pink); color:var(--text); background:rgba(232, 66, 124, 0.05); }
.clink-i { font-size:0.85rem; width:1.2rem; text-align:center; }

.contact-form { display:flex; flex-direction:column; gap:0.8rem; }
.flabel {
  font-size:0.65rem; letter-spacing:0.15em; color:var(--text3);
  font-weight:600; text-transform:uppercase; margin-bottom:0.2rem; display:block;
}
.finput, .ftextarea {
  width:100%; background:var(--bg-card); border:1px solid var(--border);
  color:var(--text); padding:0.7rem 1rem;
  font-family:'Space Grotesk', sans-serif; font-size:0.85rem;
  border-radius:2px; outline:none; transition:all 0.2s;
}
.finput:focus, .ftextarea:focus { border-color:var(--pink); }
.finput::placeholder, .ftextarea::placeholder { color:var(--text5); }
.ftextarea { min-height:100px; resize:vertical; }
.fsend {
  align-self:flex-start; background:var(--pink); color:#fff;
  border:none; padding:0.75rem 1.8rem;
  font-family:'Space Grotesk', sans-serif; font-size:0.78rem;
  font-weight:700; letter-spacing:0.08em;
  cursor:pointer; border-radius:2px; transition:all 0.2s;
}
.fsend:hover { background:var(--pink2); }
.fsend:disabled { opacity:0.5; cursor:not-allowed; }
.form-status { font-size:0.75rem; padding:0.4rem; border-radius:2px; display:none; }
.form-status.success { display:block; background:rgba(86, 171, 47, 0.1); color:#56ab2f; border:1px solid rgba(86, 171, 47, 0.3); }
.form-status.error { display:block; background:rgba(232, 66, 124, 0.1); color:var(--pink); border:1px solid rgba(232, 66, 124, 0.3); }

/* ═══ GALLERY ═══ */
#gallery { background:var(--bg2); transition:background var(--ts); }

.gallery-intro {
  font-size:0.92rem; color:var(--text3); line-height:1.8;
  max-width:720px; margin:0 0 1.5rem; font-weight:300;
}

.travel-flags {
  display:flex; flex-wrap:wrap; gap:0.5rem; margin-bottom:2.5rem;
}
.flag-tag {
  display:inline-flex; align-items:center;
  padding:0.4rem 0.9rem;
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:50px; font-size:0.75rem; color:var(--text2);
  font-weight:500; transition:all 0.25s; cursor:default;
}
.flag-tag:hover {
  border-color:var(--pink); transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(232, 66, 124, 0.15);
}

.gallery-grid {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:8px;
}
.gallery-item {
  position:relative; overflow:hidden; cursor:pointer;
  border-radius:6px;
  aspect-ratio:1;
}
.gallery-item img {
  width:100%; height:100%; object-fit:cover;
  transition:transform 0.5s, filter 0.4s;
  filter:saturate(0.55) brightness(0.9);
}
.gallery-item:hover img { transform:scale(1.06); filter:saturate(1) brightness(1); }
.gallery-item .g-ov {
  position:absolute; bottom:0; left:0; right:0; padding:0.8rem;
  background:linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  opacity:0; transition:opacity 0.3s;
}
.gallery-item:hover .g-ov { opacity:1; }
.g-ov span { color:#fff; font-size:0.72rem; font-weight:500; letter-spacing:0.04em; }

/* Lightbox */
.lb {
  position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(0, 0, 0, 0.94); z-index:200;
  display:none; align-items:center; justify-content:center;
  backdrop-filter:blur(12px);
}
.lb.active { display:flex; }
.lb img { max-width:92vw; max-height:88vh; border-radius:4px; object-fit:contain; }
.lb-close {
  position:absolute; top:1.2rem; right:1.5rem;
  background:rgba(255, 255, 255, 0.08); border:1px solid rgba(255, 255, 255, 0.15);
  color:#fff; font-size:1.3rem; cursor:pointer;
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.lb-close:hover { background:rgba(255, 255, 255, 0.2); }
.lb-nav {
  position:absolute; top:50%; transform:translateY(-50%); z-index:210;
  width:46px; height:46px; border-radius:50%;
  background:rgba(232, 66, 124, 0.85); color:#fff; border:none;
  font-size:1.1rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all 0.2s;
}
.lb-nav:hover { background:var(--pink); transform:translateY(-50%) scale(1.1); }
.lb-prev { left:1.5rem; }
.lb-next { right:1.5rem; }
.lb-cap { position:absolute; bottom:2rem; left:50%; transform:translateX(-50%); color:rgba(255, 255, 255, 0.6); font-size:0.8rem; }
.lb-counter { position:absolute; bottom:1rem; left:50%; transform:translateX(-50%); color:rgba(255, 255, 255, 0.5); font-size:0.7rem; letter-spacing:0.1em; }

/* Footer */
footer {
  border-top:1px solid var(--border2);
  padding:1.5rem 3.5rem; max-width:1200px; margin:0 auto;
  display:flex; justify-content:space-between; align-items:center;
  position:relative; z-index:1;
}
footer p { color:var(--text5); font-size:0.72rem; }
footer span { color:var(--pink); }
.footer-shapes { display:flex; align-items:center; gap:5px; }
.fs-c { width:10px; height:10px; border-radius:50%; background:linear-gradient(135deg, #a8e063, #26d0ce); }
.fs-s { width:8px; height:8px; background:linear-gradient(135deg, #667eea, #f093fb); }
.fs-t { width:10px; height:10px; background:#f7971e; clip-path:polygon(100% 50%, 0 0, 0 100%); }

/* Animations */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to { opacity:1; transform:translateY(0); }
}
.anim { opacity:0; transform:translateY(18px); transition:opacity 0.6s ease, transform 0.6s ease; }
.anim.vis { opacity:1; transform:translateY(0); }

/* ═══ RESPONSIVE ═══ */
@media (max-width:900px) {
  nav { padding:0.8rem 1.2rem; }
  .nav-links, .nav-hire { display:none; }
  .mob-btn { display:block; }
  #hero { padding:5.5rem 1.2rem 2.5rem; }
  .contact-wrap { grid-template-columns:1fr; gap:2rem; }
  .skills-grid { grid-template-columns:1fr 1fr; }
  .proj-grid { grid-template-columns:1fr; }
  .exp-row { grid-template-columns:1fr; gap:0.4rem; }
  .wrap { padding:3.5rem 1.2rem; }
  .gallery-grid { grid-template-columns:1fr 1fr; gap:6px; }
  .gallery-item img { filter:saturate(0.5) brightness(0.85); }
  .gallery-item:active img, .gallery-item:focus img { filter:saturate(1) brightness(1); }
  footer { padding:1rem 1.2rem; flex-direction:column; gap:0.5rem; text-align:center; }
  .hero-bigtext-bg { font-size:7rem; }
  .scroll-hint { display:none; }
  .dash-arrow-l { left:4px; }
  .dash-arrow-r { right:4px; }
  .dash-arrow { width:34px; height:34px; font-size:0.9rem; }
  .lb-nav { width:38px; height:38px; font-size:0.9rem; }
  .lb-prev { left:0.5rem; }
  .lb-next { right:0.5rem; }
}
@media (max-width:600px) {
  .skills-grid { grid-template-columns:1fr; }
  .hero-stats-row { gap:0.5rem; }
  .hero-stat-pill { padding:0.5rem 1rem; }
  .hero-stat-pill .stat-num { font-size:1.2rem; }
  .gallery-grid { grid-template-columns:1fr 1fr; gap:6px; }
}


/* Fix tiny horizontal scroll without changing layout */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

/* Prevent long links/text from pushing mobile width */
.clink,
.hero-desc,
.exp-desc,
.proj-card p,
.gallery-intro {
  overflow-wrap: anywhere;
}

/* Keep background decorative elements from causing overflow */
.hero-bigtext-bg,
.hero-orb,
.float-circles,
.dot-bg {
  pointer-events: none;
}

@media (max-width: 768px) {
  .wrap {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #hero {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-orb,
  .float-circles {
    display: none;
  }
}