/* ================================================================
   STYLE.CSS — Rim Ben Moussa Portfolio  |  v2.0  10/10
================================================================ */

/* ── 1. Custom Properties ── */
:root {
  --bg:          #050914;
  --bg2:         #080f22;
  --bg3:         #0c1530;
  --card:        rgba(12, 21, 42, 0.85);
  --card-solid:  #0d1836;
  --v1:          #8b5cf6;
  --v2:          #a78bfa;
  --c1:          #06b6d4;
  --c2:          #67e8f9;
  --g1:          #10b981;
  --r1:          #f43f5e;
  --o1:          #f59e0b;
  --p1:          #ec4899;
  --y1:          #eab308;
  --text:        #f1f5f9;
  --text2:       #94a3b8;
  --text3:       #475569;
  --border:      rgba(139, 92, 246, 0.18);
  --border2:     rgba(255, 255, 255, 0.06);
  --border3:     rgba(255, 255, 255, 0.03);
  --glow-v:      rgba(139, 92, 246, 0.25);
  --glow-c:      rgba(6, 182, 212, 0.2);
  --ff:          'Inter', sans-serif;
  --mono:        'Fira Code', monospace;
  --nav-h:       68px;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-xl:   100px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --t:           all 0.3s var(--ease);
}

/* ── 2. Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: var(--ff); outline: none; }
::selection { background: var(--v1); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--v1); border-radius: 3px; }

/* ── 3. Preloader ── */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 1.5rem;
}
.preloader-logo span { color: var(--v1); }
.preloader-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px; overflow: hidden;
  margin: 0 auto;
}
.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--v1), var(--c1));
  border-radius: 2px;
  animation: load 1.4s ease forwards;
}
@keyframes load { from { width: 0 } to { width: 100% } }

/* ── 4. Custom Cursor ── */
.cursor-dot, .cursor-ring {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 9000;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.5);
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
}
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ── 5. Utilities ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 110px 0; }
.gradient-text {
  background: linear-gradient(135deg, var(--v2) 0%, var(--c2) 60%, var(--v1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section headers */
.section-header { margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--v1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-xl);
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}
.section-title::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--v1), var(--c1));
  border-radius: 2px;
}
.section-subtitle {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* ── 6. Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.8rem;
  font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius-xl);
  transition: var(--t); cursor: pointer;
  border: 2px solid transparent;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--v1) 0%, #6d28d9 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow-v);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border-color: rgba(255,255,255,0.12);
}
.btn-ghost:hover {
  border-color: var(--v1);
  color: var(--v1);
  transform: translateY(-2px);
  background: rgba(139,92,246,0.06);
}

.btn-nav {
  background: rgba(139,92,246,0.12);
  color: var(--v2);
  border: 1px solid rgba(139,92,246,0.3);
  padding: 0.5rem 1.2rem;
  font-size: 0.84rem;
  border-radius: var(--radius-xl);
  transition: var(--t);
}
.btn-nav:hover { background: var(--v1); color: #fff; border-color: var(--v1); }

/* ── 7. Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--t);
}
.navbar.scrolled {
  background: rgba(5, 9, 20, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border2);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.nav-container {
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.45rem; font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.nav-logo span { color: var(--v1); }

.nav-menu ul {
  display: flex; align-items: center; gap: 0.2rem;
}
.nav-link {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text3);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--t);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-link.active { color: var(--v2); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: var(--t);
}

/* ── 8. Hero ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}

/* Animated gradient blobs */
.hero-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: blobFloat 10s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 70%);
  top: -20%; left: -10%;
  animation-delay: 0s;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  top: 20%; right: -10%;
  animation-delay: 3s;
}
.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(236,72,153,0.08) 0%, transparent 70%);
  bottom: -10%; left: 30%;
  animation-delay: 6s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-30px) scale(1.05); }
  66%       { transform: translate(-20px,20px) scale(0.95); }
}

.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
}

.hero-container {
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative; z-index: 1;
}

