.about-content {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.about-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
  gap: 1.75rem;
  /* aralığı arttır */
}

.about-kpi {
  position: relative;
  padding: 1.75rem;
  border-radius: 14px;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: transform .6s cubic-bezier(.2, .65, .2, 1), opacity .6s ease;
}

.about-kpi.in-view {
  transform: none;
  opacity: 1;
}

.about-kpi:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.about-kpi::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(220, 38, 38, .3), rgba(30, 64, 175, .3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.about-kpi span {
  display: inline-block;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-bottom: .35rem;
}

.about-kpi p {
  color: var(--text-dark);
  line-height: 1.9;
}

@media (max-width: 900px) {
  .about-kpis {
    grid-template-columns: 1fr;
  }
}

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

html,
body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

:root {
  --primary-color: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #fee2e2;
  --secondary-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.header {
  background: linear-gradient(to right, #f3f4f6 0%, #ffffff 15%, #ffffff 85%, #f3f4f6 100%);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-dark);
  /* Changed to dark to match reference */
}

.logo-img {
  height: 70px;
  /* Slightly smaller logo */
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

.menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  flex: 1;
  justify-content: center;
  margin: 0;
  padding: 0 1rem;
}

.menu>* {
  flex-shrink: 0;
}

.menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 400;
  font-size: 1rem;
  text-transform: none;
  transition: color 0.3s ease;
  position: relative;
  letter-spacing: normal;
}

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

.menu a.cta {
  background: transparent;
  color: #444;
  padding: 0;
  border-radius: 0;
  transition: color 0.3s ease;
}

.menu a.cta:hover {
  color: var(--primary-color);
}

.menu-header,
.menu-close,
.menu-socials {
  display: none;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  min-width: 220px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 1rem;
  z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  font-weight: 400;
  text-transform: none;
  transition: background 0.3s ease;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}



.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-links,
.desktop-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Hide chevron on desktop */
.nav-dropdown .dropdown-toggle i {
  display: none;
}

.social-links .social-link,
.desktop-socials .social-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: var(--text-light);
  transition: all 0.25s ease;
  font-size: 0.9rem;
  text-decoration: none;
}

.social-links .social-link:hover,
.desktop-socials .social-link:hover {
  color: white;
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}


/* Hero Slider */
.hero {
  position: relative;
  background-color: #1a0505;
  background-image:
    radial-gradient(circle at 50% 50%, #800000 0%, #2b0000 100%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 50px 50px, 50px 50px;
  padding: 5rem 0;
  min-height: auto;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

/* Dynamic Particles Container */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  /* Behind slider */
  pointer-events: none;
}

/* Animations - Rising Tech Squares */
.shape {
  position: absolute;
  border-radius: 4px;
  /* Slight rounded corners for squares */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: rising-square 10s infinite linear;
  bottom: -100px;
  /* Start below screen */
}

/* Diverse shapes and positions */
.shape:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  animation-duration: 7s;
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.1);
}

.shape:nth-child(2) {
  width: 120px;
  height: 120px;
  left: 25%;
  animation-duration: 10s;
  animation-delay: 2s;
  opacity: 0.5;
}

.shape:nth-child(3) {
  width: 60px;
  height: 60px;
  left: 45%;
  animation-duration: 6s;
  animation-delay: 4s;
  opacity: 0.8;
  border-color: rgba(255, 255, 255, 0.4);
}

.shape:nth-child(4) {
  width: 100px;
  height: 100px;
  left: 65%;
  animation-duration: 9s;
  animation-delay: 1s;
  opacity: 0.6;
}

.shape:nth-child(5) {
  width: 140px;
  height: 140px;
  left: 85%;
  animation-duration: 12s;
  animation-delay: 3s;
  opacity: 0.4;
}

.shape:nth-child(6) {
  width: 40px;
  height: 40px;
  left: 50%;
  animation-duration: 5s;
  animation-delay: 0.5s;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.2);
}

@keyframes rising-square {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateY(-800px) rotate(360deg);
    opacity: 0;
  }
}

