/* ================================================================
   DEVLEKA — Main Stylesheet
   Design: Dark-tech modern, responsive, mobile-first
   ================================================================ */

/* ── Custom Properties ── */
:root {
  --bg-primary:    #0d1117;
  --bg-secondary:  #161b22;
  --bg-card:       #1c2333;
  --bg-card-hover: #212d40;
  --border:        #30363d;
  --border-light:  #21262d;

  --accent-cyan:   #00d4ff;
  --accent-purple: #7c3aed;
  --accent-green:  #3fb950;
  --accent-orange: #f0883e;

  --text-primary:  #e6edf3;
  --text-secondary:#8b949e;
  --text-muted:    #484f58;
  --text-white:    #ffffff;

  --gradient-hero: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
  --gradient-accent: linear-gradient(135deg, #00d4ff, #7c3aed);
  --gradient-card: linear-gradient(145deg, #1c2333, #212d40);

  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.6);
  --shadow-glow: 0 0 30px rgba(0,212,255,.15);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* clears sticky navbar on anchor jumps */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-white);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { color: var(--text-secondary); }

.text-accent   { color: var(--accent-cyan); }
.text-purple   { color: var(--accent-purple); }
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1400px; }

.section {
  padding: 100px 0;
}
.section--sm { padding: 60px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 20px;
}
.section-header .label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-dot 2s infinite;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p  { max-width: 560px; margin: 0 auto; font-size: 1.1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,.05); }

.btn--primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,212,255,.4);
}
.btn--outline {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}
.btn--ghost {
  color: var(--accent-cyan);
  padding: 0;
}
.btn--ghost:hover { gap: 12px; }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(13,17,23,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-light);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
}
.nav-logo .logo-text { color: var(--text-white); }
.nav-logo .logo-dot  { color: var(--accent-cyan); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-white);
  background: rgba(255,255,255,.06);
}
.nav-link.active { color: var(--accent-cyan); }

