/* ==========================================================================
   AppsWhiz - Standalone CSS
   Color Palette: Red (#E31B23), Black (#0A0A0A), and Crisp White (#FFFFFF)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  --color-red: #E31B23;
  --color-red-hover: #C8141B;
  --color-red-light: #FFF1F2;
  --color-red-border: #FECDD3;
  --color-black: #0A0A0A;
  --color-dark-surface: #141416;
  --color-dark-border: #26262A;
  --color-dark-muted: #B4B4BB;
  --color-white: #FFFFFF;
  --color-light-bg: #F8F8FA;
  --color-light-border: #E2E2E8;
  --color-light-text: #484850;
  --color-light-title: #09090B;
  --color-light-muted: #71717A;
  --dark-texture: radial-gradient(circle at 90% 0%, rgba(160,28,38,0.55), transparent 50%), radial-gradient(circle at 5% 100%, rgba(110,15,25,0.35), transparent 45%), radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) 0 0/24px 24px, linear-gradient(135deg, #1c0d10, #120a0c);
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --container-max: 1380px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--color-black);
  color: var(--color-dark-muted);
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--color-red);
  color: var(--color-white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-black);
}
::-webkit-scrollbar-thumb {
  background: #27272A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-red);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #FCFBF8;
}

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

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

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

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* AppsWhiz Signature Gradient */
.appswhiz-gradient-text {
  background-image: linear-gradient(110deg, #FFFFFF 0%, #E31B23 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-red {
  color: var(--color-red);
}

/* Buttons */
.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px -5px rgba(227, 27, 35, 0.35);
}

.btn-red:hover {
  background-color: var(--color-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(227, 27, 35, 0.45);
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-dark-border);
  padding: 0.85rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  background: none;
  padding: 0;
  transition: transform 0.2s ease;
}

.logo-badge:hover {
  transform: scale(1.02);
}

.logo-badge img {
  height: 3.25rem;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: #FCFBF8;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-trigger {
  padding: 0.65rem;
  border-radius: 9999px;
  background-color: var(--color-dark-surface);
  border: 1px solid var(--color-dark-border);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  width: 2.5rem;
  height: 2.5rem;
  transition: background-color 0.2s ease;
}

.drawer-trigger:hover {
  background-color: #202024;
}

.drawer-trigger span {
  display: block;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
}

.drawer-trigger span:nth-child(1) { width: 1.25rem; }
.drawer-trigger span:nth-child(2) { width: 0.875rem; background-color: var(--color-red); }
.drawer-trigger span:nth-child(3) { width: 1.25rem; }

.mobile-toggle {
  display: flex;
  padding: 0.5rem;
  color: #FCFBF8;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 9rem;
  padding-bottom: 5rem;
  background: var(--dark-texture);
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: contrast(1.1);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 8, 10, 0.45) 0%, rgba(20, 8, 10, 0.3) 50%, rgba(24, 9, 12, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--color-red);
}

.hero-badge-text {
  font-size: 0.875rem;
  color: var(--color-dark-muted);
}

.hero-row-1 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .hero-row-1 {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hero-huge-title {
  font-size: 13vw;
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: -0.04em;
  user-select: none;
}

@media (min-width: 640px) {
  .hero-huge-title { font-size: 11vw; }
}
@media (min-width: 1024px) {
  .hero-huge-title { font-size: 10.4vw; }
}

.hero-card-preview {
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--color-dark-border);
  background-color: rgba(20, 20, 22, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

@media (min-width: 1024px) {
  .hero-card-preview {
    width: 32%;
    flex-shrink: 0;
  }
}

.hero-card-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.hero-row-2 {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 1024px) {
  .hero-row-2 {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.hero-desc-box {
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-desc-box {
    width: 36%;
    flex-shrink: 0;
  }
}

.hero-desc-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark-muted);
  background: rgba(10, 10, 10, 0.5);
  padding: 0.5rem;
  border-radius: 0.75rem;
}

.hero-row-title-right {
  text-align: left;
}

@media (min-width: 1024px) {
  .hero-row-title-right {
    text-align: right;
    flex: 1;
  }
}

.hero-footer-bar {
  padding-top: 2rem;
  border-top: 1px solid rgba(38, 38, 42, 0.8);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hero-footer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hero-tags-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-tag-item:hover {
  color: var(--color-red);
}

.hero-contact-quick {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
}

.hero-contact-quick a {
  color: #FCFBF8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-contact-quick a:hover {
  color: var(--color-red);
}

/* Light Services Section */
.services-section {
  position: relative;
  padding: 7rem 0;
  background-color: var(--color-light-bg);
  color: var(--color-light-title);
  border-top: 1px solid var(--color-light-border);
}

.section-badge-red {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-red);
  margin-bottom: 0.75rem;
}

.services-header-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .services-header-grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
}

.section-title-large {
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-light-title);
}

