@import url("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css");

/*============================= 
General Styles 
===============================*/

/* Header default state — Transparent */
.header {
  position: fixed;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  /* ✅ no background */
  box-shadow: none;
  /* ✅ no box look */
  transition: all 0.4s ease;
  font-size: 18px;
}

/* Inner container alignment */
.header .container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* center container */
  padding: 5px 20px;
}

/* Extra spacing when header is at top (home section) */
.header.home-top {
  margin-top: 20px;
  /* ✅ adds top space only on home */
  transition: margin-top 0.4s ease;
  /* smooth slide */
}

/* When scrolled — white background appears */
.header.active {
  margin-top: 0;
  /* remove top space when scrolled */
  background: rgba(255, 255, 255, 0.98);
  /* ✅ white background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  /* ✅ soft shadow */
  backdrop-filter: blur(5px);
  /* optional, glass-like effect */
}

/* Align logo nicely on the right side */
.header .logo img {
  height: 10px;
  width: auto;
  display: block;
}

/* Find the rule for your main navigation in your CSS file */
header nav {
  margin-left: auto;
  /* 🚀 THIS pushes menu fully right */
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  /* keeps menu on right */
  padding-right: 0;
  /* 👈 moves buttons slightly right */
}

/* Base style for nav links */
header nav a {
  position: relative;
  color: white;
  text-decoration: none;
  margin-right: 10px;
  margin-left: 10px;
  margin-top: 20px;
  font-weight: 700;
  transition: color 0.3s ease;
}

/* When scrolled — header.active (white background) */
.header.active nav a {
  color: black;
  /* ✅ turns black when background appears */
}

/* Underline effect (invisible by default) */
.header nav a::after {
  content: " ";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #ff4001;
  /* underline color */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* Hover underline */
.header nav a:hover::after,
.header nav a.active::after {
  width: 100%;
}

/* Active link underline */
.header nav a.active::after {
  width: 100%;
}

/* Optional: active link color */
.header nav a.active {
  color: #ffbb00;
  /* highlight color for active menu */
}

/*  Body Style */

body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.5;
  padding-top: 70px;
  /* Space for fixed header */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  color: #8b4513;
  /* Warm brown for headings */
}

/* Scroll reveal baseline (used by all sections) */
.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

button {
  background-color: #daa520;
  /* Gold accent */
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

button:hover {
  background-color: #b8860b;
}

p {
  text-align: justify;
}

/* ... existing styles ... */

/* Centering Headings for specified sections */
#about h2,
#services h2,
#projects h2,
#blogs h2,
#contact h2 {
  text-align: center;
  font-size: 40px;
  font-weight: 750;
  margin-bottom: 40px;
}

#about,
#services,
#projects,
#blogs,
#contact {
  padding: 05px 0;
  /* ✅ Adds breathing room from sections */
}

/* 2. Modify specific section content to be full width */

#about .container,
#services .container {
  max-width: 100%;
  /* Make the container span the full width of the viewport */
  padding: 0;
  /* Remove the side padding */
}

/* Make sure the text content inside 'left' and 'right' still has some padding on the sides */
#about .section-content .left,
#about .section-content .right,
#services .section-content .left,
#services .section-content .right {
  padding: 20px;
  /* Add internal padding for text block */
  max-width: 1200px;
  /* Constrain text width for readability */
  margin: 0 auto;
}

/* Adjust .section-content for About/Services to ensure full width children can align */
#about .section-content,
#services .section-content {
  align-items: stretch;
  margin-bottom: 0;
  /* Since we're removing the inner container padding, let's remove the bottom margin */
}

/* Projects and Blogs: Remove the container wrapper entirely or set the max-width to 100% and remove padding */
/* We will re-add a small padding to the grid to avoid content touching the edge on smaller screens */
#blogs .container {
  max-width: 100%;
  padding: 0;
}

/* Re-add content padding for the grid and central elements inside Projects/Blogs to not touch screen edges */
#blogs .media-grid {
  padding: 0 20px;
  max-width: 1200px;
  /* Constrain the grid for a better look on very wide screens */
  margin: 0 auto;
}

/* Contact: Remove the container wrapper entirely */
#contact .container {
  max-width: 100%;
  padding: 0;
}

/* Contact Form: Center and provide side padding for the form */
#contact form {
  max-width: 600px;
  /* Keep form width constrained */
  margin: 20px auto;
  /* Center the form */
  padding: 0 20px;
  /* Add a bit of side padding for mobile */
}

/* ====================================
   FIX: Fixed Header Overlap
   ==================================== */

section {
  /* Uses a value slightly larger than the fixed header height (80px) */
  scroll-margin-top: 80px;
}

/* =====================================================
   HEADER (EXTREME RIGHT NAV FIX)
===================================================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
  transition: all 0.4s ease;
}

.header.home-top {
  margin-top: 20px;
}

.header.active {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(5px);
}

.header .container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 5px 60px;
  /* 🔥 pushes nav EXTREME RIGHT */
}

/* LOGO */
#site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0c0237;
  border-radius: 50%;
  padding: 4px;
}

#site-logo img {
  height: 55px;
  width: auto;
  display: block;
}

/* NAVIGATION — EXTREME RIGHT */
header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 10px;
}

header nav a {
  position: relative;
  text-decoration: none;
  font-weight: 700;
  color: white;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.header.active nav a {
  color: #000;
}

/* UNDERLINE ANIMATION */
header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #ff4001;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

header nav a:hover::after,
header nav a.active::after {
  width: 100%;
}

header nav a.active {
  color: #ffbb00;
}

/* MENU TOGGLE */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

.header.active .menu-toggle {
  color: black;
}

/*======================= 
Home Section 
=========================*/
#home {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: -70px;
  /* Counteract body padding-top */
}

