/* ==========================================================================
   TARDOC — Executive Agency Theme v7 (100% Perfected & Illumined)
   ========================================================================== */

:root {
  --bg-deep: #020204;
  --bg-primary: #06060a;
  --bg-secondary: #0c0c12;
  --bg-card: #101018;
  --bg-card-hover: #161622;
  --border-subtle: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --border-red: rgba(230,0,0,0.38);
  --red: #e60000;
  --red-bright: #ff1a25;
  --red-dark: #800000;
  --red-glow: rgba(230,0,0,0.3);
  --red-glow-strong: rgba(230,0,0,0.6);
  --white: #ffffff;
  --gray: #a8a8b8;
  --gray-dim: #727284;
  --gray-dark: #3a3a48;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 76px;
  --section-pad: 100px;
  --max-w: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* --- Global Reset & Responsiveness Fixes --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.accent { color: var(--red-bright); }

/* --- Container & Centered Section Headers --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

section {
  padding: var(--section-pad) 0;
  position: relative;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--red-bright);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 8px 20px;
  background: rgba(230, 0, 0, 0.08);
  border: 1px solid var(--border-red);
  border-radius: 100px;
  margin-bottom: 20px;
  text-align: center;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
  text-align: center;
}

.section-desc {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 25px var(--red-glow);
}

.btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 8px 35px var(--red-glow-strong);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--red-bright);
  color: var(--red-bright);
  background: rgba(230, 0, 0, 0.06);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 42px;
  font-size: 15px;
}

.btn-pulse {
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.5); }
  50% { box-shadow: 0 0 0 16px rgba(230, 0, 0, 0); }
}

/* ==========================================================================
   NAVBAR & FIXED HAMBURGER MOBILE MENU (BUG-FREE)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: var(--nav-h);
  background: rgba(6, 6, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(6, 6, 10, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  border-bottom-color: var(--border-red);
}

.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  z-index: 1000001;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 6, 10, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 30px 24px 50px;
  flex-direction: column;
  gap: 12px;
  z-index: 999999;
  overflow-y: auto;
  border-top: 1px solid var(--border-red);
}

.mobile-menu.open { display: flex !important; }

.mobile-link {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

/* ==========================================================================
   HERO & PHOTO FADEOUT
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: calc(var(--nav-h) + 20px);
  padding-bottom: 0;
  background: radial-gradient(circle at 50% 40%, rgba(35, 15, 25, 0.75) 0%, var(--bg-primary) 75%);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-end;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red-bright);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 8px 18px;
  background: rgba(230, 0, 0, 0.08);
  border: 1px solid var(--border-red);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red-bright);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-title .line { display: block; }

.hero-subtitle {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 100%;
}

.hero-image-wrap img {
  max-height: 520px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  display: block;
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to top, var(--bg-primary) 0%, rgba(6, 6, 10, 0.8) 50%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

/* --- 3-ICON ROW BELOW HERO --- */
.hero-icons-container {
  background: var(--bg-primary);
  padding: 30px 0 50px;
  position: relative;
  z-index: 10;
}

.hero-icons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1050px;
  margin: 0 auto;
}

.icon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: all var(--transition);
}

.icon-card .ic-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(230, 0, 0, 0.12);
  border: 1px solid rgba(230, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-card .ic-badge svg {
  width: 22px;
  height: 22px;
  fill: var(--red-bright);
}

.icon-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.icon-card span {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
}

/* Center Featured Card */
.icon-card.featured {
  transform: scale(1.06);
  background: #140e16;
  border-color: var(--red-bright);
  box-shadow: 0 10px 30px var(--red-glow-strong);
  z-index: 2;
}

.icon-card.featured .ic-badge {
  background: var(--red);
  border-color: var(--red-bright);
}

.icon-card.featured .ic-badge svg { fill: var(--white); }

/* ==========================================================================
   CLIENTS CAROUSEL (LARGER LOGOS + WHITE FILTER + SEAMLESS LOOP)
   ========================================================================== */
.clients {
  padding: 60px 0;
  background: radial-gradient(circle at 50% 50%, rgba(30, 15, 25, 0.9) 0%, var(--bg-secondary) 80%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.clients-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-dim);
  margin-bottom: 28px;
  padding: 0 24px;
}

.clients-label strong { color: var(--white); }

.carousel-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-wrap::before, .carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.carousel-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-secondary), transparent); }
.carousel-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg-secondary), transparent); }

