/* ===== Global Variables ===== */
:root {
  --primary: #faf7f3;       /* Main brand color */
  --secondary: #F15A29;     /* Accent color */
  --accent: #6EC1E4;        /* Highlight color */
  --dark: #1A1A1A;          /* Text color */
  --light: #F9F9F9;         /* Background color */
  --primary-rgb: 203, 192, 163; /* RGB values for --primary */
  --accent-rgb: 110, 193, 228;  /* RGB values for --accent */
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--light);
  padding-top: 80px; /* Space for fixed header */
}

/* ===== Typography ===== */
h1, h2, h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

p {
  color: var(--dark);
  margin-bottom: 1.5rem;
}

/* ===== Header & Navigation ===== */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 180px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none; /* Hide by default */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: white;
  left: 0;
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Hamburger Icon Animation */
.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Show on mobile */
  }

  .nav-links {
    z-index: 999; /* Ensure menu appears above content */
    display: none; /* Hide by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 80px; /* Adjust based on header height */
    left: 0;
    width: 100%;
    background: var(--primary);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex; /* Show when active */
  }

  .nav-link {
    padding: 1rem;
    text-align: center;
  }
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(rgba(var(--primary-rgb), 0.85), rgba(var(--accent-rgb), 0.85)),
              url('../images/hero-bg.jpg') center/cover;
  padding: 6rem 2rem;
  text-align: center;
  color: white;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background: var(--secondary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.cta-button:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===== Client Showcase ===== */
.client-showcase {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.client-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.client-card:hover {
  transform: translateY(-5px);
}

.client-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.client-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(var(--primary-rgb), 0.8);
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: var(--transition);
}

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

/* ===== Portfolio Section ===== */
.portfolio {
  padding: 4rem 2rem;
  background: var(--light);
}

.before-after-slider {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--primary);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

/* ===== Footer ===== */
footer {
  background: var(--dark);
  color: white;
  padding: 2rem;
  text-align: center;
}

footer h3,
footer p {
  color: white !important; /* Force white text */
  margin: 0.5rem 0;
}

footer .social-links a {
  color: white;
  margin: 0 0.5rem;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

footer .social-links a:hover {
  color: var(--secondary);
}

/* ===== Contact Section ===== */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 10px;
  border: none;
}

/* Responsive Contact Section */
@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .contact-map iframe {
    min-height: 300px;
  }
}

/* ===== Services Page Styles ===== */
.services-hero {
  background: linear-gradient(rgba(var(--primary-rgb), 0.85), rgba(var(--accent-rgb), 0.85)),
              url('../images/services-hero.jpg') center/cover;
  padding: 8rem 2rem;
  text-align: center;
  color: white;
}

.services-grid {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.technology-partners {
  padding: 4rem 2rem;
  background: var(--light);
}

.partners-slider {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.swiper-slide img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: var(--transition);
}

.swiper-slide img:hover {
  filter: grayscale(0%);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .services-hero {
    padding: 6rem 1rem;
  }

  .services-grid {
    padding: 2rem 1rem;
  }

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

/* ===== About Page Styles ===== */
.about-hero {
  background: linear-gradient(rgba(var(--primary-rgb), 0.85), rgba(var(--accent-rgb), 0.85)),
              url('../images/about-hero.jpg') center/cover;
  padding: 8rem 2rem;
  text-align: center;
  color: white;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.2rem;
}

.about-content {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-container h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-container p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-container ul {
  list-style-type: disc;
  margin-left: 2rem;
  margin-bottom: 2rem;
}

.about-container li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-hero {
    padding: 6rem 1rem;
  }

  .about-content {
    padding: 2rem 1rem;
  }
}
