:root {
  --primary: #6a0dad;
  --primary-hover: #3d2c8d;
  --secondary: #1f3a93;
  --background: #ffffff;
  --nav-bg: #f9f9fb;
  --nav-text: #212121;
  --border-light: #e0e0e0;
  --text-primary: #2c2c2c;
  --text-secondary: #5f5f5f;
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --text-light: #5f5f5f;
  --feature-bg: var(--card-bg);
  --button-text: #ffffff;
  --text-darker: #212121;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Remove bg-animated class and its styles */
.bg-animated {
  display: none;
}

/* Header/Navbar Styles */
header {
  background: var(--nav-bg);
  color: var(--secondary);
  padding: 0.5rem 0;
  box-shadow: 0 1px 3px var(--card-shadow);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: none;
  border-radius: var(--radius);
  padding: 0.2rem 0.7rem;
  text-shadow: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links li a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.08rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  box-shadow: none;
}

/* Remove focus styles to prevent persistence after click */
.nav-links li a:focus {
  outline: none;
}

.nav-links li a.active::after {
  width: 80%;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links li a:hover::after {
  width: 80%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  margin-left: 1rem;
  margin-right: 1rem; /* Add right margin */
}

/* Hero Section Styles */
.hero {
  text-align: center;
  padding: 6rem 1rem 4rem; /* Reduced padding */
  background: transparent;
  color: var(--secondary);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  scroll-margin-top: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem; /* Reduced from 3.5rem */
  font-weight: 800;
  margin-bottom: 1.2rem; /* Reduced from 1.5rem */
  letter-spacing: -0.02em;
  background: none;
  color: var(--primary); /* Changed from var(--text-darker) to var(--primary) */
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.2rem; /* Reduced from 1.4rem */
  color: var(--text-secondary);
  margin-bottom: 2.5rem; /* Reduced from 3rem */
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.cta-btn {
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.cta-btn.primary {
  background: var(--primary);
  color: var(--background);
  box-shadow: none;
}

.cta-btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-btn.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.cta-btn.secondary:hover {
  background: var(--primary);
  color: var(--background);
  transform: translateY(-3px);
}

/* Updated Hero Stats Section */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  /* Option 1: Static */
  position: relative;
  padding: 1.5rem;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 6px var(--card-shadow);
}

/* Option 2: Dynamic (Comment out Option 1 to use this) */
/*
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}
*/

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 2rem;
  position: relative;
}

/* Add dividers between stats */
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  height: 70%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary),
    transparent
  );
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
  text-shadow: none;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
  opacity: 0.9;
}

/* Update responsive styles */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: row; /* Keep horizontal on mobile */
    flex-wrap: wrap; /* Allow wrapping on very small screens */
    gap: 1.5rem;
    padding: 1rem;
  }

  .stat-item {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
  }

  .stat-item:not(:last-child)::after {
    display: none; /* Remove dividers on mobile */
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem; /* Reduced from 4rem */
  margin-top: 1.5rem; /* Reduced from 2rem */
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
}

.stat-number {
  font-size: 2.2rem; /* Keep stats prominent but slightly smaller */
  font-weight: 700;
  color: var (--primary);
  margin-bottom: 0.3rem;
}

.stat-label {
  color: var(--text-light);
  font-size: 1rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
  }

  .stat-item {
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    width: 100%;
    box-shadow: 0 4px 6px var(--card-shadow);
  }

  .stat-number {
    font-size: 2rem;
    color: var(--primary);
  }

  .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
  }
}