#home video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

#home .overlay {
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 0;
}

#home .content {
  z-index: 1;
  color: white;
  margin-top: 100px;
}

#home .content h1 {
  color: white;
  font-size: 3em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 5px;
}

#home .content p {
  font-size: 1.2em;
  margin-bottom: 60px;
}

#home .content button {
  margin: 0 10px;
}

/* =============================
   1. BUTTON STYLES (Used by 'Get Quote' button)
   ============================= */
button {
  background-color: #d4af37;
  /* Gold accent */
  color: white;
  border: none;
  padding: 15px 30px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
  font-weight: 700;
  font-size: large;
}

button:hover {
  background-color: #b8860b;
}

/* Home Section Button Margins */
#home .content button {
  margin: 0 20px;
}

/* =============================
   2. QUOTE SECTION STYLES (The modal/block that opens)
   ============================= */
#quote {
  /* KEY FIX: Set position relative for absolute children positioning (the 'X' button) */
  position: relative;

  display: none;
  /* Initially hidden */
  padding: 10px 0;
  background: #f9f9f9;
  border-bottom: 5px solid #daa520;
}

#quote.active {
  display: block;
  /* Shown when the button is clicked via JavaScript */
}

/* =============================
   3. CLOSE BUTTON FIX (To show 'X' inside the quote block)
   ============================= */
#quote #close-quote {
  /* TARGETED FIX: Use the ID to isolate the quote section's close button */
  position: absolute;
  /* Positions it relative to its parent (#quote) */
  top: 15px;
  /* Spacing from the top of the #quote block */
  right: 35px;
  /* Spacing from the right side, accounting for container padding */

  /* General appearance */
  font-size: 30px;
  cursor: pointer;
  color: #8b4513;
  z-index: 100;
  float: none;
  /* Ensure float doesn't interfere with absolute positioning */
}

/* =============================
   4. QUOTE FORM STYLES
   ============================= */
#quote form {
  max-width: 600px;
  margin: 20px auto;
  /* Ensure padding from previous step is applied for spacing from screen edges */
  padding-left: 20px;
  padding-right: 20px;
}

#quote input,
#quote select,
#quote textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  /* IMPORTANT: Ensures padding doesn't increase total width */
}

.phone-fields {
  display: flex;
  gap: 10px;
}

.phone-fields select {
  flex: 0 0 30%;
  /* Country code takes less space */
}

.phone-fields input {
  flex: 1;
}

#other-requirements-modal,
#other-requirements-page {
  display: none;
}

/* =============================
   5. RESPONSIVE ADJUSTMENT
   ============================= */
/* arrow style */
/* Ensure the content paragraph maintains spacing above the buttons */
#home .content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  /* Keep a decent gap between text and buttons */
}

/* Ensure minimal gap between the buttons themselves */
#home .content button {
  /* Existing style: 0 10px; provides 10px spacing between buttons */
  margin: 0 10px;
}

/* 1. BUTTONS-TO-ARROW GAP FIX (20px) */
/* This will effectively place the arrow 20px below the button container. */
.home-buttons {
  /* Adding space *below* the buttons. 
       This helps control the overall layout but the arrow's absolute positioning 
       will override the flow. We use absolute positioning for precision. */
  /* Remove this if using absolute positioning below */
  margin-bottom: 0;
}

/* Arrow Positioning & Spacing */
.scroll-arrow-link {
  position: absolute;
  bottom: 90px;
  /* KEY FIX: 20px gap from the bottom border of the block */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-decoration: none;
}

/* This is the container for the animated 'v' */
.scroll-arrow {
  width: 30px;
  /* Set a size for the container */
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* The 'v' shape itself, created with borders */
.scroll-arrow .chevron {
  width: 20px;
  height: 20px;
  border-right: 3px solid white;
  /* Right side of the V */
  border-bottom: 3px solid white;
  /* Bottom side of the V */
  transform: rotate(45deg);
  /* Rotate 45 degrees to form the 'v' or chevron */

  /* Apply the animation to the chevron for a cleaner look */
  animation: bounce 2s infinite;
}

/* Define the bounce animation (slightly modified to move the V shape) */
@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
    /* Original position */
  }

  40% {
    transform: translateY(-10px) rotate(45deg);
    /* Move 10px up */
  }

  60% {
    transform: translateY(-5px) rotate(45deg);
    /* Move 5px up */
  }
}

/* =====================================
   HOME SOCIAL ICONS (RIGHT SIDE)
===================================== */

.home-social-icons {
  position: absolute;
  bottom: 90px;
  /* aligns with arrow */
  right: 25px;
  /* 🔥 extreme right */
  display: flex;
  gap: 14px;
  z-index: 10;
}

