/* Base Styles */
:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #10b981;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --light-bg: #f8fafc;
  --text-light: #f1f5f9;
  --text-dark: #1e293b;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --card-bg: #1e293b;
  --card-hover: #334155;
  --success-color: #10b981;
  --error-color: #ef4444;
  --transition: all 0.3s ease;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --gradient-text: linear-gradient(to right, #c0c0c0, #4f46e5, #4338ca);
}

.light-theme {
  --dark-bg: #f8fafc;
  --darker-bg: #e2e8f0;
  --light-bg: #0f172a;
  --text-light: #1e293b;
  --text-dark: #f1f5f9;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
  --card-bg: #ffffff;
  --card-hover: #f1f5f9;
}

/* Ensure navbar text remains light in both themes */
.header {
  /* Keep existing styles */
}

.header .nav-link,
.header .logo a,
.header .theme-toggle {
  color: var(--text-light); /* This will always be light text */
}

/* Ensure this applies in light theme too */
.light-theme .header .nav-link,
.light-theme .header .logo a,
.light-theme .header .theme-toggle {
  color: #f1f5f9; /* Explicitly set to light color in light theme */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

section {
  padding: 100px 0;
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Animated gradient text effect for headings */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

h1,
h2,
.section-title,
.module-content h3,
.step-content h3,
.benefit-item h3,
.service-item h3 {
  background: linear-gradient(90deg, #c0c0c0, #4f46e5, #4338ca, #4f46e5, #c0c0c0);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: gradient 3s linear infinite;
  text-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
  font-weight: bold;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  color: white; /* Explicitly set text color to white on hover */
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.theme-toggle {
  margin-left: 2rem;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 2px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
/* SOLUTION: Remove min-height constraint and use natural content height */
.hero {
  /* fill the screen under your 80px-tall header */
  min-height: calc(100vh - 80px);

  /* your existing padding, but feel free to bump the bottom up
     if you want more "breathing room" under the content */
  padding: 120px 0 60px;

  display: flex;
  align-items: center;
  text-align: center;
  /* …the rest of your rules… */
}

.about {
  background-color: var(--darker-bg);
  text-align: center;
  padding: 40px 0 100px 0;
}

/* Hide or reduce the hero image that's creating the gap */
.hero-image {
  display: none; /* This will completely hide the invisible hero image */
}

/* Alternative: If you want to keep the image but make it smaller */
/*
.hero-image {
  width: 200px;
  height: 200px;
  margin-top: 1rem;
}
*/

/* Make sure hero content is properly contained */
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin-bottom: 0; /* Remove any bottom margin */
}

.about {
  background-color: var(--darker-bg);
  text-align: center;
  padding: 40px 0 100px 0; /* Minimal gap between sections */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.hero-image {
  position: relative;
  width: 500px;
  height: 500px;
  margin-top: 2rem;
}

.tech-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("/placeholder.svg?height=500&width=500") no-repeat center center;
  background-size: cover;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* About Section */
.about {
  background-color: var(--darker-bg);
  text-align: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
}

.values-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.value-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  width: 300px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.value-card .icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Services Section */
.services {
  background-color: var(--dark-bg);
  text-align: center;
}

.services-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.service-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  position: relative;
  border: 1px solid var(--border-color);
}

.service-icon {
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin: -25px auto 1.5rem;
  position: relative;
  z-index: 2;
}

/* Different colored icons for each service */
.service-card:nth-child(1) .service-icon {
  background-color: #3b82f6;
}
.service-card:nth-child(2) .service-icon {
  background-color: #8b5cf6;
}
.service-card:nth-child(3) .service-icon {
  background-color: #ef4444;
}
.service-card:nth-child(4) .service-icon {
  background-color: #f97316;
}
.service-card:nth-child(5) .service-icon {
  background-color: #10b981;
}
.service-card:nth-child(6) .service-icon {
  background-color: #f59e0b;
}
.service-card:nth-child(7) .service-icon {
  background-color: #ec4899;
}
.service-card:nth-child(8) .service-icon {
  background-color: #06b6d4;
}
.service-card:nth-child(9) .service-icon {
  background-color: #8b5cf6;
}

.service-card p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

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

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card ul {
  margin-bottom: 1.5rem;
  flex-grow: 1;
  text-align: left;
  padding-left: 1rem;
}

.service-card ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  background-color: var(--success-color);
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.btn-learn-more {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin: 0 auto;
  display: inline-block;
}

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

/* Proof of Work Section */
.proof {
  background-color: var(--darker-bg);
  text-align: center;
}

.proof-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.proof-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.proof-image {
  position: relative;
  overflow: hidden;
}

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

.proof-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.proof-item:hover .proof-overlay {
  opacity: 1;
}

.proof-item:hover .proof-image img {
  transform: scale(1.05);
}

.proof-stats {
  text-align: center;
  color: white;
}

.proof-stats span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
  background-color: var(--dark-bg);
  text-align: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.contact-text {
  max-width: 600px;
  text-align: center;
}

.contact-info {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.info-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition);
}

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

.contact-form {
  width: 100%;
  max-width: 600px;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success i {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

/* Updated Contact Form Styles */
.contact-form {
  width: 100%;
  max-width: 600px;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.btn-gradient {
  background: linear-gradient(135deg, #c0c0c0 0%, #4f46e5 50%, #c0c0c0 100%);
  background-size: 200% auto;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-transform: none;
  animation: buttonGradient 3s linear infinite;
  position: relative;
  overflow: hidden;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
  animation-duration: 1.5s; /* Speed up animation on hover */
}

/* Animated gradient keyframe for buttons */
@keyframes buttonGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

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

/* Portfolio Section */
.portfolio {
  background-color: var(--darker-bg);
  padding: 100px 0;
  text-align: center;
}

.portfolio-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  align-items: stretch; /* Ensure all cards stretch to same height */
}

.portfolio-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure full height */
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0; /* Prevent image from shrinking */
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute content evenly */
}

.portfolio-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.portfolio-category {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.portfolio-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Allow text to grow and fill space */
}

.portfolio-stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
  flex-shrink: 0; /* Prevent stats from shrinking */
}

.stat-item {
  background-color: rgba(79, 70, 229, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 100px;
  flex: 1;
}

.stat-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-content .btn {
  margin-top: 1rem;
  align-self: flex-start;
  flex-shrink: 0; /* Prevent button from shrinking */
}

.portfolio-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Footer */
.footer {
  background-color: var(--darker-bg);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.footer-logo {
  margin-bottom: 2rem;
}

.footer-logo h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-column ul {
  text-align: center;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: var(--text-muted);
  transition: var(--transition);
  text-align: center;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-image {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--darker-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-list.active {
    left: 0;
  }

  /* Mobile nav text - default dark theme */
  .nav-list .nav-link {
    color: #f1f5f9 !important; /* Force light text in dark theme */
    font-size: 1.2rem;
    font-weight: 600;
  }

  /* FIXED: Force dark text in light theme with higher specificity */
  .light-theme .nav-list .nav-link {
    color: #1e293b !important; /* Force dark text in light theme */
  }

  /* Ensure hamburger menu background also changes in light theme */
  .light-theme .nav-list {
    background-color: #e2e8f0; /* Light background for light theme */
  }

  /* Keep the nav-link hover effects working for both themes */
  .nav-list .nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
  }

  .nav-list .nav-link:hover::after,
  .nav-list .nav-link.active::after {
    width: 100%;
  }

  .hamburger {
    display: flex;
    margin-left: 1.5rem;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 3rem;
  }

  .hero-image {
    width: 300px;
    height: 300px;
  }

  .footer-content {
    flex-direction: column;
    gap: 3rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .values-cards {
    flex-direction: column;
    align-items: center;
  }

  .proof-gallery {
    grid-template-columns: 1fr;
  }
}

/* Responsive adjustments for portfolio */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

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

/* Properly aligned checkmark list */
.service-features {
  margin: 1.5rem auto;
  max-width: 600px;
  list-style: none;
  padding: 0;
}

.service-features li {
  display: flex;
  margin-bottom: 1rem;
  text-align: left;
  position: relative;
  padding-left: 30px;
}

.service-features li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--success-color);
}

/* Properly aligned and centered checkmark list */
.checkmark-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto;
  max-width: 600px;
  display: inline-block;
  text-align: left;
}

.checkmark-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.checkmark-list li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--success-color);
}

.checkmark-list li span {
  display: inline-block;
}

/* Center the checkmark list container */
.module-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Portfolio Highlights & Case Studies Sections */
.portfolio-highlights,
.case-studies {
  padding: 80px 0;
  text-align: center;
}

.portfolio-highlights {
  background-color: var(--darker-bg);
}

.case-studies {
  background-color: var(--dark-bg);
}

.section-link {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.section-link:hover {
  opacity: 0.8;
}

.slideshow-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  height: 400px; /* Fixed height to prevent jumping */
}

.slideshow-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 100%; /* Take full container height */
}

.slide {
  display: none;
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%; /* Fixed height */
  position: absolute; /* Position absolutely to prevent layout shifts */
  width: 100%;
  top: 0;
  left: 0;
}

.slide.active {
  display: flex;
  position: relative; /* Active slide uses relative positioning */
  animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-image {
  flex: 1;
  max-width: 400px;
  height: 100%; /* Take full slide height */
}

.slide-image img {
  width: 100%;
  height: 100%; /* Fill the container */
  object-fit: cover;
}

.slide-content {
  flex: 1;
  padding: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  height: 100%; /* Take full slide height */
}

.slide-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.slide-category {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.slide-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.slide-arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  text-decoration: none;
  transition: var(--transition);
  pointer-events: none;
}

.slideshow-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.nav-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
  outline: none; /* Remove focus outline */
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

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

.nav-btn:focus {
  outline: none; /* Prevent focus from causing scroll */
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3); /* Custom focus indicator */
}

.slide-indicators {
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  outline: none; /* Remove focus outline */
  border: none; /* Remove default border */
}

.indicator:focus {
  outline: none; /* Prevent focus from causing scroll */
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3); /* Custom focus indicator */
}