.slider {
  position: relative;
  z-index: 10;
  width: 90%;
  /* Boxed width */
  max-width: 1100px;
  height: 500px;
  /* Fixed height for the slider box */
  background: #000;
  /* Fallback */
  border-radius: 12px;
  /* Rounded corners */
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  /* Deep shadow */
  margin: 0 auto;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide::after {
  /* Remove overlay for cleaner look or keep light */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.slide.active {
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  /* Dark semi-transparent */
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  /* Square with slight radius */
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  /* Hidden by default */
}

.slider:hover .slider-btn {
  opacity: 1;
  /* Show on hover */
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
  pointer-events: auto;
}

.slider-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots span.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

/* Welcome Section - Hero içinde */
.welcome-section {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  width: 100%;
  pointer-events: none;
}

.welcome-content h2 {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}


/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-head p {
  font-size: 1.125rem;
  color: var(--text-light);
}

/* Services Preview */
.services-preview {
  background: var(--bg-light);
}

/* Services Layout */
.services-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  /* Card takes more space, slider smaller */
  gap: 1.5rem;
  align-items: stretch;
}

/* Zigzag Layout: Even rows have slider on left */
.service-row:nth-child(even) {
  grid-template-columns: 1fr 1.6fr;
}

.service-row:nth-child(even) .wide-service-card {
  order: 2;
}

.service-row:nth-child(even) .service-slider-container {
  order: 1;
}

.wide-service-card {
  position: relative;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.service-slider-container {
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  background: #000;
}

.service-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.s-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.s-slide.active {
  opacity: 1;
}

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

  .services-layout {
    /* Previously grid-template-columns: 1fr */
  }

  .services-sidebar {
    display: none;
  }

  .wide-service-card,
  .service-slider-container {
    height: 240px;
  }

  .wide-service-card h3 {
    font-size: 1.5rem;
  }

  .card-content {
    width: 100% !important;
    text-align: left !important;
    left: 0 !important;
    right: auto !important;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Projects Preview */
.projects-preview {
  background: var(--bg-white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.project-card {
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.project-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

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

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

.project-overlay h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-overlay p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* About hero (animated) */
.about-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 3.5rem 2rem;
  margin-bottom: 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.about-hero::before,
.about-hero::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  background: #fff;
  animation: floaty 8s ease-in-out infinite;
}

.about-hero::before {
  top: -60px;
  left: -60px;
}

.about-hero::after {
  bottom: -80px;
  right: -60px;
  animation-delay: 2s;
}

.about-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}

.about-desc {
  font-size: 1.125rem;
  line-height: 1.9;
  opacity: .95;
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-close {
  top: 16px;
  right: 16px;
  font-size: 32px;
  width: 40px;
  height: 40px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 5rem 0;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn.primary {
  background: white;
  color: var(--primary-color);
  border-color: white;
}

.btn.primary:hover {
  background: transparent;
  color: white;
  border-color: white;
}

.btn.outline {
  background: transparent;
  color: white;
  border-color: white;
}

.btn.outline:hover {
  background: white;
  color: var(--primary-color);
}

/* Fix: Services preview button visible on light background */
#services-preview .btn.outline {
  border-color: var(--primary-color) !important;
  color: #fff !important;
  background: var(--primary-color) !important;
}

#services-preview .btn.outline:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: #fff !important;
}

/* Fix: Projects preview button color */
.projects-preview .btn.outline {
  background: var(--primary-color) !important;
  color: #fff !important;
  border-color: var(--primary-color) !important;
}

.projects-preview .btn.outline:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer.light {
  background: #f3f4f6;
  color: var(--text-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 180px;
}

.footer-socials span {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.footer.light .footer-socials span {
  color: var(--text-dark);
}

.footer .social-links {
  justify-content: flex-start;
}

.footer .social-links {
  justify-content: center;
}

.footer-socials {
  align-items: center;
}

.footer .social-links .social-link {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.75);
}

.footer.light .social-links .social-link {
  color: var(--text-light);
  border-color: rgba(31, 41, 55, 0.12);
}

.footer .social-links .social-link:hover {
  color: #fff;
}

.footer-brand {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

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

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

.footer-menu {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-menu a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer.light .footer-menu a {
  color: var(--text-light);
}

.footer-menu a:hover {
  color: white;
}

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

.footer-dropdown {
  position: relative;
}

.footer-dropdown .dropdown-menu {
  position: absolute;
  bottom: 100%;
  top: auto;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer.light .copyright {
  border-top-color: var(--border-color);
  color: var(--text-light);
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.about-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* About intro - vivid and animated */
.about-intro {
  max-width: 900px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--text-dark);
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 60%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  position: relative;
}

.about-intro::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
}

/* Contact Page Styles */
.page-header-with-bg {
  position: relative;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  /* Dark background behind image */
}

.page-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  /* Reduced opacity for better text contrast */
}

.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.page-header-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.page-header-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-info-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-info-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.contact-info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-info-card p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.contact-form-map {
  padding: 4rem 0;
  background: var(--bg-white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}


.contact-form-section h2,
.contact-map-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-form-section p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

.submit-btn {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  display: block;
}

.map-info {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
}

.map-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.map-info p {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-info i {
  color: var(--primary-color);
}

.faq-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-question i {
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* About content */
.about-content .about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--text-dark);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.about-card {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 1rem 1rem 1rem 1rem;
  max-width: 520px;
}

.about-card h3 {
  margin: .25rem 0 .25rem;
}

.about-card p {
  color: var(--text-light);
}

.about-emoji {
  font-size: 1.35rem;
  margin-right: .5rem;
}

@media (max-width: 900px) {
  .about-content .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Responsive Design */
@media (max-width: 768px) {
  .logo-img {
    height: 55px;
  }

  .header {
    z-index: 10000;
  }

  .header .nav {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    align-items: center;
    position: relative;
  }

  .header-right {
    display: none;
  }

  .logo {
    justify-self: center;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .nav-toggle {
    display: block;
    order: 1;
    justify-self: start;
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
    font-size: 1.25rem;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--text-dark);
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    padding: 2rem 1.5rem;
    padding-bottom: 2rem;
    box-shadow: none;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    order: 1;
    grid-column: 1 / -1;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-y: auto;
    justify-content: flex-start;
    align-items: flex-start;
    pointer-events: auto;
  }

  .menu.active {
    transform: translateX(0);
  }

  body.menu-open {
    overflow: hidden;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .menu-header {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: calc(100% + 3rem);
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0 -1.5rem 1rem -1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .menu-close {
    display: flex !important;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 10001;
  }

  .menu-close:hover {
    color: var(--primary-color);
  }

  .menu-socials {
    display: block !important;
    margin-top: auto;
    padding-top: 2rem;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .menu-socials .social-links {
    justify-content: center;
    gap: 1rem;
  }

  .menu-socials .social-link {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .menu>a,
  .menu>.nav-dropdown>a {
    width: 100%;
    text-align: left;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .menu a.cta {
    width: 100%;
    text-align: left;
  }

  .experience-badge,
  .desktop-socials {
    display: none;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    margin-top: 0;
    padding: 0;
    padding-left: 1rem;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    width: 100%;
  }

  .nav-dropdown.active .dropdown-menu {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .nav-dropdown .dropdown-menu a {
    text-align: left;
    padding: 0.6rem 0;
    padding-left: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }

  .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .nav-dropdown .dropdown-toggle i {
    display: inline-block;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
  }

  .nav-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
  }

  .hero {
    height: 70vh;
    min-height: 500px;
  }

  .welcome-content h2 {
    font-size: 2rem;
  }

  .section-head h2,
  .cta-content h2 {
    font-size: 2rem;
  }

  .services-grid,
  .features-grid,
  .projects-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-menu {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

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

  .section {
    padding: 3rem 0;
  }

  .welcome-content h2,
  .section-head h2 {
    font-size: 1.75rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

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

  .page-header-content h1 {
    font-size: 2rem;
  }

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


/* References Section */
.references-section {
  padding: 10px 0;
  background: #f8f9fa;
  overflow: hidden;
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: 20px 0;
}

.marquee-content {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.ref-card {
  background: white;
  width: 130px;
  height: 130px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border: 1px solid #eee;
  transition: transform 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.ref-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.ref-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: all 0.3s ease;
}

.ref-card:hover img {
  transform: scale(1.05);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 15px));
  }
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0;
}

.service-slider-container:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  color: black;
}

.slider-arrow.prev {
  left: 15px;
}

.slider-arrow.next {
  right: 15px;
}

/* Card Content Background Update */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  padding: 2rem;
  /* background removed as requested */
  color: white;
  z-index: 2;
  transition: all 0.5s ease;
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 1;
}

.wide-service-card:hover .card-bg {
  transform: scale(1.05);
}

.card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  position: relative;
  display: inline-block;
}

.card-content h3::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wide-service-card:hover .card-content h3::after {
  width: 100%;
}

.card-content p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  opacity: 0.85;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.wide-service-card:hover .card-content p {
  opacity: 1;
  transform: translateY(-3px);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 1);
}

/* Zigzag Alignment: Right Packet on Even Rows */
.service-row:nth-child(even) .card-content {
  left: auto;
  right: 0;
  text-align: right;
  /* background removed */
}

/* Right aligned underline adjustment */
.service-row:nth-child(even) .card-content h3::after {
  left: auto;
  right: 0;
}

/* Fix for Services Grid Layout */
.service-row {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
}

.service-row:nth-child(even) {
  grid-template-columns: 1fr 1.6fr !important;
}

.service-row:nth-child(even) .wide-service-card {
  order: 2 !important;
}

.service-row:nth-child(even) .service-slider-container {
  order: 1 !important;
}

/* Mobile Responsive Fix */
@media (max-width: 900px) {

  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 1fr !important;
  }

  .service-row:nth-child(even) .wide-service-card,
  .service-row:nth-child(even) .service-slider-container {
    order: unset !important;
  }
}

.stat-item {
  width: 100%;
  justify-content: center;
}

/* Services Page Grid - Added Fix */
.services-page-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2rem !important;
}

@media (max-width: 900px) {
  .services-page-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Stats Strip (About Page) */
.stats-strip {
  background: var(--primary-color);
  padding: 2.5rem 0;
  color: white;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats-strip .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stats-strip .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.stats-strip .stat-item i {
  font-size: 2.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.stats-strip .stat-info h3 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
  color: white;
  line-height: 1.2;
}

.stats-strip .stat-info p {
  font-size: 0.95rem;
  opacity: 0.95;
  margin: 0;
  font-weight: 500;
}