.home-social-icons a {
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hover effects */
.home-social-icons a:hover {
  transform: translateY(-4px);
}

/* WhatsApp color */
.home-social-icons a[aria-label="WhatsApp"]:hover {
  background: #25d366;
}

/* Gmail color */
.home-social-icons a[aria-label="Gmail"]:hover {
  background: #d93025;
}

.home-social-icons a,
.social-icons a {
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hover animation */
.home-social-icons a:hover,
.social-icons a:hover {
  transform: translateY(-4px) scale(1.05);
}

/* LinkedIn */
.home-social-icons a[aria-label="LinkedIn"]:hover,
.social-icons a[aria-label="LinkedIn"]:hover {
  background-color: #0a66c2;
}

/* Instagram */
.home-social-icons a[aria-label="Instagram"]:hover,
.social-icons a[aria-label="Instagram"]:hover {
  background: radial-gradient(circle at 30% 107%,
      #fdf497 0%,
      #fdf497 5%,
      #fd5949 45%,
      #d6249f 60%,
      #285aeb 90%);
}

/* ================================
   MOBILE ADJUSTMENT
================================ */
@media (max-width: 768px) {

  .home-social-icons a,
  .social-icons a {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

/* ==============================
   MOBILE ADJUSTMENT
============================== */
@media (max-width: 768px) {
  .home-social-icons {
    bottom: 65px;
    /* slightly higher */
    right: 15px;
  }

  .home-social-icons a {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

/* Home Animation Setup */
#home .content {
  opacity: 0;
  transform: translateY(40px);
  animation: contentFadeUp 1.2s ease forwards;
  animation-delay: 0.5s;
}

#home h1 {
  opacity: 0;
  transform: translateY(30px);
  animation: textFadeUp 1s ease forwards;
  animation-delay: 0.8s;
}

#home p {
  opacity: 0;
  transform: translateY(30px);
  animation: textFadeUp 1s ease forwards;
  animation-delay: 1s;
}

#get-quote-btn {
  opacity: 0;
  transform: scale(0.9);
  animation: buttonPop 0.8s ease forwards;
  animation-delay: 1.3s;
}

/* Video Zoom Animation */
#home video {
  animation: videoZoom 10s ease-in-out infinite alternate;
}

/* Social Icons Animation */
.home-social-icons a {
  opacity: 0;
  transform: translateX(-20px);
  animation: socialSlide 0.6s ease forwards;
}

.home-social-icons a:nth-child(1) {
  animation-delay: 1.5s;
}

.home-social-icons a:nth-child(2) {
  animation-delay: 1.7s;
}

.home-social-icons a:nth-child(3) {
  animation-delay: 1.9s;
}

.home-social-icons a:nth-child(4) {
  animation-delay: 2.1s;
}

.scroll-arrow-link {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-decoration: none;

  /* NEW */
  opacity: 0;
  animation: arrowFadeIn 1s ease forwards;
  animation-delay: 2.2s;
  /* comes after text & button animation */
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
  animation: arrowBounce 1.5s infinite;
  opacity: 0.8;
}

/* Arrow fade in */
@keyframes arrowFadeIn {
  to {
    opacity: 1;
  }
}

/* Bounce animation */
@keyframes arrowBounce {
  0% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(10px) rotate(45deg);
  }

  100% {
    transform: translateY(0) rotate(45deg);
  }
}


/* Smooth bounce */
@keyframes arrowBounce {
  0% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(10px) rotate(45deg);
  }

  100% {
    transform: translateY(0) rotate(45deg);
  }
}


/* Animations */
@keyframes contentFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes videoZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

@keyframes socialSlide {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/*============================
 About Section Styles 
 =============================*/
section {
  padding: 10px 0;
}

#about {
  width: 100%;
  max-width: 100%;
  padding: 20px 0;
  /* top & bottom spacing */
  background: #f9f9f9;
  /* your background color */
  margin: 0;
  display: block;
  box-sizing: border-box;
}

#about h2,
#about .section-content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#about.show h2,
#about.show .section-content {
  opacity: 1;
  transform: none;
}

/* Step-by-step reveal inside About */
#about .section-content .left,
#about .section-content .right,
#about .section-content .image {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* First block sequence */
#about.show .section-content:nth-of-type(1) .left {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

#about.show .section-content:nth-of-type(1) .image {
  opacity: 1;
  transform: none;
  transition-delay: 0.35s;
}

/* Second block sequence */
#about.show .section-content:nth-of-type(2) .image {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

#about.show .section-content:nth-of-type(2) .right {
  opacity: 1;
  transform: none;
  transition-delay: 0.35s;
}

@media (max-width: 768px) {
  #about .section-content .left,
  #about .section-content .right,
  #about .section-content .image {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

#about:nth-child(even) {
  background-color: #f9f9f9;
  /* Subtle alternate background for sections */
}

.section-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 40px;
  /* Added gap for spacing */
  margin-left: 80px;
  margin-right: 80px;
  text-align: justify;
}

.section-content h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #b10909;
}

.section-content p {
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.7;
}

.left {
  flex: 1;
  padding-right: 30px;
}

.right {
  flex: 1;
  padding-left: 30px;
}

.image {
  flex: 1;
  text-align: center;
}

.image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(255, 200, 100, 0.3);
  margin-left: 20px;
  margin-right: 20px;
}

.section-content p {
  padding-top: 15px;
  padding-bottom: 15px;
  margin: 0;
  line-height: 1.5;
}

.section-content .image img {
  margin-top: 30px;
}

/*============================
 Services Section Styles 
=============================*/
#services:nth-child(even) {
  background-color: #f9f9f9;
}

/* Container adjustments */
#services.container {
  padding-left: 20px;
  padding-right: 20px;
  max-width: 100%;
}

/* Layout tweaks */
#services .section-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-left: 30px;
  margin-right: 30px;
}

#services .left,
#services .right {
  padding-left: 0;
  padding-right: 0;
}

#services .image {
  display: flex;
  align-items: center;
  justify-content: center;
}

#services .image img {
  margin-left: 0;
  margin-right: 0;
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(255, 200, 100, 0.3);
}


/* Initial hidden state */
#services h2,
#services .section-content,
#services .left,
#services .right,
#services .image {
  opacity: 0;
  transition: all 0.9s ease;
}

/* Heading animation */
#services h2 {
  transform: translateY(50px);
}

