:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #06b6d4;
  --accent-warm: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-emerald: #10b981;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  --gradient-2: linear-gradient(135deg, #f43f5e, #f59e0b);
  --gradient-3: linear-gradient(135deg, #10b981, #06b6d4);
  --shadow-glow: 0 0 60px rgba(99,102,241,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--accent-primary); color: white; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 3px; }

/* ═══════════ NOISE OVERLAY ═══════════ */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════ NAVIGATION ═══════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  height: 68px;
  background: rgba(10,10,15,0.95);
}

.nav-logo {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.6);
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--text-primary);
  background: rgba(99,102,241,0.1);
}

.nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--gradient-1) !important;
  color: white !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.3px;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

/* ═══════════ HAMBURGER MENU ═══════════ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ═══════════ PAGE SECTIONS ═══════════ */
.page { display: none; }
.page.active { display: block; }

/* ═══════════ HERO ═══════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}

.hero-orb-1 { width: 600px; height: 600px; background: var(--accent-primary); top: -200px; right: -100px; animation-delay: 0s; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--accent-tertiary); bottom: -100px; left: -50px; animation-delay: -7s; }
.hero-orb-3 { width: 300px; height: 300px; background: var(--accent-secondary); top: 50%; left: 50%; animation-delay: -14s; }

@keyframes float {
  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 {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content { text-align: center; position: relative; z-index: 2; max-width: 900px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  padding: 16px 36px;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.3);
}

.btn-secondary {
  padding: 16px 36px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: rgba(99,102,241,0.05);
}

/* ═══════════ STATS BAR ═══════════ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 900px;
  margin: 80px auto 0;
  animation: fadeUp 0.8s ease 0.4s both;
}

.stat-item { background: var(--bg-card); padding: 32px; text-align: center; transition: background 0.3s; }
.stat-item:hover { background: var(--bg-card-hover); }

.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ═══════════ SECTION COMMON ═══════════ */
.section { padding: 120px 40px; max-width: 1280px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc { font-size: 17px; color: var(--text-secondary); max-width: 600px; line-height: 1.7; margin-bottom: 60px; }

/* ═══════════ SERVICES CARDS ═══════════ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.service-card h3 { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.3px; }
.service-card p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; }

.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.service-tag {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 500;
  background: rgba(99,102,241,0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(99,102,241,0.15);
}

/* ═══════════ PROJECTS / PORTFOLIO ═══════════ */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.project-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.project-card.featured { grid-column: span 2; }
.project-preview { height: 240px; position: relative; overflow: hidden; }
.project-card.featured .project-preview { height: 320px; }

.project-preview-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.6;
  transition: all 0.5s ease;
}

.project-card:hover .project-preview-bg { transform: scale(1.05); opacity: 0.8; }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(10,10,15,0.95));
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.project-status { position: absolute; top: 16px; right: 16px; padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 600; }
.project-status.live { background: rgba(16,185,129,0.15); color: var(--accent-emerald); border: 1px solid rgba(16,185,129,0.3); }
.project-status.dev { background: rgba(245,158,11,0.15); color: var(--accent-warm); border: 1px solid rgba(245,158,11,0.3); }

.project-info { padding: 24px; }
.project-info h3 { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.project-info p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }

.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }

.project-tech span {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  transition: gap 0.3s;
}

.project-link:hover { gap: 10px; }

/* ═══════════ ABOUT PAGE ═══════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.about-visual {
  position: relative;
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.about-visual-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }

.about-code-block {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 20px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  max-width: 340px;
  width: 100%;
}

.about-code-block .keyword { color: var(--accent-secondary); }
.about-code-block .string { color: var(--accent-emerald); }
.about-code-block .prop { color: var(--accent-tertiary); }
.about-code-block .comment { color: var(--text-muted); }

.about-content h2 { font-family: 'Sora', sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 24px; line-height: 1.1; }
.about-content p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }

.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }

.about-value { padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.about-value h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.about-value p { font-size: 13px; color: var(--text-muted); margin-bottom: 0; line-height: 1.5; }

/* ═══════════ TECH STACK ═══════════ */
.tech-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.tech-category { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.tech-category h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

.tech-items { display: flex; flex-wrap: wrap; gap: 8px; }

.tech-item {
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s;
  cursor: default;
}

.tech-item:hover { border-color: var(--accent-primary); color: var(--text-primary); background: rgba(99,102,241,0.08); }

/* ═══════════ CONTACT ═══════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

.contact-info h2 { font-family: 'Sora', sans-serif; font-size: 40px; font-weight: 800; margin-bottom: 20px; letter-spacing: -1.5px; }
.contact-info > p { font-size: 16px; color: var(--text-secondary); margin-bottom: 40px; line-height: 1.7; }

.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99,102,241,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--text-secondary); }

.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-primary); }
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ═══════════ FOOTER ═══════════ */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 80px 40px 40px; }

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; color: var(--text-secondary); }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); text-decoration: none; padding: 6px 0; transition: color 0.3s; cursor: pointer; }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-socials { display: flex; gap: 12px; }

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.footer-social:hover { background: var(--accent-primary); color: white; }

/* ═══════════ CTA BANNER ═══════════ */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(99,102,241,0.08) 0%, transparent 60%);
}

.cta-banner h2 { font-family: 'Sora', sans-serif; font-size: 36px; font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-banner p { font-size: 17px; color: var(--text-secondary); margin-bottom: 32px; position: relative; }
.cta-banner .btn-primary { position: relative; }

/* ═══════════ MARQUEE ═══════════ */
.marquee-section {
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.marquee-track { display: flex; gap: 60px; animation: marquee 30s linear infinite; width: max-content; }

.marquee-item {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}

.marquee-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-primary); opacity: 0.5; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════ PAGE HEADER ═══════════ */
.page-header {
  padding: 160px 40px 80px;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: radial-gradient(ellipse at top center, rgba(99,102,241,0.1) 0%, transparent 60%);
}

.page-header h1 { font-family: 'Sora', sans-serif; font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -2px; position: relative; margin-bottom: 16px; }
.page-header p { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; position: relative; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 968px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open li a { padding: 14px 16px; display: block; font-size: 15px; }
  .section { padding: 80px 20px; }
  .hero { padding: 120px 20px 60px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { height: 300px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { padding: 140px 20px 60px; }
  .footer { padding: 60px 20px 30px; }
}

@media (max-width: 600px) {
  .stats-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}