@media (min-width: 640px) {
  .section-title-large { font-size: 3.25rem; }
}
@media (min-width: 1024px) {
  .section-title-large { font-size: 3.75rem; }
}

.services-lead-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-light-text);
}

/* 6 Services Grid */
.services-grid-6 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .services-grid-6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.service-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-light-border);
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-red);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--color-red);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.service-icon-box {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background-color: var(--color-red-light);
  border: 1px solid var(--color-red-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.service-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: #F4F4F6;
  color: var(--color-light-muted);
  border: 1px solid #E4E4E9;
}

.service-title {
  font-size: 1.25rem;
  color: var(--color-light-title);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.service-card:hover .service-title {
  color: var(--color-red);
}

.service-desc {
  font-size: 0.875rem;
  color: var(--color-light-text);
  line-height: 1.6;
}

.service-card-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #F0F0F4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-light-title);
  transition: color 0.2s ease;
}

.service-card:hover .service-card-footer {
  color: var(--color-red);
}

.service-card-footer svg {
  color: var(--color-red);
  transition: transform 0.2s ease;
}

.service-card:hover .service-card-footer svg {
  transform: translate(2px, -2px);
}

/* Why Choose Us / Growth Section */
.growth-section {
  position: relative;
  padding: 7rem 0;
  background-color: var(--color-black);
  background-size: cover;
  background-position: center;
  border-top: 1px solid var(--color-dark-border);
}

.growth-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(150,25,35,0.55), transparent 55%), radial-gradient(circle at 0% 100%, rgba(110,15,25,0.35), transparent 50%), linear-gradient(135deg, rgba(22,10,13,0.9), rgba(14,9,11,0.94));
}

.growth-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
}

.growth-desc {
  font-size: 1.125rem;
  color: var(--color-dark-muted);
  line-height: 1.7;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.partners-row {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-dark-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  opacity: 1;
}

.partner-logo-item img {
  height: 2rem;
  width: auto;
  filter: invert(1);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.partner-logo-item img:hover {
  opacity: 1;
}

/* Showcase Portfolio */
.showcase-section {
  padding: 7rem 0;
  background-color: var(--color-light-bg);
  color: var(--color-light-title);
  border-top: 1px solid var(--color-light-border);
}

.showcase-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .showcase-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--color-white);
  color: var(--color-light-text);
  border: 1px solid var(--color-light-border);
  transition: all 0.2s ease;
}

.cat-tab-btn.active {
  background-color: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
  box-shadow: 0 4px 12px rgba(227, 27, 35, 0.25);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background: var(--color-white);
  border: 1px solid var(--color-light-border);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-red);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-card.featured-card {
  grid-column: 1 / -1;
}

.project-image-box {
  position: relative;
  height: 320px;
  background-color: #E8E8ED;
  overflow: hidden;
}

.project-card.featured-card .project-image-box {
  height: 420px;
}

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

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

.project-category-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-light-title);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-info-row {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-meta-line {
  font-size: 0.75rem;
  color: var(--color-light-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.project-name {
  font-size: 1.25rem;
  color: var(--color-light-title);
  transition: color 0.2s ease;
}

.project-card:hover .project-name {
  color: var(--color-red);
}

.project-arrow-circle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: var(--color-light-title);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.project-card:hover .project-arrow-circle {
  background-color: var(--color-red);
}

/* Testimonials Slider */
.testimonial-section {
  position: relative;
  padding: 7rem 0;
  background-color: var(--color-light-bg);
  border-top: 1px solid var(--color-light-border);
  overflow: hidden;
}

.testimonial-slider-box {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-light-border);
  border-radius: 2rem;
  padding: 3rem 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .testimonial-slider-box {
    padding: 4rem 3.5rem;
  }
}

.testimonial-quote-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--color-light-title);
  text-align: center;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .testimonial-quote-text {
    font-size: 1.75rem;
  }
}

.testimonial-footer-row {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #F0F0F4;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .testimonial-footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.testimonial-author-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid rgba(227, 27, 35, 0.2);
  flex-shrink: 0;
  background: #E0E0E0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-name {
  font-size: 1.125rem;
  color: var(--color-light-title);
}

