/* 
  Eyegrapix Static Website CSS
  Replace colors, fonts, logo, images, and client details later when final branding is provided.
*/

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary: #ff4d2e;
  --primary-dark: #d9361c;
  --dark: #111827;
  --dark-soft: #1f2937;
  --text: #4b5563;
  --muted: #6b7280;
  --light: #f6f1ea;
  --white: #ffffff;
  --off-white: #fef9f5;
  --border: #e5e7eb;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.08);
  --radius: 22px;
}

/* ============ Animations & Motion ============ */

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.06); }
}

@keyframes floatBlobSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 18px) scale(1.08); }
}

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

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Scroll-reveal (class + in-view are toggled by main.js) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.7;
}

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

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

.service-card,
.portfolio-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

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

/* Reusable */
.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.section-soft {
  background: var(--light);
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}

.section-dark::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  width: 460px;
  height: 460px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.12), transparent 70%);
  animation: floatBlob 14s ease-in-out infinite;
  pointer-events: none;
}

.section-dark .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(255, 77, 46, 0.5);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 46, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(255, 77, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 46, 0); }
}

.section-dark .eyebrow::before,
.section-heading.light .eyebrow::before {
  background: var(--primary);
}

h1,
h2,
h3,
h4 {
  color: var(--dark);
  line-height: 1.15;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -3px;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

p {
  font-size: 16px;
  color: var(--text);
}

.section-dark p,
.section-dark span {
  color: #d1d5db;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-heading p {
  font-size: 18px;
}

.section-heading.light h2 {
  color: var(--white);
}

.section-heading.light p {
  color: #d1d5db;
}

.center-btn {
  text-align: center;
  margin-top: 45px;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition: 0.3s ease;
  cursor: pointer;
  border: 0;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 130%;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(255, 77, 46, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

.full-btn {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 77, 46, 0.2);
}

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

.logo {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--primary);
}

/*.logo::after {
  content: ".";
  color: var(--white);
}*/

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  transition: 0.3s ease;
}

.main-nav > a,
.main-nav > .nav-dropdown > .nav-drop-toggle {
  position: relative;
}

.main-nav > a::after,
.main-nav > .nav-dropdown > .nav-drop-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: width 0.3s ease;
}

.main-nav > a:hover::after,
.main-nav > a.active::after,
.main-nav > .nav-dropdown:hover > .nav-drop-toggle::after,
.main-nav > .nav-dropdown > .nav-drop-toggle.active::after {
  width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}

.nav-drop-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.nav-drop-toggle .caret {
  transition: 0.3s ease;
}

.nav-dropdown:hover .nav-drop-toggle .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 12px;
  background: var(--dark);
  border: 1px solid rgba(255, 77, 46, 0.2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 10px);
}

.dropdown-menu a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: rgba(255, 77, 46, 0.15);
  color: var(--white);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  transition: 0.3s ease;
  border: 1px solid #ff4d2e;
  border-radius: 200px;
  padding: 10px 16px 10px 17px;
}

.header-phone svg {
  color: var(--primary);
  flex-shrink: 0;
}

.header-phone:hover {
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--primary);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  padding: 90px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 77, 46, 0.12), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(17, 24, 39, 0.08), transparent 28%),
    var(--off-white);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  top: -80px;
  left: 6%;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.16), transparent 70%);
  animation: floatBlob 9s ease-in-out infinite;
}

.hero::after {
  width: 260px;
  height: 260px;
  bottom: -60px;
  right: 10%;
  background: radial-gradient(circle, rgba(17, 24, 39, 0.1), transparent 70%);
  animation: floatBlobSlow 11s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content p,
.hero-content .hero-actions {
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content .eyebrow { animation-delay: 0.05s; }
.hero-content h1 { animation-delay: 0.15s; }
.hero-content p { animation-delay: 0.28s; }
.hero-content .hero-actions { animation-delay: 0.4s; }

.hero-content p {
  max-width: 620px;
  margin-top: 24px;
  font-size: 19px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 520px;
}

.visual-card {
  position: absolute;
  border-radius: 34px;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    floatBlob 7s ease-in-out 0.8s infinite;
}

.large-card { animation-delay: 0.2s, 0.9s; }
.card-one { animation-delay: 0.35s, 1.1s; }
.card-two { animation-delay: 0.5s, 1.3s; }

.visual-card:hover {
  animation-play-state: paused;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 77, 46, 0.85), rgba(17, 24, 39, 0.95)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 8px,
      transparent 8px,
      transparent 16px
    );
}

.visual-card span {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 26px;
  font-weight: 900;
  text-shadow:
    1px 1px 0 rgba(17, 24, 39, 0.55),
    2px 2px 0 rgba(17, 24, 39, 0.45),
    3px 3px 0 rgba(17, 24, 39, 0.35),
    4px 4px 10px rgba(0, 0, 0, 0.5);
}

