/* =====================
   ROOT & VARIABLES
   ===================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #003d7a;
  --primary-accent: #a63545;
  --secondary: #e8b923;
  --light-bg: #e8f4f8;
  --white: #ffffff;
  --gray-text: #666666;
  --gray-light: #f5f5f5;
  --gray-border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 12px 40px rgba(0, 61, 122, 0.2);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #003d7a 0%, #0052a3 100%);
  --gradient-accent: linear-gradient(135deg, #a63545 0%, #8b2a38 100%);
  --gradient-light: linear-gradient(135deg, #e8f4f8 0%, #d0e8f2 100%);
}

/* =====================
   TYPOGRAPHY & BASE
   ===================== */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Cairo", sans-serif;
  line-height: 1.7;
  color: var(--gray-text);
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title {
  text-align: center;
  color: var(--primary-dark);
  margin-bottom: 50px;
  font-size: 2.8rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary);
}

/* =====================
   CONTAINER & LAYOUT
   ===================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.text-center {
  text-align: center;
}

/* =====================
   BUTTONS
   ===================== */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
}

.responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 968px) {
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--primary);
  font-weight: 700;
}

.btn-primary:hover {
  background-color: #c9a227;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* =====================
   HEADER & NAVIGATION
   ===================== */

.header {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  min-height: 60px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  width: 60px !important;
  height: auto !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease;
}

.header.scrolled .logo img {
  filter: none;
}

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
  letter-spacing: 0px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header.scrolled .nav-link {
  color: var(--primary-dark);
  text-shadow: none;
}

.nav-link:hover::before {
  width: 60%;
}

.nav-link:hover {
  color: #e8b923;
}

.nav-link.active {
  color: #e8b923;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
  color: var(--primary-accent);
}

.header.scrolled .nav-link.contact-link,
.header.scrolled .nav-link.contact-link:hover,
.header.scrolled .nav-link.contact-link.active {
  color: var(--white);
}

.nav-link.contact-link {
  background: var(--primary-accent);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.nav-link.contact-link:hover {
  background: #8b2a38;
  color: var(--white);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  /* Above mobile nav */
}

.header.scrolled .mobile-toggle {
  color: var(--primary-dark);
  text-shadow: none;
}

/* Responsive Header */
@media (max-width: 968px) {
  .mobile-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 100px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav-link {
    color: var(--primary-dark) !important;
    text-shadow: none !important;
    font-size: 18px;
    width: 100%;
    text-align: right;
    padding: 15px 30px;
    border-bottom: 1px solid #eee;
  }

  .nav-link.contact-link {
    margin: 20px;
    width: calc(100% - 40px);
    text-align: center;
    border-bottom: none;
  }
}

/* =====================
   HERO SECTION
   ===================== */

.hero {
  background-image:
    linear-gradient(to left,
      rgba(10, 15, 25, 0.95) 0%,
      rgba(15, 25, 45, 0.75) 45%,
      rgba(0, 0, 0, 0.1) 100%),
    url("../images/main-page/hero-luxury-interior.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 180px 0 100px 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

/* Page-specific hero backgrounds */
.hero-petrofly {
  background-image:
    linear-gradient(to left,
      rgba(10, 20, 40, 0.4) 0%,
      rgba(10, 20, 40, 0.4) 100%),
    url("../images/photos_1/image.png");
}

.hero-taj-city {
  background-image:
    linear-gradient(to left,
      rgba(10, 20, 40, 0.4) 0%,
      rgba(10, 20, 40, 0.4) 100%),
    url("../images/photos_3/Taj City New Cairo.avif");
}

.hero-sarai {
  background-image:
    linear-gradient(to left,
      rgba(10, 20, 40, 0.4) 0%,
      rgba(10, 20, 40, 0.4) 100%),
    url("../images/photos_1/one.webp");
}

.hero-background {
  display: none;
}

.hero-overlay {
  display: none;
}

.hero-content {
  display: flex;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  flex-direction: row-reverse;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

.contact-form-box {
  background: rgba(0, 61, 122, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 40px 35px;
  border-radius: 20px;
  min-width: 380px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  animation: float 6s ease-in-out infinite, fadeInUp 1s ease-out;
}

.contact-form-box label {
  display: block;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 15px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: none;
  border-radius: 5px;
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  background: var(--white);
  color: var(--gray-text);
}

.form-input:focus {
  outline: 2px solid rgba(166, 53, 69, 0.5);
}

.phone-input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.phone-code {
  min-width: 125px;
  padding: 14px 28px 14px 12px;
  border: none;
  border-radius: 5px;
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  color: var(--gray-text);
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  direction: ltr;
  text-align: left;
}

.phone-code:focus {
  outline: 2px solid rgba(166, 53, 69, 0.5);
  background-color: var(--light-bg);
}

.phone-input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  border-radius: 5px;
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  background: var(--white);
  color: var(--gray-text);
  direction: ltr;
  text-align: left;
}

.phone-input::placeholder {
  text-align: right;
  direction: rtl;
}

.phone-input:focus {
  outline: 2px solid rgba(166, 53, 69, 0.5);
}

.btn-submit {
  width: 100%;
  padding: 16px 0;
  background: var(--primary-accent);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #8b2a38;
}

.btn-submit:active {
  transform: scale(0.98);
}

.hero-text {
  flex: 1;
  max-width: 600px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-text h2 {
  color: var(--white);
  font-size: 38px;
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: 700;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  color: #f0f0f0;
  font-size: 16px;
  line-height: 1.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text h2 {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 140px 0 60px 0;
  }

  .hero-text h2 {
    font-size: 26px;
  }

  .contact-form-box {
    min-width: 100%;
    padding: 30px 20px;
  }
}

/* =====================
   STATISTICS SECTION
   ===================== */

/* =====================
   COMPANY INFO SECTION
   ===================== */

.company-info-section {
  background: var(--gradient-light);
  padding: 100px 0 90px 0;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0, 61, 122, 0.08);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.company-info-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      rgba(0, 61, 122, 0.05) 0%,
      transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.company-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.company-info-content h2 {
  color: var(--primary-dark);
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
}

.company-info-content p {
  color: var(--gray-text);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.contact-btn {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--white);
  padding: 16px 45px;
  border-radius: 28px;
  font-size: 18px;
  font-weight: 700;
  transition: var(--transition-smooth);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(166, 53, 69, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition:
    width 0.5s,
    height 0.5s;
  z-index: -1;
}

.contact-btn:hover::before {
  width: 300px;
  height: 300px;
}

.contact-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 40px rgba(166, 53, 69, 0.45);
}

.contact-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.company-info-logo {
  text-align: center;
}

.company-info-logo img {
  max-width: 100%;
  height: auto;
  width: 500px;
}

@media (max-width: 768px) {
  .company-info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .company-info-logo {
    order: -1;
  }

  .company-info-logo img {
    width: 300px;
  }
}

/* =====================
   ABOUT SECTION
   ===================== */

/* =====================
   DEVELOPMENT SECTION
   ===================== */

.development-section {
  padding: 100px 0 90px 0;
  background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 50%, #ffffff 100%);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0, 61, 122, 0.08);
  margin: 40px 0;
  position: relative;
}

.development-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.development-content h2 {
  color: var(--primary-dark);
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 700;
  text-align: right;
}

.info-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 61, 122, 0.08);
  line-height: 1.9;
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.info-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 61, 122, 0.15);
  border-color: rgba(166, 53, 69, 0.2);
}

.info-box.highlighted {
  border: 2px solid #f0f0f0;
  padding-right: 60px;
}

.badge-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.info-box p {
  color: var(--gray-text);
  font-size: 15px;
  margin: 0;
}

/* Carousel Styles */
.development-carousel {
  position: relative;
}

.carousel-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 350px;
  background: #f5f5f5;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.carousel-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-image.active {
  opacity: 1;
  z-index: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 45px;
  width: auto;
  height: auto;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  padding: 10px;
}

.carousel-btn:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-50%) scale(1.15);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 61, 122, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.dot:hover {
  background: rgba(0, 61, 122, 0.5);
  transform: scale(1.2);
}

.dot.active {
  background: var(--primary-dark);
  width: 16px;
  height: 16px;
}

.book-now-btn {
  width: 100%;
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 20px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 28px;
  cursor: pointer;
  margin-top: 24px;
  transition: var(--transition-smooth);
  font-family: "Cairo", sans-serif;
  box-shadow: 0 4px 20px rgba(166, 53, 69, 0.3);
  position: relative;
  overflow: hidden;
}

.book-now-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.book-now-btn:hover::before {
  width: 300px;
  height: 300px;
}

.book-now-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(166, 53, 69, 0.45);
}