/* Available badge */
.hero-available {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 500;
  color: var(--g1);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-xl);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.25rem;
}
.pulse-dot {
  width: 7px; height: 7px;
  background: var(--g1);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero-greeting {
  font-family: var(--mono);
  font-size: 0.95rem; color: var(--text3);
  margin-bottom: 0.4rem;
}
.hero-name {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.hero-title-wrap {
  font-family: var(--mono);
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  color: var(--text2);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.2rem;
}
.hero-title-prefix { color: var(--v1); }
.cursor-blink {
  color: var(--c1);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  font-size: 1.05rem; color: var(--text2);
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* Social icons */
.hero-socials { display: flex; align-items: center; gap: 0.75rem; }
.hs-link {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text3);
  transition: var(--t);
}
.hs-link svg { width: 17px; height: 17px; }
.hs-link:hover {
  color: var(--v2);
  border-color: var(--border);
  background: rgba(139,92,246,0.1);
  transform: translateY(-3px);
}

/* Profile Card */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card-wrap { position: relative; width: 340px; height: 400px; }

.profile-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
  align-items: center; gap: 1.25rem;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  width: 100%;
}
.profile-glow {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.profile-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(6,182,212,0.2));
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 1.6rem; font-weight: 700;
  color: var(--v2);
  position: relative;
}
.avatar-ring {
  position: absolute; inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(139,92,246,0.3);
  animation: spin 12s linear infinite;
}
.avatar-ring.ring-2 {
  inset: -24px;
  border-color: rgba(6,182,212,0.15);
  animation-duration: 20s;
  animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.profile-info { text-align: center; }
.profile-info h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.profile-info p { font-size: 0.82rem; color: var(--text3); margin-top: 0.2rem; font-family: var(--mono); }
.profile-dots { display: flex; gap: 6px; justify-content: center; margin-top: 0.6rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-purple { background: var(--v1); }
.dot-cyan   { background: var(--c1); }
.dot-green  { background: var(--g1); }

/* Floating chips */
.float-chip {
  position: absolute;
  background: rgba(12, 21, 42, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text2);
  display: flex; align-items: center; gap: 0.4rem;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.float-chip span { font-size: 1rem; }
.chip-1 { top: -10px; right: -30px; animation: floatA 4s ease-in-out infinite; }
.chip-2 { top: 80px;  left: -50px; animation: floatB 5s ease-in-out infinite; }
.chip-3 { bottom: 80px; right: -40px; animation: floatA 6s ease-in-out infinite 1s; }
.chip-4 { bottom: -10px; left: -30px; animation: floatB 4.5s ease-in-out infinite 0.5s; }

@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  color: var(--text3); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  font-family: var(--mono);
  animation: scrollBounce 2s ease-in-out infinite;
  transition: var(--t);
}
.scroll-indicator:hover { color: var(--v1); }
.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid currentColor;
  border-radius: 11px;
  display: flex; justify-content: center;
  padding-top: 5px;
}
.scroll-wheel {
  width: 3px; height: 7px;
  background: currentColor;
  border-radius: 2px;
  animation: wheelScroll 2s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }
@keyframes wheelScroll { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(8px)} }

/* ── 9. Reveal Animation ── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.reveal-right { transform: translateX(32px); }
.reveal.visible { opacity: 1; transform: translate(0); }

/* ── 10. About ── */
.about { background: var(--bg2); position: relative; }
.about::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(139,92,246,0.03) 50%, transparent 100%);
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem; align-items: start;
}
.about-text p {
  color: var(--text2); margin-bottom: 1.3rem;
  font-size: 1.02rem; line-height: 1.9;
}
.about-text strong { color: var(--v2); font-weight: 600; }

.about-details {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid var(--border2);
}
.detail-row {
  display: grid; grid-template-columns: 22px 80px 1fr;
  align-items: center; gap: 0.75rem;
}
.detail-icon { color: var(--v1); display: flex; align-items: center; }
.detail-icon svg { width: 16px; height: 16px; }
.detail-label {
  font-size: 0.75rem; color: var(--text3);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
}
.detail-value { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.detail-value.available { color: var(--g1); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  position: relative; overflow: hidden;
  transition: var(--t);
  backdrop-filter: blur(10px);
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--v1), var(--c1));
  opacity: 0; transition: var(--t);
}
.stat-card:hover { border-color: var(--border); transform: translateY(-4px); }
.stat-card:hover::before { opacity: 1; }
.stat-num {
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--v2), var(--c2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}
.stat-plus { font-size: 1.4rem; font-weight: 800; color: var(--c1); display: inline; }
.stat-label { font-size: 0.75rem; color: var(--text3); margin-top: 0.4rem; font-family: var(--mono); }