.small-card span {
  font-size: 18px;
}

/* Real-photo variant: swaps a placeholder gradient block for an actual image */
.has-photo img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-card.has-photo::before {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 40%, rgba(17, 24, 39, 0.8) 100%);
}

.featured-work-image.has-photo::before {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 45%, rgba(17, 24, 39, 0.7) 100%);
}

.image-placeholder.has-photo {
  background: var(--dark);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounce 2.2s infinite;
}

.scroll-indicator svg {
  color: var(--primary);
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.large-card {
  width: 80%;
  height: 320px;
  right: 0;
  top: 0;
}

.small-card {
  width: 220px;
  height: 160px;
}

.card-one {
  left: 0;
  bottom: 0;
  background: var(--primary);
}

.card-two {
  right: 0;
  bottom: 0;
  background: var(--dark-soft);
}

/* Scroll Parallax Showcase */
.scroll-showcase {
  position: relative;
  overflow: hidden;
  padding: 80px 0 70px;
  background: var(--light);
}

.scroll-showcase .section-heading {
  margin-bottom: 45px;
}

.scroll-columns {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  height: 760px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.scroll-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  will-change: transform;
}

.scroll-column.offset {
  margin-top: -160px;
}

.scroll-tile {
  position: relative;
  display: block;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background-size: 100% 100%;
  background-position: center;
}

.scroll-tile:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.scroll-tile.tall {
  height: 320px;
}

.scroll-tile.medium {
  height: 230px;
}

.scroll-tile.short {
  height: 130px;
}

.scroll-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0) 45%, rgba(17, 24, 39, 0.78) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.07) 0,
      rgba(255, 255, 255, 0.07) 10px,
      transparent 10px,
      transparent 20px
    );
}

.scroll-tile span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
}

.scroll-showcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 991px) {
  .scroll-columns {
    grid-template-columns: repeat(2, 1fr);
    height: 620px;
  }

  .scroll-column:nth-child(3) {
    display: none;
  }
}

@media (max-width: 768px) {
  .scroll-columns {
    grid-template-columns: 1fr;
    height: 480px;
  }

  .scroll-column:nth-child(2),
  .scroll-column:nth-child(3) {
    display: none;
  }

  .scroll-column.offset {
    margin-top: 0;
  }
}

/* Page Hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 80px;
  background:
    linear-gradient(135deg, rgba(255, 77, 46, 0.08), rgba(17, 24, 39, 0.04)),
    var(--off-white);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.14), transparent 70%);
  animation: floatBlob 10s ease-in-out infinite;
  pointer-events: none;
}

.page-hero .container > * {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-hero .eyebrow { animation-delay: 0.05s; }
.page-hero h1 { animation-delay: 0.15s; }
.page-hero p { animation-delay: 0.28s; }

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 5vw, 66px);
}

.page-hero p {
  max-width: 720px;
  margin-top: 22px;
  font-size: 18px;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

.service-card {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.04);
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 77, 46, 0.25);
}

/* Featured Work Section */
.featured-work-section {
  background: var(--off-white);
}

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

.featured-work-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
  transition: 0.3s ease;
}

.featured-work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.featured-work-image {
  min-height: 320px;
  padding: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  background-size: 100% 100%;
  background-position: center;
  transition: background-size 0.6s ease;
}

.featured-work-card:hover .featured-work-image {
  background-size: 130% 130%;
}

.featured-work-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.75)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 10px,
      transparent 10px,
      transparent 20px
    );
}

.featured-work-image span {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
}