/* Default transforms */
#services .left {
  transform: translateX(-60px);
}

#services .right {
  transform: translateX(60px);
}

#services .image {
  transform: scale(0.85);
}

/* When Services section becomes visible */
#services.show h2 {
  opacity: 1;
  transform: translateY(0);
}

/* Base reveal for each service block */
#services.show .section-content {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- First Service ---------- */
#services.show .section-content:nth-of-type(1) .left {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}

#services.show .section-content:nth-of-type(1) .image {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.6s;
}

/* ---------- Second Service ---------- */
#services.show .section-content:nth-of-type(2) .right {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}

#services.show .section-content:nth-of-type(2) .image {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.6s;
}

/* ---------- Third Service (optional) ---------- */
#services.show .section-content:nth-of-type(3) .left {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}

#services.show .section-content:nth-of-type(3) .image {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.6s;
}
/* ---------- Fourth Service ---------- */
#services.show .section-content:nth-of-type(4) .right,
#services.show .section-content:nth-of-type(4) .left {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}

#services.show .section-content:nth-of-type(4) .image {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.6s;
}

/* ---------- Fifth Service ---------- */
#services.show .section-content:nth-of-type(5) .left,
#services.show .section-content:nth-of-type(5) .right {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}

#services.show .section-content:nth-of-type(5) .image {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.6s;
}

/* Mobile fallback: ensure Services is visible even if JS reveal is delayed */
@media (max-width: 768px) {
  #services h2,
  #services .section-content,
  #services .left,
  #services .right,
  #services .image {
    opacity: 1 !important;
    transform: none !important;
  }

  #projects .project-item {
    opacity: 1 !important;
    transform: none !important;
  }

  #about h2,
  #about .section-content {
    opacity: 1 !important;
    transform: none !important;
  }

  #blogs .media-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/*============================
  Projects 
  ==============================*/

/* 1. Projects Fix: Ensure the container is truly full-width */
#projects.container {
  padding: 05px;
  /* Remove outer padding */
  max-width: 100%;
  /* Span full viewport */
}

/* Projects Section - Final Container Reset */
#projects {
  text-align: center;
  /* Centers the Heading and Paragraph */
  background-color: #fff;
  margin: 0;
  padding: 25px 0;
  /* Vertical breathing room */
  width: 100%;
  position: static;
  left: auto;
  right: auto;
  box-sizing: border-box;
}

/* Projects Section Alignment Fix (For the descriptive paragraph) */
#projects p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  padding: 0 15px;
}

#projects .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 35px;
  margin: 0 auto;
  /* ✅ GRID CENTERING: Centers the grid block */
  max-width: 1350px;
  /* Limits the grid width on large screens */
  padding: 0 25px;
  /* Internal padding to keep content off the screen edges */
  box-sizing: border-box;
}

.project-item {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #f8f8f8;
  padding-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project-item p {
  color: #8b4513;
  font-weight: bold;
  margin-top: 15px;
  /* increased for balance */
  font-size: 1.05rem;
  /* slightly bigger label */
}

.project-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.project-item img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
  border: 10px 10px 0 0;
}

.project-item p {
  color: #8b4513;
  font-weight: bold;
  margin-top: 12px;
}

/* Swiper Modal */
.swiper-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  /* Higher z-index for modal */
  justify-content: center;
  align-items: center;
}

.swiper-modal.active {
  display: flex;
}

.swiper {
  width: 90%;
  max-width: 900px;
  height: 70%;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.swiper-button-next,
.swiper-button-prev {
  color: white !important;
}

.modal-close-btn {
  /* Renamed for clarity and to avoid conflict */
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 10001;
}

.swiper-modal {
  z-index: 99999 !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  z-index: 100000 !important;
}

.swiper-pagination-bullet {
  background: #fff !important;
}
/* ===========================
   Projects Section Animation
=========================== */

/* Initial hidden state */
#projects .project-item {
  opacity: 0;
  transform: translateY(60px) scale(0.67);
  transition: all 0.8s ease;
}

/* When section becomes visible */
#projects.show .project-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger effect (one by one) */
#projects.show .project-item:nth-child(1) { transition-delay: 0.1s; }
#projects.show .project-item:nth-child(2) { transition-delay: 0.25s; }
#projects.show .project-item:nth-child(3) { transition-delay: 0.4s; }
#projects.show .project-item:nth-child(4) { transition-delay: 0.55s; }
#projects.show .project-item:nth-child(5) { transition-delay: 0.7s; }
#projects.show .project-item:nth-child(6) { transition-delay: 0.85s; }

/* Blogs reveal */
#blogs .media-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

#blogs.show .media-item {
  opacity: 1;
  transform: none;
}

#blogs.show .media-item:nth-child(1) { transition-delay: 0.1s; }
#blogs.show .media-item:nth-child(2) { transition-delay: 0.2s; }
#blogs.show .media-item:nth-child(3) { transition-delay: 0.3s; }
#blogs.show .media-item:nth-child(4) { transition-delay: 0.4s; }

@media (max-width: 768px) {
  #blogs .media-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}


/*==============================
 Blogs 
 =============================*/

#blogs {
  width: 100%;
  background: #f9f9f9;
  margin: 0;
  margin-top: 30px;
}

.blogs-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

#blogs h2 {
  text-align: center;
  font-weight: bold;
  color: #8b4513;
  margin-bottom: 60px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  justify-items: center;
}

.media-item {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 380px;
  margin-bottom: 30px;
}