/* Lang card */
.lang-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}
.lang-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-family: var(--mono);
  color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.lang-title svg { width: 14px; height: 14px; }
.lang-list { display: flex; flex-direction: column; gap: 1rem; }
.lang-row {
  display: grid; grid-template-columns: 22px 60px 1fr 50px;
  align-items: center; gap: 0.75rem;
}
.lang-flag { font-size: 1rem; }
.lang-name { font-size: 0.85rem; color: var(--text2); font-weight: 500; }
.lang-bar { height: 4px; background: var(--border2); border-radius: 2px; overflow: hidden; }
.lang-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--v1), var(--c1));
  border-radius: 2px;
  transition: width 1.4s var(--ease);
}
.lang-lvl { font-size: 0.7rem; color: var(--v2); font-family: var(--mono); text-align: right; }

/* ── 11. Skills ── */
.skills { background: var(--bg); }

.skill-block {
  margin-bottom: 2.5rem;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: var(--t);
}
.skill-block:hover { border-color: var(--border); }

.skill-block-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border2);
}
.sbl-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sbl-icon svg { width: 16px; height: 16px; }
.sbl-blue   { background: rgba(6,182,212,0.12); color: var(--c1); }
.sbl-green  { background: rgba(16,185,129,0.12); color: var(--g1); }
.sbl-purple { background: rgba(139,92,246,0.12); color: var(--v1); }
.sbl-orange { background: rgba(245,158,11,0.12); color: var(--o1); }
.sbl-pink   { background: rgba(236,72,153,0.12); color: var(--p1); }

/* Tech icon grid */
.tech-grid {
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.tech-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  cursor: default;
}
.tech-box {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}
.tech-box::before {
  content: '';
  position: absolute; inset: 0;
  background-color: var(--bg, #141b2d);
  opacity: 0.08;
}
/* Use CSS custom properties for tech box colors */
.tech-box { background-color: var(--bg) !important; }
.tech-box svg, .tech-box span {
  position: relative; z-index: 1;
  width: 28px; height: 28px;
  flex-shrink: 0;
  color: var(--fg, #fff);
}
.tech-box span { width: auto; height: auto; }

/* Override: use actual brand bg */
.tech-box[style] {
  background-color: var(--bg) !important;
}

/* Redefine properly */
.tech-box {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  /* --bg and --fg set inline */
  background-color: var(--bg, #1a2540);
  color: var(--fg, #fff);
}
.tech-box svg { width: 28px; height: 28px; flex-shrink: 0; }

.tech-item:hover .tech-box {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.tech-item > span {
  font-size: 0.72rem; color: var(--text3);
  font-weight: 500; text-align: center;
  white-space: nowrap;
  transition: color 0.25s;
}
.tech-item:hover > span { color: var(--text2); }

/* Soft skills */
.soft-skills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.ss-item {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: var(--t);
  backdrop-filter: blur(10px);
}
.ss-item:hover { border-color: var(--border); transform: translateY(-3px); }
.ss-icon { font-size: 1.75rem; flex-shrink: 0; }
.ss-text h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.ss-text p  { font-size: 0.8rem; color: var(--text3); line-height: 1.5; }

/* ── 12. Experience ── */
.experience { background: var(--bg2); }

.exp-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  backdrop-filter: blur(12px);
  transition: var(--t);
  position: relative; overflow: hidden;
}
.exp-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--v1), var(--c1));
  border-radius: 0 0 0 var(--radius);
}
.exp-card:hover { border-color: var(--border); box-shadow: 0 20px 60px rgba(0,0,0,0.35); }

.exp-card-left {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; text-align: center;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border2);
}
.exp-logo {
  width: 60px; height: 60px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--v2);
}
.exp-logo svg { width: 28px; height: 28px; }
.exp-company h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.exp-type { font-size: 0.72rem; color: var(--text3); font-family: var(--mono); }

.exp-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1rem;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.exp-role { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.exp-date {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.76rem; color: var(--text3);
  background: var(--bg3); padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xl); border: 1px solid var(--border2);
  white-space: nowrap;
}
.exp-date svg { width: 12px; height: 12px; }

.exp-bullets { margin-bottom: 1.25rem; }
.exp-bullets li {
  font-size: 0.92rem; color: var(--text2); line-height: 1.75;
  padding-left: 1.25rem; position: relative; margin-bottom: 0.6rem;
}
.exp-bullets li::before {
  content: '▸'; position: absolute; left: 0; color: var(--v1);
  font-size: 0.65rem; top: 0.32rem;
}
.exp-bullets strong { color: var(--text); }