.nav-cta { margin-left: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 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); }

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,.12) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,.12) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}
.stat-item .stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
}
.code-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.code-card-dots { display: flex; gap: 6px; }
.code-card-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.code-card-dots span:nth-child(1) { background: #ff5f57; }
.code-card-dots span:nth-child(2) { background: #febc2e; }
.code-card-dots span:nth-child(3) { background: #28c840; }
.code-card-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: 8px;
}
.code-block {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
}
.code-line { display: flex; gap: 12px; }
.code-ln   { color: var(--text-muted); min-width: 20px; text-align: right; user-select: none; }
.kw  { color: #ff7b72; }
.fn  { color: #d2a8ff; }
.str { color: #a5d6ff; }
.cm  { color: var(--text-muted); }
.op  { color: var(--text-secondary); }

.floating-badges {
  position: absolute;
  top: -20px;
  right: -30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.f-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}
.f-badge:nth-child(2) { animation-delay: 1.5s; }
.f-badge .badge-icon { font-size: 1.2rem; }

/* ── Services Section ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: rgba(0,212,255,.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p  { font-size: 0.9rem; line-height: 1.7; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.15);
  color: var(--accent-cyan);
}

/* ── Projects Grid ── */
.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0,212,255,.08);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: rgba(0,212,255,.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0,212,255,.08);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.project-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.05); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,212,255,.08);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card:hover .project-overlay { opacity: 1; }

.project-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}
.project-body h3 { margin-bottom: 10px; font-size: 1.1rem; }
.project-body p  { font-size: 0.875rem; line-height: 1.6; flex: 1; }

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.project-tech { display: flex; gap: 6px; flex-wrap: wrap; }
.tech-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: rgba(124,58,237,.3);
  box-shadow: 0 8px 32px rgba(124,58,237,.1);
  transform: translateY(-4px);
}
.quote-icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--accent-purple);
  opacity: 0.4;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.testimonial-stars {
  color: #f0883e;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.author-name  { font-weight: 600; font-size: 0.9rem; color: var(--text-white); }
.author-role  { font-size: 0.78rem; color: var(--text-muted); }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: all var(--transition);
}
.pricing-card.featured {
  border-color: var(--accent-cyan);
  background: linear-gradient(145deg, #1c2333, #1a2942);
  box-shadow: 0 0 40px rgba(0,212,255,.1);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
}
.pricing-name   { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.pricing-price  { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.price-currency { font-size: 1.4rem; font-weight: 700; color: var(--text-white); }
.price-amount   { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--text-white); }
.price-period   { font-size: 0.85rem; color: var(--text-muted); }
.pricing-desc   { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border-light); }
.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.pricing-feature .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(63,185,80,.15);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.pricing-feature.inactive { opacity: 0.4; }
.pricing-feature.inactive .check {
  background: rgba(255,255,255,.05);
  color: var(--text-muted);
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 16px; }
.contact-info p  { margin-bottom: 40px; line-height: 1.8; }

.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item-value { font-size: 0.95rem; color: var(--text-primary); margin-top: 2px; }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}
.social-link {
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* ── Forms ── */
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition);
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,.1);
  background: var(--bg-card);
}
textarea.form-control { resize: vertical; min-height: 140px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-msg { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.875rem; display: none; }
.form-msg.success { background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.2); color: var(--accent-green); display: block; }
.form-msg.error   { background: rgba(255,95,87,.1);  border: 1px solid rgba(255,95,87,.2);  color: #ff5f57; display: block; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #0d1117 0%, #1a0a2e 50%, #0d1117 100%);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0,212,255,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(124,58,237,.06) 0%, transparent 60%);
}
.cta-banner h2  { position: relative; margin-bottom: 16px; }
.cta-banner p   { position: relative; max-width: 500px; margin: 0 auto 36px; font-size: 1.1rem; }
.cta-actions    { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Page Hero ── */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p  { font-size: 1.15rem; max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a    { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent-cyan); }
.breadcrumb span { color: var(--text-secondary); }

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-img-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-float-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
}
.about-float-card--tl { top: -20px; left: -20px; }
.about-float-card--br { bottom: -20px; right: -20px; }

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 16px;
}
.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.tech-item:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}
.tech-item .tech-logo { font-size: 1.8rem; margin-bottom: 8px; }
.tech-item .tech-name { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.value-card:hover {
  border-color: rgba(0,212,255,.2);
  transform: translateY(-4px);
}
.value-icon { font-size: 2rem; margin-bottom: 16px; }
.value-card h4 { margin-bottom: 8px; }
.value-card p  { font-size: 0.875rem; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-white);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-cyan); }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer-bottom a { color: var(--accent-cyan); }

/* ── Loading States ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-md);
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* ── Scroll Top ── */
/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9999;
  pointer-events: none;
}

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 900;
  border: none;
  box-shadow: var(--shadow-md);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover { transform: translateY(-4px); }

/* ── Animations ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-desc        { max-width: 100%; }
  .hero-actions     { justify-content: center; }
  .hero-stats       { justify-content: center; }
  .hero-visual      { display: none; }
  .about-grid       { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid     { grid-template-columns: 1fr; gap: 48px; }
  .footer-main      { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(13,17,23,.98);
    backdrop-filter: blur(16px);
    padding: 20px 24px 32px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-menu.open .nav-cta { display: block; margin: 8px 0 0; }
  .nav-link { padding: 12px 14px; width: 100%; }
  .projects-grid { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .cta-banner    { padding: 40px 24px; }
  .footer-main   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row      { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; justify-content: center; }
}

/* ================================================================
   THEME TOGGLE BUTTON
   ================================================================ */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, .08);
  color: var(--accent-cyan);
}

/* ================================================================
   LIGHT THEME — overrides via [data-theme="light"] on <html>
   ================================================================ */
