/* ==========================================================================
   PORTFOLIO KHADIDJA MASRI — DESIGN SYSTEM (REFINED NEO-BRUTALIST & EDITORIAL)
   ========================================================================== */
:root {
  /* Color Palette */
  --kraft: #F6F1E5;
  --kraft-light: #FAF7EF;
  --kraft-dark: #ECE4D0;
  
  --ink: #191410;
  --ink-soft: #423A34;
  --ink-muted: #73685F;
  --ink-light: #A3968B;
  
  --coral: #E64A38;
  --coral-hover: #CF3C2A;
  --coral-soft: #FDF0ED;
  
  --sunflower: #F5BE38;
  --sunflower-soft: #FEF9EB;
  
  --cobalt: #2143B5;
  --cobalt-soft: #EFF3FD;
  
  --teal: #1E7D6F;
  --teal-soft: #EBF7F4;
  
  --card-bg: #FFFFFF;
  --card-alt: #FBF9F3;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Bricolage Grotesque', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevation & Geometry */
  --border-width: 2px;
  --border: var(--border-width) solid var(--ink);
  --border-subtle: 1px solid rgba(25, 20, 16, 0.12);
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 2px 2px 0px var(--ink);
  --shadow: 4px 4px 0px var(--ink);
  --shadow-lg: 6px 6px 0px var(--ink);
  --shadow-xl: 8px 8px 0px var(--ink);
  --shadow-hover: 5px 5px 0px var(--ink);
  --shadow-active: 1px 1px 0px var(--ink);

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--kraft);
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Elegant matrix texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(25, 20, 16, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
}

img, svg {
  vertical-align: middle;
}

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

button, input, textarea, select {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.tag-mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 11px;
  background: var(--card-alt);
  color: var(--ink-soft);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 1px 1px 0px var(--ink);
}

.tag-mono svg {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   FLOATING NAVBAR
   ========================================================================== */
.navbar-wrap {
  position: sticky;
  top: 24px;
  z-index: 100;
  margin-top: 24px;
  margin-bottom: 56px;
}

.navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sunflower);
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 1.5px 1.5px 0px var(--ink);
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-soft);
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(30, 125, 111, 0.25);
  animation: subtlePulse 2.5s infinite ease-in-out;
}

@keyframes subtlePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--coral);
}

.btn-nav-contact {
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 8px 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-nav-contact:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow);
  background: var(--coral-hover);
}

.btn-nav-contact:active {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-active);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.02rem;
  padding: 14px 26px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
  background: var(--coral-hover);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-active);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.02rem;
  padding: 14px 26px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
  background: var(--card-alt);
}

.btn-secondary:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-active);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 10px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1.5px solid var(--ink);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  margin-bottom: 22px;
  line-height: 1.12;
}

.hero-title .accent-coral {
  color: var(--coral);
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: 34px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Hero Profile Card */
.hero-profile-card {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  position: relative;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--kraft-dark);
}

.profile-avatar-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--sunflower);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
}

.profile-title-name {
  font-size: 1.35rem;
  margin-bottom: 2px;
}

.profile-title-sub {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.profile-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.tech-spec-item {
  background: var(--card-alt);
  border: 1.5px solid var(--ink);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.tech-spec-item svg {
  width: 16px;
  height: 16px;
  color: var(--coral);
}

.profile-highlight-box {
  background: var(--teal-soft);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--teal);
}

/* ==========================================================================
   KEY STATS BAR
   ========================================================================== */
.stats-section {
  margin: 10px 0 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-box {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-lbl {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 80px;
}

.service-box {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.service-box:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.service-top {
  margin-bottom: 22px;
}

.service-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 2px 2px 0px var(--ink);
}

.icon-wrap-coral { background: var(--coral-soft); color: var(--coral); }
.icon-wrap-yellow { background: var(--sunflower-soft); color: #9A6F00; }
.icon-wrap-cobalt { background: var(--cobalt-soft); color: var(--cobalt); }
.icon-wrap-teal { background: var(--teal-soft); color: var(--teal); }

.service-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.65;
}

.service-checklist {
  list-style: none;
  margin-bottom: 20px;
}

.service-checklist li {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 9px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.service-checklist li svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 3px;
}

.service-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1.5px dashed var(--kraft-dark);
}

/* ==========================================================================
   PROJECTS SHOWCASE SECTION
   ========================================================================== */
.projects-section {
  padding: 20px 0 80px;
}

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

.filter-btn {
  background: var(--card-bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-full);
  padding: 9px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.filter-btn:hover {
  transform: translateY(-1px);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--sunflower);
  color: var(--ink);
  box-shadow: var(--shadow);
}

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

.project-card {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.project-header-bar {
  padding: 16px 22px;
  background: var(--card-alt);
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-header-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--ink);
}

.project-card-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-title {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.project-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.btn-open-modal {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.94rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  width: 100%;
}

.btn-open-modal:hover {
  background: var(--coral);
  color: var(--white);
}

.btn-open-modal svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   WHY WORK WITH ME SECTION
   ========================================================================== */
.why-section {
  padding: 20px 0 80px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 2px 2px 0px var(--ink);
}

.why-title {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.why-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   MODAL DRAWER
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 20, 16, 0.72);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: translateY(18px);
  transition: var(--transition);
}

.modal-backdrop.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--card-alt);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--coral);
  color: var(--white);
}