/* Portfolio Section Styles */
.portfolio {
  max-width: 1100px;
  margin: 0 auto 4rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
  background: var(--feature-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var (--card-shadow);
  border: 1px solid var(--border-light);
}

.portfolio-title {
  color: var(--primary);
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
  padding-top: 2rem;
  text-shadow: 0 0 8px rgba(106, 13, 173, 0.4);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; /* Reduced from 2rem */
  max-width: 100%;
  padding: 0 1rem 2rem; /* Add padding to prevent cards from touching edges */
}

@media (max-width: 768px) {
  .portfolio {
    padding: 1rem;
  }

  .portfolio-title {
    padding-top: 1rem;
    margin-bottom: 1.5rem;
  }

  .portfolio-grid {
    padding: 0 0.5rem 1.5rem;
  }
}

.load-more-btn {
  display: block;
  margin: 2rem auto;
  padding: 0.8rem 2rem;
  background: var(--feature-bg);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: var(--primary);
  color: var(--background);
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 1.08rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  padding: 1.5rem;
  box-shadow: 0 4px 6px var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  gap: 1rem;
}

.portfolio-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  box-shadow: 0 2px 4px var(--card-shadow);
  background: var(--card-bg);
  object-fit: cover;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.portfolio-card span {
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(106, 13, 173, 0.15);
}

.portfolio-card:hover span {
  color: var(--primary);
}

.portfolio-card:hover .portfolio-icon {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(106, 13, 173, 0.15);
}

/* Testimonials/Clients Section Styles */
.testimonials {
  max-width: 1100px;
  margin: 0 auto 4rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
  background: var(--feature-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var(--card-shadow);
  border: 1px solid var(--border-light);
}

.testimonials-title {
  color: var(--primary);
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(106, 13, 173, 0.4);
  padding-top: 2rem;
  margin-top: -1rem;
}

.testimonials-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.9;
}

.testimonials-grid {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 1rem 0;
  width: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-grid::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 300px; /* Reduced from 350px */
  max-width: 350px; /* Reduced from 400px */
  min-height: 500px; /* Reduced from 600px */
  padding: 2rem 1.5rem; /* Reduced padding */
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 3rem 2rem 2rem;
  text-align: center;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.company-logo {
  width: 70px; /* Reduced from 90px */
  height: 70px; /* Reduced from 90px */
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--card-bg);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.testimonial-content {
  position: relative;
  margin-top: 1.5rem; /* Reduced from 2rem */
  padding: 1.5rem 1rem; /* Reduced padding */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-content::before {
  display: none; /* Remove the quotation mark */
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 1rem; /* Reduced from 1.1rem */
  line-height: 1.7;
  margin: 0.8rem 0 1.5rem; /* Reduced margins */
  flex-grow: 1;
  max-height: none; /* Remove max-height constraint */
  overflow: visible; /* Allow content to be visible */
}

.testimonial-author {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(106, 13, 173, 0.2);
  width: 100%;
}

.author-name {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.author-role {
  color: var(--text-secondary);
  font-size: 0.95rem;
  opacity: 0.7;
}

/* Hover effects */
.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(106, 13, 173, 0.1);
}

.testimonial-card:hover .company-logo {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(106, 13, 173, 0.2);
}

.testimonial-card:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .testimonial-card {
    min-height: auto; /* Allow card to grow based on content */
    height: auto;
    padding: 2rem 1.5rem;
  }
}

.testimonial-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-light);
  letter-spacing: -0.01em;
}