.work-bg-one {
  background: linear-gradient(135deg, #ff4d2e, #111827);
}

.work-bg-two {
  background: linear-gradient(135deg, #111827, #ff4d2e);
}

.work-bg-three {
  background: linear-gradient(135deg, #f97316, #111827);
}

.work-bg-four {
  background: linear-gradient(135deg, #111827, #374151);
}

.work-bg-five {
  background: linear-gradient(135deg, #ff7a4d, #7c2d12);
}

.work-bg-six {
  background: linear-gradient(135deg, #1f2937, #ff4d2e);
}

.featured-work-content {
  padding: 28px;
}

.work-category {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.featured-work-content h3 {
  margin-bottom: 10px;
}

.featured-work-content p {
  margin-bottom: 0;
}

/* Responsive Featured Work */
@media (max-width: 768px) {
  .featured-work-grid {
    grid-template-columns: 1fr;
  }

  .featured-work-image {
    min-height: 240px;
  }

  .featured-work-image span {
    font-size: 24px;
  }
}

.icon-box {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: rgba(255, 77, 46, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.service-card:hover .icon-box {
  transform: scale(1.12) rotate(-6deg);
  background: var(--primary);
  color: var(--white);
}

.stat-box .icon-box {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-box:hover .icon-box {
  transform: scale(1.12) rotate(-6deg);
}

/* Split Layout */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.split-grid p {
  margin-bottom: 18px;
}

.image-placeholder {
  position: relative;
  min-height: 430px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 77, 46, 0.9), rgba(17, 24, 39, 0.95)),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.1) 0,
      rgba(255,255,255,0.1) 10px,
      transparent 10px,
      transparent 20px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.image-placeholder:hover {
  transform: translateY(-6px);
}

.image-placeholder::after {
  content: "";
  position: absolute;
  top: -24px;
  left: -24px;
  width: 110px;
  height: 110px;
  border: 2px dashed rgba(255, 77, 46, 0.35);
  border-radius: 50%;
  animation: spinSlow 18s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.image-placeholder span {
  color: var(--white);
  font-size: 30px;
  font-weight: 900;
}

/* Client Logos / Trust Bar */
.client-logos-section {
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.client-logos-label {
  text-align: center;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

/* Once JS duplicates the chips, this becomes an auto-scrolling marquee */
.client-logos-grid[data-marquee="true"] {
  display: flex;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}

.client-logos-grid[data-marquee="true"] .client-logo-chip {
  flex: 0 0 190px;
}

.client-logos-section:hover .client-logos-grid[data-marquee="true"] {
  animation-play-state: paused;
}

.client-logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 74px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  filter: grayscale(1);
  opacity: 0.75;
  transition: 0.3s ease;
}

.client-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.client-logo-chip:nth-child(6n+1) .client-logo-mark { background: var(--primary); }
.client-logo-chip:nth-child(6n+2) .client-logo-mark { background: #3b82f6; }
.client-logo-chip:nth-child(6n+3) .client-logo-mark { background: #a855f7; }
.client-logo-chip:nth-child(6n+4) .client-logo-mark { background: #14b8a6; }
.client-logo-chip:nth-child(6n+5) .client-logo-mark { background: #f59e0b; }
.client-logo-chip:nth-child(6n+6) .client-logo-mark { background: #22c55e; }

.client-logo-chip:hover {
  filter: none;
  opacity: 1;
  border-color: rgba(255, 77, 46, 0.3);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Statistics / Why Choose Us */
.stats-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: var(--dark);
}

.stats-section::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.22), transparent 70%);
  animation: floatBlob 12s ease-in-out infinite;
  pointer-events: none;
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

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

.stat-box {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 77, 46, 0.35);
}

.stat-box .icon-box {
  margin: 0 auto 20px;
  background: rgba(255, 77, 46, 0.15);
}

.stat-box h3 {
  font-size: 46px;
  color: var(--primary);
}

.stat-box p {
  color: #d1d5db;
  font-weight: 700;
}

/* FAQ */
.faq-section {
  position: relative;
  overflow: hidden;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 110px;
}

.faq-intro::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.14), transparent 70%);
  animation: floatBlob 11s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.faq-intro > * {
  position: relative;
  z-index: 1;
}

.faq-intro h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.faq-intro p {
  margin-bottom: 30px;
  font-size: 17px;
}

/* Accordion */
.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 6px 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: 0.3s ease;
}

.faq-item[open] {
  border-color: rgba(255, 77, 46, 0.3);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.faq-item summary {
  padding: 22px 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
}

.faq-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 77, 46, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  transition: 0.3s ease;
}

.faq-item[open] .faq-number {
  background: var(--primary);
  color: var(--white);
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light);
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  transition: 0.3s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
  background: var(--primary);
  color: var(--white);
}

.faq-item p {
  padding-bottom: 24px;
  padding-left: 48px;
  font-size: 15px;
}

@media (max-width: 991px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-intro {
    position: static;
  }
}

/* Testimonial rating */
.star-rating {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 16px;
  letter-spacing: 3px;
}

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

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

.portfolio-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.portfolio-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(255, 77, 46, 0.88), rgba(17, 24, 39, 0.94));
  background-size: 100% 100%;
  background-position: center;
  overflow: hidden;
  transition: background-size 0.6s ease;
}

.portfolio-card:hover .portfolio-image {
  background-size: 116% 116%;
}

.portfolio-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0) 42%, rgba(17, 24, 39, 0.85) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 10px,
      transparent 10px,
      transparent 20px
    );
}

.portfolio-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px;
}

.portfolio-info .work-category {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.portfolio-info h3 {
  color: var(--white);
  font-size: 19px;
  margin-bottom: 0;
}

/* Portfolio Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-tab {
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.filter-tab:hover {
  border-color: rgba(255, 77, 46, 0.4);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(255, 77, 46, 0.25);
}

.portfolio-card.is-hidden {
  display: none;
}

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

.testimonial-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 77, 46, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.testimonial-card .quote-mark {
  position: absolute;
  top: -6px;
  right: 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 90px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 77, 46, 0.18);
  pointer-events: none;
}

.testimonial-card p {
  position: relative;
  font-size: 17px;
  margin-bottom: 26px;
  color: #f3f4f6;
}

.testimonial-author {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 77, 46, 0.18);
  color: var(--primary);
  font-weight: 900;
  font-size: 16px;
}

.testimonial-card h4 {
  color: var(--white);
  margin-bottom: 2px;
}

.testimonial-card span {
  color: #d1d5db;
}

@media (max-width: 991px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.process-list {
  display: grid;
  gap: 22px;
}

.process-list div {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* CTA */
.cta-section {
  padding: 80px 0;
  background: var(--off-white);
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 70px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(255, 77, 46, 0.22), transparent 35%),
    var(--dark);
  text-align: center;
}

.cta-box::before {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.28), transparent 70%);
  animation: floatBlobSlow 9s ease-in-out infinite;
  pointer-events: none;
}

