/* ============================================================
   MAZEN YASSER PORTFOLIO — style.css
   Dark theme  |  Accent: #f97316 (orange)
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg:        #0a0a0a;
  --bg-2:      #111111;
  --bg-card:   #161616;
  --border:    #222222;
  --accent:    #f97316;
  --accent-2:  #fb923c;
  --text:      #e5e5e5;
  --text-muted:#888888;
  --white:     #ffffff;
  --font:      'Inter', sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 32px rgba(249,115,22,.15);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

.section { padding-block: clamp(5rem, 10vw, 8rem); }

.text-center { text-align: center; }

.highlight {
  color: var(--accent);
  position: relative;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,.4);
}
.btn--outline {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; }

/* ---------- Section Tags ---------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.3);
  border-radius: 50px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.subsection-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--white);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.btn-nav {
  padding: .55rem 1.4rem;
  background: var(--accent);
  color: #000;
  border-radius: 8px;
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
  transition: var(--transition);
}
.btn-nav:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  padding-top: 80px;
}

/* Background grid */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Glow blobs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow--1 {
  width: 500px; height: 500px;
  background: rgba(249,115,22,.12);
  top: -100px; right: -100px;
}
.hero-glow--2 {
  width: 350px; height: 350px;
  background: rgba(249,115,22,.07);
  bottom: -80px; left: 10%;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  overflow: visible;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  background: rgba(249,115,22,.1);
  border: 1px solid rgba(249,115,22,.25);
  border-radius: 50px;
  font-size: .8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}
.hero-title .highlight {
  background: linear-gradient(in oklch, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-socials {
  display: flex;
  gap: 1rem;
}
.hero-socials a {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}
.hero-socials a svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 2;
  display: block;
  transition: stroke var(--transition);
}
.hero-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(249,115,22,.12);
  transform: translateY(-2px);
}
.hero-socials a:hover svg {
  stroke: var(--accent);
}

/* ═══════════════════════════════════════════════
   HERO — IMAGE SECTION
   ═══════════════════════════════════════════════ */

/* Wrap: flex, centered vertically and horizontally */
.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(540px, 48vw, 620px);
  overflow: visible;
}

/* Rings — centered in the wrap */
.hero-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(249,115,22,.2);
  pointer-events: none;
  width: clamp(510px, 42vw, 580px);
  height: clamp(510px, 42vw, 580px);
  animation: spin-ring 30s linear infinite;
}
.hero-ring--inner {
  width: clamp(435px, 36vw, 490px);
  height: clamp(435px, 36vw, 490px);
  border-color: rgba(249,115,22,.12);
  border-style: dashed;
  animation-duration: 20s;
  animation-direction: reverse;
}