.company-title {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.testimonial-content {
  margin-top: auto;
}

.testimonial-text {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  padding-top: 1rem;
  border-top: 1px solid var(--nav-border);
  width: 100%;
}

.testimonial-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.testimonial-card p {
  color: var(--text-light);
  font-size: 1rem;
  opacity: 0.9;
}

.company-title {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.testimonial-content {
  text-align: left;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary);
}

.testimonial-text {
  color: var(--text-light);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  color: var(--text-light);
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.author-role {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Update SVG Styles */
.company-svg {
  width: 100%;
  height: 100%;
}

.logo-bg {
  fill: var(--card-bg);
  stroke: var(--primary);
  stroke-width: 2;
  transition: all 0.3s ease;
}

.logo-text {
  fill: var(--primary);
  font-size: 2rem;
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}

.testimonial-card:hover .logo-bg {
  stroke: var(--primary-light);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px var(--primary));
}

.testimonial-card:hover .logo-text {
  fill: var(--primary-light);
  filter: drop-shadow(0 0 4px var(--primary));
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-content {
    padding-left: 1rem;
  }
}

/* About Us Section Styles */
.about {
  max-width: 1100px;
  margin: 0 auto 3.5rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.about-container {
  background: var(--feature-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var(--card-shadow);
  padding: 2rem 2rem 3rem;
  position: relative;
  border: 1px solid var(--border-light);
}

.about-container::before,
.about-container::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 60px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--background) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.about-container::before {
  left: 0;
}

.about-container::after {
  right: 0;
  transform: translateY(-50%) rotate(180deg);
}

.about-content {
  margin-top: 2rem;
}

.about-main {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.about-main p {
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0.85;
}

.about-grid {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 1rem 0;
  scroll-snap-type: none; /* Remove snap for smooth infinite scroll */
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  transition: scroll-behavior 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother easing */
}

/* Hide scrollbar but keep functionality */
.about-grid::-webkit-scrollbar {
  display: none;
}

.about-card {
  min-width: 300px; /* Fixed width for cards */
  flex-shrink: 0; /* Prevent cards from shrinking */
  scroll-snap-align: center; /* Changed from start to center */
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 4px 6px var(--card-shadow);
  transition: all 0.3s ease;
  cursor: grab;
  opacity: 1;
  will-change: transform; /* Optimize animations */
}

.about-card:not(:active):hover {
  transform: translateY(-5px);
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(106, 13, 173, 0.15);
}

.about-card h4 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 8px rgba(106, 13, 173, 0.2);
}

.about-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-card ul {
  list-style: none;
  padding: 0;
  color: var(--text-secondary);
}

.about-card ul li {
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  opacity: 0.9;
}

.about-card ul li::before {
  content: "•";
  color: var(--primary);
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.about-title {
  color: var(--primary);
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(106, 13, 173, 0.4);
  letter-spacing: -0.02em;
  padding-top: 2rem;
  margin-top: -1rem;
}

/* Scroll Controls */
.scroll-controls {
  display: none; /* Hide arrow controls */
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--background);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: var(--glow);
}

.scroll-arrow:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(106, 13, 173, 0.4);
}

.scroll-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.scroll-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Add scroll hint for mobile */
.about-container::after {
  content: "→";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 2rem;
  animation: scrollHint 1.5s ease-in-out infinite;
  display: none;
}

@keyframes scrollHint {
  0%,
  100% {
    transform: translate(0, -50%);
  }
  50% {
    transform: translate(10px, -50%);
  }
}

/* Show scroll hint on mobile */
@media (max-width: 768px) {
  .scroll-controls {
    display: none;
  }

  .about-container::after {
    display: block;
  }
}

@media (max-width: 768px) {
  .about-container {
    padding: 2rem 1.5rem;
  }

  .about-main {
    margin-bottom: 2rem;
  }

  .about-main h3 {
    font-size: 1.5rem;
  }

  .about-card {
    min-width: 260px;
    padding: 1.2rem;
  }
}

/* Services Section Styles */
.services {
  max-width: 1100px;
  margin: 0 auto 3.5rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
  background: var(--feature-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var(--card-shadow);
  border: 1px solid var(--border-light);
}

.services-title {
  color: var(--primary);
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
  letter-spacing: -0.02em;
  padding-top: 2rem;
  margin-top: -1rem;
}

.services-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var(--card-shadow);
  padding: 2.5rem 2rem;
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-dark),
    var(--primary-light)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 4px 28px rgba(79, 70, 229, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-light);
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-top: auto;
}

.service-features li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  opacity: 0.85;
}