.testimonial-author-role {
  font-size: 0.85rem;
  color: var(--color-light-muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.slider-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: #F4F4F6;
  border: 1px solid var(--color-light-border);
  color: var(--color-light-title);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.slider-btn:hover {
  background-color: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  background-color: #D4D4D8;
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-dot.active {
  width: 2rem;
  background-color: var(--color-red);
}

/* Impact Banner */
.impact-section {
  position: relative;
  padding: 8rem 0;
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
}

.impact-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(80,0,8,0.55), transparent 50%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #E31B23, #9E0F16);
}

.impact-content {
  position: relative;
  z-index: 10;
  max-width: 52rem;
}
.impact-section .section-badge-red { color: #fff; opacity: 0.85; }
.impact-section .btn-red { background: #fff; color: var(--color-red); }
.impact-section .btn-red:hover { background: #0A0A0A; color: #fff; }

/* Blog Insights */
.blog-section {
  padding: 7rem 0;
  background-color: var(--color-white);
  color: var(--color-light-title);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
}

.featured-article {
  cursor: pointer;
}

.featured-cover {
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: #F0F0F4;
  margin-bottom: 1.5rem;
  aspect-ratio: 16 / 10;
}

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

.featured-article:hover .featured-cover img {
  transform: scale(1.04);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-light-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.article-title-lg {
  font-size: 1.75rem;
  color: var(--color-light-title);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.featured-article:hover .article-title-lg {
  color: var(--color-red);
}

.side-article-item {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  cursor: pointer;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #E8E8EE;
}

.side-article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-article-thumb {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #F0F0F4;
}

.side-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.side-article-item:hover .side-article-thumb img {
  transform: scale(1.05);
}

.side-article-title {
  font-size: 1.05rem;
  color: var(--color-light-title);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.side-article-item:hover .side-article-title {
  color: var(--color-red);
}

/* Footer */
.site-footer {
  position: relative;
  padding: 6rem 0;
  background: var(--dark-texture);
  border-top: 1px solid var(--color-dark-border);
  overflow: hidden;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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

@media (min-width: 1024px) {
  .footer-left {
    width: 50%;
  }
}

.footer-right {
  width: 100%;
  user-select: none;
}

@media (min-width: 1024px) {
  .footer-right {
    width: 50%;
    display: flex;
    justify-content: flex-end;
  }
}

.footer-watermark {
  font-size: 16vw;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

@media (min-width: 1024px) {
  .footer-watermark {
    font-size: 9.5vw;
  }
}

.footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  color: #FCFBF8;
}

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

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-socials a {
  color: #888888;
}

.footer-socials a:hover {
  color: var(--color-red);
}

/* Modals & Drawer Overlays */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background-color: #fff;
  border: 1px solid var(--color-light-border);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 38rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: var(--color-light-title);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box h3, .modal-box h4 { color: var(--color-light-title) !important; }
.modal-box p { color: var(--color-light-text) !important; }

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: #888888;
  font-size: 1.5rem;
  padding: 0.25rem;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--color-light-text);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background-color: var(--color-light-bg);
  border: 1px solid var(--color-light-border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--color-light-title);
  font-family: inherit;
  font-size: 0.9rem;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-red);
}

/* Offcanvas Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 250;
  display: none;
}

.drawer-overlay.open {
  display: block;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 28rem;
  height: 100%;
  background-color: var(--color-dark-surface);
  border-left: 1px solid var(--color-dark-border);
  z-index: 260;
  padding: 2.5rem 2rem;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drawer-panel.open {
  right: 0;
}

.header-phone{display:none;font-family:var(--font-heading);font-weight:600;font-size:1.05rem;color:#FCFBF8}.header-phone:hover{color:var(--color-red)}@media(min-width:1024px){.header-phone{display:inline}}

/* Company Overview (light) */
.overview-section { padding: 6rem 0; background: var(--color-light-bg); color: var(--color-light-title); border-top: 1px solid var(--color-light-border); }
.overview-section .section-title-large { color: var(--color-light-title); }
.overview-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .overview-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.overview-text p { color: var(--color-light-text); line-height: 1.75; margin-bottom: 1rem; font-size: 1.05rem; }
.overview-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.overview-stat { padding: 1.5rem; border: 1px solid var(--color-light-border); border-radius: 1rem; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.overview-stat strong { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--color-red); }
.overview-stat span { color: var(--color-light-muted); font-size: 0.9rem; }

/* Industries We Serve */
.industries-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 640px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .industries-grid { grid-template-columns: repeat(4, 1fr); } }
.industry-card { position: relative; padding: 1.75rem 1.5rem; border: 1px solid var(--color-light-border); border-radius: 1.25rem; background: linear-gradient(160deg, #fff 60%, var(--color-red-light)); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.industry-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-red); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.industry-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(227,27,35,0.12); border-color: var(--color-red-border); }
.industry-card:hover::after { transform: scaleX(1); }
.industry-icon { width: 3.25rem; height: 3.25rem; border-radius: 0.9rem; display: flex; align-items: center; justify-content: center; background: var(--color-red); color: #fff; margin-bottom: 1.1rem; box-shadow: 0 8px 18px rgba(227,27,35,0.3); }
.industry-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--color-light-title); }
.industry-card p { font-size: 0.9rem; line-height: 1.6; color: var(--color-light-text); }

.tech-item { color: #FFFFFF; font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; opacity: 0.9; transition: color .2s ease, opacity .2s ease; }
.tech-item:hover { color: var(--color-red); opacity: 1; }

a.project-card { display: block; color: inherit; }
.project-image-box, .project-card.featured-card .project-image-box { height: 300px; }
.project-image-box img { object-position: top center; }
.project-info-row { align-items: flex-start; }
.project-desc { font-size: 0.9rem; line-height: 1.6; color: var(--color-light-text); margin-top: 0.5rem; }

/* Technology marquee */
.tech-marquee { display: block; overflow: hidden; padding: 2rem 0 0; gap: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tech-track { display: flex; width: max-content; animation: tech-scroll 30s linear infinite; }
.tech-marquee:hover .tech-track { animation-play-state: paused; }
.tech-track .tech-item { padding-right: 4rem; white-space: nowrap; }
@keyframes tech-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tech-track { animation: none; } }

/* ===== Mobile responsive fixes ===== */
@media (max-width: 767px) {
  /* header */
  .site-header { padding: 0.75rem 0; }
  .logo-badge img { height: 2.1rem; }
  .header-actions { gap: 0.5rem; }
  .header-actions .btn-red { white-space: nowrap; padding: 0.55rem 1rem; font-size: 0.8rem; }
  .drawer-trigger { width: 2.25rem; height: 2.25rem; padding: 0.6rem; }
  .hero-section { padding-top: 6.5rem; padding-bottom: 3rem; }
  .hero-badge-text { font-size: 0.75rem; }
  .hero-desc-text { font-size: 0.95rem; }

  /* 30% smaller section gaps */
  .services-section, .growth-section, .showcase-section, .testimonial-section, .overview-section, .site-footer { padding-top: 4.9rem; padding-bottom: 4.9rem; }
  .impact-section { padding-top: 5.6rem; padding-bottom: 5.6rem; }
  .partners-row { margin-top: 3rem; }
  .services-header-grid { margin-bottom: 2.5rem; }

  /* portfolio: swipeable row, next card peeks in */
  .projects-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-right: -1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
  }
  .projects-grid::-webkit-scrollbar { display: none; }
  .projects-grid .project-card { flex: 0 0 80%; scroll-snap-align: start; }
  .project-image-box, .project-card.featured-card .project-image-box { height: 220px; }
  .project-info-row { padding: 1.25rem; }
  .category-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .cat-tab-btn { white-space: nowrap; }

  /* industries: 2 per row, no description */
  .industries-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 2rem; }
  .industry-card { padding: 1.1rem 0.9rem; }
  .industry-card p { display: none; }
  .industry-card h3 { font-size: 0.9rem; margin-bottom: 0; }
  .industry-icon { width: 2.6rem; height: 2.6rem; margin-bottom: 0.75rem; }

  .testimonial-slider-box { padding: 2rem 1.25rem; min-height: 0; }
  .tech-item { font-size: 1.1rem; }
  .modal-box { padding: 1.5rem 1.25rem; }
}

@media (max-width: 767px) {
  .project-desc { display: none; }

  /* services: swipeable row, next card peeks in */
  .services-grid-6 {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-right: -1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
  }
  .services-grid-6::-webkit-scrollbar { display: none; }
  .services-grid-6 .service-card { flex: 0 0 80%; scroll-snap-align: start; }
}

.service-card-top { gap: 0.75rem; }
.service-icon-box { flex-shrink: 0; }
.service-tag { white-space: nowrap; font-size: 0.62rem; padding: 0.3rem 0.7rem; }

/* gradient text: stop descenders (g, y, p) being clipped */
.appswhiz-gradient-text { padding-bottom: 0.12em; display: inline-block; }
@media (max-width: 767px) {
  .site-header .container { padding-left: 1rem; padding-right: 1rem; }
  .header-inner { gap: 0.5rem; }
  .logo-badge img { height: 1.8rem; }
  .header-actions .btn-red { padding: 0.5rem 0.8rem; font-size: 0.75rem; }
}
.testimonial-slider-box { overflow: hidden; }

@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .project-image-box, .project-card.featured-card .project-image-box { height: 240px; }
  .project-info-row { padding: 1.25rem 1.5rem; }
  .project-name { font-size: 1.15rem; }
}