.modal-header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--kraft-dark);
}

.modal-title {
  font-size: 1.85rem;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 1rem;
  color: var(--cobalt);
  font-weight: 700;
}

.modal-section-title {
  font-size: 1.15rem;
  margin: 20px 0 8px;
  color: var(--ink);
}

.modal-desc {
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 16px;
}

.modal-results-list {
  list-style: none;
  margin-bottom: 22px;
}

.modal-results-list li {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 9px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.modal-results-list li svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   ABOUT & METHODOLOGY
   ========================================================================== */
.about-section {
  padding: 20px 0 80px;
}

.about-card {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 44px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 44px;
}

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

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.step-item {
  background: var(--card-alt);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--coral);
  margin-bottom: 4px;
}

.step-name {
  font-size: 1.08rem;
  margin-bottom: 3px;
}

.step-info {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* Tech Stack Grid */
.stack-title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 22px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.stack-card {
  background: var(--card-alt);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stack-card:hover {
  transform: translateY(-3px);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.stack-card svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
}

/* ==========================================================================
   CONTACT SECTION & CUSTOM DROPDOWN
   ========================================================================== */
.contact-section {
  padding: 20px 0 90px;
}

.contact-card {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-title {
  font-size: 2.1rem;
  margin-bottom: 14px;
}

.contact-info-desc {
  font-size: 1.04rem;
  color: var(--ink-soft);
  margin-bottom: 30px;
  line-height: 1.65;
}

.contact-methods-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-alt);
  border: 1.5px solid var(--ink);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  transition: var(--transition);
}

.contact-method-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.contact-method-card svg {
  width: 20px;
  height: 20px;
  color: var(--coral);
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 7px;
  display: block;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--coral);
  box-shadow: 2px 2px 0px var(--ink);
}

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

/* Custom Dropdown Styling */
.custom-select-wrap {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  text-align: left;
}

.custom-select-trigger:focus, .custom-select-wrap.open .custom-select-trigger {
  border-color: var(--coral);
  box-shadow: 2px 2px 0px var(--ink);
}

.select-chevron {
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.custom-select-wrap.open .select-chevron {
  transform: rotate(180deg);
  color: var(--coral);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  list-style: none;
  z-index: 50;
  padding: 6px;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-select-wrap.open .custom-select-options {
  display: block;
}

.custom-option {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.custom-option:hover {
  background: var(--coral-soft);
  color: var(--coral);
}

.custom-option.active {
  background: var(--sunflower-soft);
  color: var(--ink);
  font-weight: 700;
}

.option-check {
  width: 16px;
  height: 16px;
  color: var(--teal);
  opacity: 0;
  transition: var(--transition);
}

.custom-option.active .option-check {
  opacity: 1;
}

.btn-submit {
  width: 100%;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.08rem;
  padding: 15px;
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-lg);
  background: var(--coral-hover);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-alert {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 700;
  display: none;
}

.form-alert.alert-error {
  border-color: var(--coral);
  background: var(--coral-soft);
  color: var(--coral);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: var(--border);
  background: var(--card-bg);
  padding: 36px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--card-alt);
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: 1.5px 1.5px 0px var(--ink);
  transition: var(--transition);
}

.social-icon-btn:hover {
  transform: translateY(-2px);
  background: var(--sunflower);
}

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

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

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

@media (max-width: 768px) {
  .navbar-wrap {
    margin-top: 14px;
    margin-bottom: 36px;
  }

  .nav-links {
    display: none;
  }

  .stats-grid, .why-grid {
    grid-template-columns: 1fr;
  }

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

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

  .modal-container {
    padding: 24px;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   FAQ SECTION (SEO RICH SNIPPETS & CLIENT ANSWERS)
   ========================================================================== */
.faq-section {
  padding: 20px 0 80px;
}

.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.faq-item.active {
  box-shadow: var(--shadow);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  gap: 16px;
  transition: var(--transition);
}

.faq-trigger:hover {
  color: var(--coral);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--ink-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--coral);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content {
  max-height: 400px;
}

.faq-body {
  padding: 0 24px 22px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.7;
  border-top: 1.5px dashed var(--kraft-dark);
  padding-top: 16px;
}

/* Smooth anchor scrolling with breathing room below floating navbar */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

/* Mobile Navbar Optimization */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 16px;
  }
  
  .nav-status {
    display: none;
  }
  
  .nav-mobile-contact {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background-color: #E64A38 !important;
    background: #E64A38 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    padding: 6px 14px !important;
    border: 1.5px solid #191410 !important;
    border-radius: 9999px !important;
    box-shadow: 2px 2px 0px #191410 !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    flex-shrink: 0 !important;
    -webkit-appearance: none !important;
  }
  
  .nav-mobile-contact span {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
  }
  
  .nav-mobile-contact svg {
    stroke: #FFFFFF !important;
    color: #FFFFFF !important;
    display: inline-block !important;
  }
  
  .nav-mobile-contact:hover,
  .nav-mobile-contact:active {
    background-color: #CF3C2A !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    transform: translate(-1px, -1px) !important;
    box-shadow: 4px 4px 0px #191410 !important;
  }
}

@media (min-width: 769px) {
  .nav-mobile-contact {
    display: none;
  }
}
