@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   CSS CUSTOM VARIABLES & THEMES
   ========================================== */
:root {
  /* Dark Theme Variable Tokens (Default) */
  --bg-base: #070709;
  --bg-surface: #0f1015;
  --bg-card: rgba(15, 16, 21, 0.7);
  --bg-card-hover: rgba(22, 24, 31, 0.85);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.35);
  --accent-glow-strong: rgba(16, 185, 129, 0.6);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(16, 185, 129, 0.3);
  
  --code-keyword: #ff79c6;
  --code-string: #f1fa8c;
  --code-function: #50fa7b;
  --code-variable: #f8f8f2;
  --code-comment: #6272a4;
  --code-number: #bd93f9;
  --code-boolean: #bd93f9;
  --code-class: #8be9fd;
  
  --shadow-color: rgba(0, 0, 0, 0.5);
  --navbar-bg: rgba(7, 7, 9, 0.8);
  --terminal-bar: #1e1f29;
  --hero-canvas-opacity: 0.85;
}

/* Light Theme Variable Tokens */
body.light-theme {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --accent-emerald: #059669;
  --accent-emerald-hover: #047857;
  --accent-glow: rgba(5, 150, 105, 0.2);
  --accent-glow-strong: rgba(5, 150, 105, 0.4);
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-hover: rgba(5, 150, 105, 0.4);
  
  --code-keyword: #d01d83;
  --code-string: #0f8544;
  --code-function: #b45309;
  --code-variable: #0f172a;
  --code-comment: #708090;
  --code-number: #1d4ed8;
  --code-boolean: #1d4ed8;
  --code-class: #0369a1;
  
  --shadow-color: rgba(15, 23, 42, 0.08);
  --navbar-bg: rgba(248, 250, 252, 0.8);
  --terminal-bar: #e2e8f0;
  --hero-canvas-opacity: 0.35;
}

/* ==========================================
   GLOBAL RESET & STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Common Layout Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--accent-emerald);
  font-family: 'Fira Code', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.highlight {
  color: var(--accent-emerald);
  text-shadow: 0 0 15px var(--accent-glow);
}

/* ==========================================
   STICKY NAVIGATION
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 10px 30px -10px var(--shadow-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  font-family: 'Fira Code', monospace;
}

.logo span {
  color: var(--accent-emerald);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-emerald);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-emerald);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-glow);
}

.theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
  transition: transform 0.5s ease;
}

body.light-theme .theme-toggle .sun-icon {
  display: none;
}

body:not(.light-theme) .theme-toggle .moon-icon {
  display: none;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.5rem;
}

.mobile-nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
}

/* ==========================================
   HERO SECTION & MATRIX CANVAS
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
}

/* Matrix canvas styling */
#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: var(--hero-canvas-opacity);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-welcome {
  font-family: 'Fira Code', monospace;
  color: var(--accent-emerald);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-name {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--accent-emerald);
  color: #ffffff;
  border: 1px solid var(--accent-emerald);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-emerald-hover);
  border-color: var(--accent-emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow-strong);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--accent-emerald);
  background-color: rgba(16, 185, 129, 0.05);
  transform: translateY(-2px);
}

/* Floating Code Terminal IDE */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.terminal-window {
  width: 100%;
  max-width: 520px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px var(--shadow-color), 0 0 30px var(--accent-glow);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.terminal-window:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 25px 45px -15px var(--shadow-color), 0 0 40px var(--accent-glow-strong);
}

.terminal-header {
  background-color: var(--terminal-bar);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.close { background-color: #ff5f56; }
.terminal-dot.minimize { background-color: #ffbd2e; }
.terminal-dot.maximize { background-color: #27c93f; }

.terminal-title {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--code-variable);
  overflow-x: auto;
  min-height: 280px;
}

/* Syntax Highlighting */
.keyword { color: var(--code-keyword); font-weight: 600; }
.string { color: var(--code-string); }
.function { color: var(--code-function); }
.comment { color: var(--code-comment); font-style: italic; }
.number { color: var(--code-number); }
.boolean { color: var(--code-boolean); }
.classname { color: var(--code-class); }

.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: var(--accent-emerald);
  animation: blink 0.8s infinite;
  vertical-align: middle;
  margin-left: 2px;
}

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

/* ==========================================
   ABOUT ME SECTION
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.about-photo-wrapper {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.photo-hud-frame {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  background-color: var(--bg-card);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.about-photo {
  width: 100%;
  border-radius: 8px;
  filter: grayscale(20%);
  transition: all 0.5s ease;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.photo-hud-frame:hover .about-photo {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* Futuristic corner borders */
.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-emerald);
  pointer-events: none;
}

.hud-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hud-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.hud-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.hud-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.about-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.about-p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 10px 25px -10px var(--shadow-color), 0 0 15px var(--accent-glow);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-emerald);
  font-family: 'Fira Code', monospace;
  margin-bottom: 0.25rem;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================
   EXPERTISE & SKILLS SECTION
   ========================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.skills-category {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem;
  transition: all 0.3s ease;
}

.skills-category:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 15px 35px -15px var(--shadow-color);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.category-title svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-emerald);
}

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

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.skill-percentage {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--accent-emerald);
}

.skill-bar-outer {
  height: 6px;
  background-color: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald), #22c55e);
  border-radius: 3px;
  width: 0; /* Animated via JS or simple CSS load */
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.3, 1);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  transition: all 0.4s ease;
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  box-shadow: 0 20px 40px -15px var(--shadow-color), 0 0 15px var(--accent-glow);
}

.project-img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-base);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-links-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 7, 9, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-links-overlay {
  opacity: 1;
}

.overlay-link {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.overlay-link:hover {
  background-color: var(--accent-emerald-hover);
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--accent-emerald);
}

