/* =========================================================
   Global Variables
========================================================= */
:root {
  /* Colors */
  --bg-light: #ffffff;
  --bg-dark: #111827;
  --bg-card-light: rgba(255, 255, 255, 0.83);
  --bg-card-dark: #1f2937;
  --text-main-light: #222222;
  --text-main-dark: #f3f4f6;
  --text-muted-light: #666666;
  --text-muted-dark: #cbd5e1;
  --accent: #0a1a2b;
  --logo-red: #ff0000;
  --highlight: #133143;
  --highlight2: #008dc5;

  /* Effects */
  --shadow: rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --transition: 0.3s ease;
}

/* =========================================================
   Base Styles
========================================================= */
body {
  margin: 0;
  padding: 0;
  background: var(--bg-light);
  color: var(--text-main-light);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

body.dark-mode {
  background: var(--bg-dark);
  color: var(--text-main-dark);
}

/* Headings */
h1,
h2,
h3 {
  color: var(--accent);
  text-align: center;
  line-height: 1.2;
  transition: color var(--transition);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: var(--text-main-dark);
}

/* Paragraphs */
p {
  color: var(--text-muted-light);
  line-height: 1.7;
  transition: color var(--transition);
}

body.dark-mode p {
  color: var(--text-muted-dark);
}

/* Special Text */
.logo-red {
  color: var(--logo-red);
}


/* ========================================================================== 
   Header & Navigation – Dark & Light Mode Compatible + Slide Animation + Hover Background
============================================================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-light);
  color: var(--text-main-light);
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  font-family: 'Poppins', sans-serif;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

/* Dark Mode Header */
body.dark-mode nav {
  background: var(--bg-dark);
  color: var(--text-main-dark);
}

/* ------------------------------
   Logo
------------------------------- */
.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

.nav-logo:hover {
  transform: scale(1.05);
}

body.dark-mode .nav-logo {
  color: #fff;
}

/* ------------------------------
   Navigation Links Container
------------------------------- */
.nav-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* ------------------------------
   Nav Links (Hover Background)
------------------------------- */
.nav-container a {
  text-decoration: none;
  color: var(--text-main-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

body.dark-mode .nav-container a {
  color: var(--text-main-dark);
}

.nav-container a:hover {
  background: var(--highlight);
  color: #fff;
  transform: translateY(-2px);
}

.nav-link.active-link {
  color: var(--highlight);
  font-weight: 700;
  border-bottom: 2px solid var(--highlight);
}

/* ------------------------------
   Hamburger / Toggle Menu (Animated)
------------------------------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle-bar {
  display: block;
  width: 28px;
  height: 3px;
  margin: 6px 0;
  background: var(--accent);
  border-radius: 3px;
  transition: all 0.4s ease;
}

body.dark-mode .nav-toggle-bar {
  background: #fff;
}

/* Hamburger → X Animation */
.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ------------------------------
   Scrolled Header Effect
------------------------------- */
header.scrolled {
  background: var(--bg-card-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background var(--transition), box-shadow var(--transition);
}

body.dark-mode header.scrolled {
  background: var(--bg-card-dark);
}

/* ==============================
   Responsive Navigation
============================== */
@media (max-width: 768px) {
  .nav-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    flex-direction: column;
    background: var(--bg-light);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, opacity 0.4s ease, background var(--transition);
  }

  body.dark-mode .nav-container {
    background: var(--bg-card-dark);
  }

  .nav-container.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 1rem 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-container a {
    width: 100%;
    padding: 0.8rem 1.5rem;
  }
}




/* ========================================================================== 
   Back-to-Top Button – Modern & Animated
============================================================================= */
#scrollTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: var(--highlight);
  color: #fff;
  font-size: 1.3rem;
  border: none;
  border-radius: 50%;
  padding: 14px 18px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease, transform 0.2s ease;
}

/* Hover animation */
#scrollTopBtn:hover {
  background: var(--accent);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Dark Mode */
body.dark-mode #scrollTopBtn {
  background: var(--highlight2);
  color: #fff;
}

body.dark-mode #scrollTopBtn:hover {
  background: var(--accent2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  #scrollTopBtn {
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  #scrollTopBtn {
    bottom: 15px;
    right: 15px;
    padding: 10px 14px;
    font-size: 1rem;
  }
}



