/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #0f3d3e;
  --color-secondary: #134e5e;
  --color-accent: #1a5c6b;
  --color-highlight: #2ecc71;
  --color-highlight-light: rgba(46, 204, 113, 0.1);
  --color-bg: #ffffff;
  --color-bg-alt: #f4f9f7;
  --color-surface: #ffffff;
  --color-text: #2c3e3e;
  --color-text-light: #5a7272;
  --color-border: #d5e0db;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
  --color-primary: #e0ece8;
  --color-secondary: #152a2e;
  --color-accent: #1a3338;
  --color-highlight: #2ecc71;
  --color-bg: #0e1a1c;
  --color-bg-alt: #142224;
  --color-surface: #142224;
  --color-text: #cdddd8;
  --color-text-light: #8aaa9f;
  --color-border: #243a3e;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .header {
  background: rgba(14, 26, 28, 0.95);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0e1a1c 0%, #152a2e 100%);
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(46, 204, 113, 0.05) 0%, transparent 70%);
}

[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #0e1a1c 0%, #152a2e 100%);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: var(--color-text);
}

[data-theme="dark"] .footer {
  background: #0a1415;
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #0a1415, #152a2e);
}

[data-theme="dark"] .project-category-badge {
  background: rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .project-tag {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .project-card:hover .project-tag {
  background: rgba(46, 204, 113, 0.12);
}

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

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--color-highlight);
  color: #0f3d3e;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-highlight);
  color: #0f3d3e;
}

.btn-primary:hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--color-highlight);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.nav-links a.active {
  font-weight: 600;
}

/* Nav actions (dark mode toggle + hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dark mode toggle */
.dark-mode-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-bg-alt);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.dark-mode-toggle:hover {
  background: var(--color-border);
}

.toggle-icon {
  position: absolute;
  font-size: 1.15rem;
  transition: all 0.4s ease;
}

.toggle-icon.sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.toggle-icon.moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .toggle-icon.sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .toggle-icon.moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 4px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(135deg, #f4f9f7 0%, #e0efeb 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-highlight-light);
  color: var(--color-highlight);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-text h1 {
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 500px;
}

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

.hero-text .btn {
  min-width: 220px;
  justify-content: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-graphic {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: morph 8s ease-in-out infinite;
  box-shadow: var(--shadow-lg);
}

.hero-graphic-inner {
  color: #fff;
  font-size: 4rem;
  text-align: center;
  line-height: 1.3;
}

@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* ===== Section Utilities ===== */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header p {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.1rem;
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-highlight-light);
  color: var(--color-highlight);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===== Card Grids (services + values) ===== */
.features-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card,
.value-card {
  background: var(--color-surface);
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
}

.feature-card:hover,
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--color-highlight-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.feature-card h3,
.value-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.feature-card p,
.value-card p {
  width: 100%;
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ===== Stats ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h2 {
  color: var(--color-highlight);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 4px;
}

.stat-item p {
  font-weight: 500;
  color: var(--color-text-light);
}

/* ===== About Page ===== */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f4f9f7 0%, #e0efeb 100%);
  text-align: center;
}

.page-hero p {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.15rem;
}


.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
}

.about-text h2 {
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 16px;
}

.value-icon {
  font-size: 1.8rem;
  line-height: 1;
  width: 44px;
  text-align: center;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

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

.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
}

.team-avatar-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-info {
  padding: 24px;
}

.team-info h3 {
  margin-bottom: 4px;
}

.team-info p {
  font-size: 0.9rem;
}

/* ===== Projects Section ===== */
.projects-section {
  padding-top: 48px;
}

/* ===== Projects Grid V2 ===== */
.projects-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateY(20px);
  animation: projectFadeIn 0.5s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes projectFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.project-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.project-card--featured .slideshow {
  aspect-ratio: auto;
  min-height: 340px;
}

.project-card--featured .project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.project-card--featured .project-content h3 {
  font-size: 1.5rem;
}

.project-card--featured .project-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Card media wrapper */
.project-card-media {
  position: relative;
  overflow: hidden;
}

.project-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Slideshow ===== */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-alt);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 55%, transparent 100%);
  pointer-events: none;
}

/* Slide caption */
.slide-caption {
  position: relative;
  z-index: 1;
  padding: 20px 22px;
  color: #fff;
  max-width: 100%;
}