.indicator.active {
  background-color: var(--primary-color);
}

/* Responsive Design for Slideshows */
@media (max-width: 768px) {
  .slideshow-container {
    height: 250px; /* Further reduced height from 300px to 250px */
  }

  .slide-link {
    flex-direction: column !important;
    height: 100%; /* Take full slide height */
  }

  .slide.active {
    flex-direction: column !important;
  }

  .slide-image {
    max-width: 100% !important;
    order: 1;
    flex: none;
    height: 200px; /* Reduced image height from 250px to 200px */
  }

  .slide-image img {
    height: 200px !important;
    width: 100% !important;
    object-fit: cover;
  }

  .slide-content {
    padding: 0.3rem !important; /* Further reduced padding from 0.5rem to 0.3rem */
    order: 2;
    text-align: center !important;
    flex: 1;
    height: calc(100% - 200px); /* Remaining height after image */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  .slide-content h3 {
    margin-bottom: 0.1rem !important; /* Further reduced margin-bottom from 0.25rem to 0.1rem */
    line-height: 1.2 !important; /* Tighter line height */
  }

  .slide-content p {
    margin-bottom: 0.2rem !important; /* Further reduced margin-bottom from 0.5rem to 0.2rem */
    line-height: 1.3 !important; /* Tighter line height */
  }

  .slide-category {
    margin-bottom: 0.1rem !important; /* Further reduced category margin-bottom from 0.25rem to 0.1rem */
  }

  .slide-date {
    margin-bottom: 0.1rem !important; /* Further reduced date margin-bottom from 0.25rem to 0.1rem */
  }

  .slide-arrow {
    position: static !important;
    margin-top: auto;
    text-align: center;
    font-size: 1.2rem;
    padding: 0 !important; /* Removed all padding */
  }

  .slideshow-nav {
    gap: 1rem;
    margin-top: 0 !important; /* Removed margin-top completely */
  }
}

@media (max-width: 480px) {
  .slideshow-container {
    height: 220px; /* Further reduced from 280px to 220px for very small screens */
  }

  .slide-content {
    padding: 0.2rem !important; /* Further reduced padding from 0.4rem to 0.2rem */
    height: calc(100% - 160px); /* Adjusted for smaller image */
  }

  .slide-content h3 {
    font-size: 1.1rem !important; /* Slightly smaller font */
    margin-bottom: 0.05rem !important; /* Minimal margin-bottom */
    line-height: 1.1 !important; /* Very tight line height */
  }

  .slide-content p {
    font-size: 0.85rem !important; /* Smaller font size */
    line-height: 1.2 !important; /* Very tight line height */
    margin-bottom: 0.1rem !important; /* Minimal margin-bottom */
  }

  .slide-date,
  .slide-category {
    font-size: 0.75rem !important; /* Smaller font size */
    margin-bottom: 0.05rem !important; /* Minimal margin-bottom */
  }

  .slide-image,
  .slide-image img {
    height: 160px !important; /* Reduced image height from 200px to 160px */
  }
}

@import "service-pages.css";

/* Portfolio Grid Section */
.portfolio-grid-section {
  padding: 80px 0;
  background-color: var(--dark-bg);
}

/* Portfolio Stats */
.portfolio-stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.stat-item {
  background-color: rgba(79, 70, 229, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 100px;
}

.stat-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Project Detail Pages */
.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.project-meta {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center; /* Center the metadata items */
  text-align: center; /* Center the text within each item */
}

.meta-item {
  display: flex;
  gap: 0.5rem;
}

.meta-label {
  font-weight: 600;
  color: var(--text-muted);
}

.meta-value {
  color: var(--text-light);
}

.project-overview {
  padding: 80px 0;
  background-color: var(--dark-bg);
}

.overview-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.overview-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-images {
  padding: 80px 0;
  background-color: var(--darker-bg);
}

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

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

.image-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.image-caption {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.solution-details {
  padding: 80px 0;
  background-color: var(--dark-bg);
}

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

.detail-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.detail-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.detail-item h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.challenge-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.challenge-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.challenge-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  background-color: var(--success-color);
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.results-section {
  padding: 80px 0;
  background-color: var(--darker-bg);
}

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

.result-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.result-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.back-to-portfolio {
  padding: 60px 0;
  background-color: var(--dark-bg);
  text-align: center;
}

.back-link .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .overview-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .portfolio-stats {
    justify-content: center;
  }

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

/* Clickable slide links */
.slide-link {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.slide-link:hover {
  transform: translateY(-2px);
}

.slide-link:hover .slide-content {
  background: rgba(255, 255, 255, 0.02);
}

/* Clickable portfolio item links */
.portfolio-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure link takes full height */
}

.portfolio-item-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-item-link:hover .portfolio-item {
  border-color: var(--primary-color);
}

/* Convert buttons to spans for clickable containers */
.portfolio-item-link .btn {
  pointer-events: none;
  display: inline-block;
}

/* Change arrow from link to span */
.slide-arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  text-decoration: none;
  transition: var(--transition);
  pointer-events: none;
}

/* FIXED: Perfectly aligned checkmark list with exact positioning */
.checkmark-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 1.5rem auto !important;
  max-width: 600px !important;
  display: block !important;
  text-align: left !important;
}

.checkmark-list li {
  position: relative !important;
  padding-left: 32px !important;
  margin-bottom: 1rem !important;
  display: block !important;
  line-height: 1.6 !important;
  min-height: 20px !important;
}

.checkmark-list li i {
  position: absolute !important;
  left: 0 !important;
  top: 2px !important;
  color: var(--success-color) !important;
  font-size: 14px !important;
  width: 16px !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Ensure all checkmark icons are exactly the same */
.checkmark-list li i.fas.fa-check,
.checkmark-list li i.fa-check,
.checkmark-list li i {
  position: absolute !important;
  left: 0 !important;
  top: 2px !important;
  color: var(--success-color) !important;
  font-size: 14px !important;
  width: 16px !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.checkmark-list li span {
  display: inline-block !important;
  width: 100% !important;
}

/* Force alignment for all service page checkmarks */
.service-module .checkmark-list li i,
.module-content .checkmark-list li i,
.service-content .checkmark-list li i {
  position: absolute !important;
  left: 0 !important;
  top: 2px !important;
  color: var(--success-color) !important;
  font-size: 14px !important;
  width: 16px !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