/* ========================================================================== 
   Hero Section – Modern, Responsive & Dark Mode Friendly
============================================================================= */
.hero {
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(120deg, #e0f7ff, #ffffff);
  font-family: 'Poppins', sans-serif;
  transition: background 0.5s ease, color 0.5s ease;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
  animation: bounceIn 1s ease-in-out;
  margin-bottom: 1rem;
}

body.dark-mode .hero h1 {
  color: #ffffff;
  /* Ensures title is visible in dark mode */
}

.hero h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--highlight);
  margin-bottom: 1rem;
}

body.dark-mode .hero h2 {
  color: #f3f4f6;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

body.dark-mode .hero p {
  color: var(--text-main-dark);
}

.hero button {
  margin-top: 2rem;
  padding: 0.85rem 2.2rem;
  background: var(--highlight);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero button:hover {
  background: var(--highlight2);
  transform: translateY(-2px);
}

/* ===============================
   Dark Mode Hero Background
=============================== */
body.dark-mode .hero {
  background: linear-gradient(120deg, #1f2937, #111827);
}

/* ===============================
   Mobile Responsiveness
=============================== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .hero button {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero button {
    padding: 0.75rem 1.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero button {
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
  }
}



/* ========================================================================== 
   About Section – Professional & Responsive
============================================================================= */
#about {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
}

#about h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--secondary);
  position: relative;
}

#about h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.8rem auto 0;
  background: var(--primary);
  border-radius: 2px;
}

#about p {
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ===============================
   Mobile Responsiveness
=============================== */
@media (max-width: 768px) {
  #about {
    padding: 3rem 1rem;
  }

  #about h2 {
    font-size: 1.6rem;
  }

  #about p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  #about h2 {
    font-size: 1.4rem;
  }

  #about p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}


/* =========================================================
   Services Section – Modern Responsive Grid
========================================================= */
#services {
  padding: 4rem 2rem;
  background: var(--bg-section);
  text-align: center;
  overflow: hidden;
}

#services .section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--secondary);
  font-weight: 700;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
}

#services .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.8rem auto 0;
  background: var(--primary);
  border-radius: 2px;
}

/* ===== Service Grid ===== */
.service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
}

/* ===== Service Card ===== */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.3s ease, background 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  text-decoration: none;
  color: inherit;
}

body.dark-mode .service-card {
  background: var(--bg-card-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

body.dark-mode .service-card:hover {
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.service-img-wrapper {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--secondary);
  font-weight: 600;
}

body.dark-mode .service-card h3 {
  color: var(--text-main-dark);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
  word-wrap: break-word;
}

body.dark-mode .service-card p {
  color: var(--text-muted-dark);
}

/* ===========================
   Mobile Responsive Services
=========================== */
@media (max-width: 768px) {
  #services {
    padding: 2rem 1rem;
  }

  #services .section-title {
    font-size: 1.5rem;
  }

  .service-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
  }

  .service-card {
    flex: 0 0 calc(80% - 1rem);
    scroll-snap-align: start;
  }

  .service-card img {
    height: 180px;
  }

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

  .service-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* ===========================
   Animations
=========================== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}





/* =========================================================
   Projects Section – Modern Responsive Grid
========================================================= */
#projects {
  padding: 4rem 2rem;
  background: var(--bg-section);
  text-align: center;
  overflow: hidden;
}

#projects .section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--secondary);
  font-weight: 700;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
}

#projects .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.8rem auto 0;
  background: var(--primary);
  border-radius: 2px;
}

/* ===== Project Grid ===== */
.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
}

/* ===== Project Card ===== */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.3s ease, background 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  text-decoration: none;
  color: inherit;
}

body.dark-mode .project-card {
  background: var(--bg-card-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

body.dark-mode .project-card:hover {
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.project-img-wrapper {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--secondary);
  font-weight: 600;
}

body.dark-mode .project-card h3 {
  color: var(--text-main-dark);
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
  word-wrap: break-word;
}

body.dark-mode .project-card p {
  color: var(--text-muted-dark);
}

/* ===========================
   Mobile Responsive Projects
=========================== */
@media (max-width: 768px) {
  #projects {
    padding: 2rem 1rem;
  }

  #projects .section-title {
    font-size: 1.5rem;
  }

  .project-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
  }

  .project-card {
    flex: 0 0 calc(80% - 1rem);
    scroll-snap-align: start;
  }

  .project-card img {
    height: 180px;
  }

  .project-card h3 {
    font-size: 1rem;
  }

  .project-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* ===========================
   Animations
=========================== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================================================== 
   Clients Section – Fully Responsive & Professional (No Scroll)