.slide-caption h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.3;
}

.slide-caption p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin: 0;
}

.project-card--featured .slide-caption {
  padding: 28px 30px;
}

.project-card--featured .slide-caption h4 {
  font-size: 1.15rem;
}

.project-card--featured .slide-caption p {
  font-size: 0.9rem;
}

/* Slide arrows */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-prev { left: 10px; }
.slide-next { right: 10px; }

.slideshow:hover .slide-arrow {
  opacity: 1;
}

.slide-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* Slide dots */
.slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.slide-dot.active {
  background: #fff;
  transform: scale(1.25);
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  transition: color var(--transition);
}

.project-card:hover .project-content h3 {
  color: var(--color-highlight);
}

.project-content p {
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  padding: 5px 14px;
  background: var(--color-bg-alt);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all var(--transition);
}

.project-card:hover .project-tag {
  background: rgba(46, 204, 113, 0.1);
  color: var(--color-highlight);
}

/* ===== Forms ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition);
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--color-highlight);
  outline-offset: 2px;
  border-color: var(--color-highlight);
}

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

.field-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.form-submit {
  width: 100%;
  justify-content: center;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-col a,
.footer-col span {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
}

.footer-socials a:hover {
  background: var(--color-highlight);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== Contact Details (light theme, used on contact page) ===== */
.contact-details-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.contact-detail-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.contact-detail-inline a {
  color: var(--color-text-light);
  transition: color var(--transition);
}

.contact-detail-inline a:hover {
  color: var(--color-highlight);
}

/* ===== Quick Contact (Home Page) ===== */
.quick-contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.quick-contact-text h2 {
  margin-bottom: 12px;
}

.quick-contact-text > p {
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.quick-contact-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qc-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--color-text);
}

.qc-icon {
  font-size: 1.2rem;
}

.quick-contact-form {
  background: var(--color-surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.quick-contact-form .form-group {
  margin-bottom: 16px;
}

.quick-contact-form textarea {
  min-height: 80px;
}

/* ===== Reviews Marquee ===== */
.reviews-section {
  overflow: hidden;
}

.reviews-marquee {
  width: 100%;
  overflow: hidden;
  padding: 8px 0 20px;
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.reviews-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.reviews-track:hover,
.reviews-track:focus-visible {
  animation-play-state: paused;
}

.reviews-track:focus-visible {
  outline: 2px solid var(--color-highlight);
  outline-offset: 4px;
  border-radius: 8px;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  flex-shrink: 0;
  width: 360px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.review-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.review-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.review-google {
  font-size: 1.2rem;
  color: #4285F4;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.review-stars {
  color: #2ecc71;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* ===== Scroll Animations ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile Responsive ===== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-graphic {
    max-width: 320px;
  }

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

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

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

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

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

  .project-card--featured {
    grid-template-columns: 1fr;
  }

  .project-card--featured .slideshow {
    min-height: 240px;
  }

  .quick-contact {
    grid-template-columns: 1fr;
  }

  .quick-contact-form {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .hamburger {
    display: flex;
  }

  .features-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .section {
    padding: 48px 0;
  }

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

  .projects-grid-v2 {
    grid-template-columns: 1fr;
  }

  .project-card--featured {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .project-card--featured .slideshow {
    min-height: 220px;
  }

  .project-card--featured .project-content {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .review-card {
    width: 290px;
    padding: 20px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-graphic {
    max-width: 240px;
  }
}

/* ===== Legal Pages (Privacy Policy, Terms & Conditions) ===== */

.legal-content {
  padding-top: 40px;
  padding-bottom: 80px;
}

.legal-body {
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--color-text);
}

.legal-effective {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.legal-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--color-heading);
}

.legal-body p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.legal-body ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.legal-body ul li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.legal-body a:hover {
  color: var(--color-primary-hover);
}

.legal-contact-list {
  list-style: none;
  padding-left: 0;
}

.legal-contact-list li {
  padding: 6px 0;
}

@media (max-width: 768px) {
  .legal-body h2 {
    font-size: 1.15rem;
    margin-top: 32px;
  }

  .legal-content {
    padding-top: 24px;
    padding-bottom: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-animate {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