.carousel-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: scrollInfinite 32s linear infinite;
}

.carousel-track:hover { animation-play-state: paused; }

@keyframes scrollInfinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 14px)); }
}

.logo-card {
  flex-shrink: 0;
  height: 76px;
  padding: 10px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.logo-card:hover {
  border-color: var(--border-red);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--red-glow);
}

.logo-card img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Pure white logos so black logos show clearly! */
  opacity: 0.9;
  transition: all var(--transition);
}

.logo-card:hover img {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* ==========================================================================
   PORTFOLIO TEASER
   ========================================================================== */
.portfolio-teaser {
  background: radial-gradient(circle at 50% 50%, rgba(30, 15, 25, 0.8) 0%, var(--bg-primary) 75%);
  padding: 100px 0;
}

.portfolio-banner-wrap {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-red);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transition: all var(--transition);
  cursor: pointer;
}

.portfolio-banner-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px var(--red-glow-strong);
  border-color: var(--red-bright);
}

.portfolio-banner-wrap a { display: block; width: 100%; height: 100%; }
.portfolio-banner-wrap img { width: 100%; height: auto; display: block; object-fit: cover; }

/* ==========================================================================
   SERVICES 2x2 GRID
   ========================================================================== */
.services {
  background: radial-gradient(circle at 50% 50%, rgba(30, 15, 25, 0.8) 0%, var(--bg-primary) 75%);
}

.services-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}

.specialty-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 42px 36px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-bright), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.specialty-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-red);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(230, 0, 0, 0.16);
}

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

.specialty-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(230, 0, 0, 0.12);
  border: 1px solid rgba(230, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.specialty-icon-box svg {
  width: 30px;
  height: 30px;
  fill: var(--red-bright);
  transition: fill var(--transition);
}

.specialty-card:hover .specialty-icon-box {
  background: var(--red);
  border-color: var(--red-bright);
  box-shadow: 0 0 25px var(--red-glow-strong);
}

.specialty-card:hover .specialty-icon-box svg { fill: var(--white); }
.specialty-card h3 { font-size: 24px; font-weight: 700; color: var(--white); line-height: 1.15; }
.specialty-card p { font-size: 15px; color: var(--gray); line-height: 1.7; }
.specialty-card .card-line { height: 2px; width: 40px; background: var(--red); border-radius: 1px; margin-top: auto; transition: width var(--transition); }
.specialty-card:hover .card-line { width: 100%; }

/* ==========================================================================
   ABOUT SECTION WITH 2x2 SPECIALTY ICON CARDS (SINGLE LINE TEXT)
   ========================================================================== */
.about {
  background: radial-gradient(circle at 50% 50%, rgba(30, 15, 25, 0.8) 0%, var(--bg-primary) 75%);
  padding-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: flex-end;
}

.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}

.about-image-wrap img {
  max-height: 500px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  display: block;
}

.about-image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to top, var(--bg-primary) 0%, rgba(6, 6, 10, 0.8) 50%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 60px;
}

.about-content .section-tag { align-self: flex-start; }
.about-content .section-title { text-align: left; margin-bottom: 8px; }
.about-bio { color: var(--gray); font-size: 16px; line-height: 1.75; }

/* 2x2 Grid Layout for 4 Specialty Icon Cards (Single Line Text) */
.about-specialties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0 24px;
  width: 100%;
}

.about-spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  border-radius: 12px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.about-spec-card:hover {
  border-color: var(--red-bright);
  background: #140e16;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--red-glow);
}

.about-spec-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px var(--red-glow);
}

.about-spec-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.about-spec-card strong {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
}

/* ==========================================================================
   TRANSFORMATION (Problems vs Solutions)
   ========================================================================== */
.transform {
  background: radial-gradient(circle at 50% 50%, rgba(30, 18, 25, 0.8) 0%, var(--bg-secondary) 75%);
}

.transform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.transform-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 40px 32px;
}

.panel-without { border-top: 4px solid var(--gray-dark); }
.panel-with { border-top: 4px solid var(--red-bright); background: #120e16; }
.panel-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 12px; }
.panel-without .panel-label { color: var(--gray-dim); }
.panel-with .panel-label { color: var(--red-bright); }
.panel-heading { font-size: 26px; font-weight: 700; margin-bottom: 28px; color: var(--white); }

