:root {
  --bg: #070a12;
  --bg-surface: #0c111d;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(22, 33, 62, 0.85);

  --border: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 242, 254, 0.35);

  --text: #f1f5f9;
  --text-soft: #94a3b8;
  --text-muted: #64748b;

  --primary: #00d2d3;
  --primary-light: #4facfe;
  --primary-glow: rgba(0, 210, 211, 0.35);
  --secondary: #8b5cf6;
  --accent: #10b981;
  --white: #ffffff;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px var(--primary-glow);
}

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

/* overflow-x on html as well, so the page never scrolls sideways */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  /* clip keeps the sticky navbar working */
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient dynamic background glows */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 20%;
  width: 600px;
  height: 600px;
  max-width: 80vw;
  /* glow stays inside the screen */
  background: radial-gradient(circle, rgba(0, 210, 211, 0.1) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: 10%;
  right: 15%;
  width: 500px;
  height: 500px;
  max-width: 85vw;
  /* glow stays inside the screen */
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  filter: blur(90px);
  z-index: -2;
  pointer-events: none;
}

/* Subtle background tech grid */
.tech-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 20%, black 40%, transparent 80%);
}

/* media never wider than its container */
img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* ===================================
   LAYOUT & SHARED UTILITIES
=================================== */
.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 90px 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  padding: 5px 12px;
  background: rgba(0, 210, 211, 0.08);
  border: 1px solid rgba(0, 210, 211, 0.2);
  border-radius: var(--radius-full);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 210, 211, 0.2);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 210, 211, 0.6);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(0, 210, 211, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 210, 211, 0);
  }
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 36px;
  display: inline-block;
  position: relative;
  color: var(--white);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* ===================================
   BUTTONS
=================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #00d2d3, #00a8a8);
  color: #070a12 !important;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 210, 211, 0.5);
  background: linear-gradient(135deg, #00f2fe, #00c4c4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: var(--white);
}

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

.btn-secondary {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.25);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===================================
   NAVBAR
=================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.logo-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(0, 210, 211, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 210, 211, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
  color: var(--text-soft);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 210, 211, 0.1);
  border: 1px solid rgba(0, 210, 211, 0.3) !important;
  color: var(--primary) !important;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.2s;
}

.nav-resume-btn:hover {
  background: var(--primary) !important;
  color: var(--bg) !important;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 110;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--primary);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--primary);
}

/* ===================================
   HERO SECTION
=================================== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
  color: var(--white);
}

.highlight {
  background: linear-gradient(135deg, #00d2d3 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 650px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.tech-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ===================================
   CARDS (3D TILT & SPOTLIGHT)
=================================== */
.tilt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 210, 211, 0.35), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

.tilt-card:hover {
  border-color: rgba(0, 210, 211, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* ===================================
   ABOUT SECTION
=================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

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

.about-card {
  padding: 28px;
}

.about-facts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.about-facts li:last-child {
  border-bottom: none;
}

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

.about-facts span {
  color: var(--text);
}

.stats-row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.stat-item {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 18px 12px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-item h4 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* ===================================
   SKILLS SECTION
=================================== */
.skills {
  background: var(--bg-surface);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-cat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 210, 211, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 210, 211, 0.2);
}

.skill-cat-icon svg {
  width: 22px;
  height: 22px;
}

.skill-category h3 {
  font-size: 1.15rem;
  color: var(--white);
}

.skill-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.skill-tag:hover {
  background: rgba(0, 210, 211, 0.12);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===================================
   SERVICES SECTION (RESPONSIVE GRID)
=================================== */
.services {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.services-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.services-header-text {
  max-width: 680px;
}

/* Scroll controls are no longer needed with the grid layout */
.services-nav-controls,
.services-dots {
  display: none;
}

/* Services Grid: responsive grid layout — no horizontal scrolling */
.services-grid,
.services-scroller {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  overflow: visible;
  padding: 12px 0 0;
  margin: 0;
  cursor: default;
  user-select: auto;
}

/* Service Card */
.service-card {
  min-width: 0;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 211, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 210, 211, 0.15);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.15), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(0, 210, 211, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.3), rgba(139, 92, 246, 0.25));
  border-color: var(--primary);
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 16px rgba(0, 210, 211, 0.35);
}

.service-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 210, 211, 0.08);
  border: 1px solid rgba(0, 210, 211, 0.25);
  color: var(--primary);
  font-weight: 600;
}