============================================================================= */
#clients {
  padding: 4rem 2rem;
  background: var(--bg-alt);
  text-align: center;
}

#clients .section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--secondary);
  font-weight: 700;
  position: relative;
}

#clients .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.8rem auto 0;
  background: var(--primary);
  border-radius: 2px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: center;
}

.client-logo {
  background: var(--bg-section);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #0a1a2b, transparent);
  transition: top 0.4s ease;
  border-radius: 16px;
}

.client-logo:hover::before {
  top: 0;
}

.client-logo img {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
  margin: auto;
}

.client-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.client-logo:hover img {
  transform: scale(1.1);
}

/* ==============================
   Mobile Responsiveness – Grid (No Scroll)
============================== */
@media (max-width: 768px) {
  #clients {
    padding: 2rem 1rem;
  }

  #clients .section-title {
    font-size: 1.5rem;
  }

  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
  }

  .client-logo {
    padding: 0.6rem;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  }

  .client-logo img {
    width: 70px;
    height: 70px;
  }
}



/* ========================================================================== 
   Testimonials Section – Card Style (Like Contact Info)
============================================================================= */
#testimonials {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--bg-section);
  font-family: 'Poppins', sans-serif;
}

#testimonials .section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--secondary);
  font-weight: 700;
  position: relative;
}

#testimonials .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.8rem auto 0;
  background: var(--primary);
  border-radius: 2px;
}

/* ------------------------------
   Testimonials Grid
------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* ------------------------------
   Testimonial Card
------------------------------- */
.testimonial-card {
  background: #fdfdfd;
  border-radius: 12px;
  padding: 1.8rem 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: left;
  border-left: 5px solid var(--primary);
}

body.dark-mode .testimonial-card {
  background: var(--bg-card-dark);
  color: var(--text-main-dark);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ------------------------------
   Testimonial Content
------------------------------- */
.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.testimonial-card h4 {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.testimonial-card span {
  font-size: 0.95rem;
  color: var(--logo-red); /* ensures the i matches perfectly */
  font-weight: inherit;
  font-family: inherit;
  line-height: inherit;
  vertical-align: baseline;
  display: inline-block;
}

/* ==============================
   Mobile Responsiveness – Grid Layout
============================== */
@media (max-width: 768px) {
  #testimonials {
    padding: 2rem 1rem;
  }

  #testimonials .section-title {
    font-size: 1.5rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }

  .testimonial-card {
    padding: 1.5rem 1rem;
  }

  .testimonial-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .testimonial-card h4 {
    font-size: 1rem;
  }

  .testimonial-card span {
    font-size: 0.85rem;
  }
}

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

  .testimonial-card {
    padding: 1.25rem 1rem;
  }

  .testimonial-card p {
    font-size: 0.8rem;
  }

  .testimonial-card h4 {
    font-size: 0.95rem;
  }

  .testimonial-card span {
    font-size: 0.8rem;
  }
}

/* ========================================================================== 
   FAQ Section — Clean & Responsive
============================================================================= */
#faq {
  position: relative;
  padding: 4rem 2rem;
  background: var(--bg-alt);
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

#faq .section-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  font-weight: 700;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

#faq .section-header h2::after {
  content: "";
  display: block;
  width: 6ch;
  height: 0.25rem;
  margin: 0.8rem auto 0;
  background: var(--primary);
  border-radius: 2px;
}

/* FAQ Details */
#faq details {
  background: var(--bg-section);
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#faq details[open] {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Summary (Question) */
#faq summary {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

/* Custom toggle icon */
#faq summary::marker {
  display: none;
}

#faq summary::after {
  content: "➕";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

#faq details[open] summary::after {
  content: "➖";
  transform: translateY(-50%);
}

/* Answer */
#faq p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-top: 0.8rem;
}

/* ==============================
   Responsive — FAQ Section
============================== */
@media (max-width: 992px) {
  #faq {
    padding: 3rem 2vw;
  }

  #faq .section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }

  #faq summary {
    font-size: 1rem;
  }

  #faq p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  #faq {
    padding: 2.5rem 1.5rem;
  }

  #faq summary {
    font-size: 0.95rem;
  }

  #faq p {
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  #faq {
    padding: 2rem 1rem;
  }

  #faq .section-header h2 {
    font-size: 1.5rem;
  }

  #faq summary {
    font-size: 0.9rem;
  }

  #faq p {
    font-size: 0.85rem;
  }
}