.media-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.media-item img,
.media-item video {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.media-content {
  padding: 18px 20px;
  text-align: left;
}

.media-content p {
  color: #8b4513;
  font-size: 14px;
  margin: 0 0 8px 0;
}

.media-content small {
  color: #666;
  font-size: 15px;
}

.blog-lightbox {
  display: none;
  /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.blog-lightbox.active {
  display: flex;
}

/* Close Button */
.close-lightbox {
  position: absolute;
  top: 10px;
  right: 40px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  z-index: 10000;
}

.close-lightbox:hover {
  color: #ccc;
}

/* Image/Video Display Area */
.lightbox-content img,
.lightbox-content video {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Center alignment on smaller screens */
@media (max-width: 768px) {

  .lightbox-content img,
  .lightbox-content video {
    max-width: 95%;
    max-height: 75vh;
  }

  .close-lightbox {
    top: 15px;
    right: 20px;
    font-size: 30px;
  }
}

/*=========================
 Quote Section Styles 
 =========================*/

/* 1. General Button Styles */
button {
  background-color: #c7a435;
  /* Slightly richer gold */
  color: white;
  border: none;
  padding: 15px 30px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s, box-shadow 0.3s;
  font-weight: 700;
  font-size: large;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
  background-color: #a67c00;
  /* Warmer deep gold hover */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* 2. Get Quote Section Background */
.contact-container {
  background: linear-gradient(180deg,
      #f7f1e3 0%,
      /* soft beige top */
      #fff4e1 40%,
      /* creamy warm mid */
      #f3e6d5 100%
      /* soft tan bottom */
    );
  text-align: center;
  padding: 40px 25px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-content h2 {
  font-size: 2.3rem;
  font-weight: 700;
  color: #bf7a30;
  /* richer bronze tone */
  margin-bottom: 8px;
}

.contact-content p {
  font-size: 1.1rem;
  color: #4b3e2b;
  /* slightly darker text */
  max-width: 700px;
  margin: 0 auto 20px;
}

.contact-left p {
  text-align: center;
}

/* 3. Buttons */
.quote-open-btn,
.quote-btn {
  background-color: #c7a435;
  /* same gold tone */
  color: #fff;
  border: none;
  padding: 14px 45px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quote-open-btn:hover,
.quote-btn:hover {
  background-color: #a67c00;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 4. Quote Section Layout */
#quote-section {
  position: relative;
  display: none;
  padding: 40px 25px;
  background: #fdf8ef;
  border-top: 3px solid #e6c87c;
  border-bottom: 3px solid #e6c87c;
}

#quote-section.active {
  display: block;
}

/* 5. Close Button */
#close-quote-section {
  position: absolute;
  top: 15px;
  right: 35px;
  font-size: 30px;
  cursor: pointer;
  color: #a66f2e;
  z-index: 10;
  transition: color 0.3s ease;
}

#close-quote-section:hover {
  color: #d4af37;
}

/* 6. Quote Form */
#quote-form-section {
  max-width: 600px;
  margin: 25px auto;
  padding: 0 20px;
}

#quote-form-section input,
#quote-form-section select,
#quote-form-section textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #d8b566;
  border-radius: 6px;
  background-color: #fffefb;
  box-sizing: border-box;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#quote-form-section input:focus,
#quote-form-section select:focus,
#quote-form-section textarea:focus {
  border-color: #c7a435;
  box-shadow: 0 0 6px rgba(199, 164, 53, 0.3);
}

.quote-phone-fields {
  display: flex;
  gap: 10px;
}

.quote-phone-fields select {
  flex: 0 0 30%;
}

.quote-phone-fields input {
  flex: 1;
}

#other-requirements {
  display: none;
}

.thank-you-message {
  text-align: center !important;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
}

.thank-you-message h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #a67c00;
}

.thank-you-message p {
  font-size: 18px;
  max-width: 600px;
  margin: 10px auto;
  line-height: 1.5;
}

.thank-you-message button {
  display: inline-block;
  margin-top: 20px;
}

.thank-you-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.thank-you-message p {
  text-align: center !important;
  width: 100%;
  margin: 10px auto;
  line-height: 1.6;
}

/*=========================
 Contact 
 ==========================*/
#contact {
  margin-top: 0;
  text-align: center;
  margin-bottom: 15px;
}

#contact form {
  max-width: 600px;
  margin: 20px auto;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

#contact textarea {
  resize: vertical;
}

#contact p {
  text-align: center;
}

/* End of Contact */

/*======================
 Footer 
 =======================*/
footer {
  background: #333;
  color: white;
  padding: 0;
}