.cta-box h2,
.cta-box p,
.cta-box .btn {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 18px;
}

.cta-box p {
  color: #d1d5db;
  max-width: 650px;
  margin: 0 auto 30px;
}

/* Project Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  position: relative;
  height: 220px;
  padding: 20px;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  background-size: 100% 100%;
  background-position: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-size 0.6s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background-size: 114% 114%;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.7)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 10px,
      transparent 10px,
      transparent 20px
    );
}

.gallery-item .gallery-label {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
}

.gallery-item .gallery-zoom {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: 0.3s ease;
}

.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(11, 17, 32, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  width: min(720px, 100%);
  text-align: center;
}

.lightbox-image {
  position: relative;
  height: 420px;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-image {
  transform: scale(1);
}

.lightbox-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.65)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 10px,
      transparent 10px,
      transparent 20px
    );
}

.lightbox-image span {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 28px;
  font-weight: 900;
}

.lightbox-caption {
  margin-top: 22px;
  color: #e5e7eb;
  font-size: 15px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  transition: 0.3s ease;
}

.lightbox-close {
  top: 26px;
  right: 30px;
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

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

  .lightbox-image {
    height: 300px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 42px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 18px;
}

.contact-detail {
  margin-top: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.contact-detail h4 {
  margin-bottom: 6px;
}

.contact-form-box {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--dark);
  font-weight: 800;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  color: var(--dark);
  outline: none;
  transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 77, 46, 0.1);
}

.form-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: #0b1120;
  color: var(--white);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.site-footer h3,
.site-footer h4 {
  color: var(--white);
  margin-bottom: 16px;
}

.site-footer p,
.site-footer a {
  display: block;
  color: #cbd5e1;
  margin-bottom: 10px;
  font-size: 15px;
}

.site-footer a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white) !important;
  transition: 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(255, 77, 46, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
}

/* Floating call / WhatsApp actions */
.floating-contact {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 997;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.floating-contact a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-contact a:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: var(--shadow);
}

.floating-contact .call-btn {
  background: var(--dark);
}

.floating-contact .whatsapp-btn {
  background: #25d366;
}

.floating-contact .whatsapp-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulseRing 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 768px) {
  .floating-contact {
    right: 16px;
    gap: 12px;
  }

  .floating-contact a {
    width: 46px;
    height: 46px;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .section {
    padding: 80px 0;
  }

  .hero-grid,
  .split-grid,
  .contact-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .large-card {
    width: 80%;
    height: 320px;
  }

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

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

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

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header-phone span {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 82px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 77, 46, 0.2);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 4%;
    display: none;
  }

  .main-nav.show {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 14px 0;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    width: 100%;
    margin: 4px 0 8px;
    padding: 6px;
    border: 0;
    box-shadow: none;
    background: var(--dark-soft);
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.open .dropdown-menu {
    display: grid;
  }

  .dropdown-menu a {
    padding: 12px 14px;
  }

  .hero {
    padding: 70px 0;
  }

  h1 {
    letter-spacing: -2px;
  }

  .hero-content p {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cards-grid,
  .portfolio-grid,
  .testimonial-grid,
  .stats-grid,
  .client-logos-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .faq-item summary {
    font-size: 15px;
  }

  .cta-box {
    padding: 42px 24px;
  }

  .contact-form-box {
    padding: 24px;
  }

  .page-hero {
    padding: 80px 0 60px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    min-height: 74px;
  }

  .main-nav {
    top: 74px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .large-card {
    width: 86%;
    height: 260px;
  }

  .small-card {
    width: 170px;
    height: 130px;
  }

  .visual-card span {
    font-size: 19px;
  }

  .image-placeholder {
    min-height: 300px;
  }

  .image-placeholder span {
    font-size: 22px;
  }
}