/* Global Styles */
:root {
  --primary: #1a1d28;
  --secondary: #c8a951;
  --accent: #a38560;
  --light: #f9f7f4;
  --dark: #0d0e13;
  --text: #333333;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  overflow-x: hidden;
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--light);
  text-decoration: none;
  border: 2px solid var(--light);
  font-weight: 600;
  letter-spacing: 1.5px;
  transition: var(--transition);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 14px;
}

.btn:hover {
  background: var(--light);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-filled {
  background: var(--secondary);
  border: 2px solid var(--secondary);
  color: var(--primary);
}

.btn-filled:hover {
  background: transparent;
  color: var(--light);
}

.btn-dark {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: var(--light);
}

.btn-dark:hover {
  background: transparent;
  color: var(--primary);
}

.section-padding {
  padding: 120px 0;
}

.section-subtitle {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--secondary);
  margin-bottom: 20px;
  font-weight: 500;
}

.section-title {
  font-size: 48px;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 4px;
  background: var(--secondary);
  bottom: -15px;
  left: 0;
}

.text-center {
  text-align: center;
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Header & Navigation */

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px; /* Increased size */
  height: auto;
  margin-right: 20px;
  transition: var(--transition);
}

.logo img {
  max-height: 100px; /* Increased base height */
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

header.scrolled .logo img {
  max-height: 60px; /* Increased scrolled height */
}

img.logo.large {
  height: 80px; /* Adjusted for larger logo */
}

img.logo.small {
  margin-top: 10px;
  height: 50px; /* Adjusted for small logo */
}

@media (max-width: 768px) {
  .logo {
    width: 200px; /* Adjusted for smaller screens */
  }

  header .logo img {
    height: 80px; /* Larger for mobile */
  }

  header.scrolled .logo img {
    height: 50px; /* Slightly smaller when scrolled */
  }
}

@media (max-width: 576px) {
  .logo {
    display: flex; /* Keep logo visible */
    width: 180px; /* Smaller but visible */
  }

  header .logo img {
    height: 60px;
  }

  header.scrolled .logo img {
    height: 40px;
  }
}

/* End Shrinking */

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: transparent;
  transition: transform 0.3s ease,
    background 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.hidden {
  transform: translateY(-100%);
}

.nav-links.active {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: none;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
}

.logo1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--light);
  font-family: "Playfair Display", serif;
  transition: var(--transition);
  display: none;
}

header.scrolled .logo {
  color: var(--primary);
}

.logo1 span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 40px;
}

.nav-links a {
  text-decoration: none;
  color: var(--light);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.5px;
}

header.scrolled .nav-links a {
  color: var(--primary);
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--light);
  background: transparent;
  border: none;
  padding: 0; /* Removes any default button padding */
}

header.scrolled .menu-toggle {
  color: var(--primary);
}

/* Add these styles to your Style.css */

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  perspective: 1px; /* Creates the 3D space for parallax */
  transform-style: preserve-3d;
  /*background: linear-gradient(rgba(13, 14, 19, 0.7), rgba(13, 14, 19, 0.7));*/
  background-image: linear-gradient(303.28deg, #053860 23.08%, #0b4d80 92.68%);
  /* background-image: linear-gradient(
    90deg,
    #907e68,
    #d6cab8,
    #8a7a68,
    #c9baae,
    #8a7b6c
  ) !important;*/
}
/*Add this new CSS for the background 
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      rgba(13, 14, 19, 0.7),
      rgba(13, 14, 19, 0.7)
    ),
    url("Photos/HOUSE1.jpg");
  background-size: cover;
  background-position: center;
  transform: translateZ(-1px) scale(2); 
  z-index: -1;
}*/
/* 3. Ensure your hero content is positioned correctly */
.hero-content {
  max-width: 800px;
  padding: 0 40px;
  color: var(--light);
  z-index: 1; /* Make sure content is in front of the background */
}

.hero-content {
  max-width: 800px;
  padding: 0 40px;
  color: var(--light);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-content.hero-content-hidden {
  opacity: 0;
  transform: translateY(-20px); /* Moves it up slightly when hidden */
}
.hero-subtitle {
  /*font-size: 18px;*/
  font-size: 70px;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
  color: var(--secondary);
  font-weight: 500;
}

.hero-title {
  font-size: 50px;
  margin-bottom: 30px;
  line-height: 1.1;
  font-weight: 700;
  background-image: linear-gradient(
    90deg,
    #907e68,
    #d6cab8,
    #8a7a68,
    #c9baae,
    #8a7b6c
  ) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(0, 0, 0, 0);
}

.hero-text {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 600px;
  opacity: 0.9;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--light);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-icon {
  width: 30px;
  height: 50px;
  border: 2px solid var(--light);
  border-radius: 50px;
  margin-bottom: 10px;
  position: relative;
}

.scroll-icon::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: var(--light);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    top: 10px;
    opacity: 1;
  }
  50% {
    top: 20px;
    opacity: 0.5;
  }
  100% {
    top: 10px;
    opacity: 1;
  }
}