/* ------------------------------
   Footer main container
------------------------------ */
footer .container {
  max-width: 100%;
  padding: 20px 30px;
  /* ✅ Increased side padding for balance */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ------------------------------
   Left side (logo + address)
------------------------------ */
.footer-left {
  display: flex;
  align-items: flex-start;
  margin-right: 0x;
  /* ✅ gives a little push away from center */
}

.footer-left img {
  width: 110px;
  height: 110px;
  margin-right: 10px;
  margin-left: -20px;
}

.footer-left p {
  margin: 2px 2px;
  font-size: 0.9em;
}

/* Highlight "Tanva Designs" text inside footer */
.footer-left p strong {
  font-size: 24px;
  /* ✅ slightly larger text */
  color: #f5c542;
  /* ✅ gold color (same as icons for consistency) */
  letter-spacing: 0.5px;
  /* ✅ small spacing for elegant look */
}

/* ------------------------------
   Right side (social + copyright)
------------------------------ */
.footer-right {
  text-align: right;
  margin-left: 10px;
  /* ✅ balances spacing from right side */
  margin-right: -20px;
}

.social-icons a {
  margin: 0 10px;
  color: #daa520;
  font-size: 35px;
  text-decoration: none;
  transition: color 0.3s;
}

/* LinkedIn */
.social-icons a[aria-label="LinkedIn"]:hover {
  background-color: #0a66c2;
}

.social-icons a[aria-label="Instagram"]:hover {
  color: #e1306c;
  /* Instagram Pinkish Red */
}

/* WhatsApp */
.social-icons a[aria-label="WhatsApp"]:hover {
  color: #25d366;
  /* WhatsApp Green */
}

/* Gmail */
.social-icons a[aria-label="Gmail"]:hover {
  color: #d93025;
  /* Gmail Red */
}

/* ------------------------------
   Footer Credit
------------------------------ */
.footer-credit {
  text-align: center;
  width: 100%;
  background-color: #333;
  /* same background */
  margin-top: -30px;
  /* ✅ reduces gap above */
  padding-bottom: 12px;
  font-size: 0.95rem;
  color: white;
  line-height: 1.2;
}

.footer-credit p {
  text-align: center;
  margin: 0;
  /* ✅ removes default paragraph space */
}

.footer-credit a {
  color: #f5c542;
  text-decoration: none;
  margin-left: 4px;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/*=========================
 End of Footer 
 =========================*/

/* Desktop / Large Screens (default state) */
.menu-toggle {
  display: none;
  /* Hide the hamburger by default */
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 10001;
}

/* When header becomes active (scrolled) */
.header.active .menu-toggle {
  color: black;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  /* ✅ stop side scroll */
}

/*======================================================
  MOBILE FIRST RESPONSIVE ADJUSTMENTS (MAX 768px)
========================================================*/

@media only screen and (max-width: 768px) {

  /* 1. General Container & Body Padding */
  body {
    /* Reduce top padding as header is usually smaller on mobile */
    padding-top: 60px;
  }

  .container {
    /* Increase default side padding for better edge spacing */
    padding: 0 15px;
  }

  section {
    scroll-margin-top: 60px !important;
    /* header height on mobile */
  }

  /* 2. Header & Navigation */
  .header {
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    /* Pushes Logo (order: 2) and Toggle (order: 1) to opposite ends */
    align-items: center;
    padding: 10px 25px;
  }

  .header .container {
    height: 60px;
    /* Smaller header height */
    flex-direction: row;
    /* Ensure logo/nav are standard LTR */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* logo left, menu right */
    padding-left: 6px !important;
    /* 🔥 near edge */
    padding-right: 6px !important;
  }

  /* Ensure the Menu Toggle button is on the left end */
  #menu-toggle {
    order: 2;
    /* Puts the toggle button on the far left */
    display: block;
    /* Make sure the button is visible on mobile */
    /* ... other styles for button appearance ... */
    font-size: 28px;
    margin-left: auto !important;
    /* 🔥 force push right */
    margin-right: 15px !important;
    padding-right: 15px !important;
    cursor: pointer;
  }

  .header .logo img {
    height: 70px;
    width: 70px;
    margin-right: 20px;
    /* Remove negative margin for logo */
  }

  /* Fix: ensure parent .logo doesn't keep negative margin from desktop rules */
  .header .logo {
    order: 1;
    margin-left: 0 !important;
  }

  /* Make logo image responsive and auto-adjust to viewport */
  .header .logo img {
    width: auto;
    height: auto;
    max-height: 90px;
    /* cap height on mobile */
    max-width: 100%;
    display: block;
  }

  header nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    gap: 20px;
  }

  header nav.open {
    transform: translateX(0);
    display: flex;
    /* Show the menu when the 'open' class is applied by JS */
  }

  .header.active {
    /* Ensure the active header state works with new height */
    height: 60px;
  }

  .header.active nav a {
    margin-bottom: -10px;
  }

  header nav a {
    display: inline-block !important;
    /* avoid full width */
    width: auto !important;
    text-align: center;
    position: relative;
  }

  header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    /* starts hidden */
    height: 2px;
    background-color: #ff4001;
    transition: width 0.3s ease;
  }

  header nav a.active::after,
  header nav a:hover::after {
    width: 100%;
    /* underline = width of the text only */
  }

  header nav a,
  header nav a.active {
    color: white !important;
    /* always white */
  }

  #site-logo {
    background: #0c0237;
    /* light shade if you want */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin-right: 70px;
    top: 10px;
    position: static;
    /* remove absolute positioning */
    margin-left: 0 !important;
    padding: 0 !important;
    width: 46px;
    height: 46px;
  }

  #site-logo img {
    width: 100%;
    /* reduce image size for mobile */
    height: auto;
    margin-left: 0 !important;
    display: block;
  }

  header,
  .navbar,
  .top-header {
    height: auto !important;
    /* prevent cutting */
  }

  /* 3. Home Section */
  #home {
    margin-top: -70px;
    /* Counteract new body padding-top */
  }

  #home .content h1 {
    font-size: 2em;
  }

  #home .content p {
    font-size: 1em;
    margin-bottom: 25px;
  }

  #home .content button {
    /* Stack buttons vertically on small screens */
    display: block;
    width: 80%;
    margin: 10px auto;
  }

  .scroll-arrow-link {
    bottom: 50px;
    /* Move arrow up slightly */
  }

  /* 4. Section Headings */
  #about h2,
  #services h2,
  #projects h2,
  #blogs h2,
  #contact h2 {
    font-size: 30px;
    margin-bottom: 20px;
  }

  /* 5. About & Services Sections (Layout Flip) */
  #about,
  #services {
    padding-left: 0;
    padding-right: 0;
  }

  .section-content {
    /* Stack text and image vertically */
    gap: 20px;
    margin-left: 0;
    margin-right: 0;
  }

  /* 📌 Correct Mobile Layout – About Section */

  /* Stack items vertically */
  #about .section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* Text Blocks */
  #about .left,
  #about .right {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Paragraph text should be clean and wrapped */
  #about .section-content p {
    width: 100%;
    padding: 0 5px !important;
    margin: 0 0 12px 0;
    text-align: justify;
    line-height: 1.6;
    word-break: break-word;
  }

  /* Image full width & centered */
  #about .image {
    order: -1;
    /* image comes first */
    width: 100%;
    margin: 0;
    padding: 0;
  }

  #about .image img {
    width: 100%;
    max-width: 100%;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block;
    border-radius: 10px;
  }

  #services .section-content .left,
  #services .section-content .right {
    padding: 0 2px;
    /* Use smaller screen padding */
    max-width: 100%;
    width: 100%;
  }

  #services .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    /* remove side padding */
  }

  #services .section-content {
    display: flex;
    flex-direction: column;
    /* stack image + text vertically */
    gap: 18px;
    /* reduce gap for mobile */
    width: 100%;
    margin: 0;
    padding: 0;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  #services .image {
    order: -1;
    /* image first */
    width: 100%;
    margin: 0;
    padding: 0;
  }

  #services img {
    width: 100%;
    height: auto;
    border-radius: 0;
    /* remove curved corners if not needed */
    display: block;
  }

  #services p {
    padding: 0 10px;
    /* small breathing space for text */
    text-align: justify;
  }

  #services .section-content button {
    display: block;
    margin: 20px auto 20px auto;
    /* top, right, bottom, left */
    width: 80%;
    max-width: 280px;
    font-size: 0.9rem;
    /* smaller text */
    padding: 10px 20px;
    /* smaller padding */
    border-radius: 4px;
    /* slightly reduced roundness */
    margin: 15px auto 20px;
    /* good spacing top & bottom */
    display: block;
    width: auto;
    /* don't stretch full width */
    min-width: 180px;
  }

  /* Optional: add extra space between the text and button */
  #services .section-content .left p {
    margin-bottom: 15px;
  }

  .image {
    width: 100%;
  }

  .image img {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 6. Projects Section */
  #projects {
    /* Reset the desktop full-width hacks */
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 0 10px;
  }

  #projects .grid {
    grid-template-columns: 1fr;
    /* single column for mobile */
    gap: 25px;
  }

  .project-item img {
    height: 220px;
    /* slightly smaller height for phones */
  }

  /* Ensure good vertical space above and below Projects and Blogs */
  #projects {
    padding: 40px 0;
    /* Increased vertical padding for separation */
  }

  #blogs {
    padding: 40px 0;
    /* Increased vertical padding for separation */
  }

  /* Reduce vertical padding for generic sections to keep it tight elsewhere */
  #about,
  #services,
  #contact {
    padding: 30px 0;
  }

  /* 7. Blogs Section */
  .blogs-container {
    padding: 0 15px;
  }

  .media-grid {
    /* Ensure single-column layout on small screens */
    grid-template-columns: 1fr;
  }

  .media-item {
    max-width: 100%;
  }

  /* 8. Quote/Contact Forms */
  #contact form,
  #quote-form-section {
    padding: 0 15px;
  }

  .phone-fields {
    flex-direction: row;
    /* Keep the country code next to input */
  }

  /* Reduce contact form top space */
  #contact {
    margin-top: 0 !important;
    padding-top: 10px !important;
    /* Reduced from large spacing */
  }

  /* Reduce padding inside the form container */
  #contact form {
    margin-top: 10px !important;
    padding-top: 0 !important;
  }

  /* Fix scroll-offset so clicking menu → Contact aligns properly */
  #contact {
    scroll-margin-top: 60px !important;
    /* matches mobile header height */
  }

  #quote {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* ============================
   FOOTER — PERFECT MOBILE VIEW
   ============================ */