.overlay-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.project-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 500;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.project-link-inline {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent-emerald);
}

.project-link-inline:hover {
  color: var(--accent-emerald-hover);
}

.project-link-inline svg {
  width: 1rem;
  height: 1rem;
}

/* ==========================================
   CONTACT US SECTION
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-color);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-detail-item:hover .contact-icon-box {
  background-color: var(--accent-emerald);
  color: #ffffff;
  box-shadow: 0 0 10px var(--accent-glow);
}

.contact-icon-box svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-detail-val {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-btn:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  transform: translateY(-3px);
  box-shadow: 0 0 12px var(--accent-glow);
}

.social-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Contact Form Grid and Elements */
.contact-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-control {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-color);
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-bottom-color: var(--accent-emerald);
}

.form-label {
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

/* Floating labels */
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -1.25rem;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-submit-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-submit-status.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-logo {
  font-family: 'Fira Code', monospace;
  font-weight: 800;
}

.footer-logo span {
  color: var(--accent-emerald);
}

.back-to-top {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  transform: translateY(-3px);
  box-shadow: 0 0 12px var(--accent-glow);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ==========================================
   MOBILE MENU DRAWER & RESPONSIVE STYLES
   ========================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    width: 100%;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-photo-wrapper {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .section {
    padding: 4rem 0;
  }
  .hero-name {
    font-size: 2.75rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 4.5rem;
    left: -100%;
    width: 100%;
    height: calc(100vh - 4.5rem);
    background-color: var(--bg-base);
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
    gap: 2.5rem;
    transition: left 0.4s ease;
    border-top: 1px solid var(--border-color);
    z-index: 999;
  }
  .nav-links.open {
    left: 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.25rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .contact-form-card {
    padding: 1.5rem;
  }
}

/* ==========================================
   SECTION DESCRIPTION TEXT
   ========================================== */
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-emerald), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 60px -15px var(--accent-glow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-emerald);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: scale(1.1);
}

.service-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  display: inline-block;
  letter-spacing: 0.5px;
}

/* ==========================================
   PROCESS SECTION
   ========================================== */
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.35s ease;
}

.process-step:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -10px var(--accent-glow);
}

.step-number {
  font-family: 'Fira Code', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(16, 185, 129, 0.15);
  line-height: 1;
  margin-bottom: 1rem;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

.step-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--accent-emerald);
  transition: all 0.3s ease;
}

.process-step:hover .step-icon {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 20px var(--accent-glow);
}

.step-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.process-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.process-connector {
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-emerald), transparent);
  flex-shrink: 0;
  margin-top: 4rem;
  opacity: 0.5;
}

/* ==========================================
   STATS COUNTER SECTION
   ========================================== */
.stats-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(7, 7, 9, 0) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-counter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  border-right: 1px solid var(--border-color);
  position: relative;
}

.stat-counter-card:last-child {
  border-right: none;
}

.stat-counter-card .counter-number,
.stat-counter-card .counter-suffix {
  font-family: 'Fira Code', monospace;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-emerald);
  line-height: 1;
  text-shadow: 0 0 30px var(--accent-glow);
}

.stat-counter-card .counter-suffix {
  font-size: 2rem;
  margin-left: -0.25rem;
  align-self: flex-start;
  margin-top: 0.5rem;
}

.stat-counter-card > div:first-of-type {
  display: flex;
  align-items: flex-start;
}

.counter-display {
  display: flex;
  align-items: flex-start;
  line-height: 1;
}

.stat-counter-card .counter-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Fira Code', monospace;
}

/* Number + Suffix inline */
.stat-counter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-val-row {
  display: flex;
  align-items: flex-start;
  line-height: 1;
}

/* ==========================================
   FREE QUOTE SECTION
   ========================================== */
.quote-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.quote-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.quote-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quote-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Fira Code', monospace;
}

.quote-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.quote-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.quote-chip:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.06);
}

.quote-chip.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  font-weight: 600;
}

.budget-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.budget-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.budget-option:hover {
  border-color: var(--border-color-hover);
  background: rgba(16, 185, 129, 0.05);
}

.budget-option.selected {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.budget-range {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Fira Code', monospace;
}

.budget-option.selected .budget-range {
  color: var(--accent-emerald);
}

.budget-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quote-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  min-height: 120px;
  resize: vertical;
  outline: none;
  transition: border-color 0.25s ease;
  width: 100%;
}

.quote-textarea:focus {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.04);
}

.quote-textarea::placeholder {
  color: var(--text-muted);
}

.quote-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.quote-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
}

/* Info Panel */
.quote-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all 0.25s ease;
}

.quote-info-card:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.quote-info-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.quote-info-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.quote-info-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================
   RESPONSIVE — NEW SECTIONS
   ========================================== */
@media (max-width: 1024px) {
  .process-steps {
    flex-direction: column;
    gap: 1rem;
  }
  .process-connector {
    width: 2px;
    height: 2rem;
    background: linear-gradient(180deg, var(--accent-emerald), transparent);
    margin: 0 auto;
  }
  .quote-wrapper {
    grid-template-columns: 1fr;
  }
  .quote-info-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-counter-card {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .stat-counter-card:last-child,
  .stat-counter-card:nth-child(2) {
    border-bottom: none;
  }
  .stat-counter-card .counter-number,
  .stat-counter-card .counter-suffix {
    font-size: 2.5rem;
  }
  .budget-options {
    grid-template-columns: 1fr;
  }
  .quote-info-panel {
    grid-template-columns: 1fr;
  }
  .quote-form-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .stat-counter-card {
    padding: 1.5rem 0.75rem;
  }
  .stat-counter-card .counter-number,
  .stat-counter-card .counter-suffix {
    font-size: 2rem;
  }
}