@keyframes spin-ring {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Photo card & Circular Neon Avatar Frame */
.hero-photo-card {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.hero-avatar-frame {
  width: clamp(370px, 30vw, 430px);
  height: clamp(370px, 30vw, 430px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(249,115,22,0.3) 40%, rgba(255,255,255,0.1) 70%, var(--accent-2) 100%);
  box-shadow: 
    0 0 0 1px rgba(249,115,22,0.35),
    0 0 50px rgba(249,115,22,0.35),
    0 22px 55px rgba(0,0,0,0.85);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: avatar-glow 3.5s ease-in-out infinite alternate;
}

@keyframes avatar-glow {
  from {
    box-shadow: 
      0 0 0 1px rgba(249,115,22,0.35),
      0 0 35px rgba(249,115,22,0.25),
      0 20px 50px rgba(0,0,0,0.85);
  }
  to {
    box-shadow: 
      0 0 0 1px rgba(249,115,22,0.6),
      0 0 55px rgba(249,115,22,0.5),
      0 25px 60px rgba(0,0,0,0.95);
  }
}

.hero-avatar-frame:hover {
  transform: scale(1.02);
}

.hero-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* ── Floating info cards ── */
.hero-card {
  position: absolute;
  z-index: 4;
  background: rgba(14,14,14,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(249,115,22,.15);
  border-radius: 14px;
  padding: .85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: float-card 4s ease-in-out infinite;
  min-width: 170px;
}
/* left card — bottom left of wrap */
.hero-card--1 { bottom: 75px; left: -30px; animation-delay: 0s; }
/* right card — upper right of wrap */
.hero-card--2 { top:  75px;  right: -30px; animation-delay: 2s; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Floating card icons — white, no background */
.hcard-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.hcard-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.hcard-icon--search { color: #a78bfa; }
.hcard-icon--check  { color: #4ade80; }

.card-num {
  font-family: var(--mono);
  font-weight: 800;
  color: var(--accent);
  font-size: .95rem;
  line-height: 1.1;
}
.card-label { font-size: .72rem; color: var(--text-muted); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 1.5s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about-text strong { color: var(--text); }

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.stat-label { font-size: .78rem; color: var(--text-muted); }

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}
.edu-card:hover { border-color: rgba(249,115,22,.4); }
.edu-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 30px;
}
.edu-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.edu-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .25rem;
}
.edu-card p { font-size: .85rem; color: var(--text-muted); }
.edu-year {
  display: inline-block;
  margin-top: .4rem;
  font-size: .75rem;
  padding: .2rem .6rem;
  background: rgba(249,115,22,.12);
  color: var(--accent);
  border-radius: 4px;
  font-family: var(--mono);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-subtitle {
  color: var(--text-muted);
  max-width: 580px;
  margin: .5rem auto 1.75rem;
  font-size: .95rem;
}

/* ── Skills Category Grid (Cohesive 2-Column Design) ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.skills-category-card {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}

.category-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
  color: var(--accent);
  stroke: var(--accent);
}

.category-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.category-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), background var(--transition);
}

.skill-item:hover {
  transform: translateX(3px);
  background: #191919;
}

.skill-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
  transition: border-color var(--transition), background var(--transition);
}

.skill-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
  color: var(--accent);
  stroke: var(--accent);
}

.skill-item:hover .skill-icon {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.1);
}

.skill-info {
  flex: 1;
}

.skill-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.skill-info p {
  font-size: 0.81rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

/* ── Technologies & Frameworks Creative Pile ── */
.tech-cloud-wrap {
  margin-top: 2rem;
  text-align: center;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  position: relative;
}

.tech-cloud-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.tech-cloud-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.tech-cloud-title::before,
.tech-cloud-title::after {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
  gap: 1.15rem 0.95rem;
  padding: 0.75rem 0.5rem;
}

/* Individual rotation angles with comfortable breathing room */
.tech-badges .badge:nth-child(1)  { --rot: -3.5deg; }
.tech-badges .badge:nth-child(2)  { --rot: 3deg; }
.tech-badges .badge:nth-child(3)  { --rot: -2deg; }
.tech-badges .badge:nth-child(4)  { --rot: 4deg; }
.tech-badges .badge:nth-child(5)  { --rot: -3deg; }
.tech-badges .badge:nth-child(6)  { --rot: 3.5deg; }
.tech-badges .badge:nth-child(7)  { --rot: -4deg; }
.tech-badges .badge:nth-child(8)  { --rot: 2.5deg; }
.tech-badges .badge:nth-child(9)  { --rot: -2.5deg; }
.tech-badges .badge:nth-child(10) { --rot: 3.5deg; }

/* The Badge / Pill element */
.badge {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.52rem 1.2rem;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  user-select: none;
  opacity: 0;
  transform: translateY(-160px) rotate(calc(var(--rot) * 4 + 18deg)) scale(0.65);
  will-change: transform, opacity;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease,
              background 0.25s ease;
}

.badge svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  color: var(--accent);
  stroke: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease, stroke 0.25s ease;
}

/* Featured / Highlighted badge (Manual Testing) */
.badge--featured {
  border-color: var(--accent) !important;
  color: var(--white) !important;
  background: rgba(249, 115, 22, 0.09) !important;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.25), 0 6px 16px rgba(0, 0, 0, 0.55) !important;
}

/* Realistic Gravity Fall with Impact Squash & Rebound Bounce */
@keyframes badgeGravityFall {
  0% {
    opacity: 0;
    transform: translateY(-160px) rotate(calc(var(--rot) * 4 + 18deg)) scale(0.65);
  }
  40% {
    opacity: 1;
  }
  72% {
    /* Impact with surface - slight squash */
    transform: translateY(9px) rotate(calc(var(--rot) * 1.35)) scale(1.06, 0.94);
  }
  86% {
    /* Elastic rebound bounce */
    transform: translateY(-5px) rotate(calc(var(--rot) * 0.9)) scale(0.98, 1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot)) scale(1);
  }
}

.badge.badge-visible {
  opacity: 1;
  animation: badgeGravityFall 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Hover: Pops out of the pile, stands straight, elevates to top, glows */
.badge:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.1) !important;
  z-index: 50 !important;
  color: var(--white) !important;
  border-color: rgba(249, 115, 22, 0.6) !important;
  background: #1c1917 !important;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.7), 0 0 20px rgba(249, 115, 22, 0.35) !important;
}

.badge:hover svg {
  transform: scale(1.15);
  color: var(--white);
  stroke: var(--white);
}

.badge:active {
  transform: translateY(-4px) rotate(0deg) scale(1.05) !important;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  transition: var(--transition);
}
.service-card:hover {
  border-color: rgba(249,115,22,.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-border {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  transition: width .4s ease;
}
.service-card:hover .service-border { width: 100%; }
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.service-card:hover .service-icon { color: var(--accent); }
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
}
.service-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.project-card:hover {
  border-color: rgba(249,115,22,.4);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.project-num {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(249,115,22,.15);
  line-height: 1;
}
.project-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.project-tags span {
  padding: .25rem .7rem;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(249,115,22,.1);
  color: var(--accent);
  border-radius: 4px;
  border: 1px solid rgba(249,115,22,.2);
}
.project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .25rem;
}
.project-role {
  font-size: .8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .75rem;
  font-family: var(--mono);
}
.project-desc { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; }
.project-results {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.project-results li { font-size: .85rem; color: var(--text); }
.project-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.project-type { font-size: .75rem; color: var(--text-muted); font-family: var(--mono); }

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.achievements { background: var(--bg-2); }

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}
.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1rem;
  text-align: center;
  transition: var(--transition);
}
.achievement-card:hover {
  border-color: rgba(249,115,22,.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.ach-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto .75rem;
}
.ach-icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.ach-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: .4rem;
}
.ach-text { font-size: 1.4rem; }
.ach-label { font-size: .8rem; color: var(--text-muted); }

.ach-highlight {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: rgba(249,115,22,.06);
  border: 1px solid rgba(249,115,22,.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.ach-hl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.ach-hl-icon svg { width: 30px; height: 30px; stroke-width: 1.6; }
.ach-highlight h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}
.ach-highlight p { font-size: .9rem; color: var(--text-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg); }

.contact-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 550px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  transition: border-color var(--transition);
}
.contact-item:hover { border-color: rgba(249,115,22,.3); }
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  width: 28px;
}
.contact-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.contact-label { font-size: .72rem; color: var(--text-muted); margin-bottom: .1rem; }
.contact-item a,
.contact-item span {
  font-size: .88rem;
  color: var(--text);
  word-break: break-all;
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .85rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: .9rem;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: .82rem; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-top: 105px;
    padding-bottom: 4rem;
  }
  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  .hero-image-wrap {
    display: flex;
    order: -1;
    height: auto;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .hero-photo-card {
    margin-bottom: 0;
    position: relative;
    display: flex;
    justify-content: center;
  }
  .hero-avatar-frame {
    width: 270px;
    height: 270px;
  }
  .hero-ring {
    width: 330px;
    height: 330px;
  }
  .hero-ring--inner {
    width: 290px;
    height: 290px;
  }
  .hero-card {
    position: absolute;
    min-width: auto;
    padding: .55rem .9rem;
    border-radius: 12px;
    gap: .65rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(14,14,14,.92);
    border: 1px solid rgba(249,115,22,.25);
    box-shadow: 0 8px 24px rgba(0,0,0,.6);
  }
  .hero-card--1 {
    bottom: 10px;
    left: 5px;
  }
  .hero-card--2 {
    top: 25px;
    right: 5px;
  }
  .card-num {
    font-size: .88rem;
  }
  .card-label {
    font-size: .68rem;
  }
  .hcard-icon svg {
    width: 18px;
    height: 18px;
  }
  .hero-subtitle { margin-inline: auto; }
  .hero-btns { justify-content: center; }
  .hero-socials { justify-content: center; }
  .scroll-indicator { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 90px;
    padding-bottom: 3.5rem;
  }
  .hero-image-wrap {
    max-width: 310px;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
  }
  .hero-avatar-frame {
    width: 230px;
    height: 230px;
  }
  .hero-ring {
    width: 285px;
    height: 285px;
  }
  .hero-ring--inner {
    width: 255px;
    height: 255px;
  }
  .hero-card {
    padding: .45rem .75rem;
    gap: .5rem;
  }
  .hero-card--1 {
    bottom: 5px;
    left: -5px;
  }
  .hero-card--2 {
    top: 15px;
    right: -5px;
  }
  .card-num {
    font-size: .82rem;
  }
  .card-label {
    font-size: .62rem;
  }
  .hcard-icon svg {
    width: 16px;
    height: 16px;
  }

  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(10,10,10,.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .nav-links.open a { font-size: 1.1rem; color: var(--text); }

  .services-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { flex-direction: column; gap: 1rem; }
  .ach-highlight { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-image-wrap {
    max-width: 280px;
    margin-bottom: 0.5rem;
  }
  .hero-avatar-frame {
    width: 195px;
    height: 195px;
  }
  .hero-ring {
    width: 245px;
    height: 245px;
  }
  .hero-ring--inner {
    width: 220px;
    height: 220px;
  }
  .hero-card {
    padding: .35rem .65rem;
    gap: .45rem;
    border-radius: 10px;
  }
  .hero-card--1 {
    bottom: 2px;
    left: -8px;
  }
  .hero-card--2 {
    top: 8px;
    right: -8px;
  }
  .card-num {
    font-size: .75rem;
  }
  .card-label {
    font-size: .58rem;
  }
  .hcard-icon svg {
    width: 14px;
    height: 14px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7.5vw, 2.4rem);
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: .92rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
  }
  .achievements-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-height: 720px) {
  .scroll-indicator { display: none; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(249,115,22,.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@property --animation-reduced {
  syntax: "*";
  inherits: false;
  initial-value: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity .3s ease; transform: none; }
  .hero-ring { animation: none; }
  .hero-photo-card { animation: none; }
  .hero-img { animation: none; }
  .hero-card { animation: none; }
  .scroll-line { animation: none; }
  .badge-dot { animation: none; }
  .badge.badge-visible { animation: none; opacity: 1; transform: none; }
}