.exp-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.exp-tech span {
  font-size: 0.72rem; padding: 0.22rem 0.7rem;
  border-radius: var(--radius-xl);
  background: rgba(139,92,246,0.1);
  color: var(--v2);
  border: 1px solid rgba(139,92,246,0.2);
  font-family: var(--mono);
}

/* Volunteer grid */
.vol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.vol-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: var(--t);
}
.vol-card:hover { border-color: var(--border); transform: translateY(-3px); }
.vol-year {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--v1); font-weight: 600;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border2);
  letter-spacing: 0.05em;
}
.vol-card li {
  font-size: 0.85rem; color: var(--text2);
  padding-left: 1rem; position: relative;
  margin-bottom: 0.5rem; line-height: 1.6;
}
.vol-card li::before { content: '•'; position: absolute; left: 0; color: var(--v1); }
.vol-card strong { color: var(--text); }

/* ── 13. Projects ── */
.projects { background: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.proj-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(12px);
  position: relative;
}
.proj-card:hover {
  border-color: var(--border);
  transform: translateY(-7px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

/* Colored top accent bar */
.proj-accent-bar {
  height: 3px; width: 100%;
}
.proj-card[data-accent="violet"]  .proj-accent-bar { background: linear-gradient(90deg, var(--v1), #9333ea); }
.proj-card[data-accent="cyan"]    .proj-accent-bar { background: linear-gradient(90deg, var(--c1), #0ea5e9); }
.proj-card[data-accent="green"]   .proj-accent-bar { background: linear-gradient(90deg, var(--g1), #34d399); }
.proj-card[data-accent="orange"]  .proj-accent-bar { background: linear-gradient(90deg, var(--o1), #fb923c); }
.proj-card[data-accent="pink"]    .proj-accent-bar { background: linear-gradient(90deg, var(--p1), #f472b6); }
.proj-card[data-accent="yellow"]  .proj-accent-bar { background: linear-gradient(90deg, var(--y1), #facc15); }

.proj-body { padding: 1.5rem; }
.proj-top {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 0.75rem;
}
.proj-emoji { font-size: 1.75rem; }
.proj-tag {
  font-size: 0.68rem; font-family: var(--mono);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-xl);
}
.proj-tag.team { background: rgba(139,92,246,0.12); color: var(--v2); border: 1px solid rgba(139,92,246,0.2); }
.proj-tag.solo { background: rgba(6,182,212,0.1); color: var(--c2); border: 1px solid rgba(6,182,212,0.2); }

.proj-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.65rem; }
.proj-card p  { font-size: 0.85rem; color: var(--text2); line-height: 1.75; margin-bottom: 1.25rem; }

.proj-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.proj-tech span {
  font-size: 0.7rem; padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xl);
  background: var(--bg3);
  color: var(--text3);
  border: 1px solid var(--border2);
  font-family: var(--mono);
  transition: var(--t);
}
.proj-card:hover .proj-tech span {
  color: var(--text2);
  border-color: rgba(255,255,255,0.1);
}

/* ── 14. Education ── */
.education { background: var(--bg2); }

.edu-timeline { position: relative; padding-left: 2rem; }
.edu-timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--v1) 0%, rgba(139,92,246,0.15) 100%);
  border-radius: 2px;
}
.edu-item { position: relative; margin-bottom: 1.5rem; }
.edu-dot {
  position: absolute; left: -2.45rem; top: 1.2rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--text3);
}
.edu-dot.current {
  border-color: var(--v1);
  background: var(--v1);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.2);
}

.edu-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: var(--t);
}
.edu-card:hover { border-color: var(--border); transform: translateX(6px); }
.edu-card-top {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 0.5rem; flex-wrap: wrap;
}
.edu-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.edu-info { flex: 1; }
.edu-info h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.edu-school { font-size: 0.82rem; color: var(--v2); display: block; }
.edu-date {
  font-family: var(--mono); font-size: 0.75rem; color: var(--text3);
  background: var(--bg3); padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xl); border: 1px solid var(--border2);
  white-space: nowrap; align-self: flex-start;
}
.edu-desc { font-size: 0.85rem; color: var(--text3); line-height: 1.65; margin-top: 0.5rem; }
.edu-current-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--g1);
  font-family: var(--mono);
  margin-top: 0.75rem;
}

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.cert-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; align-items: center; gap: 1.25rem;
  backdrop-filter: blur(10px);
  transition: var(--t);
}
.cert-card:hover { border-color: var(--border); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.cert-badge {
  width: 46px; height: 46px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.1));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--v2);
}
.cert-badge svg { width: 22px; height: 22px; }
.cert-info h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.cert-info span { font-size: 0.75rem; color: var(--text3); font-family: var(--mono); }

