/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
nav {
    background: #2c2c2c;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffd700;
}
/* ==================== Additions for mobile drawer ==================== */

/* Hamburger button (hidden by default) */
.hamburger {
  display: none;              /* shown only on small screens */
  width: 36px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  color: #fff;                /* matches your nav text */
  margin-left: 1rem;
}
.hamburger span {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger span:nth-child(1) { top: 3px; }
.hamburger span:nth-child(2) { top: 12px; }
.hamburger span:nth-child(3) { top: 21px; }

/* Turn hamburger into X when active */
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Theme switch (slider) */
.theme-switch { display:inline-flex; align-items:center; }
.theme-switch input { position:absolute; opacity:0; width:0; height:0; }
.theme-switch .slider {
  position: relative;
  display: inline-block;
  width: 54px; height: 30px;
  background: #cfd3d6; border-radius: 999px;
  transition: background .25s ease;
}
.theme-switch .slider::before {
  content:""; position:absolute; left:4px; top:4px;
  width:22px; height:22px; border-radius:50%; background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.2);
  transition: transform .25s ease;
}
.theme-switch input:checked + .slider { background:#22c55e; } /* green = dark on */
.theme-switch input:checked + .slider::before { transform: translateX(24px); }

/* Backdrop for drawer (hidden by default) */
#menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 999;               /* just under nav (1000) and drawer (1001+) */
}

/* ==================== Mobile (<= 500px) ==================== */
/* --- Mobile Menu --- */
@media (max-width: 500px) {
  .hamburger { display: flex; }

  #mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background: #2c2c2c;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 4.5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -8px 0 20px rgba(0,0,0,0.25);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    border-left: 1px solid rgba(255,255,255,0.1);
  }

  #mobile-menu.open {
    transform: translateX(0);
  }

  #mobile-menu li a {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  /* Theme switch stays at bottom */
  #mobile-menu .theme-item {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.2rem;
    display: flex;
    justify-content: center;
  }

  /* Backdrop overlay */
  #menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 1000;
  }
  #menu-backdrop.show {
    opacity: 1;
    visibility: visible;
  }

  /* Prevent body scroll */
  body.no-scroll { overflow: hidden; }

  

  /* --- Theme switch slider --- */
.theme-switch { display:inline-flex; align-items:center; }
.theme-switch input { position:absolute; opacity:0; width:0; height:0; }
.theme-switch .slider {
  position: relative;
  width: 50px; height: 26px;
  background: #bbb; border-radius: 999px;
  transition: background .25s ease;
}
.theme-switch .slider::before {
  content:""; position:absolute; left:4px; top:3px;
  width:20px; height:20px; border-radius:50%;
  background:#fff; transition: transform .25s ease;
}
.theme-switch input:checked + .slider { background:#22c55e; }
.theme-switch input:checked + .slider::before { transform: translateX(22px); }

@media (max-width: 500px) {
  /* Make sure the drawer stacks from the top */
  #mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* ⬅️ key: start at top */
    align-items: stretch;
  }

  /* Reset any previous ordering */
  #mobile-menu .nav-item { order: 0; }

  /* Desired top-to-bottom order */
  #mobile-menu .nav-item-home     { order: 1; }
  #mobile-menu .nav-item-services { order: 2; }
  #mobile-menu .nav-item-reviews  { order: 3; }
  #mobile-menu .nav-item-about    { order: 4; }
  #mobile-menu .nav-item-contact  { order: 5; }

  /* Theme toggle pinned to bottom */
  #mobile-menu .nav-item-theme {
    order: 999;
    margin-top: auto;            /* push to very bottom */
    padding-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.12);
  }
}
}

/* ==================== Dark mode variants (optional) ==================== */
body.dark-mode nav { background:#1e1e1e; }
body.dark-mode nav a { color:#fff; }
body.dark-mode nav a:hover { color:#ffd700; }

#mobile-menu {
  z-index: 1001;
}
#menu-backdrop {
  z-index: 1000;
}
nav {
  z-index: 1100;
}


/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden;
}

