/* ==========================================================================
   KATRA TECH (PT. KATRA AVIRAMA ABADI)
   Official Corporate & Portfolio Showcase Theme
   Clean, Elegant, Light-Themed Modern SaaS & Agency Aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design System Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Primary Brand Colors */
  --primary: #3b71fe;
  --primary-hover: #2557e0;
  --primary-light: #eef4ff;
  --primary-rgb: 59, 113, 254;

  /* Secondary Accents */
  --accent-cyan: #06b6d4;
  --accent-navy: #0b194c;
  --accent-navy-hover: #132768;

  /* Neutral Backgrounds */
  --bg-body: #ffffff;
  --bg-section: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;
  
  /* Text Colors */
  --text-main: #1e293b;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #3b71fe;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 32px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-blue: 0 8px 20px -4px rgba(59, 113, 254, 0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1200px;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3.5vw, 2rem);
}

/* --------------------------------------------------------------------------
   3. Buttons & Component Utilities
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 113, 254, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-heading);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--bg-section);
  border-color: var(--text-subtle);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  background: #ffffff;
  transition: all var(--transition);
}

.btn-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
  background-color: var(--primary-light);
}

/* --------------------------------------------------------------------------
   4. Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 34px;
  width: auto;
}

.brand-text-logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.brand-accent {
  color: var(--primary);
}

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

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

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

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

.mobile-toggle-btn {
  display: none;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 0;
  z-index: 99;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-drawer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background-color: #ffffff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

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

.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-visual {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   6. Section Headers
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   7. Layanan Kami (Services Grid)
   -------------------------------------------------------------------------- */
.services-section {
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 113, 254, 0.4);
  box-shadow: var(--shadow-md);
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform var(--transition);
}

.service-card:hover .service-icon-box {
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.65rem;
}

.service-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.services-footer-link {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.5rem;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  transition: gap var(--transition);
}

.link-more:hover {
  gap: 0.65rem;
  color: var(--primary-hover);
}

/* --------------------------------------------------------------------------
   8. Kenapa Pilih Katra.tech?
   -------------------------------------------------------------------------- */
.why-section {
  background-color: var(--bg-section);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.why-photos-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.why-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
}

.why-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-photo-wrap:nth-child(2) {
  margin-top: 1.5rem;
}

.why-content-col {
  display: flex;
  flex-direction: column;
}

.why-intro-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

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

.why-point-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.why-point-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.why-point-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.why-point-text p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   5. Section Headers & Global Section Spacing
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   6. Portfolio Showcase Section ("Partner Solusi Terbaik untuk Anda")
   -------------------------------------------------------------------------- */
.portfolio-hero-section,
.portfolio-section {
  background-color: #ffffff;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

/* Filter Controls */
.filter-controls-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 0.95rem;
}

.search-box input {
  width: 100%;
  padding: 0.8rem 2.8rem 0.8rem 2.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background-color: var(--bg-section);
  color: var(--text-main);
  font-size: 0.925rem;
  font-family: inherit;
  transition: all var(--transition);
}

.search-box input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 113, 254, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pill-btn {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pill-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.pill-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(59, 113, 254, 0.25);
}

/* Portfolio 3-Column Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 113, 254, 0.35);
  box-shadow: var(--shadow-lg);
}

.project-card-image {
  position: relative;
  background-color: #0f172a;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

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

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

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: opacity var(--transition);
  backdrop-filter: blur(3px);
}

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

.project-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-category-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.project-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.project-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-launch-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap var(--transition);
}

.btn-launch-demo:hover {
  color: var(--primary-hover);
  gap: 0.6rem;
}

.btn-detail-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-detail-link:hover {
  color: var(--text-heading);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background-color: var(--bg-section);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 2.5rem;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   10. Testimonials / Kata Mereka Tentang Katra.tech
   -------------------------------------------------------------------------- */
.testimonials-section {
  background-color: var(--bg-section);
  border-top: 1px solid var(--border-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition);
}

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

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 3px;
}

.testimonial-quote {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-info h5 {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-heading);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. Pre-Footer CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner-section {
  padding: 3rem 0;
  background-color: var(--bg-section);
}

.cta-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--primary);
}

.cta-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  max-width: 620px;
}