.transform-items { display: flex; flex-direction: column; gap: 14px; }
.transform-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.ti-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.panel-without .ti-icon { background: rgba(255, 255, 255, 0.05); }
.panel-without .ti-icon svg { width: 14px; height: 14px; fill: var(--gray-dim); }
.panel-with .ti-icon { background: rgba(230, 0, 0, 0.18); }
.panel-with .ti-icon svg { width: 14px; height: 14px; fill: var(--red-bright); }
.ti-content h4 { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--white); text-transform: none; margin-bottom: 4px; }
.ti-content p { font-size: 13px; color: var(--gray); line-height: 1.5; }

/* ==========================================================================
   FEEDBACKS
   ========================================================================== */
.feedbacks {
  background: radial-gradient(circle at 50% 50%, rgba(30, 15, 25, 0.8) 0%, var(--bg-primary) 75%);
}

.feedback-scroll { overflow-x: auto; padding: 0 5vw 20px; cursor: grab; scrollbar-width: none; }
.feedback-scroll::-webkit-scrollbar { display: none; }
.feedback-track { display: flex; gap: 20px; width: max-content; padding: 10px 0; }

.feedback-card {
  flex-shrink: 0;
  width: 240px;
  aspect-ratio: 9/16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all var(--transition);
  position: relative;
}

.feedback-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(230, 0, 0, 0.15);
}

.feedback-card > img { width: 100%; height: 100%; object-fit: cover; }

.vturb-wrap { width: 100%; height: 100%; position: relative; cursor: pointer; }
.vturb-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vturb-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; z-index: 5; transition: all 0.4s ease; }
.vturb-overlay.hidden { opacity: 0; pointer-events: none; }
.vturb-play { width: 56px; height: 56px; border-radius: 50%; background: var(--red); border: 2px solid var(--red-bright); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 24px var(--red-glow); transition: transform 0.3s ease; }
.vturb-play svg { width: 22px; height: 22px; fill: var(--white); margin-left: 2px; }

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-red);
  border-bottom: 1px solid var(--border-red);
  padding-bottom: 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: flex-end;
}

.cta-content { padding-bottom: 60px; }
.cta-content h2 { font-size: clamp(32px, 4.5vw, 56px); font-weight: 700; line-height: 1.05; margin-bottom: 18px; }
.cta-content p { color: var(--gray); font-size: 17px; line-height: 1.7; margin-bottom: 28px; }

.cta-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}

.cta-image-wrap img {
  max-height: 480px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  display: block;
}

.cta-image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to top, var(--bg-secondary) 0%, rgba(12, 12, 18, 0.8) 50%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

/* ==========================================================================
   CONTACT FORM — 100% STRICTLY CENTERED IN SECTION
   ========================================================================== */
.contact {
  background: radial-gradient(circle at 50% 50%, rgba(35, 15, 25, 0.85) 0%, var(--bg-primary) 75%);
  text-align: center;
  padding: 100px 0;
}

.contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-layout-centered {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  padding: 44px 38px;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  text-align: left;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.form-group input, .form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--red-bright);
}

.btn-contact-submit {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  padding: 16px 20px;
  font-size: clamp(13px, 3.5vw, 15px);
  white-space: normal;
  box-sizing: border-box;
  margin-top: 10px;
  text-align: center;
}

.form-success {
  display: none;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--red-bright);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 10px 30px var(--red-glow);
}

.form-success svg { width: 48px; height: 48px; fill: var(--red-bright); margin: 0 auto 16px; }
.form-success .fs-title { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.form-success .fs-desc { font-size: 14px; color: var(--gray); }

.contact-aside-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-dim);
  margin: 36px 0 16px;
  text-align: center;
}

.contact-icons { display: flex; gap: 16px; justify-content: center; }

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.contact-icon:hover {
  border-color: var(--red-bright);
  background: rgba(230, 0, 0, 0.08);
  transform: translateY(-3px);
}

.contact-icon svg { width: 24px; height: 24px; fill: var(--gray); }
.contact-icon:hover svg { fill: var(--red-bright); }