.service-features li::before {
  content: "•";
  color: var (--primary);
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Contact Us Section Styles */
.contact {
  max-width: 1100px; /* Match other sections max-width */
  margin: 0 auto 3.5rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
  background: var(--feature-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var (--card-shadow);
  border: 1px solid var(--border-light);
}

.contact-container {
  padding: 3rem 2rem;
  text-align: center;
}

.contact-title {
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(106, 13, 173, 0.2);
  letter-spacing: 0.01em;
  padding-top: 2rem;
  margin-top: -1rem;
}

.contact-description {
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}

.contact-group {
  width: 100%;
  padding: 1.5rem;
  background: rgba(20, 20, 20, 0.95); /* Darker black for contact groups */
  border-radius: var(--radius);
  border: 1.5px solid var(--primary);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-group:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 32px rgba(106, 13, 173, 0.2),
    0 8px 32px rgba(106, 13, 173, 0.15);
}

.contact-group h3 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 8px rgba(106, 13, 173, 0.2);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.contact-list li {
  margin-bottom: 0.8rem;
}

.contact-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.18s, text-shadow 0.18s;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius);
}

.contact-list a:hover,
.contact-list a:focus {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(106, 13, 173, 0.2);
}

/* Updated Contact Section Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1.5px solid var(--primary);
  transition: all 0.3s ease;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

/* Contact form styles */
.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.contact-form:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

/* Contact form field spacing */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Add gap between form fields */
}

.form-group {
  width: 100%;
}

.submit-btn {
  background: var(--primary);
  color: var(--background);
  border: none;
  width: 100%;
  padding: 1.2rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 13, 173, 0.2);
}

/* Contact Section Text Color Updates */
.contact-card h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px rgba(106, 13, 173, 0.2);
}

.contact-text h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.form-header h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-light);
  opacity: 0.9;
}