/* --------------------------------------------------------------------------
   12. Footer (Deep Navy Corporate Blue)
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--accent-navy);
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  height: 38px;
  width: auto;
}

.footer-company-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.footer-address {
  font-size: 0.925rem;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 480px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-contact-block h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-contact-block a {
  color: #94a3b8;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-block a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   13. Quick Preview Modal
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-category {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
}

.modal-close-btn {
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close-btn:hover {
  color: var(--text-heading);
}

.modal-body {
  padding: 1.5rem;
}

.modal-banner {
  border-radius: var(--radius-md);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.modal-content-details h4:first-child {
  margin-top: 0;
}

.modal-content-details p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.modal-features-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.modal-features-list li i {
  color: #10b981;
  margin-top: 0.2rem;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-section);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background-color: var(--text-heading);
  color: #ffffff;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating WhatsApp Button */
.floating-wa-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  background-color: #25d366;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: all var(--transition);
}

.floating-wa-btn i {
  font-size: 1.25rem;
}

.floating-wa-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   14. Responsive Breakpoints & Mobile Optimization
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .why-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Global Spacing */
  .section {
    padding: 3rem 0;
  }

  .portfolio-hero-section,
  .portfolio-section {
    padding: 2.5rem 0 3.5rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  /* Navigation Bar */
  .nav-container {
    height: 68px;
  }

  .brand-text-logo {
    font-size: 1.25rem;
  }

  .brand-logo-img {
    height: 30px;
  }

  .nav-menu {
    display: none;
  }

  .nav-actions .btn-sm {
    display: none; /* Hide header CTA on mobile, available in drawer */
  }

  .mobile-toggle-btn {
    display: inline-flex;
    width: 38px;
    height: 38px;
  }

  .mobile-nav-drawer {
    top: 68px;
  }

  /* Category Filter Pills on Mobile */
  .filter-controls-box {
    margin-bottom: 2rem;
    gap: 1rem;
    width: 100%;
  }

  .search-box {
    max-width: 100%;
  }

  .search-box input {
    padding: 0.75rem 2.6rem 0.75rem 2.5rem;
    font-size: 0.875rem;
  }

  .category-pills {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-pills::-webkit-scrollbar {
    display: none;
  }

  .pill-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.95rem;
    font-size: 0.825rem;
    white-space: nowrap;
  }

  /* Projects Grid on Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    border-radius: var(--radius-md);
  }

  .project-card-body {
    padding: 1.25rem;
  }

  .project-card-title {
    font-size: 1.1rem;
  }

  .project-card-desc {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  /* Why Us Section on Mobile */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .why-photos-col {
    gap: 0.85rem;
  }

  .why-photo-wrap {
    border-radius: var(--radius-md);
  }

  .why-photo-wrap:nth-child(2) {
    margin-top: 1rem;
  }

  .why-points-list {
    gap: 1.25rem;
  }

  .why-point-item {
    gap: 0.85rem;
  }

  .why-point-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .why-point-text h4 {
    font-size: 1.025rem;
  }

  .why-point-text p {
    font-size: 0.875rem;
  }

  /* Testimonials Grid on Mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonial-card {
    padding: 1.25rem;
  }

  .testimonial-quote {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }

  /* Pre-Footer CTA on Mobile */
  .cta-banner-section {
    padding: 2rem 0;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.75rem 1.25rem;
    gap: 1.25rem;
  }

  .cta-card h3 {
    font-size: 1.15rem;
  }

  .cta-card .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Footer on Mobile */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-company-name {
    font-size: 1.05rem;
  }

  .footer-address {
    font-size: 0.875rem;
  }

  /* Floating WhatsApp Button on Mobile */
  .floating-wa-text {
    display: none;
  }

  .floating-wa-btn {
    padding: 0.85rem;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
    justify-content: center;
  }

  .floating-wa-btn i {
    font-size: 1.4rem;
  }

  /* Modal on Mobile */
  .modal-dialog {
    max-width: 94vw;
    max-height: 90vh;
    border-radius: var(--radius-md);
  }

  .modal-header {
    padding: 1rem 1.25rem;
  }

  .modal-title {
    font-size: 1.15rem;
  }

  .modal-body {
    padding: 1rem 1.25rem;
  }

  .modal-banner {
    height: 140px;
    margin-bottom: 1rem;
  }

  .modal-footer {
    flex-direction: column-reverse;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
  }

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

@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .brand-text-logo {
    font-size: 1.15rem;
  }

  .project-card-footer {
    padding-top: 0.75rem;
  }

  .btn-launch-demo {
    font-size: 0.825rem;
  }

  .btn-detail-link {
    font-size: 0.8rem;
  }
}
