/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #14141e;
  --bg-card-hover: #1c1c2a;
  --text-primary: #ffffff;
  --text-secondary: #9999bb;
  --text-muted: #666688;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --purple: #a855f7;
  --green: #22c55e;
  --yellow: #eab308;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --nav-h: 56px;
  --radius: 14px;
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #eaeaee;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f5;
  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #888899;
  --cyan: #0891b2;
  --pink: #db2777;
  --purple: #9333ea;
  --green: #16a34a;
  --yellow: #ca8a04;
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .hero-section {
  background: radial-gradient(ellipse 80% 60% at 20% 80%, rgba(130, 30, 100, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(20, 120, 150, 0.05) 0%, transparent 60%),
    var(--bg-primary);
}

[data-theme="light"] .star {
  display: none;
}

[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .name-last {
  background: linear-gradient(135deg, #db2777 0%, #ea580c 40%, #ca8a04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .card-tag {
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a2e;
  border-color: var(--border);
}

[data-theme="light"] .modal-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 1001;
  width: 46px;
  height: 46px;
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
  border-color: var(--yellow);
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  color: #6366f1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle:hover {
  border-color: #6366f1;
}

/* Sun icon visible in dark mode, moon in light */
.icon-sun {
  display: block;
}

.icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}

[data-theme="light"] .icon-moon {
  display: block;
}

html {
  scroll-behavior: smooth;
}

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

/* ===== SECTION BASE ===== */
.section {
  min-height: 100vh;
  position: relative;
  padding: 60px 64px;
  display: flex;
  flex-direction: column;
}

/* ===== BOTTOM NAVBAR ===== */
.bottom-nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
}

.nav-link:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ===== LIGHTNING ICON ===== */
.lightning-icon {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  cursor: pointer;
  backdrop-filter: blur(20px);
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.lightning-icon:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
  transform: scale(1.1);
}

/* ===== HERO SECTION ===== */
.hero-section {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 20% 80%, rgba(130, 30, 100, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(20, 120, 150, 0.10) 0%, transparent 60%),
    var(--bg-primary);
  overflow: hidden;
}