/* About Section */
.about {
  position: relative;
  background: var(--light);
  padding: 120px 0;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-image {
  flex: 1;
  position: relative;
  z-index: 1;
}

.about-img-main {
  width: 100%;
  height: 600px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
}

.about-img-overlay {
  position: absolute;
  top: 50px;
  left: -50px;
  width: 300px;
  height: 200px;
  background: var(--secondary);
  z-index: -1;
}

.about-content {
  flex: 1;
}

.about-text {
  margin-bottom: 40px;
  font-size: 18px;
  font-weight: 300;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.stat-item {
  display: flex;
  align-items: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--secondary);
  margin-right: 15px;
  font-family: "Playfair Display", serif;
}

.stat-text {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 120px;
}

/* --- Staggered Fade-In Animation for Scroll --- */

/* 1. Define the initial, "hidden" state of the items */
.fade-in-item {
  opacity: 0;
  transform: translateY(20px); /* Start slightly lower */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 2. Define the final, "visible" state */
.fade-in-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-item.visible {
  transition-delay: var(--stagger-delay, 0s);
}

/* Portfolio Section */
.portfolio {
  background: #f0ede8;
  padding: 120px 0;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.portfolio-filter {
  padding: 10px 25px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 14px;
}

.portfolio-filter.active,
.portfolio-filter:hover {
  background: var(--primary);
  color: var(--light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  height: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 29, 40, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  color: white;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--secondary);
}

.portfolio-category {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

/* Services Section */
.services {
  padding: 120px 0;
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  text-align: center;
  padding: 40px 30px;
  transition: var(--transition);
  border-radius: 5px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
  font-size: 60px;
  color: var(--secondary);
  margin-bottom: 25px;
}

.service-title {
  font-size: 24px;
  margin-bottom: 20px;
}

.service-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: #666;
}
/*Process Section */

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.container_process {
  max-width: 1200px;
  width: 100%;
}
.ourprocess {
  padding: 120px 0;
  /*background: linear-gradient(355.3deg, #85e1c0 1.83%, #1d9e60 122.15%);*/
  background: linear-gradient(355.3deg, #f8ecd7 1.83%, #fef5e6 122.15%);
  /*color: white;*/

  text-align: center;
}
.process {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding: 120px 0;
  background: linear-gradient(
    90.13deg,
    #d1aad7 0.11%,
    #c88bc4 25.06%,
    #7b8fdd 50%,
    #86bff2 74.8%,
    #bbdef2 99.76%
  );
  color: white;
  text-align: center;
}

.process h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  position: relative;
  display: inline-block;
}

.process h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border-radius: 2px;
  box-shadow: 0 0 10px #0072ff;
}

.process p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

.process-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  perspective: 1000px;
}

.process-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 30px;
  width: 100%;
  max-width: 350px;
  min-height: 380px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  cursor: pointer;
}

.process-card:hover {
  transform: translateY(-15px) rotateY(5deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

/*.process-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 60%
  );
  transform: rotate(30deg);
  pointer-events: none;
}*/

.process-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.process-card:hover::before {
  left: 100%;
}

.process-card.active {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3.5rem;
  font-weight: 800;
  opacity: 0.15;
  color: #fff;
  z-index: 1;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
  font-size: 28px;
}

.process-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.process-card h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #eeb24a, #fef5e6);
  border-radius: 2px;
}

.process-card p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-top: 20px;
}

.divider {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  margin: 30px auto;
  border-radius: 3px;
}

.connector-line {
  position: absolute;
  top: 50%;
  right: -25px;
  height: 2px;
  width: 25px;
  background: rgba(255, 255, 255, 0.3);
  z-index: -1;
}

.connector-line::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.mobile-divider {
  display: none;
  width: 2px;
  height: 30px;
  background: rgba(255, 255, 255, 0.3);
  margin: 20px auto;
  border-radius: 3px;
}

/* Responsive design */
@media (max-width: 1100px) {
  .process-card:nth-child(3) .connector-line {
    display: none;
  }

  .connector-line {
    right: -15px;
    width: 15px;
  }
}