/* ── 15. Contact ── */
.contact { background: var(--bg); position: relative; overflow: hidden; }
.contact::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem; align-items: start;
  position: relative; z-index: 1;
}
.contact-intro {
  font-size: 1.02rem; color: var(--text2);
  line-height: 1.85; margin-bottom: 2rem;
}

.contact-links { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.cl-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  transition: var(--t);
  backdrop-filter: blur(10px);
}
.cl-item:hover:not(.no-link) { border-color: var(--border); transform: translateX(6px); }
.cl-arrow { width: 16px; height: 16px; color: var(--text3); margin-left: auto; opacity: 0; transition: var(--t); }
.cl-item:hover .cl-arrow { opacity: 1; color: var(--v1); transform: translateX(3px); }

.cl-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cl-icon svg { width: 17px; height: 17px; }
.cl-icon.email    { background: rgba(139,92,246,0.12); color: var(--v1); }
.cl-icon.phone    { background: rgba(6,182,212,0.12); color: var(--c1); }
.cl-icon.location { background: rgba(16,185,129,0.12); color: var(--g1); }

.cl-label { display: block; font-size: 0.7rem; color: var(--text3); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.cl-val   { display: block; font-size: 0.88rem; color: var(--text); font-weight: 600; }

.dl-btn { width: 100%; justify-content: center; }

/* Contact Form */
.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { margin-bottom: 1.15rem; }
.fg label {
  display: block; font-size: 0.75rem; font-family: var(--mono);
  color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.fg label span { color: var(--v1); }
.fg input, .fg textarea {
  width: 100%;
  background: rgba(5,9,20,0.6);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text); font-size: 0.92rem;
  transition: var(--t); resize: vertical;
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--text3); }
.fg input:focus, .fg textarea:focus {
  border-color: var(--v1);
  background: rgba(139,92,246,0.04);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}
.form-msg { margin-top: 1rem; font-size: 0.88rem; text-align: center; min-height: 1.5em; }
.form-msg.ok  { color: var(--g1); }
.form-msg.err { color: var(--r1); }

/* ── 16. Footer ── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.footer-logo span { color: var(--v1); }
.footer-copy { font-size: 0.8rem; color: var(--text3); }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { font-size: 0.8rem; color: var(--text3); transition: var(--t); }
.footer-nav a:hover { color: var(--v2); }

/* ── 17. Back to Top ── */
.btt {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--v1), #6d28d9);
  color: #fff; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px var(--glow-v);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: var(--t);
  z-index: 999;
}
.btt.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.btt:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(139,92,246,0.5); }
.btt svg { width: 20px; height: 20px; }

/* ── 18. Responsive ── */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 2; }
  .hero-visual { order: 1; }
  .hero-cta, .hero-socials { justify-content: center; }
  .hero-desc { margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .exp-card { grid-template-columns: 1fr; }
  .exp-card-left { flex-direction: row; border-right: none; padding-right: 0; border-bottom: 1px solid var(--border2); padding-bottom: 1rem; }
}

@media (max-width: 768px) {
  .section { padding: 75px 0; }
  .hero-card-wrap { width: 280px; height: 320px; }

  /* Mobile nav */
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(5, 9, 20, 0.97);
    backdrop-filter: blur(24px);
    padding: 1.25rem;
    border-bottom: 1px solid var(--border2);
    transform: translateY(-110%);
    opacity: 0; visibility: hidden;
    transition: var(--t);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu ul { flex-direction: column; gap: 0.25rem; }
  .nav-link { display: block; padding: 0.65rem 1rem; }
  .nav-toggle { display: flex; }

  .soft-skills-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title-wrap { justify-content: center; }
  .about-details .detail-row { grid-template-columns: 22px 70px 1fr; }
}

@media (max-width: 520px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .tech-grid { justify-content: center; }
}