/* Stars background */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {

  0%,
  100% {
    opacity: var(--min-op, 0.1);
  }

  50% {
    opacity: var(--max-op, 0.8);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 20px;
  background: rgba(34, 211, 238, 0.05);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.name-first {
  color: var(--text-primary);
}

.name-last {
  background: linear-gradient(135deg, #ec4899 0%, #f97316 40%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--cyan);
  color: #0a0a0f;
}

.btn-primary:hover {
  background: #67e8f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.scroll-dot {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 12px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scroll-anim 1.8s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% {
    top: -10px;
    opacity: 1;
  }

  80% {
    top: 48px;
    opacity: 0.5;
  }

  100% {
    top: 48px;
    opacity: 0;
  }
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  background: var(--bg-primary);
  justify-content: flex-start;
  align-items: center;
  padding-top: 60px;
}

.projects-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  text-align: center;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.gradient-purple {
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.view-all-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.view-all-link:hover {
  color: var(--text-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== PROJECT CARD ===== */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  transform-style: preserve-3d;
}

.project-card:hover,
.project-card:focus {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Keep VanillaTilt glare inside rounded corners */
.project-card .js-tilt-glare {
  border-radius: var(--radius);
}

.card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.card-img-bg {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

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

/* Project image backgrounds */
.finflow-bg {
  background:
    linear-gradient(135deg, #0f2027, #203a43, #2c5364),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200'%3E%3Crect width='400' height='200' fill='%230d1b2a'/%3E%3Cpolyline points='0,140 40,120 80,130 120,90 160,100 200,60 240,80 280,50 320,65 360,40 400,55' stroke='%2322d3ee' stroke-width='1.5' fill='none'/%3E%3Cpolyline points='0,160 50,155 100,145 150,150 200,140 250,145 300,130 350,138 400,125' stroke='%2334d399' stroke-width='1' fill='none' opacity='0.5'/%3E%3Crect x='20' y='30' width='50' height='30' rx='3' fill='%230f2a3a' stroke='%2322d3ee' stroke-width='0.5' opacity='0.7'/%3E%3Crect x='80' y='20' width='50' height='30' rx='3' fill='%230f2a3a' stroke='%2322d3ee' stroke-width='0.5' opacity='0.7'/%3E%3Crect x='140' y='10' width='50' height='25' rx='3' fill='%230f2a3a' stroke='%2322d3ee' stroke-width='0.5' opacity='0.7'/%3E%3C/svg%3E");
  background-size: cover;
}

.aura-bg {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  position: relative;
}

.aura-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
}

.nova-bg {
  background: linear-gradient(135deg, #1a0a0a, #2d1515, #1a1010);
}

.nova-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
}

.pulse-bg {
  background: linear-gradient(135deg, #0d0d1f, #150d2e, #0f0d1f);
}

.pulse-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 40% 50%, rgba(168, 85, 247, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 60% 40%, rgba(34, 211, 238, 0.2) 0%, transparent 50%);
}

.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.card-body {
  padding: 20px 22px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.tech-tag {
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid;
}

.tech-tag.cyan {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.05);
}

.tech-tag.pink {
  color: var(--pink);
  border-color: rgba(236, 72, 153, 0.3);
  background: rgba(236, 72, 153, 0.05);
}

.tech-tag.green {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.tech-tag.purple {
  color: var(--purple);
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.05);
}

.tech-tag.yellow {
  color: var(--yellow);
  border-color: rgba(234, 179, 8, 0.3);
  background: rgba(234, 179, 8, 0.05);
}

.case-study-link {
  color: var(--cyan);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.case-study-link:hover {
  color: #67e8f9;
  gap: 8px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--bg-primary);
  justify-content: flex-start;
  align-items: center;
  padding-top: 56px;
  padding-left: 48px;
  padding-right: 48px;
}

.contact-top {
  margin-bottom: 32px;
  max-width: 700px;
  width: 100%;
}

.section-eyebrow-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.eyebrow-line-bar {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
}

.section-eyebrow.pink {
  color: var(--pink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.contact-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.gradient-blue-purple {
  background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
}

.contact-body {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 36px;
  align-items: start;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.get-in-touch-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 16px;
}

.contact-build {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.gradient-green {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-build-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color 0.2s;
}

.contact-detail-item:hover {
  border-color: var(--border-hover);
}

.contact-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.detail-value {
  font-size: 13.5px;
  color: var(--text-primary);
  font-weight: 500;
}

.find-me-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.social-item:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.social-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.social-handle {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== CONTACT FORM ===== */
.contact-form-container {
  position: sticky;
  top: 80px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.form-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.form-group label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.required {
  color: var(--pink);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 13px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select option {
  background: #1a1a2a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 6px;
}

.btn-send {
  width: 100%;
  padding: 12px;
  background: var(--cyan);
  color: #0a0a0f;
  border: none;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-send:hover {
  background: #67e8f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.35);
}

.btn-send:active {
  transform: translateY(0);
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 12px;
}

.form-success.show {
  display: flex;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--green);
}

.form-success h4 {
  font-size: 20px;
  font-weight: 700;
}

.form-success p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.modal-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.modal-img {
  width: 100%;
  height: 100%;
}

.modal-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.modal-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.modal-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
}

.modal-year {
  font-size: 11px;
  color: var(--text-muted);
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-body {
  padding: 28px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.modal-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.modal-psr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.psr-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.psr-card.problem {
  border-top: 2px solid var(--pink);
}

.psr-card.solution {
  border-top: 2px solid var(--cyan);
}

.psr-card.result {
  border-top: 2px solid var(--green);
}

.psr-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.problem .psr-label {
  color: var(--pink);
}

.solution .psr-label {
  color: var(--cyan);
}

.result .psr-label {
  color: var(--green);
}

.psr-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .section {
    padding: 70px 32px;
  }

  .contact-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-container {
    position: static;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-psr {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .bottom-nav {
    bottom: 16px;
  }

  .lightning-icon {
    bottom: 16px;
    left: 16px;
  }

  .modal {
    border-radius: 14px;
  }

  .modal-image-container {
    height: 200px;
    border-radius: 14px 14px 0 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 50px 16px;
  }

  .form-card {
    padding: 24px 20px;
  }

  .hero-title {
    font-size: 44px;
  }

  .bottom-nav {
    padding: 6px 8px;
  }

  .nav-link {
    padding: 6px 14px;
    font-size: 13px;
  }
}


/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--bg-secondary);
  justify-content: center;
  align-items: flex-start;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px 80px;
  align-items: start;
  width: 100%;
  padding-left: 80px;
}

/* Text block: left column */
.about-left {
  text-align: left;
}

/* Widgets block: right column, stacked */
.about-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.about-left .section-eyebrow {
  margin-bottom: 12px;
  font-size: 14px;
}

.about-left .section-title {
  margin-bottom: 32px;
  font-size: clamp(36px, 5vw, 62px);
}

.about-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-tagline {
  font-size: 18px;
  font-weight: 600;
  color: var(--cyan);
  border-left: 4px solid var(--cyan);
  padding-left: 18px;
  margin-top: 28px;
  line-height: 1.6;
}

/* Tech divider line */
.tech-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--border-hover), transparent);
  margin: 28px 0 24px;
}

/* Tech list below divider */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-list li {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}

.tech-list li:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.25s ease;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.1);
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.stat-plus {
  color: var(--cyan);
  font-size: 34px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Tech cloud */
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: var(--bg-secondary);
  justify-content: flex-start;
  align-items: center;
  padding-top: 60px;
}

.services-section .section-eyebrow,
.services-section .section-title {
  text-align: center;
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 36px;
  transition: all 0.25s ease;
  min-height: 280px;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.drone-icon {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
}

.ai-icon {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple);
}

.sec-icon {
  background: rgba(236, 72, 153, 0.1);
  color: var(--pink);
}

.dev-icon {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}

.iot-icon {
  background: rgba(234, 179, 8, 0.1);
  color: var(--yellow);
}

.debug-icon {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.service-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===== PROJECT CARD BACKGROUNDS (AppMint) ===== */
.qr-bg {
  background: linear-gradient(135deg, #0a1628, #0f2847, #1a3a5c);
  position: relative;
}

.qr-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(34, 211, 238, 0.04) 18px, rgba(34, 211, 238, 0.04) 19px),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(34, 211, 238, 0.04) 18px, rgba(34, 211, 238, 0.04) 19px),
    radial-gradient(circle at 50% 60%, rgba(34, 211, 238, 0.2) 0%, transparent 55%);
}

.swarm-bg {
  background: linear-gradient(135deg, #080818, #100c28, #181030);
  position: relative;
}

.swarm-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 50%, rgba(168, 85, 247, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 75% 40%, rgba(34, 211, 238, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 35%);
}

.yolo-bg {
  background: linear-gradient(135deg, #0c1a0c, #142814, #1c3c1c);
  position: relative;
}

.yolo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.25) 0%, transparent 55%),
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(34, 197, 94, 0.03) 20px, rgba(34, 197, 94, 0.03) 21px);
}

.gcs-bg {
  background: linear-gradient(135deg, #0f1520, #182030, #202840);
  position: relative;
}

.gcs-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(34, 211, 238, 0.15) 0%, transparent 40%);
}

.firmware-bg {
  background: linear-gradient(135deg, #1a0a0a, #280f0f, #301818);
  position: relative;
}

.firmware-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
    repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(236, 72, 153, 0.03) 30px, rgba(236, 72, 153, 0.03) 31px);
}

.iot-bg {
  background: linear-gradient(135deg, #0f1a10, #182818, #20381c);
  position: relative;
}

.iot-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(234, 179, 8, 0.2) 0%, transparent 55%),
    radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.15) 0%, transparent 35%);
}

/* ===== PROJECT GRID — 3 columns for 6 cards ===== */
.projects-intro-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  text-align: center;
}

/* ===== RESPONSIVE FOR NEW SECTIONS ===== */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-left: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-intro-text {
    text-align: center;
  }
}

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

/* ===== ENTRANCE ANIMATIONS ===== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 80px;
  padding-bottom: 40px;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      var(--border-hover),
      transparent);
  margin-bottom: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Brand column */
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.footer-logo-dot {
  color: var(--cyan);
}

.footer-tagline {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 240px;
}

.footer-address {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-address svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--cyan);
}

/* Column headers */
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Footer links */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.footer-links li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* Availability column */
.footer-avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.footer-avail-badge .badge-dot {
  background: var(--green);
}

.footer-avail-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--cyan);
  color: #0a0a0f;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-cta-btn:hover {
  background: #67e8f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.3);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom-right {
  color: var(--text-muted);
}

/* Footer responsive */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}