.book-now-btn:active {
  transform: translateY(-2px) scale(0.98);
}

@media (max-width: 968px) {
  .development-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .development-carousel {
    order: -1;
  }

  .carousel-container {
    height: 250px;
  }

  .info-box.highlighted {
    padding-right: 55px;
  }
}

@media (max-width: 640px) {
  .carousel-container {
    height: 200px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .info-box.highlighted {
    padding: 20px;
    padding-right: 50px;
  }

  .badge-icon {
    font-size: 20px;
    right: 15px;
  }
}

/* =====================
   PROJECTS SECTION
   ===================== */

/* =====================
   PROJECTS SECTION
   ===================== */

.projects-section {
  padding: 100px 0 90px 0;
  background: linear-gradient(120deg, #fff 0%, #f8f9fa 50%, #e8f4f8 100%);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0, 61, 122, 0.08);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.projects-section::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,
      rgba(166, 53, 69, 0.05) 0%,
      transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.projects-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.project-card-new {
  background: var(--white);
  border: 2px solid rgba(0, 61, 122, 0.08);
  border-radius: 20px;
  padding: 45px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.project-card-new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(0, 61, 122, 0.03) 0%,
      rgba(166, 53, 69, 0.03) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card-new:hover::before {
  opacity: 1;
}

.project-card-new:hover {
  box-shadow: 0 16px 48px rgba(0, 61, 122, 0.15);
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(166, 53, 69, 0.2);
}

.project-card-new.featured {
  background: var(--gradient-accent);
  border: none;
  box-shadow: 0 8px 32px rgba(166, 53, 69, 0.3);
}

.project-card-new.featured:hover {
  box-shadow: 0 16px 48px rgba(166, 53, 69, 0.5);
  transform: translateY(-10px) scale(1.03);
}

.project-card-new.featured h3 {
  color: var(--white);
}

.project-logo {
  width: 150px;
  height: 150px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-logo-large {
  width: 200px;
  height: 200px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo-large img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-card-new h3 {
  color: var(--primary-dark);
  font-size: 20px;
  text-align: center;
  font-weight: 700;
  line-height: 1.6;
}

.projects-description {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.projects-description p {
  color: var(--gray-text);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 20px;
}

/* =====================
   SERVICES SECTION
   ===================== */

/* =====================
   TAJ CITY SECTION
   ===================== */

.taj-city-section {
  padding: 120px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f4f7f6 100%);
  position: relative;
  overflow: hidden;
}

.taj-city-grid {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.taj-city-carousel-wrapper {
  flex: 0 0 65%;
  position: relative;
  z-index: 1;
}

.taj-city-content-wrapper {
  flex: 0 0 45%;
  margin-right: -10%;
  /* Overlap the image negatively in RTL */
  z-index: 10;
}

.taj-city-content-card {
  background: var(--white);
  padding: 60px;
  padding-left: 80px;
  box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.08);
  border-right: 4px solid var(--primary-accent);
}

.taj-heading {
  color: var(--primary-dark);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 20px;
}

.taj-heading span {
  font-weight: 800;
  color: var(--primary-dark);
}

.taj-divider {
  width: 60px;
  height: 4px;
  background: var(--primary-accent);
  margin-bottom: 30px;
}

.taj-main-text {
  color: var(--gray-text);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 40px;
}

.taj-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.taj-features-list li {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.icon-circle {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--light-bg);
  color: var(--primary-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.taj-features-list p {
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  padding-top: 5px;
}

.taj-carousel-container {
  position: relative;
  border-radius: 8px;
  /* Sharp elegant corners instead of too round */
  overflow: hidden;
  height: 650px;
  background: #e2e2e2;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.taj-carousel-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.taj-carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.taj-carousel-image.active {
  opacity: 1;
  z-index: 1;
}

.taj-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  border: none;
  font-size: 22px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.taj-carousel-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 61, 122, 0.3);
}

.taj-prev-btn {
  left: 30px;
}

.taj-next-btn {
  right: 30px;
}

.taj-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.taj-dot {
  width: 30px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.taj-dot.active {
  background: var(--white);
  width: 40px;
}

.taj-more-btn-v2 {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: transparent;
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-bottom: 2px solid var(--primary-dark);
  padding: 10px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.taj-more-btn-v2 i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.taj-more-btn-v2:hover {
  color: var(--primary-accent);
  border-color: var(--primary-accent);
}

.taj-more-btn-v2:hover i {
  transform: translateX(-8px);
  /* move arrow left in RTL */
}

@media (max-width: 1200px) {
  .taj-city-carousel-wrapper {
    flex: 0 0 60%;
  }

  .taj-city-content-wrapper {
    flex: 0 0 50%;
  }
}

@media (max-width: 968px) {
  .taj-city-grid {
    flex-direction: column;
  }

  .taj-city-carousel-wrapper {
    flex: none;
    width: 100%;
  }

  .taj-city-content-wrapper {
    flex: none;
    width: 90%;
    margin-right: 0;
    margin-top: -100px;
    /* Overlap upwards on mobile */
  }

  .taj-city-content-card {
    padding: 40px;
  }

  .taj-heading {
    font-size: 2.2rem;
  }

  .taj-carousel-container {
    height: 450px;
  }
}

@media (max-width: 640px) {
  .taj-city-section {
    padding: 60px 0;
  }

  .taj-city-content-wrapper {
    width: 95%;
    margin-top: -60px;
  }

  .taj-city-content-card {
    padding: 30px 20px;
    border-right-width: 3px;
  }

  .taj-carousel-container {
    height: 350px;
  }

  .taj-heading {
    font-size: 1.8rem;
  }

  .taj-carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .taj-prev-btn {
    left: 15px;
  }

  .taj-next-btn {
    right: 15px;
  }

  .icon-circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* =====================
   CTA SECTION
   ===================== */

.cta-section {
  background: linear-gradient(135deg, #1a365d 0%, #2d5a8c 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* =====================
   PAGE HERO
   ===================== */

.page-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--white);
  font-size: 1.2rem;
}

/* =====================
   FILTERS
   ===================== */

.filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 10px 20px;
  background-color: var(--background);
  color: var(--text-dark);
  border: 2px solid var(--border-light);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Cairo", sans-serif;
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}

/* =====================
   PROJECT DETAILS
   ===================== */

.project-details-content {
  max-width: 1000px;
  margin: 0 auto;
}

.back-link {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2rem;
  display: inline-block;
  transition: all 0.3s;
}

.back-link:hover {
  transform: translateX(5px);
}

.details-hero {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.details-header {
  text-align: center;
  margin-bottom: 3rem;
}

.details-header h1 {
  margin-bottom: 0.5rem;
}

.price-highlight {
  font-size: 1.5rem;
  color: var(--secondary);
  font-weight: 700;
}

.details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.details-main h2,
.details-main h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  background-color: var(--background);
  padding: 1rem;
  border-radius: 8px;
  color: var(--primary);
  font-weight: 600;
}

.units-table {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.units-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
}

.units-table th,
.units-table td {
  padding: 1rem;
  text-align: right;
  border: 1px solid var(--border-light);
}

.units-table th {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.units-table tr:hover {
  background-color: var(--background);
}

/* =====================
   SIDEBAR FORMS
   ===================== */

.enquiry-form,
.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.enquiry-form h3,
.contact-info h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.enquiry-form input,
.enquiry-form textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--secondary);
  font-weight: 600;
}

/* =====================
   ABOUT PAGE CONTENT
   ===================== */

.about-content-full {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.about-content-full p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.vision-card,
.mission-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.vision-card h3,
.mission-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.vision-card p,
.mission-card p {
  color: var(--white);
}

.values-section {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--background);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
}

.value-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.value-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.achievements {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.achievement-item {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: var(--white);
}

.achievement-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.team-section {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  padding: 2rem;
  background: var(--background);
  border-radius: 12px;
  transition: all 0.3s;
}

.team-member:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.member-avatar {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.team-member h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.team-member p {
  color: var(--secondary);
  font-weight: 600;
}

.cta-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
}

.cta-box h2 {
  color: var(--white);
}

.cta-box p {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* =====================
   CONTACT PAGE
   ===================== */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-form-wrapper h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: right;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-form>.btn {
  margin-top: 1rem;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
}

.info-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.info-section h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.info-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.info-item p {
  margin-bottom: 0.5rem;
}

.info-item a {
  color: var(--secondary);
  font-weight: 600;
}

.offices-section {
  background-color: var(--background);
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.office-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s;
}

.office-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.office-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.office-card p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.faq-section {
  background-color: var(--white);
}

.faq-items {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--background);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.faq-item:hover {
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.faq-item h4 {
  color: var(--primary);
  user-select: none;
}

.faq-item p {
  display: none;
  margin-top: 1rem;
  color: var(--text-light);
}

.faq-item.active p {
  display: block;
}

/* =====================
   FOOTER
   ===================== */

.footer {
  background: linear-gradient(135deg,
      #1a2332 0%,
      #2d3e50 30%,
      #003d7a 70%,
      #004a8f 100%);
  color: var(--white);
  padding: 70px 0 30px;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--primary-accent) 15%,
      #e8b923 35%,
      var(--primary-dark) 50%,
      #e8b923 65%,
      var(--primary-accent) 85%,
      transparent 100%);
  box-shadow: 0 2px 8px rgba(166, 53, 69, 0.3);
}

.footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right,
      rgba(166, 53, 69, 0.08) 0%,
      transparent 60%);
  pointer-events: none;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 30px 0 0 0;
  position: relative;
  z-index: 1;
}

.footer-content::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(45deg,
      transparent,
      transparent 50px,
      rgba(255, 255, 255, 0.02) 50px,
      rgba(255, 255, 255, 0.02) 52px),
    repeating-linear-gradient(-45deg,
      transparent,
      transparent 50px,
      rgba(255, 255, 255, 0.02) 50px,
      rgba(255, 255, 255, 0.02) 52px);
  pointer-events: none;
  z-index: -1;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.footer-section:first-child::before {
  content: "🏢";
  position: absolute;
  top: -10px;
  right: -5px;
  font-size: 48px;
  opacity: 0.1;
  filter: grayscale(1);
}

.footer-section h4 {
  color: #ffffff;
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 14px;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-accent) 0%, #e8b923 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(232, 185, 35, 0.4);
}

.footer-section p {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.footer-section ul a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  padding-right: 8px;
  font-size: 15px;
  font-weight: 500;
  display: inline-block;
}

.footer-section ul a::before {
  content: "◀";
  position: absolute;
  right: -18px;
  opacity: 0;
  color: #e8b923;
  font-size: 12px;
  transition: var(--transition-smooth);
}

.footer-section ul a:hover::before {
  right: -22px;
  opacity: 1;
}

.footer-section ul a:hover {
  color: #e8b923;
  padding-right: 12px;
  text-shadow: 0 0 12px rgba(232, 185, 35, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* =====================
   WHATSAPP BUTTON
   ===================== */

.whatsapp-btn {
  color: var(--white);
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
  z-index: 999;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow:
      0 8px 32px rgba(37, 211, 102, 0.6),
      0 0 0 10px rgba(37, 211, 102, 0.2);
  }
}

.whatsapp-btn:hover {
  transform: scale(1.15) translateY(-8px) rotate(5deg);
  box-shadow: 0 16px 48px rgba(37, 211, 102, 0.5);
  animation: none;
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */

/* Ripple effect for inputs */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(166, 53, 69, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Smooth animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hover glow effect */
.glow-on-hover {
  transition: var(--transition-smooth);
}

.glow-on-hover:hover {
  box-shadow:
    0 0 20px rgba(166, 53, 69, 0.4),
    0 0 40px rgba(0, 61, 122, 0.2);
}

@media (max-width: 768px) {
  .header-content {
    gap: 1rem;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    padding: 1rem;
    box-shadow: var(--shadow);
    z-index: 99;
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .cta-btn {
    display: none;
  }

  .about-grid,
  .contact-content,
  .vision-mission {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .offices-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-btn {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    padding: 40px 15px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  .logo {
    min-width: auto;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  .project-image {
    height: 200px;
  }

  .details-hero {
    height: 250px;
  }

  .hero-form input {
    min-width: 100%;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .page-hero p {
    font-size: 1rem;
  }
}

/* =====================
   CUSTOM NOTIFICATION
   ===================== */
.custom-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--white);
  color: var(--primary-dark);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 61, 122, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  white-space: nowrap;
  border-right: 4px solid var(--primary-accent);
}

.custom-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.custom-notification.success {
  border-right-color: #28a745;
}

.custom-notification.error {
  border-right-color: #dc3545;
}

.notification-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
}

.success .notification-icon {
  background: #e8f5e9;
  color: #28a745;
}

.error .notification-icon {
  background: #fde8e8;
  color: #dc3545;
}

/* =====================
   PROJECT STYLES (MODERN)
   ===================== */

/* Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

/* Modern Project Card */
.project-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 61, 122, 0.08);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 61, 122, 0.15);
  border-color: rgba(166, 53, 69, 0.3);
}

.project-card .project-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-card .project-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-card .project-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 61, 122, 0.5);
  /* Primary dark overlay */
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1;
}

.project-card:hover .project-image-wrapper::before {
  opacity: 1;
}

.project-card .project-image-wrapper::after {
  content: '\f0c1';
  /* Link icon */
  font-family: 'Font Awesome 6 Free', "FontAwesome";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  color: white;
  font-size: 2.5rem;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
}

.project-card:hover .project-image-wrapper::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-card .project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-accent);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

.project-card .project-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card .project-category {
  font-size: 0.85rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.project-card .location {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-card .description {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card .project-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.project-card .price {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.project-details-btn {
  background: var(--primary-dark);
  color: white;
  padding: 10px 30px;
  border-radius: 10px;
  font-weight: 700;
  transition: var(--transition-smooth);
  text-decoration: none;
  text-align: center;
}

.project-details-btn:hover {
  background: var(--primary-accent);
  color: white;
  transform: scale(1.05);
}

/* Project Detail Page Styles */
.project-hero {
  min-height: 65vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  padding: 120px 20px 60px;
  /* Space for fixed/absolute header */
}

.project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 61, 122, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.project-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.project-hero h1 {
  color: white;
  margin-bottom: 15px;
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
}

@media (max-width: 992px) {
  .project-hero {
    min-height: 50vh;
    background-attachment: scroll;
    padding-top: 100px;
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-sidebar {
    position: static;
    margin-top: 40px;
  }
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.spec-card {
  background: var(--white);
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid #eee;
}

.spec-card:hover {
  border-color: var(--primary-accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.spec-card i {
  font-size: 1.5rem;
  color: var(--primary-accent);
  margin-bottom: 12px;
}

.spec-card h4 {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 8px;
  font-weight: 600;
}

.spec-card p {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

/* Features List */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 25px;
  background: var(--white);
  border-radius: 15px;
  border: 1px solid #f0f0f0;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-item:hover {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow);
  transform: translateX(-8px);
}

.feature-item i {
  color: var(--primary-accent);
  font-size: 1.25rem;
}

.feature-item span {
  font-weight: 600;
  color: var(--primary-dark);
}

/* Sticky Contact Sidebar */
.contact-sidebar {
  background: var(--primary-dark);
  padding: 40px;
  border-radius: 25px;
  color: white;
  position: sticky;
  top: 120px;
  box-shadow: 0 20px 40px rgba(0, 61, 122, 0.2);
}

.contact-sidebar h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.contact-sidebar p {
  opacity: 0.8;
  margin-bottom: 30px;
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.gallery-item {
  height: 350px;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(166, 53, 69, 0.4);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free', "FontAwesome", "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  color: white;
  font-size: 2.5rem;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 992px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
   V2 FLOATING CARD FOOTER
   ===================== */

.footer-v2 {
  background: #021a30;
  /* Very deep dark blue/slate */
  color: var(--white);
  padding: 180px 0 40px;
  /* Large top padding to make room for floating card */
  margin-top: 150px;
  position: relative;
  z-index: 10;
  border-top: 5px solid var(--secondary);
}

.footer-cta-card {
  position: absolute;
  top: -100px;
  /* Floating up out of the footer */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  background: linear-gradient(135deg, var(--primary-accent) 0%, #762330 100%);
  border-radius: 20px;
  padding: 50px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 40px rgba(166, 53, 69, 0.4);
  z-index: 20;
}

.cta-content h3 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin: 0;
}

.cta-action {
  flex-shrink: 0;
}

.cta-action .btn {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.cta-action .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
  background: var(--secondary) !important;
  color: var(--primary-dark) !important;
}

.footer-v2-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-v2-brand .footer-logo img {
  max-width: 200px;
  margin-bottom: 25px;
  display: block;
}

.footer-v2-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 25px;
  max-width: 400px;
}

.footer-v2-social {
  display: flex;
  gap: 15px;
}

.footer-v2-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: var(--white);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-v2-social a:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-5px);
}

.footer-v2-links-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-v2-col h4 {
  color: var(--secondary);
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.footer-v2-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-v2-col ul li {
  margin-bottom: 15px;
}

.footer-v2-col ul a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.footer-v2-col ul a:hover {
  color: var(--white);
  padding-right: 8px;
}

.footer-v2-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-v2-info {
  display: flex;
  gap: 30px;
}

.footer-v2-info a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-v2-info a:hover {
  color: var(--secondary);
}

.footer-v2-info i {
  color: var(--secondary);
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

/* =====================
   RESPONSIVE FOOTER V2
   ===================== */
@media (max-width: 1024px) {
  .footer-cta-card {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 40px 30px;
  }

  .footer-v2-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-v2-brand {
    text-align: center;
  }

  .footer-v2-brand .footer-logo img {
    margin: 0 auto 20px;
  }

  .footer-v2-brand p {
    margin: 0 auto 25px;
  }

  .footer-v2-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-v2 {
    padding-top: 220px;
    /* Adjust padding for taller stacked card */
    margin-top: 100px;
  }

  .cta-content h3 {
    font-size: 1.5rem;
  }

  .footer-v2-links-group {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .footer-v2-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-v2-info {
    flex-direction: column;
    gap: 15px;
  }
}

/* =====================
   LARGE SCREENS
   ===================== */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}

/* Project Detail Layout Fix */
.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 992px) {
  .project-detail-grid {
    grid-template-columns: 1fr 2fr;
    /* Sidebar on left or right */
  }
}

.contact-sidebar {
  background: var(--primary-dark);
  color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-sidebar h3 {
  text-align: center;
  margin-bottom: 15px;
}

.contact-sidebar p {
  text-align: center;
  margin-bottom: 25px;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Ensure flex container input for phone respects screen sizes */
@media (max-width: 500px) {
  #detailsPageForm div[style*="display: flex; gap: 12px;"] {
    flex-direction: column;
  }

  #detailsPageForm select {
    width: 100% !important;
  }
}

/* Form Responsive Overrides */
@media (max-width: 768px) {
  .contact-sidebar {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .project-detail-grid {
    display: flex;
    flex-direction: column;
  }

  .project-sidebar-content {
    order: 1;
    /* Form goes to bottom, or leave 0 to keep at top */
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .project-main-content {
    order: 2;
  }
}

/* Additional Mobile Form Improvements for Project Details */
@media (max-width: 500px) {
  .contact-sidebar {
    padding: 20px;
    margin: 0 15px;
    /* ensure breathing room on small screens */
    width: calc(100% - 30px);
  }

  .spec-card {
    padding: 15px;
    /* slight padding adjustment on mobile */
  }

  .project-detail-grid {
    gap: 30px;
  }
}

/* SEO Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Compact Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px !important;
  font-size: 14px !important;
}

.contact-form-box .form-group label {
  color: #ffffff !important;
}

.contact-form-box {
  padding: 30px !important;
  min-width: 500px !important;
}

.form-input,
.phone-input,
.phone-code,
.custom-dropdown-selected {
  padding: 10px 14px !important;
  margin-bottom: 0 !important;
  font-size: 14px !important;
}

.phone-code {
  min-width: 100px !important;
}

.btn-submit {
  padding: 12px 0 !important;
  font-size: 16px !important;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-box {
    min-width: 100% !important;
    padding: 25px 20px !important;
  }
}