/* ==========================================================================
   PORTFOLIO PAGE STYLING (Complete, Modern & Production Ready)
   ========================================================================== */
.portfolio-page-hero {
  padding: calc(var(--nav-h) + 60px) 0 30px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-card:hover {
  border-color: var(--red-bright);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--red-glow-strong);
}

.project-preview-link {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  cursor: pointer;
}

.project-preview-frame {
  width: 100%;
  height: 100%;
  position: relative;
}

.project-preview-frame iframe {
  width: 200%;
  height: 200%;
  border: none;
  transform: scale(0.5);
  transform-origin: 0 0;
  pointer-events: none; /* Allows 1 click directly on preview to open site */
}

.project-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-preview-link:hover .project-preview-overlay {
  background: rgba(230, 0, 0, 0.15);
}

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

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

.project-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.project-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 8px;
}

.project-body .btn {
  margin-top: auto;
  align-self: flex-start;
  width: 100%;
  justify-content: center;
}

.custom-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  border-radius: var(--radius);
  padding: 44px 24px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.custom-cta-box h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 700; }
.custom-cta-box p { color: var(--gray); max-width: 580px; margin: 0 auto; font-size: 15px; }

.custom-cta-box .btn {
  max-width: 100%;
  width: auto;
  white-space: normal;
  padding: 16px 28px;
  font-size: clamp(13px, 3.5vw, 15px);
  box-sizing: border-box;
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer-desc { color: var(--gray); font-size: 14px; max-width: 440px; line-height: 1.6; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; margin-bottom: 32px; }

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-btn:hover { border-color: var(--red-bright); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; fill: var(--gray); }
.social-btn:hover svg { fill: var(--red-bright); }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  margin-bottom: 24px;
}

.footer-links a { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--gray); }
.footer-links a:hover { color: var(--red-bright); }
.footer-copy { font-size: 12px; color: var(--gray-dark); }

/* Floating WhatsApp Button */
.wpp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px var(--red-glow);
  transition: transform 0.3s ease;
  border: 1px solid var(--red-bright);
}

.wpp-float:hover { transform: scale(1.1); }
.wpp-float svg { width: 30px; height: 30px; fill: var(--white); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (100% PERFECT ON MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid-2x2 { grid-template-columns: 1fr; max-width: 500px; }
  .transform-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { align-items: center; padding-bottom: 20px; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-image-wrap img { max-height: 400px; }
  
  .hero-icons-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .icon-card { padding: 14px 8px; }
  .icon-card strong { font-size: 12px; }
  .icon-card span { font-size: 10px; }
  .icon-card.featured { transform: scale(1); }

  .about-grid { grid-template-columns: 1fr; }
  .about-content { align-items: center; text-align: center; padding-bottom: 20px; }
  .about-content .section-tag { align-self: center; }
  .about-content .section-title { text-align: center; }
  .about-bio { text-align: center; }
  .about-image-wrap { order: -1; }
  .about-image-wrap img { max-height: 380px; }
  .cta-grid { grid-template-columns: 1fr; text-align: center; }
  .cta-content { align-items: center; padding-bottom: 20px; }
  .cta-content h2, .cta-content p { text-align: center; }
  .cta-image-wrap img { max-height: 360px; }
  .form-row { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 20px); }
  .hero-image-wrap img { max-height: 340px; }
  
  .hero-icons-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .icon-card { padding: 12px 6px; }
  .icon-card .ic-badge { width: 34px; height: 34px; }
  .icon-card .ic-badge svg { width: 16px; height: 16px; }
  .icon-card strong { font-size: 11px; }
  .icon-card span { font-size: 9px; }

  .about-specialties-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .about-spec-card { padding: 10px 8px; gap: 6px; }
  .about-spec-icon { width: 30px; height: 30px; border-radius: 6px; }
  .about-spec-icon svg { width: 16px; height: 16px; }
  .about-spec-card strong { font-size: 11px; white-space: nowrap; }

  .feedback-card { width: 210px; }
  .footer-links { gap: 14px; }
  .footer-links a { font-size: 12px; }
  .contact-form { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(30px, 8.5vw, 44px); }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .section-title { font-size: clamp(24px, 6.5vw, 36px); }
  .specialty-card { padding: 28px 20px; }
  .transform-panel { padding: 24px 18px; }
  .feedback-card { width: 180px; }
}
