/* 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;
}


.contact {
  padding: 4rem 1rem;
  background: var(--page-bg); /* ✅ changes with theme */
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text); /* ✅ adapts with dark/light */
}


.contact-form {
  max-width: 600px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  background: #333;
  color: #fff;
  padding: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #555;
}

.contact-socials {
  margin-top: 2rem;
}

.contact-socials a {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  color: #333;
  transition: color 0.3s;
}

.contact-socials a:hover {
  color: #0077b5; /* Example: LinkedIn blue */
}

/* Form container */
.contact-form {
  background: var(--surface);
  color: var(--text);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  max-width: 600px;
  margin: auto;
}

/* Input + Textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: var(--faq-card-bg); /* changes with theme */
  color: var(--faq-text);
  transition: background 0.3s, color 0.3s, border 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

/* Focus state */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

/* Submit button */
.contact-form button {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #005ea8; /* slightly darker for light mode */
}

[data-theme="dark"] .contact-form button:hover {
  background: #0284c7; /* slightly lighter for dark mode */
}

.collaboration {
  padding: 4rem 1rem;
  text-align: center;
  background: var(--page-bg);
}

.collaboration h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.collaboration p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.collab-form {
  background: var(--surface);
  color: var(--text);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.collab-form input,
.collab-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: var(--faq-card-bg);
  color: var(--faq-text);
  transition: background 0.3s, color 0.3s, border 0.3s;
}

.collab-form input:focus,
.collab-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.collab-form button {
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.collab-form button:hover {
  background: #005fa3; /* darker accent */
}

.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 */
}

/* 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;
}