.service-title {
  font-size: 1.18rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  font-size: 0.82rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.service-list li i {
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
  transition: all 0.2s ease;
  width: fit-content;
}

.service-link svg {
  transition: transform 0.2s ease;
}

.service-link:hover {
  color: #38bdf8;
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* ===================================
   TIMELINE / EXPERIENCE & EDUCATION
=================================== */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.timeline-content {
  padding: 20px 24px;
}

.timeline-content h4 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 4px;
}

.timeline-meta {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.timeline-company {
  color: #c4b5fd;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* ===================================
   PROJECTS SECTION
=================================== */
.projects-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card-header {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, rgba(0, 210, 211, 0.15), rgba(139, 92, 246, 0.08), transparent 70%);
  border-bottom: 1px solid var(--border);
  position: relative;
  text-decoration: none;
}

.project-card-header svg {
  width: 44px;
  height: 44px;
  color: var(--primary);
  opacity: 0.85;
  transition: transform 0.3s ease;
}

.project-card:hover .project-card-header svg {
  transform: scale(1.1);
  color: var(--white);
}

.project-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 3px 8px;
  border-radius: 4px;
}

.project-quick-preview {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.88);
  backdrop-filter: blur(4px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-card:hover .project-quick-preview {
  opacity: 1;
}

.project-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--white);
}

.project-live-url {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--primary);
  margin-bottom: 12px;
  word-break: break-all;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-live-url:hover {
  text-decoration: underline;
}

.project-body p {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 18px;
  flex-grow: 1;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 210, 211, 0.06);
  color: var(--primary);
  border: 1px solid rgba(0, 210, 211, 0.18);
  font-family: var(--font-mono);
}

.project-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.project-action-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.btn-demo {
  background: rgba(0, 210, 211, 0.12);
  border-color: rgba(0, 210, 211, 0.3);
  color: var(--primary);
}

.btn-demo:hover {
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-code {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
}

.btn-code:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===================================
   CONTACT SECTION
=================================== */
.contact {
  background: var(--bg-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact-info p {
  color: var(--text-soft);
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(0, 210, 211, 0.08);
  color: var(--primary);
  border: 1px solid rgba(0, 210, 211, 0.2);
  transition: all 0.2s;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-list li:hover .contact-icon {
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 0 15px var(--primary-glow);
}

.contact-list a {
  color: var(--text);
  transition: color 0.2s;
}

.contact-list a:hover {
  color: var(--primary);
}

.contact-form {
  padding: 32px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(7, 10, 18, 0.7);
  transition: all 0.2s ease;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 210, 211, 0.15);
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.form-status.warning {
  display: block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* ===================================
   RESUME MODAL POPUP
=================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
}

.modal-header h3 {
  font-size: 1.25rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* ===================================
   FLOATING SCROLL TO TOP
=================================== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  background: #00f2fe;
}

/* ===================================
   FOOTER
=================================== */
.site-footer {
  background: linear-gradient(180deg, var(--bg) 0%, #060912 100%);
  border-top: 1px solid var(--border);
  padding: 48px 0 44px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 211, 0.5), transparent);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
}

/* Footer brand name: ferozi/cyan color */
.footer-brand-name {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(0, 210, 211, 0.4);
}

/* Footer brand title: white */
.footer-brand-title {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Footer Resume link */
.footer-resume-link {
  color: var(--text-soft);
  font-weight: 500;
  transition: all 0.25s ease;
}

.footer-resume-link:hover {
  color: var(--primary);
}

.footer-subcopy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  margin: 0;
}

.footer-nav {
  display: flex;
  align-items: center;
}

.footer-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 22px;
  font-size: 0.9rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}

.footer-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0, 210, 211, 0.4);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  transition: all 0.25s ease;
}

.footer-social a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 210, 211, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 210, 211, 0.25);
}

/* Footer AI Mode Button */
.footer-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(0, 210, 211, 0.4);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.footer-ai-btn i {
  color: var(--primary);
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.footer-ai-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.8s infinite;
}