.form-group label {
  color: var(--text-light);
  font-weight: 500;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

social-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.social-links a:hover .social-icon {
  fill: var(--primary);
  filter: drop-shadow(0 0 4px var(--primary));
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: all 0.3s ease;
}

.social-links a {
  color: var(--text-light);
}

.social-links a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Add responsive styles for contact section */
@media (max-width: 768px) {
  .contact-container {
    padding: 2rem 1rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-group {
    padding: 1.2rem;
  }
}

/* Updated Contact Social Icons & Alignment */
.contact-details {
  text-align: left;
}

.contact-item {
  padding-left: 1rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--primary);
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.social-links a:hover .social-icon {
  fill: var(--primary);
  filter: drop-shadow(0 0 4px var(--primary));
}

/* Contact CTA Styles */
.contact-cta {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: var(--glow);
  background: linear-gradient(120deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .contact-cta h3 {
    font-size: 1.5rem;
    padding: 0 1rem;
  }
}

/* Updated Footer Styles */
footer {
  background: var(--nav-bg);
  padding: 4rem 0 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border-light);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1.5px solid var(--nav-border);
}

.footer-column {
  min-width: 0;
}

.footer-column img {
  height: 40px;
  margin-bottom: 1.5rem;
}

.footer-column h3 {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social .social-link {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px var(--card-shadow);
}

.footer-social .social-link:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(106, 13, 173, 0.2);
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-contact strong {
  color: var(--primary);
  min-width: 70px;
  display: inline-block;
}

.footer-contact .address-block {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-direction: column;
  margin-top: 0.5rem;
}

.footer-contact .address-text {
  color: var(--text-secondary);
  display: block;
  margin-top: 0;
}

.footer-bottom {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--nav-border);
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 1.5rem;
  }

  .footer-column img {
    margin: 0 auto 1.5rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact p {
    justify-content: center;
  }

  .footer-contact .address-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0.3rem;
  }

  .footer-contact .address-text {
    line-height: 1.6;
  }

  .footer-contact strong {
    min-width: auto;
    margin-bottom: 0.5rem;
  }
}

/* Mobile-First Improvements */
@media (max-width: 768px) {
  /* Base adjustments */
  html {
    font-size: 15px;
  }

  /* Container padding fixes */
  .hero,
  .portfolio,
  .services,
  .about,
  .testimonials,
  .contact,
  .footer-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Navigation fixes */
  .nav-toggle {
    display: block;
    padding: 0.5rem;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Card grid fixes */
  .services-grid,
  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Card heights and spacing */
  .service-card,
  .portfolio-card,
  .testimonial-card,
  .footer-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
    height: auto;
    min-height: auto;
  }

  /* Footer improvements */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-services,
  .contact-list {
    align-items: center;
  }

  /* Touch interactions */
  .portfolio-card:hover,
  .service-card:hover,
  .testimonial-card:hover,
  .footer-card:hover {
    transform: none;
  }

  .social-link:active,
  .footer-services li:active {
    transform: scale(0.95);
  }

  /* Form elements */
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.8rem;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .contact-form {
    padding: 1.25rem;
  }

  /* Text adjustments */
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Stats responsiveness */
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item {
    width: 100%;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0.75rem;
  }

  .portfolio-icon {
    width: 48px;
    height: 48px;
  }

  .footer-social .social-link {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 768px) {
  header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
  }

  main {
    margin-top: 60px; /* Add top margin to account for fixed header */
  }

  .nav-links {
    position: fixed;
    top: 60px; /* Match header height */
    left: 0;
    right: 0;
    background: var(--nav-bg);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.footer-column .contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-column .contact-item {
  padding-left: 0;
  border-left: none;
  margin-bottom: 1.5rem;
}

.footer-column .contact-text h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-column .contact-text p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .footer-column .contact-details {
    align-items: center;
  }

  .footer-column .contact-item {
    text-align: center;
    padding-left: 0;
    border-left: none;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--nav-border);
    width: 100%;
  }

  .footer-column .contact-item:last-child {
    border-bottom: none;
  }
}

/* Why Choose Us Section Styles */
.why-choose-us {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border-radius: var (--radius);
  box-shadow: 0 4px 6px var(--card-shadow);
  border: 1px solid var(--border-light);
}

.why-choose-us .section-title {
  color: var(--primary);
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px rgba(106, 13, 173, 0.4);
}

.why-choose-description {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.why-choose-description p {
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0.85;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Force 4 columns */
  gap: 1.5rem;
  padding: 1rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

/* Update responsive styles for stats grid */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.stat-box {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 30px; /* Increased border radius for curved edges */
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px var(--card-shadow);
  overflow: hidden;
  position: relative;
}

.stat-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: inherit;
}

.stat-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(106, 13, 173, 0.15);
}

.stat-box .stat-number {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.stat-box .stat-label {
  color: var(--text-primary);
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .why-choose-us {
    padding: 2rem 1rem;
  }

  .stats-grid {
    gap: 1.5rem;
  }

  .stat-box {
    padding: 1.5rem;
  }
}

section {
  scroll-margin-top: 80px; /* Add space for fixed header */
}

/* Update individual section title margins */
.section-title,
.about-title,
.services-title,
.portfolio-title,
.testimonials-title,
.contact-title {
  padding-top: 1rem; /* Reduced from 2rem */
  margin-top: 0; /* Remove negative margin */
}

/* Contact form height adjustment */
.contact-form-container {
  height: 100%;
}

.contact-form {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  margin: 2rem 0;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer contact info mobile styles */
@media screen and (max-width: 768px) {
  .footer-contact {
    color: var(--text-primary);
    font-size: 0.9rem;
  }

  .footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-contact a:hover {
    color: var(--primary);
  }

  .footer-contact p {
    margin: 8px 0;
    color: var(--text-secondary);
  }

  .address-block {
    color: var(--text-primary);
    margin-top: 10px;
  }

  .address-text {
    display: block;
    margin-top: 5px;
    line-height: 1.4;
    color: var(--text-secondary);
  }
}

.footer-services {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-services li {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-services li:hover {
  color: var(--primary);
}

/* Updated Footer Font Styles */
.footer-column h3 {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  letter-spacing: -0.01em;
}

.footer-description {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.footer-services li {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
}

.footer-contact {
  font-size: 1.1rem;
}

.footer-contact strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-contact .address-text {
  font-size: 1.1rem;
  line-height: 1.7;
}

.footer-bottom p {
  font-size: 1rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .footer-description,
  .footer-services li,
  .footer-contact,
  .footer-contact strong,
  .footer-contact .address-text {
    font-size: 1rem;
  }

  .footer-bottom p {
    font-size: 0.95rem;
  }
}
