/* Light theme (default) */
:root {
  --page-bg: #ffffff;
  --surface: #f9f9f9;
  --text: #222222;
  --muted: #666666;
  --accent: #0078d4;
}

/* Dark theme */
[data-theme="dark"] {
  --page-bg: #0f172a;
  --surface: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
}

:root {
  --card-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
  --card-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Add inside your existing :root (light theme) */
:root {
  --page-bg: #ffffff;
  --surface: #f9f9f9;
  --text: #222222;
  --muted: #666666;
  --accent: #0078d4;

  /* FAQ variables */
  --faq-bg: var(--page-bg);
  --faq-card-bg: var(--surface);
  --faq-text: var(--text);
  --faq-answer-bg: #f0f4f8;
}

/* Add inside your [data-theme="dark"] */
[data-theme="dark"] {
  --page-bg: #0f172a;
  --surface: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;

  /* FAQ variables */
  --faq-bg: var(--page-bg);
  --faq-card-bg: var(--surface);
  --faq-text: var(--text);
  --faq-answer-bg: #1e293b;
}

/* Apply variables */
body {
  font-family: 'Lexend', 'Segoe UI', sans-serif;
  background: var(--page-bg);
  color: var(--text);
  padding: 0px;
  margin: 0px;
}

/* Ensure form controls + buttons inherit */
button, input, textarea, select {
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section {
  background: var(--surface);
  padding: 2rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  section {
    padding: 1.2rem;
  }
}

a {
  color: var(--accent);
}


/* Smooth transitions for theme changes */
.services-carousel,
.carousel-card,
.btn-cta,
.footer,
.navbar {
  transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Navigation Buttons */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.05);
  border: none;
  font-size: 1.5rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.nav:hover {
  background: rgba(0,0,0,0.15);
}

.nav.prev { left: 20px; }
.nav.next { right: 20px; }

@media (max-width: 768px) {
  .slide-content {
    flex-direction: column;
    text-align: center;
  }

  .slide-content img,
  .text-box {
    width: 100%;
  }
}

/* Sticky Navbar Base */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8); /* Soft translucent white */
  backdrop-filter: blur(10px); /* Fluent style blur */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

/* Container for alignment */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  max-width: 1100px;
  margin: auto;
}

/* Logo group */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space between image and text */
  text-decoration: none;
}

.logo-img {
  height: 40px;  /* controls size */
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0078d4;
}


/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 6px 8px;
  border-radius: 6px;
}

.nav-links li a:hover {
  background-color: #e5f1fb;
  color: #0078d4;
}

/* Hamburger hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    width: 200px;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    display: none; /* hidden by default */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block; /* show hamburger on mobile */
  }
}

html {
  scroll-behavior: smooth;
}


/* Carousel Container */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: auto;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  background: #fff;
}

/* Track and Slide Layout */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  padding: 40px;
}

.slide-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.slide-content img {
  width: 40%;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.text-box {
  width: 55%;
}

.text-box h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.text-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Fluent-style CTA Button */
.cta {
  display: inline-block;
  padding: 12px 24px;
  background: #0078d4;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cta:hover {
  background: #005a9e;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Navigation Buttons */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.05);
  border: none;
  font-size: 1.5rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.nav:hover {
  background: rgba(0,0,0,0.15);
}

.nav.prev { left: 20px; }
.nav.next { right: 20px; }

@media (max-width: 768px) {
  .slide-content {
    flex-direction: column;
    text-align: center;
  }

  .slide-content img,
  .text-box {
    width: 100%;
  }
}

/* Sticky Navbar Base */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8); /* Soft translucent white */
  backdrop-filter: blur(10px); /* Fluent style blur */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

/* Container for alignment */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  max-width: 1100px;
  margin: auto;
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.project-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.see-more {
  text-align: center;
  margin-top: 30px;
}

.see-more-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0078d4;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.see-more-btn:hover {
  background-color: #005a9e; /* Sleek, modern hover */
}

/* Container uses page background variable */
.services-carousel {
  padding: 3rem 1rem;
  background: var(--page-bg);   /* <- theme-aware */
}

/* Grid unchanged */
.carousel-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
}