/* ========================================================================== 
   Blog / Insights Section — Modern & Professional (No Underlines)
============================================================================= */
#blog {
  position: relative;
  padding: 5rem 2rem;
  background: var(--bg-light);
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  transition: background var(--transition);
}

body.dark-mode #blog {
  background: var(--bg-dark);
}

/* ------------------------------
   Section Header
------------------------------- */
#blog .section-header h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.6rem;
  letter-spacing: -0.5px;
  position: relative;
  text-decoration: none;
}

#blog .section-header h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin: 1rem auto 0;
  background: var(--highlight2);
  border-radius: 3px;
}

#blog .section-header .subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-muted-light);
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 760px;
  line-height: 1.6;
  text-decoration: none;
}

body.dark-mode #blog .section-header .subtitle {
  color: var(--text-muted-dark);
}

/* ------------------------------
   Blog Cards Grid
------------------------------- */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ------------------------------
   Blog Card
------------------------------- */
.blog-card {
  background: var(--bg-card-light);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none;
}

body.dark-mode .blog-card {
  background: var(--bg-card-dark);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

/* Blog Card Image */
.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  border-radius: 0;
}

.blog-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* Blog Card Content */
.blog-card h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin: 1.2rem 1.2rem 0.6rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.blog-card h3 a {
  color: inherit;
  text-decoration: none; /* removed underline */
  transition: color 0.3s ease;
}

.blog-card h3 a:hover {
  color: var(--highlight2);
  text-decoration: none;
}

.blog-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted-light);
  margin: 0 1.2rem 1.5rem;
  flex-grow: 1;
  text-decoration: none;
}

body.dark-mode .blog-card p {
  color: var(--text-muted-dark);
}

/* ------------------------------
   Section Content
------------------------------- */
.section {
  padding: 90px 20px;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(35px);
  animation: fadeUp 1s forwards;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: var(--accent);
  text-decoration: none;
}

.section-intro {
  font-size: 1.15rem;
  text-align: justify;
  margin-bottom: 40px;
  color: var(--text-muted-light);
  line-height: 1.8;
  text-decoration: none;
}

body.dark-mode .section-intro {
  color: var(--text-muted-dark);
}

.image-wrapper {
  text-align: center;
  margin: 35px 0;
}

.blog-image {
  width: 100%;
  max-width: 950px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-image:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 40px var(--shadow);
}

h3 {
  margin-top: 45px;
  margin-bottom: 18px;
  font-weight: 600;
  color: var(--highlight);
  font-size: 1.35rem;
  text-decoration: none;
}

/* Lists */
ul, ol {
  margin-bottom: 28px;
  line-height: 1.85;
  padding-left: 1.5rem;
}

ul li, ol li {
  margin-bottom: 0.5rem;
  text-decoration: none;
}

/* ------------------------------
   Back to Home
------------------------------- */
.back-to-home {
  display: inline-flex;
  align-items: center;
  margin-top: 45px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--highlight2);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

.back-to-home:hover {
  color: var(--highlight);
  transform: translateX(-4px);
  text-decoration: none;
}

.back-icon {
  margin-right: 8px;
  font-size: 1.2rem;
}

/* Utility */
.text-center {
  text-align: center;
}

/* ------------------------------
   Responsive Blog Section
------------------------------- */
@media (max-width: 992px) {
  #blog {
    padding: 4rem 2rem;
  }

  #blog .section-header h2 {
    font-size: 2rem;
  }

  #blog .section-header .subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  #blog {
    padding: 3rem 1.5rem;
  }

  .blog-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-card h3 {
    font-size: 1.15rem;
  }

  .blog-card p {
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  #blog {
    padding: 2.5rem 1rem;
  }

  .blog-card h3 {
    font-size: 1.05rem;
  }

  .blog-card p {
    font-size: 0.85rem;
  }
}

/* ===========================
   Animations
=========================== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ==========================================================================  
   Contact Section – Light & Dark Mode
============================================================================= */
.contact-section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
  box-sizing: border-box;
}