/* This creates the blurred background layer */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/francesca-tosolini-tHkJAMcO3QE-unsplash.jpg') center/cover no-repeat;
  filter: blur(2px);           /* 👈 controls blur strength */
  transform: scale(1.1);       /* prevents blur edges from showing */
  z-index: 0;
}

/* Optional dark overlay to increase contrast */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45); /* 👈 darker overlay */
  z-index: 1;
}

/* Hero content stays sharp */
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 5%;
}



.hero-image {
    max-width: 500px;
    z-index: 1;
   
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    
}
/* RESPONSIVE STYLES */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .hero-content .btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }

  .hero-image img {
    max-width: 80%;
    margin-top: 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.9rem;
  }
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 23, 23, 0.3);
}

.btn-dark {
    background: #2c2c2c;
    color: white;
}
.btn-send {
  background-color: #2c2c2c;  /* blue */
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-send:hover {
  background-color: #2d2e2e; /* darker blue when hovered */
}


/* Section Styles */
section {
    padding: 4rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.dark-section {
    background: #1a1a1a;
    color: white;
}

.light-section {
    background: #f5e6d3;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

/* Grid Layout */
.gallery-grid {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

/* Cards */
.gallery-grid img {
    background: rgb(0, 0, 0);
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.card-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    margin-bottom: 0.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-image {
    width: 100%;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
    text-align: right;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.service-ser {
  flex: 1;
  text-align: right;
  height: auto;
}

.service-ser img {
  width: 100%;
  max-width: 550px;
  height: 100%;
  border-radius: 10px;
}
.service-item:hover .service-image img {
    transform: scale(1.1);
}
.quote-button {
  text-align: center;
  margin-top: 2rem;
}

.quote-button .btn {
  background-color: #2c2c2c; /* or match your site's primary color */
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.quote-button .btn:hover {
  background-color: #1b2a39;
}

.service-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; /* ensures it’s responsive on smaller screens */
}

.service-text {
  flex: 1;
  min-width: 280px;
}



@media (max-width: 768px) {
  .service-preview {
    flex-direction: column;
    text-align: center;
  }

  .service-image {
    text-align: center;
  }

  .service-image img {
    max-width: 100%;
  }
}



/* Reviews */
.review-form {
  margin: 2rem auto 3rem;
  max-width: 600px;
  background: #222;
  padding: 2rem;
  border-radius: 0.75rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.review-form h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.review-form input,
.review-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.review-form textarea {
  height: 120px;
  resize: none;
}

.review-form button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #00bfff;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.review-form button:hover {
  background-color: #0099cc;
}

/* Star rating */
.rating {
  text-align: center;
  margin-bottom: 1rem;
}

.rating .star {
  font-size: 2rem;
  color: #444;
  cursor: pointer;
  transition: color 0.3s;
}

.rating .star:hover,
.rating .star.hover,
.rating .star.selected {
  color: gold;
}

/* Reviews Display */
.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.review {
  background: #1a1a1a;
  color: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.review .stars {
  color: gold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem auto 2rem;
  color: #fff;
}

.filter-bar label {
  font-weight: bold;
  font-size: 1rem;
}

.filter-bar select {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filter-bar select:hover {
  background: #333;
}
/* Shake animation for warning */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.rating.shake {
  animation: shake 0.4s ease;
}

/* Highlight rating area in red when missing */
.rating.error .star {
  color: #ff6666 !important;
}



/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
}

input, textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    
}

textarea {
    min-height: 150px;
    resize: vertical;
    
}

.map {
    background: #e0e0e0;
    border-radius: 10px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}


.footer-section a:hover {
    color: #cdff07;
}

.footer-section a:visited {
    color: rgb(255, 255, 255);
}

.footer-section a:active {
    color: white;
}

/* Page Content */
.page {
    display: none;
}

.page.active {
    display: block;
}

.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle; /* Ensures inline alignment if fallback */
}

.grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}
.about-section {
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-text,
.about-image {
  flex: 1 1 0;
}

.about-text {
  text-align: left;
}


.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ddd;
}

/* Expertise section */
.expertise-section {
  background-color: #f5d9b8; /* beige background */
  text-align: center;
  padding: 4rem 2rem;
  color: #222;
}

.expertise-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.expertise-section p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* Style for the image inside the section */
.expertise-img {
  width: 100%;
  height: 100%;          /* adjust for how “long” you want it */
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Our Values Section */
/* Center the whole section block on page */
/* Center the entire section on the page */
.values-section {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
}

/* Keep grid neat and centered */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch; /* makes all cards equal height */
}

/* Card layout */
.card {
  display: flex;
  flex-direction: column; /* image on top, text below */
  height: 100%;
  background: #fafafa;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Image styling */
.card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Center text vertically in the card */
.card-content {
  flex: 1; /* takes up remaining height */
  display: flex;
  flex-direction: column;
  justify-content: center; /* centers vertically */
  align-items: center;     /* centers horizontally */
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.4rem;
  color: #111;
  margin-bottom: 0.75rem;
}

.card-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Center the heading “Our Values” */
.values-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2rem;
  text-align: center;
}
/* Center the grid itself */
.values-section .grid {
  display: grid;
  /* fixed max width per card so the grid can be centered */
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 2rem;
  justify-content: center;   /* ⬅️ centers the whole grid row(s) */
}

/* Make each card fill its column but not stretch weirdly */
.values-section .card {
  width: 100%;
  max-width: 320px;          /* matches the column max above */
  margin: 0 auto;            /* safety: keeps single column centered */
}

/* Optional: when very small screens, keep everything tight & centered */
@media (max-width: 500px) {
  .values-section { padding: 3rem 1rem; }
  .values-section .grid { gap: 1.25rem; }
}


/* Responsive cleanup */
@media (max-width: 500px) {
  .values-section {
    padding: 3rem 1rem;
  }
  .values-title {
    font-size: 1.8rem;
  }
}


/* Responsive tweaks */
@media (max-width: 900px) {
  .values-title {
    font-size: 2rem;
  }
  .card-img img {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .values-section {
    padding: 3rem 1.25rem;  /* slightly tighter side padding on phones */
  }
  .values-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  .grid {
    gap: 1.25rem;           /* smaller gaps so cards don’t feel cramped */
  }
  .card-content {
    padding: 1.25rem;
  }
}

/* Optional: smoothen motion for users who prefer less animation */
@media (prefers-reduced-motion: reduce) {
  .card, .card:hover {
    transition: none;
    transform: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  }
}

/* Dark mode (if you're using body.dark-mode) */
body.dark-mode .values-section {
  background-color: #0f0f0f;
}
body.dark-mode .card {
  background: #1b1b1b;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
body.dark-mode .card-content h3 { color: #f5f5f5; }
body.dark-mode .card-content p  { color: #cfcfcf; }
/* Dark mode: make “Our Values” text white */
body.dark-mode .values-title {
  color: #ffffff;
}


.card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

/* Optional animation for fade-in on scroll */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeUp 0.6s ease forwards;
}




/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
}
@media (max-width: 500px) {
  .about-image {
    display: none;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .about-text {
    width: 100%;
    max-width: 600px;
    text-align: center;  /* center the text horizontally */
  }

  .about-text h2 {
    margin-bottom: 1rem;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.7;
  }
}



/* 🌗 Theme Toggle Button */
/* switch container */
nav { overflow: hidden; }                    /* hide any accidental spill */
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo, nav ul { min-width: 0; }         /* allow flex items to shrink */
nav ul {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;                            /* let links shrink instead of pushing out */
  justify-content: flex-end;
}
nav ul li { flex: 0 0 auto; }
nav ul li a { white-space: nowrap; }

/* base sizes */
.theme-switch { display:inline-flex; align-items:center; padding:0; } /* no extra padding pushing it out */
.theme-switch input { position:absolute; opacity:0; width:0; height:0; }
.theme-switch .slider {
  position: relative;
  display: inline-block;
  width: 54px; height: 30px;
  background: #cfd3d6; border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.08);
  transition: background .25s ease, box-shadow .25s ease, transform .2s ease;
}
.theme-switch .slider::before {
  content:""; position:absolute; left:4px; top:4px;
  width:22px; height:22px; border-radius:50%; background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.2);
  transition: transform .25s ease;
}
.theme-switch input:checked + .slider { background:#22c55e; } /* green = dark on */
.theme-switch input:checked + .slider::before { transform: translateX(24px); }


/* 📱 Responsive: still row but shrink spacing */
/* tablet */
@media (max-width: 768px) {
  nav ul { gap: 0.9rem; }
  nav ul li a { font-size: 0.95rem; }
  .theme-switch .slider { width: 48px; height: 26px; }
  .theme-switch .slider::before { width: 20px; height: 20px; left:3px; top:3px; }
  .theme-switch input:checked + .slider::before { transform: translateX(22px); }
}


/* mobile */
@media (max-width: 480px) {
  nav ul { gap: 0.7rem; }
  nav ul li a { font-size: 0.9rem; }        /* shrink link text so nothing pushes out */
  .theme-switch .slider { width: 42px; height: 24px; }
  .theme-switch .slider::before { width: 18px; height: 18px; left:3px; top:3px; }
  .theme-switch input:checked + .slider::before { transform: translateX(18px); }
}


 


/* === DARK MODE === */
body.dark-mode {
  background-color: #121212;
  color: #f5f5f5;
}

body.dark-mode .hero {
  background-color: #1e1e1e;
}

body.dark-mode .section-title,
body.dark-mode .section-subtitle {
  color: #ffffff;
}

body.dark-mode .btn {
  background-color: #ffffff;
  color: #000000;
}

body.dark-mode .btn:hover {
  background-color: #e0e0e0;
}

/* Optional tweak for other sections */
body.dark-mode .light-section {
  background-color: #1a1a1a;
}

body.dark-mode nav {
  background-color: #222;
}
/* Light mode text (default) */
/* Force black text for the Services page */
#services {
  color: #000; /* all text black */
}

#services h1,
#services h2,
#services h3,
#services p,
#services li {
  color: #000; /* ensure headings, paragraphs, and list items are all black */
}

#services div[style*="background: #f5f5f5"] {
  color: #ffffff;
}
/* Light Mode (default) */
#services .section-title,
#services .section-subtitle {
  color: #000; /* black text in light mode */
}

/* Dark Mode (when dark-mode class is active on body) */
body.dark-mode #services .section-title,
body.dark-mode #services .section-subtitle {
  color: #fff; /* white text in dark mode */
}
/* ===== Logo Styling ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, font-size 0.3s ease;
  white-space: nowrap;
}

.logo img {
  width: 110px;
  height: auto;
  transition: width 0.3s ease;
}

/* 📱 Tablet View */
@media (max-width: 768px) {
  .logo {
    font-size: 1.0rem;
    gap: 0.5rem;
  }
  .logo img {
    width: 78px;
  }
}

/* 📱 Mobile View */
@media (max-width: 600px) {
  .logo {
    font-size: 0;
    gap: 0;
  }
  .logo img {
    width: 60px;
  }
  /* Optional: Hide text and show icon only */
  /* Uncomment this if you want only the logo image on tiny screens */
  /* .logo { font-size: 0; } */
  /* .logo::after { content: ""; } */
}

/* 🌐 Footer Social Links */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin: 0.4rem 0;
}

/* Remove underline + blue color */
.footer-section ul li a {
  text-decoration: none;      /* removes underline */
  color: inherit;             /* uses the parent text color */
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Optional: hover effect */
.footer-section ul li a:hover {
  color: #00aaff; /* brand accent color */
}

/* Optional: footer text color (white on dark bg) */
.footer-section {
  color: #fff; /* adjust depending on your footer background */
}