@media only screen and (max-width: 768px) {
  footer {
    padding: 0;
  }

  footer .container {
    max-width: 100%;
    padding: 25px 20px;
    display: flex;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  /* Reduce spacing between logo and text */
  .footer-left img {
    margin-bottom: 5px !important;
    /* was 10px or more */
  }

  /* Reduce spacing between title and address lines */
  .footer-left p {
    margin: 2px 0 !important;
    /* tight paragraph spacing */
    line-height: 1.3 !important;
    /* closer line spacing */
  }

  /* Reduce title-specific gap */
  .footer-left p strong {
    margin-bottom: 4px !important;
    display: block;
  }

  /* Reduce padding around whole footer container */
  footer .container {
    padding-top: 10px !important;
    padding-bottom: 5px !important;
  }

  /* Reduce gap between logo and "Tanva Designs" title */
  footer .footer-left img {
    margin-bottom: 3px !important;
    /* reduce gap below logo */
  }

  /* Reduce gap above & below the title */
  footer .footer-left p strong {
    display: block;
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    /* reduce space below title */
    line-height: 1.2 !important;
  }

  /* Reduce spacing for all footer paragraphs */
  footer .footer-left p {
    margin: 2px 0 !important;
    line-height: 1.3 !important;
  }

  /* Footer Left Section */
  .footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
  }

  .footer-left img {
    width: 100px;
    height: auto;
    margin: 0 auto 10px;
  }

  .footer-left p {
    margin: 2px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
  }

  .footer-left p strong {
    font-size: 22px;
    line-height: 1;
  }

  /* Footer Right Section */
  .footer-right {
    text-align: center;
    margin-top: 10px;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 12px;
  }

  .social-icons a {
    font-size: 30px;
  }

  .footer-right p {
    font-size: 0.9rem;
    margin-top: 8px;
  }

  /* Footer Credit */
  .footer-credit {
    margin-top: 15px !important;
    padding: 12px 0;
    font-size: 0.9rem;
    text-align: center;
  }

  .footer-credit p {
    margin: 0;
  }

  /* Remove large space between copyright and developer credit */
  .footer-credit {
    margin-top: 2px !important;
    padding-top: 2px !important;
  }

  footer .container {
    padding-bottom: 10px !important;
    /* reduces bottom spacing */
  }

  /* Make text closer & visually clean */
  .footer-credit p {
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* ======================================================
   UNIVERSAL RESPONSIVE FIX — FLUID ADJUSTMENTS
   Applies to all sections between desktop & mobile widths
   ====================================================== */
@media (max-width: 1200px) and (min-width: 769px) {

  /* ---- 1. Global Container ---- */
  .container,
  #about .container,
  #services .container,
  #projects .container,
  #blogs .container,
  #contact .container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
  }

  /* ---- 2. Section Content (About / Services) ---- */
  #about .section-content,
  #services .section-content {
    flex-wrap: wrap;
    /* Let items wrap naturally */
    justify-content: space-between;
    gap: 25px;
    margin: 0;
    padding: 0 20px;
  }

  #about .left,
  #about .right,
  #services .left,
  #services .right {
    flex: 1 1 48%;
    /* Two equal halves that scale */
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* ---- 3. Image Responsiveness ---- */
  #about .image img,
  #services .image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
  }

  /* ---- 4. Prevent text overflow ---- */
  p,
  h1,
  h2,
  h3 {
    word-wrap: break-word;
  }

  /* ---- 5. Adjust grids for projects/blogs ---- */
  #projects .grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px;
  }

  #blogs .media-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