/* Cards use surface + text variables */
.carousel-card {
  background: var(--surface);   /* <- theme-aware */
  color: var(--text);           /* <- theme-aware */
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* Soft hover lift — still subtle in dark mode */
.carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(2,6,23,0.12);
}

/* Icon and text */
.service-icon {
  font-size: 2.5rem;
  color: var(--accent);        /* <- theme-aware accent */
  margin-bottom: 1rem;
}

.carousel-card h3 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
  color: var(--text);          /* ensure headings follow theme */
}

.carousel-card p {
  font-size: 0.95rem;
  color: var(--muted);         /* muted text follows theme */
  margin-bottom: 1.2rem;
}

/* CTA button */
.btn-cta {
  display: inline-block;
  padding: 10px 18px;
  background: var(--accent);   /* theme-aware */
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 180ms ease, transform 180ms ease;
  border: 1px solid rgba(0,0,0,0); /* keeps button crisp across themes */
}

.btn-cta:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}

.reviews {
  padding: 4rem 1rem;
  background: var(--page-bg); /* follows theme */
  text-align: center;
}

.reviews-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.review-slider {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: auto;
}

.review-track {
  display: flex;
  transition: transform 0.6s ease;
}

.review-slide {
  min-width: 100%;
  padding: 2rem;
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  margin: 0 10px;
}

.review-slide p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.review-slide h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Dots */
.review-dots {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.review-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--muted);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.review-dots button.active {
  background: var(--accent);
  transform: scale(1.2);
}


/* FAQ Section */
:root{
  --faq-bg: #f9f9f9;
  --faq-card-bg: #fff;
  --faq-text: #333;
  --faq-answer-bg: #fafafa;
}

/* if your toggle sets data-theme on <body>, this will apply */
body[data-theme="dark"]{
  --faq-bg: #1e1e1e;
  --faq-card-bg: #2a2a2a;
  --faq-text: #f5f5f5;
  --faq-answer-bg: #242424;
}

.faq {
  background: var(--faq-bg);
  padding: 4rem 2rem;
  text-align: center;
}

.faq-item {
  background: var(--faq-card-bg);
  color: var(--faq-text);
}

.faq-question {
  color: var(--faq-text);
}

.faq-answer {
  background: var(--faq-answer-bg);
  color: var(--faq-text);
}

.footer {
  background: var(--surface);
  color: var(--text);
  padding: 2rem 1rem;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.footer-socials a {
  color: var(--text);
  margin: 0 0.5rem;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #0077b5; /* Example: LinkedIn blue */
}

:root { --faq-bg: #f9f9f9; --faq-card-bg: #fff; --faq-text: #333; --faq-answer-bg: #fafafa; } .dark-mode { --faq-bg: #1e1e1e; --faq-card-bg: #2a2a2a; --faq-text: #f5f5f5; --faq-answer-bg: #242424; } /* FAQ Section */ .faq { padding: 4rem 2rem; background: #f9f9f9; text-align: center; } .faq h2 { font-size: 2rem; margin-bottom: 2rem; } .faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; } .faq-item { background: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); text-align: left; overflow: hidden; transition: all 0.3s ease; } .faq-question { display: flex; justify-content: space-between; align-items: center; padding: 1rem; cursor: pointer; font-weight: 600; font-size: 1rem; } .faq-icon { font-size: 1.2rem; transition: transform 0.3s ease; } .faq-answer { max-height: 0; overflow: hidden; padding: 0 1rem; background: #fafafa; transition: max-height 0.3s ease, padding 0.3s ease; } .faq-item.active .faq-answer { max-height: 200px; padding: 1rem; } .faq-item.active .faq-icon { content: "-"; transform: rotate(180deg); } /* Mobile responsiveness */ @media (max-width: 768px) { .faq-grid { grid-template-columns: 1fr; } }


/* Add this to your existing CSS files for screen reader accessibility */

/* Screen reader only class for accessible labels */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}