@media (max-width: 900px) {
  .process-container {
    flex-direction: column;
    align-items: center;
  }

  .connector-line {
    display: none;
  }

  .mobile-divider {
    display: block;
  }

  .process-card {
    max-width: 500px;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1rem;
  }

  .process-card {
    padding: 25px;
    min-height: 350px;
  }
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.floating.delay-1 {
  animation-delay: 0.5s;
}
.floating.delay-2 {
  animation-delay: 1s;
}
.floating.delay-3 {
  animation-delay: 1.5s;
}
.floating.delay-4 {
  animation-delay: 2s;
}
.floating.delay-5 {
  animation-delay: 2.5s;
}
.floating.delay-6 {
  animation-delay: 3s;
}

/* Carousel Section */

.carousel-section {
  background: #fef5e6;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0 80px; /* Added bottom padding for controls */
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 30px;
  padding: 30px 20px;
  scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.carousel-card {
  scroll-snap-align: start;
  min-width: 300px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  flex: 0 0 auto;
}

.carousel-card:hover {
  transform: translateY(-15px);
}

.carousel-image {
  width: 100%;
  height: 100%;
  position: absolute;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-card:hover .carousel-image {
  transform: scale(1.1);
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(to top, rgb(249, 249, 250), transparent);*/
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: all 0.5s ease;
  opacity: 1;
}

.carousel-card:hover .carousel-overlay {
  background: rgba(26, 29, 40, 0.85);
  height: 100%;
  justify-content: center;
}

.carousel-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.carousel-card:hover .carousel-title {
  transform: translateY(-40px);
  font-size: 2rem;
}

.carousel-desc {
  font-size: 1rem;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  color: #ddd;
}

.carousel-card:hover .carousel-desc {
  max-height: 200px;
  opacity: 0.9;
  transform: translateY(-20px);
}

.carousel-controls-container {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.carousel-navigation {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 15px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: none;
  position: relative; /* For proper z-index stacking */
  z-index: 10; /* Ensure buttons stay above other elements */
}
.carousel-btn:hover {
  background: white;
  transform: translateY(-3px);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0; /* Remove previous margin */
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: var(--secondary); /* Gold color for active state */
  transform: scale(1.3);
}
#indicators {
  display: flex;
  justify-content: center;
}

/* Lightbox Styles */
.lightbox {
  z-index: 2000; /* Higher than header */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: auto;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  color: white;

  text-align: center;
  font-size: 1.2rem;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;

  background: rgba(0, 0, 0, 0.8);
  padding: 15px 30px;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
}
.lightbox-caption h3 {
  color: #c8a951;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

/* Lightbox Navigation Buttons */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
  transition: all 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
  background: var(--secondary);
  color: var(--primary);
}

.prev-btn {
  left: 30px;
}

.next-btn {
  right: 30px;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.close-btn:hover {
  color: var(--secondary);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .carousel-card {
    min-width: 280px;
    height: 380px;
    /* background: rgba(26, 29, 40, 0.85); Dark background for text-only view */
  }
  .carousel-image {
    display: block; /* To show only the imageon mobile */
  }

  .carousel-overlay {
    background: transparent; /* Remove gradient overlay */
    justify-content: center; /* Center text vertically */
    height: 100%;
    padding: 20px;
    display: none;
  }

  .carousel-title {
    transform: translateY(0); /* Reset transform for mobile */
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .carousel-desc {
    max-height: 200px; /* Always show description */
    opacity: 0.9;
    transform: translateY(0); /* Reset transform for mobile */
    font-size: 0.9rem;
  }

  .carousel-card:hover .carousel-image {
    display: none; /* Ensure image stays hidden on hover */
  }

  .carousel-card:hover .carousel-overlay {
    background: transparent; /* Maintain transparent background on hover */
  }

  .carousel-card:hover .carousel-title {
    transform: translateY(0); /* Prevent transform on hover */
    font-size: 1.6rem;
  }

  .carousel-card:hover .carousel-desc {
    transform: translateY(0); /* Prevent transform on hover */
  }
}

/* Testimonials Section */
.testimonials {
  padding: 120px 0;
  background: linear-gradient(rgba(26, 29, 40, 0.9), rgba(26, 29, 40, 0.9)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3")
      center/cover;
  color: white;
  text-align: center;
}

.testimonials .section-title {
  color: white;
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  padding: 30px;
}

.testimonial-text {
  font-size: 24px;
  font-style: italic;
  margin-bottom: 30px;
  line-height: 1.6;
  position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 60px;
  color: var(--secondary);
  opacity: 0.3;
  position: absolute;
  line-height: 1;
}

.testimonial-text::before {
  top: -20px;
  left: -20px;
}

.testimonial-text::after {
  bottom: -40px;
  right: -20px;
}

.client-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.client-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.client-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.client-company {
  font-size: 14px;
  opacity: 0.8;
}

/* Contact Section */
.contact {
  padding: 120px 0;
  background: var(--light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.contact-info h3 {
  font-size: 28px;
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-text {
  font-size: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  font-size: 16px;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--light);
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 20px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary);
}

.footer-links li {
  list-style: none;
  margin-bottom: 15px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.7;
}

/* PDF Download Button */
.pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 25px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
}

.pdf-download:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1100px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .about-container,
  .contact-wrapper {
    flex-direction: column;
    gap: 50px;
  }

  .hero-title {
    font-size: 56px;
  }

  .section-title {
    font-size: 42px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .logo1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--light);
    font-family: "Playfair Display", serif;
    transition: var(--transition);
  }

  header.scrolled .logo {
    color: var(--primary);
  }

  .logo1 span {
    color: var(--secondary);
  }
  .menu-toggle {
    display: block;
  }
  header .logo img {
    height: 60px; /* Adjust initial mobile height if needed */
  }

  header.scrolled .logo img {
    height: 40px; /* Keep the scrolled height consistent */
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--light);
    background-color: #0b4d80;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-btns {
    flex-direction: column;
  }

  .section-title {
    font-size: 36px;
  }

  .about-img-overlay {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  /* .logo {
    display: none;
  }*/
  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .stat-number {
    font-size: 36px;
  }

  .hero-subtitle,
  .section-subtitle {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .portfolio-filters {
    flex-wrap: wrap;
  }
}