/* ⭐ Ensure Logo Is ALWAYS VISIBLE on all screen sizes */
header .logo,
header .logo img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: 120px;
}

/* ⭐ Prevent flex from hiding it between 768px–992px */
@media screen and (max-width: 992px) {
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  header .logo {
    flex-shrink: 0 !important;
    margin-left: 10px;
  }
}

/* ⭐ Prevent logo being pushed out of screen on mid sizes */
@media screen and (min-width: 768px) and (max-width: 992px) {
  nav.desktop-menu {
    flex-grow: 1;
    text-align: center;
  }
}

/* Desktop Navigation Visible */
@media only screen and (min-width: 769px) {
  header nav {
    display: flex !important;
    position: static;
    height: auto;
    background: transparent !important;
    transform: none !important;
  }
}

/* =====================================
   MOBILE: SOCIAL ICONS EXTREME RIGHT
===================================== */
@media only screen and (max-width: 768px) {
  .home-social-icons {
    position: absolute;
    right: 4px !important;
    /* 🔥 EXTREME RIGHT */
    bottom: 70px;
    display: flex;
    flex-direction: column;
    /* vertical */
    align-items: center;
    gap: 12px;
    padding: 0 !important;
    margin: 0 !important;
  }

  .home-social-icons a {
    width: 36px;
    height: 36px;
    font-size: 19px;
    margin: 0 !important;
  }
}

/* =====================================
   MOBILE: SOCIAL ICONS START BELOW CTA
===================================== */
@media only screen and (max-width: 768px) {

  /* Home must be reference */
  #home {
    position: relative;
  }

  .home-social-icons {
    position: absolute;
    right: 6px;
    /* 🔥 extreme right */

    /* 🔑 KEY LOGIC */
    top: 50%;
    /* same vertical zone as CTA */
    transform: translateY(165px);
    /* 🔥 push BELOW button height */

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 15;
  }

  .home-social-icons a {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }
}

/* ======================================
   MOBILE TEXT ALIGNMENT FIX (360px)
====================================== */
@media only screen and (max-width: 768px) {

  /* Fix heading alignment */
  .section-content h2,
  .section-content h3 {
    width: 100% !important;
    text-align: left !important;
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 12px;
  }
}

/* =====================================
   FOOTER CREDIT LINE GAP FIX (MOBILE)
===================================== */
@media only screen and (max-width: 768px) {
  .footer-credit {
    margin-top: 2px !important;
    padding-bottom: 2px !important;
  }

  .footer-credit p {
    margin: 0 !important;
    /* 🔥 removes extra space */
    font-size: 13px;
  }

  /* Reduce gap specifically between the two lines */
  .footer-credit p+p {
    margin-top: 2px !important;
    /* 🔥 minimal gap */
  }
}

/* =====================================
   MOBILE FOOTER LOGO SPACING FIX
===================================== */
@media only screen and (max-width: 768px) {

  /* Reduce footer padding */
  footer {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* Reduce container spacing */
  footer .container {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* Footer logo wrapper */
  .footer-left {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
  }

  /* Footer logo image */
  .footer-left img {
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    display: block;
  }

  /* Tanva Designs text below logo */
  .footer-left p strong {
    margin-top: 2px !important;
    margin-bottom: 4px !important;
    line-height: 0.75 !important;
  }
}

/* =====================================
   MOBILE FOOTER LOGO GAP REMOVAL
===================================== */
@media only screen and (max-width: 768px) {

  /* Remove extra footer padding */
  footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  footer .container {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  /* Footer logo wrapper */
  .footer-left {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Logo image */
  .footer-left img {
    display: block;
    margin-top: 0 !important;
    margin-bottom: 2px !important;
  }

  /* Text below logo */
  .footer-left p strong {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    line-height: 1.15 !important;
  }
}
