/* ===== BASE & RESET ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0b1a;
  --bg-secondary: #0d0f24;
  --bg-card: rgba(15, 18, 40, 0.7);
  --bg-card-hover: rgba(20, 24, 55, 0.85);
  --border-card: rgba(99, 102, 241, 0.15);
  --border-card-hover: rgba(99, 102, 241, 0.35);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --gradient-primary: linear-gradient(135deg, #8b5cf6, #3b82f6);
  --gradient-hero: linear-gradient(135deg, #8b5cf6, #06b6d4);
  --gradient-btn: linear-gradient(135deg, #7c3aed, #2563eb);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(10, 11, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(10, 11, 26, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo { display: flex; align-items: center; gap: 0.75rem; }
.navbar-logo svg { width: 36px; height: 36px; }
.navbar-logo span { font-size: 1.15rem; font-weight: 700; color: #fff; }
.navbar-logo .accent { color: var(--accent-purple); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: color 0.3s; position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gradient-primary); border-radius: 1px; transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.5rem 1.25rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  background: var(--gradient-btn); color: #fff; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

/* Mobile menu */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(10, 11, 26, 0.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  z-index: 99;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-size: 1.2rem; font-weight: 500; color: var(--text-secondary);
  transition: color 0.3s;
}
.mobile-nav a:hover { color: #fff; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 1.5rem 4rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 60%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.05); }
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem;
  background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--accent-purple); margin-bottom: 1.5rem; font-weight: 500;
}
.hero-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--text-muted);
}
.hero-tags span { display: flex; align-items: center; gap: 0.4rem; }
.hero-tags .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }

.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.5rem; }
.hero h1 .gradient-text {
  background: var(--gradient-hero); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem); color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7;
}

.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 2rem; border-radius: 10px; font-size: 0.95rem; font-weight: 600;
  background: var(--gradient-btn); color: #fff; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 2rem; border-radius: 10px; font-size: 0.95rem; font-weight: 600;
  background: transparent; color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.25); cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.btn-secondary:hover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.05);
}

/* Stats */
.hero-stats {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}
.stat-card {
  padding: 1.25rem 2rem; border-radius: 16px; text-align: center; min-width: 140px;
  background: var(--bg-card); border: 1px solid var(--border-card);
  backdrop-filter: blur(10px);
}
.stat-value {
  font-size: 1.5rem; font-weight: 800;
  background: var(--gradient-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
.section-badge {
  display: inline-block; padding: 0.35rem 0.9rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--accent-purple); margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-desc {
  font-size: 1rem; color: var(--text-secondary); max-width: 600px; line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-desc { margin: 0 auto; }

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  padding: 2rem; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--border-card);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.1);
}
.service-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 1.25rem;
  background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); font-size: 1.3rem;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.service-tag {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; color: var(--text-muted);
}
.service-tag::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-purple); opacity: 0.6;
}

/* ===== EXPERIENCE ===== */
.experience-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.exp-content .section-desc { margin-bottom: 2rem; }
.exp-highlights { display: flex; flex-direction: column; gap: 1rem; }
.exp-item {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem;
  border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border-card);
}
.exp-item-icon {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); font-size: 1rem;
}
.exp-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.exp-item p { font-size: 0.82rem; color: var(--text-secondary); }

.exp-visual {
  display: flex; flex-direction: column; gap: 1rem;
}
.exp-visual-card {
  padding: 1.5rem; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--border-card);
}
.exp-visual-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.75rem; }
.tech-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-pill {
  padding: 0.35rem 0.85rem; border-radius: 50px; font-size: 0.78rem; font-weight: 500;
  background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.15);
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .experience-grid { grid-template-columns: 1fr; }
}

/* ===== STACK ===== */
.stack-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.stack-card {
  padding: 1.5rem; border-radius: 14px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border-card);
  transition: border-color 0.3s, transform 0.3s;
}
.stack-card:hover {
  border-color: var(--border-card-hover); transform: translateY(-3px);
}
.stack-card-icon {
  font-size: 2rem; margin-bottom: 0.75rem;
}
.stack-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.stack-card p { font-size: 0.8rem; color: var(--text-secondary); }

/* ===== CONTACT ===== */
.contact-section {
  text-align: center; padding: 5rem 1.5rem;
  position: relative;
}
.contact-section::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}
.contact-box {
  max-width: 600px; margin: 2rem auto 0; padding: 2.5rem; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border-card);
}
.contact-box p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; }
.contact-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 1.5rem 1.5rem; text-align: center;
  border-top: 1px solid rgba(99, 102, 241, 0.08);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-logo svg { width: 28px; height: 28px; }
.footer-logo span { font-weight: 700; font-size: 1rem; }
.footer p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; align-items: center; }
  .stat-card { width: 100%; max-width: 280px; }
  .services-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
}