[data-theme="light"] {
  --bg-primary:    #f5f7fa;
  --bg-secondary:  #eef1f6;
  --bg-card:       #ffffff;
  --bg-card-hover: #f0f6ff;
  --border:        #d0d7de;
  --border-light:  #e4e9ef;

  --accent-cyan:   #0284c7;
  --accent-purple: #7c3aed;
  --accent-green:  #16a34a;
  --accent-orange: #ea580c;

  --text-primary:  #24292f;
  --text-secondary:#57606a;
  --text-muted:    #8c959f;
  --text-white:    #1c2331;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,.1);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.13);
  --shadow-glow: 0 0 30px rgba(2,132,199,.12);

  --gradient-hero:   linear-gradient(135deg, #eef4ff 0%, #e8effe 50%, #eef4ff 100%);
  --gradient-accent: linear-gradient(135deg, #0284c7, #7c3aed);
  --gradient-card:   linear-gradient(145deg, #ffffff, #f0f6ff);
}

/* ── Navbar (light) ── */
[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: var(--border);
}
[data-theme="light"] .nav-menu.open {
  background: rgba(255, 255, 255, .98);
  border-bottom-color: var(--border);
}
[data-theme="light"] .nav-toggle span {
  background: var(--text-primary);
}

/* ── Hero (light) ── */
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(2,132,199,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2,132,199,.06) 1px, transparent 1px);
}
[data-theme="light"] .hero-orb--1 {
  background: radial-gradient(circle, rgba(2,132,199,.12) 0%, transparent 70%);
}
[data-theme="light"] .hero-orb--2 {
  background: radial-gradient(circle, rgba(124,58,237,.08) 0%, transparent 70%);
}

/* Keep code card dark — looks intentional and professional */
[data-theme="light"] .code-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 0 30px rgba(2,132,199,.08);
}
[data-theme="light"] .code-card-title { color: #94a3b8; }
[data-theme="light"] .code-line .code-ln { color: #64748b; }

/* Floating badges stay dark */
[data-theme="light"] .f-badge {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

/* ── Badge / label colours (light) ── */
[data-theme="light"] .hero-badge {
  background: rgba(2,132,199,.08);
  border-color: rgba(2,132,199,.2);
}
[data-theme="light"] .section-header .label {
  background: rgba(2,132,199,.08);
  border-color: rgba(2,132,199,.2);
}
[data-theme="light"] .tag {
  background: rgba(2,132,199,.08);
  border-color: rgba(2,132,199,.15);
}

/* ── Cards (light) ── */
[data-theme="light"] .service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
[data-theme="light"] .project-card:hover {
  box-shadow: 0 8px 32px rgba(2,132,199,.12);
}
[data-theme="light"] .testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(124,58,237,.1);
}
[data-theme="light"] .pricing-card.featured {
  background: linear-gradient(145deg, #eef4ff, #e8f0fe);
  border-color: #0284c7;
  box-shadow: 0 0 40px rgba(2,132,199,.12);
}

/* ── CTA Banner (light) ── */
[data-theme="light"] .cta-banner {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0e8ff 50%, #e8f0fe 100%);
  border-color: rgba(124,58,237,.2);
}
[data-theme="light"] .cta-banner::before {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(2,132,199,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(124,58,237,.06) 0%, transparent 60%);
}

/* ── Page hero (light) ── */
[data-theme="light"] .page-hero::before {
  background: linear-gradient(135deg, #eef4ff 0%, #e8effe 100%);
}
[data-theme="light"] .page-hero::after {
  background-image:
    linear-gradient(rgba(2,132,199,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2,132,199,.05) 1px, transparent 1px);
}

/* ── Footer (light) ── */
[data-theme="light"] .footer { background: #e8edf4; }
[data-theme="light"] .footer-bottom { border-top-color: var(--border); }

/* ── Form controls (light) ── */
[data-theme="light"] .form-control {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text-primary);
}
[data-theme="light"] .form-control:focus {
  border-color: var(--accent-cyan);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2,132,199,.1);
}

/* ── Scroll bar tint (light) ── */
[data-theme="light"] { color-scheme: light; }