.footer-ai-btn:hover {
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.22), rgba(139, 92, 246, 0.22));
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 211, 0.35);
}

.footer-ai-btn:hover i {
  transform: rotate(15deg) scale(1.1);
}

/* ===================================
   SCROLL REVEAL & ANIMATIONS
=================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   OVERFLOW FIXES (prevent sideways scroll)
=================================== */
.about-grid>*,
.contact-grid>*,
.experience-grid>*,
.skills-grid>*,
.projects-grid>*,
.services-grid>*,
.services-scroller>* {
  min-width: 0;
}

.contact-list li,
.contact-list a,
.contact-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ===================================
   RESPONSIVE MEDIA QUERIES
=================================== */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .footer-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }

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

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

  .services-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background: #090d16;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 80px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--border);
    z-index: 105;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    width: 100%;
  }

  .nav-resume-btn {
    margin: 16px 24px;
  }

  .site-footer {
    padding: 44px 0 95px;
    /* Ensures clearance above floating buttons */
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-nav {
    width: 100%;
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    width: 100%;
  }

  .footer-links a {
    display: inline-block;
    padding: 6px 8px;
  }

  .footer-actions {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .footer-social {
    justify-content: center;
    gap: 12px;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
  }

  .footer-ai-btn {
    padding: 9px 20px;
    font-size: 0.86rem;
  }

  .stats-row {
    flex-direction: column;
  }

  /* Floating Widgets on Tablet & Mobile */
  .scroll-top {
    bottom: 18px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .ai-chat-launcher {
    bottom: 18px;
    right: 68px;
    height: 42px;
    padding: 0 14px;
    gap: 8px;
    font-size: 0.84rem;
  }
}

/* Services: single column on phones */
@media (max-width: 640px) {
  .services-grid,
  .services-scroller {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   AI CHATBOT WIDGET STYLING
=================================== */
.ai-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 80px;
  height: 48px;
  padding: 0 16px;
  background: rgba(10, 16, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 210, 211, 0.25);
  cursor: pointer;
  z-index: 998;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 210, 211, 0.45);
}

.ai-chat-launcher:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 210, 211, 0.55);
  border-color: #00f2fe;
  background: rgba(15, 23, 42, 0.98);
}

.ai-launcher-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.95rem;
}

.ai-pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulse-dot 1.8s infinite;
}

.ai-launcher-text {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f1f5f9;
}

.ai-mode-tag {
  font-size: 0.64rem;
  font-family: var(--font-mono);
  background: rgba(0, 210, 211, 0.15);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 210, 211, 0.4);
  text-transform: uppercase;
}

/* Ensure Font Awesome font-family is strictly enforced on all chatbot icons */
.ai-chat-launcher i,
.ai-chat-window i,
.ai-prompt-pill i,
.ai-chat-send-btn i,
.bot-msg-header i {
  font-family: "Font Awesome 6 Free", "FontAwesome" !important;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.bot-msg-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.bot-msg-header i {
  font-size: 0.75rem;
}

.bot-msg-body {
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Chat Window Container */
.ai-chat-window {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: rgba(12, 18, 34, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 210, 211, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 210, 211, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.ai-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.ai-chat-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.15), rgba(139, 92, 246, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2d3, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070a12;
  box-shadow: 0 2px 10px rgba(0, 210, 211, 0.4);
}

.ai-chat-title h4 {
  font-size: 0.96rem;
  color: var(--white);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.ai-chat-title span {
  font-size: 0.76rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

.ai-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s;
}

.ai-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Chat Messages */
.ai-chat-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-chat-messages::-webkit-scrollbar {
  width: 5px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.ai-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
}

.ai-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
}

.ai-msg.bot a {
  color: #38bdf8;
  text-decoration: underline;
}

.ai-msg.bot strong {
  color: var(--primary);
}

.ai-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0284c7, #00d2d3);
  color: #070a12;
  font-weight: 500;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 210, 211, 0.25);
}

/* Typing Indicator */
.ai-typing-indicator {
  display: none;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  gap: 5px;
}

.ai-typing-indicator.active {
  display: flex;
}

.ai-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: typing-jump 1.4s infinite ease-in-out;
}

