/* =========================================
   NOORULLAH HAIDARI — PORTFOLIO
   Premium Dark Portfolio CSS
   ========================================= */

/* ---- Variables ---- */
:root {
  --navy: #050d1a;
  --navy-2: #081428;
  --navy-3: #0c1f3d;
  --navy-4: #0f2a52;
  --blue: #1a4480;
  --blue-2: #2255a4;
  --accent: #22c55e;
  --accent-2: #16a34a;
  --accent-dim: rgba(34,197,94,0.12);
  --white: #ffffff;
  --gray-1: #f0f4ff;
  --gray-2: #c8d6f0;
  --gray-3: #8899b8;
  --gray-4: #4a5a78;
  --glass: rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.07);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.6);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--gray-2);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--accent); color: var(--navy); }

/* ---- Scroll progress ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 9999;
  background: linear-gradient(90deg, var(--accent), #60efb0);
  width: 0%; transition: width 0.1s;
}

/* ---- Loader ---- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  color: var(--white); letter-spacing: -1px; margin-bottom: 24px;
  animation: pulse 1s ease infinite alternate;
}
@keyframes pulse { to { opacity: 0.5; } }
.loader-bar {
  width: 200px; height: 2px; background: var(--navy-4);
  border-radius: 2px; overflow: hidden;
}
.loader-fill {
  height: 100%; width: 0; background: var(--accent);
  animation: loadBar 1.8s ease forwards;
}
@keyframes loadBar { to { width: 100%; } }

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(5,13,26,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--glass-border);
}
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem; height: 72px;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.5px; margin-right: auto;
}
.nav-links {
  display: flex; gap: 0.25rem;
}
.nav-links a {
  color: var(--gray-3); font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0.9rem; border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: var(--glass); }
.nav-cta {
  background: var(--accent); color: var(--navy);
  font-size: 0.875rem; font-weight: 600;
  padding: 0.55rem 1.25rem; border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: #16db60; transform: translateY(-1px); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 2px; margin-left: auto;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--gray-2);
  border-radius: 2px; transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.nav-mobile {
  display: none; background: rgba(8,20,40,0.98);
  backdrop-filter: blur(16px); padding: 1.5rem 2rem; border-top: 1px solid var(--glass-border);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-mobile a {
  display: block; padding: 0.75rem 0; color: var(--gray-2); font-weight: 500;
  border-bottom: 1px solid var(--glass-border);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--white); }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; }

/* ---- Section Header ---- */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400;
  color: var(--accent); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; color: var(--white); line-height: 1.2;
  letter-spacing: -0.02em;
}
.section-sub {
  max-width: 540px; margin: 1rem auto 0; color: var(--gray-3);
  font-size: 1.05rem; line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; padding: 0.75rem 1.6rem;
  border-radius: 10px; transition: all var(--transition); cursor: pointer;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: white; opacity: 0; transition: opacity 0.2s;
}
.btn:hover::after { opacity: 0.06; }
.btn-primary {
  background: var(--accent); color: var(--navy);
  box-shadow: 0 4px 20px rgba(34,197,94,0.3);
}
.btn-primary:hover { background: #16db60; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(34,197,94,0.4); }
.btn-secondary {
  background: var(--glass); color: var(--white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: var(--navy-3); border-color: var(--gray-4); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--gray-2);
  border: 1px solid var(--gray-4);
}
.btn-ghost:hover { color: var(--white); border-color: var(--gray-3); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* ---- Animations ---- */
.fade-up, .fade-left, .fade-right {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-left { transform: translateX(-30px); }
.fade-right { transform: translateX(30px); }
.fade-up.visible, .fade-left.visible, .fade-right.visible {
  opacity: 1; transform: none;
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 8rem 0 4rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25;
  animation: orbFloat 8s ease infinite alternate;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #1a4480, transparent);
  top: -100px; right: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #22c55e, transparent);
  bottom: -50px; left: 5%;
  animation-delay: -4s; opacity: 0.12;
}
@keyframes orbFloat { to { transform: translateY(-30px) scale(1.05); } }
.hero-container {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); border: 1px solid rgba(34,197,94,0.25);
  color: var(--accent); font-size: 0.8rem; font-weight: 500;
  padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: blink 1.5s ease infinite alternate;
}
@keyframes blink { to { opacity: 0.3; } }
.hero-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700; color: var(--white); line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-desc { color: var(--gray-3); font-size: 1.05rem; line-height: 1.75; max-width: 440px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 700; color: var(--white); line-height: 1; }
.hero-stat span { font-size: 0.78rem; color: var(--gray-3); text-transform: uppercase; letter-spacing: 1px; }
.hero-stat-divider { width: 1px; height: 36px; background: var(--glass-border); }
.hero-visual { display: flex; justify-content: center; }
.profile-frame { width: 320px; height: 320px; }
.profile-image-wrap {
  position: relative; background: var(--navy-3);
  border-radius: var(--radius-lg); overflow: visible;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}
img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}
.profile-placeholder {
  background: linear-gradient(145deg, var(--navy-2), var(--navy-4));
  border-radius: var(--radius-lg); height: 340px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  overflow: hidden; border: 1px solid var(--glass-border);
}
.profile-placeholder svg { width: 320px; height:320px; opacity: 0.7; }
.profile-placeholder span { color: var(--gray-3); font-size: 0.85rem; letter-spacing: 1px; }
.profile-badge-card {
  position: absolute; bottom: -16px; right: -16px;
  background: rgba(8,20,40,0.95); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); border-radius: var(--radius);
  padding: 0.75rem 1.1rem; display: flex; align-items: center; gap: 0.75rem;
  box-shadow: var(--shadow-md);
}
.badge-card-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid rgba(34,197,94,0.3);
  display: flex; align-items: center; justify-content: center;
}
.badge-card-title { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.badge-card-sub { font-size: 0.72rem; color: var(--gray-3); }
.profile-tech-stack {
  display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 1rem;
}
.profile-tech-stack span {
  background: var(--navy-4); color: var(--gray-2);
  font-size: 0.75rem; font-family: var(--font-mono);
  padding: 0.3rem 0.75rem; border-radius: 6px;
  border: 1px solid var(--glass-border);
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--gray-4); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  animation: scrollBob 2s ease infinite;
}
@keyframes scrollBob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--glass-border), var(--accent));
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-image-wrap { position: relative; }
.about-placeholder {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}
.about-exp-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--accent); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; text-align: center;
  box-shadow: 0 8px 30px rgba(34,197,94,0.4);
}
.about-exp-badge strong { display: block; font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.about-exp-badge span { font-size: 0.72rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; }
.about-info-cards { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.info-card {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  font-size: 0.85rem; color: var(--gray-2);
  backdrop-filter: blur(8px);
}
.logo-text img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.about-content { }
.about-lead { font-size: 1.1rem; color: var(--gray-1); margin-bottom: 1rem; line-height: 1.7; }
.about-lead strong { color: var(--white); }
.about-body { color: var(--gray-3); margin-bottom: 1rem; line-height: 1.8; }
.about-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  margin: 2rem 0;
}
.highlight-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.875rem; color: var(--gray-2);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills { background: var(--navy); }
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem;
}
.skill-category {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.skill-category:hover { border-color: rgba(34,197,94,0.2); transform: translateY(-4px); }
.skill-cat-header {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem;
}
.skill-cat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-dim); border: 1px solid rgba(34,197,94,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.skill-cat-header h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.skill-bars { display: flex; flex-direction: column; gap: 1.1rem; }
.skill-bar-item { }
.skill-label { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 0.4rem; }
.skill-label span:first-child { color: var(--gray-2); }
.skill-label span:last-child { color: var(--accent); font-family: var(--font-mono); }
.skill-track {
  height: 4px; background: var(--navy-4); border-radius: 4px; overflow: hidden;
}
.skill-fill {
  height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #60efb0);
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.tech-pills {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
}
.tech-pills span {
  background: var(--navy-3); border: 1px solid var(--glass-border);
  color: var(--gray-3); font-size: 0.8rem; font-family: var(--font-mono);
  padding: 0.4rem 1rem; border-radius: 100px;
  transition: border-color var(--transition), color var(--transition);
}
.tech-pills span:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--navy-2); }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.service-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 2rem 1.75rem;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(34,197,94,0.2); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--navy-4); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 1.25rem;
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: var(--accent-dim); }
.service-card h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.6rem; }
.service-card p { font-size: 0.85rem; color: var(--gray-3); line-height: 1.65; margin-bottom: 1rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.service-tags span {
  font-size: 0.7rem; font-family: var(--font-mono);
  color: var(--accent); background: var(--accent-dim);
  padding: 0.2rem 0.6rem; border-radius: 4px;
}

/* ============================================================
   STATS
   ============================================================ */
.stats { position: relative; background: var(--navy); overflow: hidden; }
.stats-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(26,68,128,0.15) 0%, transparent 70%);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  margin-bottom: 5rem; position: relative;
}
.stat-card {
  text-align: center; padding: 2.5rem 1.5rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-number {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 700;
  color: var(--white); line-height: 1; display: inline-block;
}
.stat-symbol { font-size: 2rem; color: var(--accent); font-weight: 700; display: inline; }
.stat-label { font-size: 0.85rem; color: var(--gray-3); margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative;
}
.why-item {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: transform var(--transition);
}
.why-item:hover { transform: translateY(-4px); }
.why-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-dim); border: 1px solid rgba(34,197,94,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.why-item h4 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.why-item p { font-size: 0.85rem; color: var(--gray-3); line-height: 1.65; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--navy-2); }
.projects-filter {
  display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 3rem;
}
.filter-btn {
  font-size: 0.85rem; font-weight: 500; padding: 0.5rem 1.25rem;
  border-radius: 8px; color: var(--gray-3);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent); color: var(--navy); border-color: var(--accent);
}
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}
.project-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(34,197,94,0.15); }
.project-card.hidden { display: none; }
.project-image { position: relative; overflow: hidden; }
.project-placeholder {
  height: 200px; display: flex; align-items: center; justify-content: center;
}
.proj-1 { background: linear-gradient(135deg, #0c1f3d, #1a3a6e); }
.proj-2 { background: linear-gradient(135deg, #0d2035, #163658); }
.proj-3 { background: linear-gradient(135deg, #0a1f15, #112e1e); }
.proj-4 { background: linear-gradient(135deg, #1a0c3d, #2a1660); }
.proj-5 { background: linear-gradient(135deg, #2a1a0c, #3d2510); }
.proj-6 { background: linear-gradient(135deg, #0d1f35, #0f2a4a); }
.proj-mockup {
  width: 80%; max-width: 260px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; overflow: hidden;
}
.mockup-bar {
  height: 24px; background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; padding: 0 8px; gap: 5px;
}
.mockup-bar::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,100,100,0.6); }
.mockup-bar::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(100,200,100,0.6); box-shadow: -14px 0 0 rgba(255,180,50,0.6); }
.mockup-content { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.mockup-line { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.1); }
.mockup-line.w90 { width: 90%; }
.mockup-line.w80 { width: 80%; }
.mockup-line.w70 { width: 70%; }
.mockup-line.w60 { width: 60%; }
.mockup-line.w50 { width: 50%; }
.mockup-line.w45 { width: 45%; }
.mockup-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-top: 4px; }
.mockup-block { height: 30px; border-radius: 4px; background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.2); }
.mockup-hero-block { height: 40px; border-radius: 4px; background: rgba(34,85,164,0.3); border: 1px solid rgba(34,85,164,0.3); }
.mockup-hero-sm { height: 28px; border-radius: 4px; background: rgba(34,85,164,0.25); border: 1px solid rgba(34,85,164,0.2); }
.mockup-nav { height: 12px; border-radius: 2px; background: rgba(255,255,255,0.08); }
.mockup-dash-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-bottom: 6px; }
.dash-stat { height: 22px; border-radius: 4px; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.15); }
.mockup-chart { height: 35px; border-radius: 4px; background: linear-gradient(to right, rgba(34,197,94,0.1), rgba(34,197,94,0.3)); border: 1px solid rgba(34,197,94,0.15); }
.mobile-mockup { max-width: 80px; width: 80px; }
.mobile-screen { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 8px 6px; }
.mobile-status { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; margin-bottom: 6px; }
.mobile-content { display: flex; flex-direction: column; gap: 4px; }
.mobile-card { height: 30px; border-radius: 4px; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.15); margin-bottom: 2px; }
.mobile-line { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); }
.mockup-ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 6px; }
.ai-card { height: 30px; border-radius: 4px; background: rgba(26,68,128,0.25); border: 1px solid rgba(26,68,128,0.3); }
.ai-card.ac2 { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.2); }
.project-overlay {
  position: absolute; inset: 0;
  background: rgba(5,13,26,0.9);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  opacity: 0; transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.overlay-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-3); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: all var(--transition);
}
.overlay-btn:hover { background: var(--accent); color: var(--navy); border-color: var(--accent); transform: scale(1.1); }
.project-info { padding: 1.5rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.project-tags span {
  font-size: 0.7rem; font-family: var(--font-mono);
  color: var(--accent); background: var(--accent-dim);
  padding: 0.2rem 0.6rem; border-radius: 4px;
}
.project-info h3 { font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.project-info p { font-size: 0.83rem; color: var(--gray-3); line-height: 1.65; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--navy); }
.process-timeline { position: relative; }
.process-line {
  position: absolute; top: 52px; left: 50%;
  width: calc(100% - 100px); transform: translateX(-50%);
  height: 1px; background: var(--glass-border);
}
.process-steps {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem;
  position: relative; z-index: 1;
}
.process-step { text-align: center; padding: 0 0.5rem; }
.step-num {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent);
  margin-bottom: 0.5rem; letter-spacing: 1px;
}
.step-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-3); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin: 0 auto 1rem;
  transition: all var(--transition);
}
.process-step:hover .step-icon { background: var(--accent-dim); border-color: rgba(34,197,94,0.3); }
.process-step h4 { font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.78rem; color: var(--gray-3); line-height: 1.6; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--navy-2); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}
.testimonial-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: transform var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card.featured {
  background: var(--navy-3); border-color: rgba(34,197,94,0.2);
  box-shadow: 0 0 40px rgba(34,197,94,0.05);
}
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.testimonial-card blockquote {
  font-size: 0.9rem; color: var(--gray-2); line-height: 1.75;
  margin-bottom: 1.5rem; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-2); color: var(--white);
  font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-card.featured .author-avatar { background: var(--accent); color: var(--navy); }
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--white); }
.testimonial-author span { font-size: 0.78rem; color: var(--gray-3); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--navy); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start;
}
.contact-desc { color: var(--gray-3); line-height: 1.75; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-detail-item {
  display: flex; align-items: center; gap: 1rem;
  color: var(--gray-2); font-size: 0.9rem;
  transition: color var(--transition);
}
a.contact-detail-item:hover { color: var(--white); }
.contact-detail-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-dim); border: 1px solid rgba(34,197,94,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail-item div span { display: block; font-size: 0.72rem; color: var(--gray-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.contact-social { display: flex; gap: 0.75rem; }
.social-link {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-3); transition: all var(--transition);
}
.social-link:hover { background: var(--navy-3); color: var(--white); border-color: var(--gray-4); transform: translateY(-2px); }
.contact-form-wrap {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.8rem; font-weight: 500; color: var(--gray-2); letter-spacing: 0.3px; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--navy-3); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 0.75rem 1rem; color: var(--white);
  font-size: 0.9rem; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238899b8' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-group select option { background: var(--navy-2); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-4); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}
.form-group.error input, .form-group.error select, .form-group.error textarea {
  border-color: #ef4444;
}
.form-error { font-size: 0.75rem; color: #ef4444; min-height: 1.1em; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none; align-items: center; gap: 0.5rem;
  background: var(--accent-dim); border: 1px solid rgba(34,197,94,0.2);
  border-radius: 10px; padding: 0.85rem 1rem;
  color: var(--accent); font-size: 0.875rem; margin-top: 1rem;
}
.form-success.visible { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-2); border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
  color: var(--white); display: block; margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.875rem; color: var(--gray-3); line-height: 1.7; margin-bottom: 1.5rem; max-width: 260px; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-col h4 { font-size: 0.875rem; font-weight: 600; color: var(--white); margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col li a, .footer-col li {
  font-size: 0.85rem; color: var(--gray-3);
  transition: color var(--transition);
}
.footer-col li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid var(--glass-border);
  font-size: 0.8rem; color: var(--gray-4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-line { display: none; }
}
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { margin-top: 2rem; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { order: -1; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .section { padding: 5rem 0; }
  .container { padding: 0 1.25rem; }
  .hero-title { font-size: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .about-exp-badge { right: 0; bottom: -12px; }
  .about-info-cards { flex-direction: column; }
  .profile-badge-card { right: 0; }
}


/* ---- Visual refinement: matte, editorial, responsive ---- */
:root {
  --navy: #080b10;
  --navy-2: #0d1118;
  --navy-3: #121923;
  --navy-4: #18232e;
  --blue: #20314a;
  --blue-2: #2a4261;
  --accent: #35d07f;
  --accent-2: #22b96a;
  --accent-dim: rgba(53,208,127,.10);
  --gray-1: #f5f7fa;
  --gray-2: #d5dbe4;
  --gray-3: #9aa6b7;
  --gray-4: #697587;
  --glass: rgba(255,255,255,.035);
  --glass-border: rgba(255,255,255,.085);
  --shadow-sm: 0 5px 18px rgba(0,0,0,.22);
  --shadow-md: 0 14px 36px rgba(0,0,0,.28);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.38);
  --radius: 14px;
  --radius-lg: 24px;
}

body {
  background-image: radial-gradient(ellipse at 50% -15%, rgba(35,66,94,.18), transparent 55%);
  letter-spacing: -.008em;
}
.nav.scrolled { background: rgba(8,11,16,.9); }
.nav-container { max-width: 1320px; }
.nav-logo { letter-spacing: -.04em; }
.nav-links a { border-radius: 999px; }
.nav-cta, .btn { border-radius: 12px; }
.btn-primary, .nav-cta { background: var(--accent); box-shadow: 0 8px 24px rgba(53,208,127,.14); }
.btn-primary:hover, .nav-cta:hover { background: #50e394; transform: translateY(-2px); }
.section { padding-top: clamp(4.5rem, 8vw, 7.5rem); padding-bottom: clamp(4.5rem, 8vw, 7.5rem); }
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-label { letter-spacing: 2.5px; }
.section-title { letter-spacing: -.035em; }
.hero { min-height: min(900px, 100svh); padding-top: 7.5rem; }
.hero-grid {
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
}
.hero-orb-1 { background: radial-gradient(circle, #203b5a, transparent 70%); opacity: .28; }
.hero-orb-2 { background: radial-gradient(circle, #1f9d61, transparent 70%); opacity: .09; }
.hero-container { max-width: 1320px; gap: clamp(2rem, 5vw, 5rem); }
.hero-title { font-size: clamp(2.35rem, 5vw, 4.4rem); line-height: 1.08; letter-spacing: -.045em; }
.hero-title em { color: var(--accent); }
.hero-desc { font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 500px; }
.hero-badge { padding: .55rem 1rem; background: rgba(53,208,127,.075); }
.hero-stats { gap: clamp(.8rem, 2vw, 1.5rem); }
.hero-stat strong { font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -.03em; }
.hero-stat span { display: block; margin-top: .45rem; font-size: .68rem; letter-spacing: .08em; line-height: 1.5; }
.profile-frame { width: min(100%, 370px); height: auto; }
.profile-image-wrap { border-radius: 26px; overflow: visible; padding: 0; background: #101722; }
.profile-placeholder { height: auto; aspect-ratio: 1 / 1.05; padding: 0; position: relative; border-radius: 25px; background: linear-gradient(145deg,#172335,#0b1018); }
.profile-placeholder img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 24px;
  position: absolute; inset: 0;
}
.profile-placeholder svg, .profile-placeholder span { display: none; }
.profile-badge-card { right: -14px; bottom: 20px; border-radius: 14px; }
.profile-tech-stack { justify-content: center; padding: 1rem .25rem; }
.profile-tech-stack span { background: rgba(255,255,255,.035); border-radius: 999px; padding: .42rem .8rem; }
.about, .stats, .projects, .services, .process, .contact { position: relative; }
.about { background: linear-gradient(180deg, #0a0e14 0%, #0d121a 100%); }
.about-lead { color: #e8edf4; }
.highlight-item { border-radius: 10px; }
.skill-category, .service-card, .stat-card, .project-card, .process-step, .contact-form-wrap, .contact-info-card {
  border-color: rgba(255,255,255,.085);
  box-shadow: 0 12px 34px rgba(0,0,0,.12);
}
.skill-category, .service-card, .stat-card, .process-step, .contact-form-wrap {
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.service-card, .project-card, .skill-category, .stat-card { transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.service-card:hover, .project-card:hover, .skill-category:hover, .stat-card:hover { transform: translateY(-5px); border-color: rgba(53,208,127,.25); box-shadow: 0 18px 42px rgba(0,0,0,.22); }
.project-card { overflow: hidden; border-radius: 22px; background: #101722; }
.project-image { background: linear-gradient(145deg, #13243b, #101722); }
.project-placeholder { filter: saturate(.85); transition: transform .5s ease; }
.project-card:hover .project-placeholder { transform: scale(1.025); }
.project-info { padding: clamp(1.25rem, 2.4vw, 1.8rem); }
.project-tags span { border-radius: 7px; }
.projects-filter button, .filter-btn { border-radius: 999px; }
.form-group input, .form-group select, .form-group textarea { background: #0c121b; border-radius: 12px; }
.footer { background: #070a0f; }

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 8rem 0 5rem; }
  .hero-container { gap: 2rem; }
  .hero-content { max-width: 720px; margin-inline: auto; }
  .hero-title { max-width: 720px; margin-inline: auto; }
  .hero-visual { margin-top: 1.25rem; }
  .profile-frame { width: min(68vw, 340px); }
  .hero-scroll { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 4.25rem 0; }
  .container, .hero-container { padding-left: 1.15rem; padding-right: 1.15rem; }
  .hero { padding: 7.2rem 0 3.5rem; }
  .hero-title { font-size: clamp(2.15rem, 9vw, 3rem); line-height: 1.1; }
  .hero-desc { font-size: 1rem; line-height: 1.75; }
  .hero-actions { gap: .65rem; margin-bottom: 2rem; }
  .hero-actions .btn { justify-content: center; min-height: 48px; padding: .75rem 1rem; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .65rem; width: 100%; }
  .hero-stat { min-width: 0; text-align: center; }
  .hero-stat strong { font-size: clamp(1rem, 5vw, 1.35rem); overflow-wrap: anywhere; }
  .hero-stat span { font-size: .58rem; letter-spacing: .04em; overflow-wrap: anywhere; }
  .hero-stat-divider { height: 34px; }
  .profile-frame { width: min(76vw, 310px); }
  .profile-badge-card { right: -5px; bottom: 12px; padding: .65rem .8rem; }
  .section-header { margin-bottom: 2.5rem; }
  .section-sub { font-size: .98rem; }
  .project-info { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Project preview artwork */
.project-image { aspect-ratio: 12 / 7; background: #0b1422; }
.project-preview { display: block; width: 100%; height: 100%; min-height: 200px; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-preview { transform: scale(1.025); }
@media (max-width: 600px) { .project-preview { min-height: 190px; } }