/* ------------------------------
   Contact Form
------------------------------- */
.contact-form {
  max-width: 600px;
  margin: auto;
  padding: 2rem;
  background: #fff;
  /* Light mode background */
  border-radius: var(--radius);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode .contact-form {
  background: var(--bg-card-dark);
  /* Dark mode background */
  color: var(--text-main-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  background: #fff;
  color: #111;
  transition: border 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: var(--bg-card-dark);
  color: var(--text-main-dark);
  border: 1px solid #444;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--highlight);
  box-shadow: 0 0 8px rgba(224, 122, 95, 0.2);
}

.contact-form button {
  width: 100%;
  padding: 0.85rem;
  background: var(--highlight);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: var(--highlight2);
  transform: translateY(-2px);
}

/* ------------------------------
   Contact Info – Professional Card
------------------------------- */
.contact-info {
  background: #fdfdfd;
  /* Light mode background */
  padding: 1.5rem 1.8rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
  border-left: 5px solid #0a1a2b;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .contact-info {
  background: var(--bg-card-dark);
  border-left: 5px solid var(--highlight);
  color: var(--text-main-dark);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

body.dark-mode .contact-info h3 {
  color: #fff;
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.7rem;
  color: #555;
}

body.dark-mode .contact-info p {
  color: #ccc;
}

.contact-info a {
  color: #0a1a2b;
  text-decoration: none;
  font-weight: 500;
}

body.dark-mode .contact-info a {
  color: var(--highlight);
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ------------------------------
   Mobile Responsive
------------------------------- */
@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 1rem;
  }

  #contact h2 {
    font-size: 2rem;
  }

  #contact p {
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 0.95rem;
    padding: 0.75rem 0.9rem;
  }

  .contact-info {
    padding: 1.2rem 1rem;
    margin-top: 1.5rem;
  }

  .contact-info h3 {
    font-size: 1.5rem;
  }

  .contact-info p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  #contact h2 {
    font-size: 1.6rem;
  }

  #contact p {
    font-size: 0.95rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 0.9rem;
  }

  .contact-info h3 {
    font-size: 1.3rem;
  }

  .contact-info p {
    font-size: 0.85rem;
  }
}

/* ========================================================================== 
   Preloader – Fullscreen Loading Animation
============================================================================= */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

body.dark-mode .preloader {
  background: var(--bg-dark);
}

/* Preloader spinner */
.preloader::after {
  content: "";
  width: 60px;
  height: 60px;
  border: 6px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ========================================================================== 
   Lightbox – Image Popup
============================================================================= */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.lightbox-content {
  border-radius: 16px;
  background: var(--bg-card-light);
  color: var(--text-main);
  padding: 2rem;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  overflow: auto;
  animation: zoomIn 0.3s ease;
}

body.dark-mode .lightbox-content {
  background: var(--bg-card-dark);
  color: var(--text-light);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  cursor: zoom-out;
  transition: transform 0.3s ease;
}

.lightbox-content img:hover {
  transform: scale(1.05);
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================================================== 
   Dark Mode Toggle Button
============================================================================= */
.dark-toggle-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: inherit;
  transition: transform 0.3s ease;
}

.dark-toggle-btn:hover {
  transform: scale(1.2);
}

/* =========================
   Footer Styles — Modern & Responsive
========================= */
.site-footer {
  background: var(--bg-section);
  color: var(--text);
  padding: 2.5rem 1.5rem 1rem;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  width: 100%;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  width: 95%;
  max-width: 1300px;
  margin: 0 auto 2rem;
}

/* Logo / About */
.footer-about .nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.footer-about p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted-light);
}

body.dark-mode .footer-about p {
  color: var(--text-muted-dark);
}

/* Headings */
.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
}

/* Links */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links ul li a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* Contact Info */
.footer-contact p {
  font-size: 0.9rem;
  margin: 0.3rem 0;
  line-height: 1.5;
}

.footer-contact a {
  color: var(--highlight2);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--highlight);
}

/* =========================
   Social Icons with Brand Colors
========================= */
.social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 2px 6px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #fff;
  flex-shrink: 0;
}

.social-icons a svg {
  width: 20px;
  height: 20px;
}

/* Brand Colors */
.social-icons a.facebook { background: #1877F2; }
.social-icons a.linkedin { background: #0A66C2; }
.social-icons a.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.social-icons a.youtube { background: #FF0000; }
.social-icons a.twitter { background: #1DA1F2; }

.social-icons a:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 4px 12px var(--shadow);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1rem;
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.dev-credit {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.red-i {
  color: red;
  font-weight: bold;
}

/* =========================
   Responsive Adjustments
========================= */
@media (max-width: 992px) {
  .footer-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-about .nav-logo {
    font-size: 1.3rem;
  }

  .footer-about p,
  .footer-contact p,
  .footer-links ul li a {
    font-size: 0.85rem;
  }

  .social-icons a {
    width: 38px;
    height: 38px;
  }

  .social-icons a svg {
    width: 18px;
    height: 18px;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }
}