.ai-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-jump {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* Quick Prompt Pills */
.ai-quick-prompts {
  padding: 6px 16px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ai-quick-prompts::-webkit-scrollbar {
  display: none;
}

.ai-prompt-pill {
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 210, 211, 0.08);
  border: 1px solid rgba(0, 210, 211, 0.25);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-prompt-pill i {
  font-size: 0.8rem;
}

.ai-prompt-pill:hover {
  background: var(--primary);
  color: #070a12;
}

/* Chat Input Bar */
.ai-chat-input-bar {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 18, 0.85);
  display: flex;
  gap: 10px;
}

.ai-chat-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.ai-chat-input:focus {
  border-color: var(--primary);
}

.ai-chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  color: #070a12;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ai-chat-send-btn:hover {
  background: #38bdf8;
  transform: scale(1.05);
}

/* ===================================
   MOBILE RESPONSIVENESS (AI CHAT & FOOTER)
=================================== */
@media (max-width: 600px) {
  .ai-chat-launcher {
    bottom: 16px;
    right: 64px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.8rem;
    gap: 7px;
  }

  .scroll-top {
    bottom: 16px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .ai-chat-window {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    bottom: 66px;
    height: min(520px, calc(100dvh - 80px));
    max-height: calc(100vh - 80px);
    border-radius: 16px;
  }

  .ai-chat-header {
    padding: 12px 14px;
  }

  .ai-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .ai-chat-title h4 {
    font-size: 0.88rem;
  }

  .ai-chat-title span {
    font-size: 0.7rem;
  }

  .ai-close-btn {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .ai-chat-messages {
    padding: 12px;
    gap: 10px;
  }

  .ai-msg {
    max-width: 90%;
    font-size: 0.84rem;
    padding: 10px 12px;
  }

  .ai-quick-prompts {
    padding: 6px 12px 10px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .ai-prompt-pill {
    padding: 5px 10px;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  .ai-chat-input-bar {
    padding: 10px 12px;
    gap: 8px;
  }

  .ai-chat-input {
    font-size: 16px;
    /* Prevents auto-zoom on mobile iOS Safari */
    padding: 8px 12px;
  }

  .ai-chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 38px 0 100px;
  }

  .footer-inner {
    gap: 18px;
    padding: 0 12px;
  }

  .footer-copy {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .footer-subcopy {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .footer-links {
    gap: 8px 14px;
  }

  .footer-links a {
    font-size: 0.82rem;
    padding: 6px 8px;
  }

  /* Services cards on small mobile */
  .service-card {
    padding: 22px 18px;
  }

  .service-title {
    font-size: 1.08rem;
  }

  .service-desc {
    font-size: 0.84rem;
  }

  .service-list li {
    font-size: 0.8rem;
  }

  .footer-social a {
    width: 38px;
    height: 38px;
  }

  .footer-ai-btn {
    width: 100%;
    max-width: 220px;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  /* Floating AI launcher & Scroll-to-top on small mobile */
  .scroll-top {
    bottom: 14px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .ai-chat-launcher {
    bottom: 14px;
    right: 58px;
    height: 38px;
    padding: 0 10px;
    gap: 6px;
    font-size: 0.78rem;
  }

  .ai-pulse-dot {
    width: 6px;
    height: 6px;
  }

  .ai-launcher-icon {
    width: 18px;
    height: 18px;
    font-size: 0.8rem;
  }

  .ai-launcher-text {
    font-size: 0.78rem;
  }

  .ai-mode-tag {
    font-size: 0.56rem;
    padding: 2px 5px;
    letter-spacing: 0.03em;
  }

  .ai-chat-window {
    left: 8px;
    right: 8px;
    bottom: 58px;
    height: min(490px, calc(100dvh - 70px));
    border-radius: 14px;
  }
}

@media (max-width: 360px) {
  .ai-chat-launcher {
    right: 52px;
    padding: 0 8px;
    gap: 5px;
  }

  /* On ultra-narrow screens (<= 360px), hide "Ask AI" text to prevent any overlap */
  .ai-launcher-text {
    display: none;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-ai-btn {
    width: 100%;
  }
}