/* Updated: Portfolio banner heights reduced - Cache bust: 2025-01-27 */
:root {
  /* PHASE 1: LUXURY BEIGE COLOR SYSTEM */
  --primary-color: #000;
  --secondary-color: #e9d8a9;
  --secondary-color-light: #f5e8c8;  
  --secondary-color-dark: #d4c19c;
  --accent-beige: #e9d8a9;
  --accent-beige-light: #f5e8c8;
  --accent-beige-dark: #d4c19c;
  --text-color: #fff;
  --background-color: #000;
  --primary-gradient: linear-gradient(135deg, #e9d8a9 0%, #d4c19c 100%);
  --glass-bg: rgba(0, 0, 0, 0.15);
  --glass-border: rgba(233, 216, 169, 0.1);
  --font-heading: "Oswald", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  --desktop-card-width: calc(25% - 1.125rem);
  --desktop-card-height: 380px;
  --desktop-card-padding: 1.5rem;
  --desktop-title-font: 1rem;
  --desktop-list-font: 0.9rem;
  --mobile-card-width: 95%;
  --mobile-card-height: auto;
  --mobile-card-min-height: 200px;
  --mobile-card-padding: 1rem;
  --mobile-title-font: 0.9rem;
  --mobile-list-font: 0.8rem;
  --mobile-gap: 1rem;
  --mobile-card-border-radius: 12px;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus,
.gallery-item:focus {
  outline: 2px solid #f5e381;
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 1001;
}

.skip-link:focus {
  top: 6px;
}

body,
html {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  .white-text {
    color: #fff;
  }
  .black-text {
    color: #000;
  }
  .beige-text {
    color: #e9d8a9;
  }
}
/* PHASE 1: GOOGLE FONTS INTEGRATION */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-display: swap;
  text-rendering: optimizeSpeed;
  padding-top: 100px; /* Account for fixed header with proper spacing */
}
h1 {
  font-size: 2.5rem;
}
/* PHASE 2: PREMIUM HEADER WITH GLASSMORPHISM */
header {
  flex: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
body.black-header-page header {
  background-color: transparent !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  margin: 0 !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  transition: all 0.3s ease !important;
}
nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 !important;
  line-height: 1 !important;
  z-index: 99999 !important;
  position: relative;
}
.logo img {
  max-height: 50px;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}
.logo img:hover {
  opacity: 0.7;
}
/* PHASE 2: PREMIUM NAVIGATION MENU */
.menu {
  display: flex;
  font-family: var(--font-body);
  list-style-type: none;
  margin: 0;
  padding: 0 !important;
  background: rgba(233, 216, 169, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 216, 169, 0.1);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  gap: 2rem;
  align-items: center;
  z-index: 99999 !important;
  position: relative;
}
.menu li {
  margin-left: 20px;
}
.menu a {
  color: #fff;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0 !important;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  background: transparent;
}

.menu a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(233, 216, 169, 0.2), transparent);
  transition: left 0.6s var(--transition);
  z-index: -1;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-beige);
  transition: var(--transition);
  transform: translateX(-50%);
}

.menu a:hover {
  color: var(--accent-beige);
  background: rgba(233, 216, 169, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 216, 169, 0.2);
}

.menu a:hover::before {
  left: 100%;
}

.menu a:hover::after {
  width: 80%;
}
header.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
header.scrolled .menu a {
  color: #fff;
}


/* MOBILE HEADER LAYOUT FIX */
@media screen and (max-width: 768px) {
  body.black-header-page header {
    top: 0 !important;
    position: fixed !important; /* Override black-header-page relative positioning */
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    z-index: 99999 !important;
    transition: all 0.3s ease !important;
  }
  
  body {
    padding-top: 150px !important; /* Ensure header doesn't overlap with content */
  }
  
  body.black-header-page {
    padding-top: 150px !important; /* Override any conflicting rules */
  }
  
  nav {
    padding: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 auto !important;
  }
  
  .logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .logo img {
    max-height: 45px; /* Ensure full logo text is visible on mobile */
  }
  
  .menu {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.8rem !important;
    background: rgba(233, 216, 169, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(233, 216, 169, 0.1) !important;
    border-radius: 50px !important;
    padding: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    width: auto !important;
    height: auto !important;
    z-index: auto !important;
    flex-wrap: nowrap !important;
    margin: 0 auto !important;
    list-style: none !important;
  }
  
  .menu li {
    margin: 0 !important;
    text-align: center !important;
    display: inline-block !important;
    list-style: none !important;
  }
  
  .menu a {
    color: #fff !important;
    font-weight: 500 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.8px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 25px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: var(--transition) !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }
  
  .menu a:hover {
    background: var(--accent-beige);
    color: #000;
  }
  
  .mobile-language-switcher {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    justify-content: center !important;
    width: 100% !important;
    align-self: center !important;
    flex-wrap: nowrap !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }
  
  .mobile-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(233, 216, 169, 0.1);
    border: 1px solid rgba(233, 216, 169, 0.3);
    color: white;
    padding: 4px 6px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 28px;
    height: 24px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    box-sizing: border-box;
  }
  
  .mobile-lang-btn:hover {
    background: rgba(233, 216, 169, 0.2);
    border-color: var(--accent-beige);
    color: var(--accent-beige);
  }
  
  .mobile-lang-btn.active {
    background: var(--accent-beige);
    color: #000;
    border-color: var(--accent-beige);
  }
  
  .mobile-lang-btn .flag {
    font-size: 12px;
  }
  
  /* Hide desktop language switcher on mobile */
  .language-switcher {
    display: none;
  }
  
  body {
    padding-top: 150px; /* Ensure header doesn't overlap with content */
  }
}

/* SMALLER MOBILE DEVICES */
@media screen and (max-width: 480px) {
  body.black-header-page header {
    top: 0 !important;
    position: fixed !important; /* Override black-header-page relative positioning */
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    z-index: 99999 !important;
    transition: all 0.3s ease !important;
  }
  
  body {
    padding-top: 150px !important; /* Ensure header doesn't overlap with content */
  }
  
  body.black-header-page {
    padding-top: 150px !important; /* Override any conflicting rules */
  }
  
  nav {
    padding: 0.4rem 0.6rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin: 0 auto !important;
  }
  
  .logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .logo img {
    max-height: 40px; /* Ensure full logo text is visible on smaller mobile */
  }
  
  .menu {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    background: rgba(233, 216, 169, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(233, 216, 169, 0.1) !important;
    border-radius: 50px !important;
    padding: 0.4rem 0.8rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    width: auto !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin: 0 auto !important;
    list-style: none !important;
  }
  
  .menu li {
    margin: 0 !important;
    text-align: center !important;
    display: inline-block !important;
    list-style: none !important;
  }
  
  .menu a {
    color: #fff !important;
    font-weight: 500 !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.6px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    padding: 0.3rem 0.6rem !important;
    border-radius: 25px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: var(--transition) !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }
  
  .mobile-language-switcher {
    gap: 3px !important;
    width: 100% !important;
    justify-content: center !important;
    align-self: center !important;
    flex-wrap: nowrap !important;
    padding: 0 0.8rem !important;
    box-sizing: border-box !important;
  }
  
  .mobile-lang-btn {
    padding: 3px 5px;
    font-size: 0.55rem;
    min-width: 24px;
    height: 20px;
    background: rgba(233, 216, 169, 0.1);
    border: 1px solid rgba(233, 216, 169, 0.3);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    box-sizing: border-box;
  }
  
  .mobile-lang-btn .flag {
    font-size: 11px;
  }
}

/* Hide mobile language switcher on desktop */
@media (min-width: 769px) {
  .mobile-language-switcher {
    display: none;
  }
}
#hero {
  height: 100vh;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.hero-slideshow,
.slide {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  will-change: transform, opacity;
}
.slide {
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
}
.slide1 {
  background-image: url(../images/@SHOTBUCKET-52_result.webp);
}
.slide2 {
  background-image: url(../images/IMG_0578_result.webp);
}
.slide2,
.slide3 {
  background-attachment: cover;
  background-position: top;
}
.slide3 {
  background-image: url(../images/explanation_result.webp);
}
.slide4 {
  background-attachment: cover;
  background-image: url(../images/unnamed_result.webp);
  background-position: top;
}
.slide5 {
  background-image: url(../images/@SHOTBUCKET-131_result.webp);
}
.slide6 {
  background-image: url(../images/@SHOTBUCKET-40_result.webp);
}
@keyframes slideshow {
  0%,
  20%,
  to {
    opacity: 0;
  }
  16%,
  4% {
    opacity: 1;
  }
}
@keyframes slideFromTop {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* PHASE 3: PREMIUM ANIMATIONS - FLOATING HERO CONTENT */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(-50%) translateY(0px); }
  50% { transform: translateY(-50%) translateY(-10px); }
}

.hero-content {
  background-color: transparent;
  border-radius: 10px;
  color: #fff;
  margin: 0 auto;
  max-width: 600px;
  padding: 2rem;
  position: relative;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  animation: gentleFloat 8s ease-in-out infinite;
  will-change: transform;
}
/* PHASE 2: SPLIT-COLOR BRANDING SYSTEM */
.hero-content h1 {
  animation: slideFromTop 1s ease-out;
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 0;
  margin-top: 30%;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Split-Color Branding */
.brand-zouhal {
  color: var(--accent-beige) !important;
}

.brand-creations {
  color: #ffffff !important;
}

.section-title .beige-text {
  color: var(--accent-beige) !important;
}

.section-title .white-text {
  color: #ffffff !important;
}
.hero-content hr {
  color: #ccc;
  margin-bottom: 2rem;
}
.hero-content p {
  animation: slideFromLeft 1s ease-out 1s;
  animation-fill-mode: backwards;
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 1px;
  margin-bottom: 5rem;
  margin-top: -1rem;
  max-width: 100%;
}
.cta-buttons {
  display: flex;
  justify-content: center;
}
.btn {
  animation: slideFromTop 2s ease-out;
  border-radius: 30px;
  display: inline-block;
  font-weight: 700;
  padding: 0.2rem 1.4rem;
  text-decoration: none;
  transition: all 0.8s ease;
}
/* PHASE 3: PREMIUM BUTTON ANIMATIONS */
.btn-primary {
  background: var(--primary-gradient);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(233, 216, 169, 0.2);
  color: #fff !important;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.btn-primary::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: left 0.6s ease;
}

.btn-primary:hover {
  background: var(--accent-beige-light);
  border-color: var(--accent-beige);
  box-shadow: 0 8px 25px rgba(233, 216, 169, 0.4);
  color: #fff !important;
  transform: translateY(-3px) scale(1.05);
}

.btn-primary:hover::before {
  left: 100%;
}
.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

/* ========================================
   SERVICES SECTION - DESKTOP STYLES
   ======================================== */
#services {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../images/services_result.webp);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
  padding: 1.5rem 2rem;
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  padding-top: 0 !important;
  margin-top: 0 !important;
}
#services .servor {
  color: #fcfcfc;
  font-family: Arial, sans-serif;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  margin-top: 0 !important;
  padding-top: 0 !important;
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
}
#services .servor h2 {
  font-family: Arial, sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fcfcfc !important;
  text-align: center !important;
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
}
/* PHASE 2: ENHANCED LINE ELEMENTS */
#services .line_service {
  background: linear-gradient(90deg, transparent, var(--accent-beige), transparent) !important;
  height: 3px !important;
  margin: 1.5rem auto 0 auto !important;
  width: 40% !important;
  border-radius: 2px !important;
  box-shadow: 0 2px 10px rgba(233, 216, 169, 0.3) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Desktop Service Grid */
#services .services-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto 4rem auto;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
  overflow-x: visible;
}
#services .service-card1,
#services .service-card2,
#services .service-card3,
#services .service-card4 {
  width: 25% !important;
  min-width: 220px !important;
  max-width: 320px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
  border-radius: 28px !important;
}
#services .service-card1 h3,
#services .service-card2 h3,
#services .service-card3 h3,
#services .service-card4 h3 {
  font-size: 1rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 1rem !important;
  text-align: center !important;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 769px) {
  #services .service-card1:hover,
  #services .service-card2:hover,
  #services .service-card3:hover,
  #services .service-card4:hover {
    border-color: #f5e381 !important;
    box-shadow: 0 15px 40px rgba(245, 227, 129, 0.3) !important;
    transform: translateY(-8px) translateZ(0) !important;
    background-color: rgba(34, 34, 34, 0.98) !important;
  }
  #services .service-card1:hover h3,
  #services .service-card2:hover h3,
  #services .service-card3:hover h3,
  #services .service-card4:hover h3 {
    color: #ffd700;
    transform: scale(1.05);
  }
  #services .service-card1:hover .line_service,
  #services .service-card2:hover .line_service,
  #services .service-card3:hover .line_service,
  #services .service-card4:hover .line_service {
    width: 80%;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    opacity: 1;
  }
  #services .service-card1:hover li,
  #services .service-card2:hover li,
  #services .service-card3:hover li,
  #services .service-card4:hover li {
  color: #fff;
    transform: translateX(5px);
}
  #services .service-card1:hover li:before,
  #services .service-card2:hover li:before,
  #services .service-card3:hover li:before,
  #services .service-card4:hover li:before {
    color: #ffd700;
    transform: rotate(15deg);
  }
}
#services .service-card1 ul,
#services .service-card2 ul,
#services .service-card3 ul,
#services .service-card4 ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 1;
}
#services .service-card1 li,
#services .service-card2 li,
#services .service-card3 li,
#services .service-card4 li {
  font-size: var(--mobile-list-font);
  margin-bottom: 0.6rem;
  line-height: 1.4;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: visible;
  display: flex;
  align-items: flex-start;
  text-align: left;
  word-break: normal !important;
  white-space: normal !important;
  hyphens: none !important;
}
#services .service-card1 li:hover,
#services .service-card2 li:hover,
#services .service-card3 li:hover,
#services .service-card4 li:hover {
  color: #fff;
  transform: translateX(5px);
}
#services .service-card1 li:before,
#services .service-card2 li:before,
#services .service-card3 li:before,
#services .service-card4 li:before {
  content: "✦";
  color: #f5e381;
  font-weight: bold;
  margin-right: 0.8rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  opacity: 1;
  width: 1.2rem;
  text-align: center;
}
#services .service-card1:hover li:before,
#services .service-card2:hover li:before,
#services .service-card3:hover li:before,
#services .service-card4:hover li:before {
  color: #ffd700;
  transform: rotate(15deg);
}
#services .service-card1 .line_service,
#services .service-card2 .line_service,
#services .service-card3 .line_service,
#services .service-card4 .line_service {
  height: 2px !important;
  background: linear-gradient(90deg, transparent, #f5e381, transparent) !important;
  margin: 0.5rem auto !important;
  width: 60% !important;
  opacity: 0.8 !important;
  transition: all 0.3s ease !important;
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 5 !important;
  border-radius: 1px !important;
}
#services .service-card1:hover .line_service,
#services .service-card2:hover .line_service,
#services .service-card3:hover .line_service,
#services .service-card4:hover .line_service {
  width: 80%;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  opacity: 1;
}
#services .cta-buttons {
  text-align: center;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
  opacity: 1;
  visibility: visible;
}

/* ========================================
   SERVICES SECTION - MOBILE STYLES
   ======================================== */
@media (max-width: 768px) {
  #services {
    padding-top: 1rem !important;
  }
  
  #services .servor {
    font-size: 2rem;
    margin-bottom: 3rem;
  }
  
  #services .line_service {
    width: 50%;
    margin: 1rem auto;
  }
  
  #services .services-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 0;
  }
  
  #services .service-card1,
  #services .service-card2,
  #services .service-card3,
  #services .service-card4 {
    width: 95vw;
    max-width: 400px;
    min-width: 0;
    margin: 0 auto 1.2rem auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 22px !important;
  }
  
  #services .service-card1:hover,
  #services .service-card2:hover,
  #services .service-card3:hover,
  #services .service-card4:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(245, 227, 129, 0.2);
  }
  
  #services .service-card1 h3,
  #services .service-card2 h3,
  #services .service-card3 h3,
  #services .service-card4 h3 {
    font-size: var(--mobile-title-font) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    margin-bottom: 1rem !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    color: #f5e381 !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    opacity: 1 !important;
  }
  
  #services .service-card1 li,
  #services .service-card2 li,
  #services .service-card3 li,
  #services .service-card4 li {
    font-size: var(--mobile-list-font);
    margin-bottom: 0.6rem;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    text-align: left;
  }
  
  #services .service-card1 li:before,
  #services .service-card2 li:before,
  #services .service-card3 li:before,
  #services .service-card4 li:before {
    content: "✦";
    color: #f5e381;
    font-weight: bold;
    margin-right: 0.6rem;
    margin-top: 0.05rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    width: 1rem;
    text-align: center;
  }
  
  #services .service-card1 ul,
  #services .service-card2 ul,
  #services .service-card3 ul,
  #services .service-card4 ul {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
  }
}

/* ========================================
   EXPLANATION SECTION - DESKTOP STYLES
   ======================================== */
#explanation {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8));
  overflow: hidden;
  padding: 4rem 2rem 2rem 2rem;
  text-align: center;
  min-height: 40vh;
  position: relative;
}

#explanation .servor {
  color: #fcfcfc !important;
  font-family: Arial, sans-serif !important;
  font-size: 2.5rem !important;
  text-align: center !important;
  margin-bottom: 2rem !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
}

#explanation .servor p {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

#explanation .servor .line_service {
  background: linear-gradient(90deg, transparent, #f5e381, transparent);
  height: 3px;
  margin: 1rem auto 0 auto;
  width: 40%;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(245, 227, 129, 0.3);
}

.container_explanation {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  min-height: 15vh;
}

.text-list_explanation {
  display: flex;
  gap: 100px;
  justify-content: center;
  max-width: 100%;
  width: 100%;
}

.validation-logo {
  background-color: orange;
  border-radius: 50%;
  display: inline-block;
  height: 16px;
  margin-right: 10px;
  position: relative;
  width: 16px;
}

.validation-logo:before {
  color: #fff;
  content: "\2713";
  font-size: 12px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.column_explanation {
  flex: 1;
}

p {
  margin-bottom: 2px;
}

.logo-container_exp {
  background-color: rgba(26, 26, 26, 0.95);
  border: 2px solid #333;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  height: 80px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  transition: all 0.4s ease;
}

.logo-container_exp:hover {
  border-color: #f5e381;
  box-shadow: 0 15px 40px rgba(245, 227, 129, 0.3);
  transform: translateY(-5px) translateZ(0);
}

.logo-slider_exp {
  display: flex;
  transition: transform 0.5s ease-in-out;
  align-items: center;
  height: 100%;
  padding: 0 50px;
}

.logo-slider_exp img {
  height: 60px;
  margin-right: 20px;
  object-fit: contain;
  width: 60px;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  opacity: 0.7;
  border-radius: 8px;
}

.logo-slider_exp img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(245, 227, 129, 0.3);
}

.arrow_exp {
  background-color: rgba(26, 26, 26, 0.95);
  border: 2px solid #333;
  color: #f5e381;
  cursor: pointer;
  font-size: 14px;
  padding: 10px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.arrow_exp:hover {
  background-color: rgba(245, 227, 129, 0.9);
  color: #000;
  transform: translateY(-50%) scale(1.1);
  border-color: #f5e381;
  box-shadow: 0 8px 25px rgba(245, 227, 129, 0.4);
}

.left-arrow_exp {
  left: 10px;
}

.right-arrow_exp {
  right: 10px;
}

/* ========================================
   EXPLANATION SECTION - MOBILE STYLES
   ======================================== */
@media (max-width: 768px) {
  #explanation {
    padding: 3rem 1rem 1.5rem 1rem;
    min-height: 30vh;
  }
  
  #explanation .servor {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .container_explanation {
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
    min-height: 10vh;
  }
  
  .logo-container_exp {
    height: 60px;
    border-radius: 12px;
    max-width: 95%;
  }
  
  .logo-slider_exp {
    padding: 0 40px;
  }
  
  .logo-slider_exp img {
    height: 40px;
    width: 40px;
    margin-right: 15px;
  }
  
  .arrow_exp {
    width: 30px;
    height: 30px;
    font-size: 12px;
    padding: 6px;
  }
  
  .left-arrow_exp {
    left: 8px;
  }
  
  .right-arrow_exp {
    right: 8px;
  }
}

/* ========================================
   WHY ZOUHAL SECTION - DESKTOP STYLES
   ======================================== */
#why_zouhal {
  overflow: hidden;
  position: relative;
  padding: 6rem 2rem;
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
  
  .servor_why {
    color: #fcfcfc !important;
    font-family: Arial, sans-serif !important;
    font-size: 2.5rem !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    position: relative !important;
    z-index: 20 !important;
  }
  
  .video-container1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    overflow: hidden;
  }
  
  .video-background1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .video-background1 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
    min-height: 100vh;
  }
  
  .line_why {
    background: linear-gradient(90deg, transparent, #f5e381, transparent);
    height: 3px;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 40%;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(245, 227, 129, 0.3);
  }
  
  .container_why {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    min-height: 300px;
    padding: 4rem 1rem 2rem 1rem;
  }
  
  .rectangle_why {
    background-color: rgba(26, 26, 26, 0.95);
    border: 2px solid #333;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    max-width: 900px;
    overflow: hidden;
    width: 100%;
    transition: all 0.4s ease;
    position: relative;
    z-index: 15;
  }
  
  .rectangle_why:hover {
    border-color: #f5e381;
    box-shadow: 0 15px 40px rgba(245, 227, 129, 0.3);
    transform: translateY(-8px) translateZ(0);
    background-color: rgba(34, 34, 34, 0.98);
  }
  
  .image-container_why {
    flex: 1;
    max-width: 100;
  }
  
  .image-container_why img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }
  
  .text-container_why {
    flex: 2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .text-container_why h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: #f5e381;
    transition: all 0.3s ease;
    letter-spacing: 1px;
  }
  
  .rectangle_why:hover .text-container_why h3 {
    color: #ffd700;
    transform: scale(1.05);
  }
  
  .text-container_why .line_why {
    height: 2px;
    background: linear-gradient(90deg, transparent, #f5e381, transparent);
    margin: 1.5rem auto;
    width: 60%;
    opacity: 0.8;
    transition: all 0.3s ease;
  }
  
  .rectangle_why:hover .text-container_why .line_why {
    width: 80%;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    opacity: 1;
  }
  
  .text-container_why p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .rectangle_why:hover .text-container_why p {
    color: #fff;
  }
  
  h1,
  h2 {
    color: #f1cf9c;
    margin: 0 auto;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
  }
  
  p {
    color: #fff;
  }
  
  .reverse_why .rectangle_why {
    flex-direction: row-reverse;
  }
  
  /* ========================================
     WHY ZOUHAL SECTION - MOBILE STYLES
     ======================================== */
  @media (max-width: 768px) {
    padding: 4rem 1rem;
    
    .servor_why {
      font-size: 2rem;
      margin-bottom: 3rem;
    }
    
    .container_why {
      align-items: center;
      display: flex;
      height: auto;
      justify-content: center;
      margin-bottom: 2rem;
      min-height: 250px;
      padding: 3rem 1rem 2rem 1rem;
    }
    
    .video-background1 {
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      display: block !important;
    }
    
    .video-background1 video {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
    }
    
    .rectangle_why {
      background-color: rgba(26, 26, 26, 0.95);
      border-radius: 12px;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
      display: flex;
      flex-direction: column;
      max-width: 100%;
      overflow: hidden;
      width: 100%;
    }
    
    .rectangle_why:hover {
      transform: translateY(-5px);
    }
    
    .text-container_why {
      flex: 1;
      padding: 1.5rem;
    }
    
    .text-container_why h3 {
      font-size: 1.2rem;
      margin-bottom: 0.8rem;
    }
    
    .text-container_why p {
      font-size: 0.9rem;
      line-height: 1.5;
    }
    
    h2 {
      color: #f1cf9c;
      margin: 0 auto;
      text-align: center;
      text-transform: uppercase;
      width: 100%;
    }
    
    p {
      color: #fff;
    }
  }
}

/* ========================================
   HOW WORKS SECTION - DESKTOP STYLES
   ======================================== */
#how_works {
  background-attachment: fixed;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../images/00000005_result.webp);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  position: relative;
  padding: 4rem 2rem 6rem 2rem;
  min-height: 100vh;
  
  .white-text {
    color: #fff;
  }
  .black-text {
    color: #000;
  }
  
  .servor_why {
    color: #fcfcfc !important;
    font-family: Arial, sans-serif !important;
    font-size: 2.5rem !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  .line_why {
    background: linear-gradient(90deg, transparent, #f5e381, transparent);
    height: 3px;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 40%;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(245, 227, 129, 0.3);
  }
  
  .container_why {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    min-height: 300px;
    padding: 4rem 1rem 2rem 1rem;
  }
  
  .rectangle_why {
    background-color: rgba(26, 26, 26, 0.95);
    border: 2px solid #333;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    max-width: 900px;
    overflow: hidden;
    width: 100%;
    transition: all 0.4s ease;
    position: relative;
    z-index: 15;
  }
  
  .rectangle_why:hover {
    border-color: #f5e381;
    box-shadow: 0 15px 40px rgba(245, 227, 129, 0.3);
    transform: translateY(-8px) translateZ(0);
    background-color: rgba(34, 34, 34, 0.98);
  }
  
  .text-container_why,
  .text-container_why1 {
    flex: 2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .text-container_why1 h2,
  .text-container_why1 h3 {
    color: #f5e381;
    margin: 0 auto 1rem auto;
    text-align: center;
    width: 100%;
    font-size: 1.6rem;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    line-height: 1.2;
  }
  
  .rectangle_why:hover .text-container_why1 h2,
  .rectangle_why:hover .text-container_why1 h3 {
    color: #ffd700;
    transform: scale(1.05);
  }
  
  .text-container_why1 .line_why {
    height: 2px;
    background: linear-gradient(90deg, transparent, #f5e381, transparent);
    margin: 1.5rem auto;
    width: 60%;
    opacity: 0.8;
    transition: all 0.3s ease;
  }
  
  .rectangle_why:hover .text-container_why1 .line_why {
    width: 80%;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    opacity: 1;
  }
  
  .text-container_why1 p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .rectangle_why:hover .text-container_why1 p {
    color: #fff;
  }
  
  .text-container_why1 ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .text-container_why1 li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    text-align: left;
  }
  
  .text-container_why1 li p {
    margin: 0 !important;
    flex: 1;
    text-align: left;
    line-height: 1.5;
    padding-left: 0 !important;
    text-indent: 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .text-container_why1 li:hover {
    color: #fff;
    transform: translateX(5px);
  }
  
  .text-container_why1 li:before {
    content: "✦";
    color: #f5e381;
    font-weight: bold;
    margin-right: 0.8rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    width: 1.2rem;
    text-align: center;
  }
  
  .rectangle_why:hover .text-container_why1 li:before {
    color: #ffd700;
    transform: rotate(15deg);
  }
  
  @media screen and (max-width: 768px) {
    padding: 4rem 1rem;
    
    .servor_why {
      font-size: 2rem;
      margin-bottom: 3rem;
    }
    
    .container_why {
      align-items: center;
      display: flex;
      height: auto;
      justify-content: center;
      margin-bottom: 2rem;
      min-height: 250px;
      padding: 3rem 1rem 2rem 1rem;
    }
    
    .rectangle_why {
      background-color: rgba(26, 26, 26, 0.95);
      border-radius: 12px;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
      display: flex;
      flex-direction: column;
      max-width: 100%;
      overflow: hidden;
      width: 100%;
    }
    
    .rectangle_why:hover {
      transform: translateY(-5px);
    }
    
    .text-container_why,
    .text-container_why1 {
      flex: 1;
      padding: 1.5rem;
    }
    
    .text-container_why1 h2,
    .text-container_why1 h3 {
      font-size: 1.4rem;
      margin-bottom: 0.8rem;
      line-height: 1.2;
    }
    
    .text-container_why1 p {
      font-size: 0.9rem;
      line-height: 1.5;
    }
    
    .text-container_why1 li {
      font-size: 0.85rem;
      margin-bottom: 0.6rem;
      display: flex;
      align-items: flex-start;
      text-align: left;
    }
    
    .text-container_why1 li p {
      margin: 0 !important;
      flex: 1;
      text-align: left;
      line-height: 1.4;
      padding-left: 0 !important;
      text-indent: 0 !important;
      word-wrap: break-word;
      overflow-wrap: break-word;
      hyphens: auto;
    }
    
    .text-container_why1 li:before {
      margin-right: 0.6rem;
      margin-top: 0.05rem;
      width: 1rem;
      text-align: center;
    }
  }
  
  .reverse_why .rectangle_why {
    flex-direction: row-reverse;
  }
}

/* ========================================
   HOW WORKS SECTION - MOBILE STYLES
   ======================================== */
@media (max-width: 768px) {
  #how_works {
    padding: 4rem 1rem 4rem 1rem;
    min-height: auto;
  }
  
  .servor_why {
    font-size: 2rem;
    margin-bottom: 3rem;
  }
  
  .container_why {
    align-items: center;
    display: flex;
    height: auto;
    justify-content: center;
    margin-bottom: 2rem;
    min-height: 250px;
  }
  
  .rectangle_why {
    background-color: rgba(26, 26, 26, 0.95);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
  }
  
  .rectangle_why:hover {
    transform: translateY(-5px);
  }
  
  .text-container_why,
  .text-container_why1 {
    flex: 1;
    padding: 1.5rem;
  }
  
  .text-container_why1 h2,
  .text-container_why1 h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
  }
  
  .text-container_why1 p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .text-container_why1 li {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    text-align: left;
  }
  
  .text-container_why1 li p {
    margin: 0 !important;
    flex: 1;
    text-align: left;
    line-height: 1.4;
    padding-left: 0 !important;
    text-indent: 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .text-container_why1 li:before {
    margin-right: 0.6rem;
    margin-top: 0.05rem;
    width: 1rem;
    text-align: center;
  }
}

#about {
  background-color: #000;
  overflow: hidden;
  padding: 4rem 0;
}
.company-about {
  color: #fcfcfc;
  font-family: Trebuchet MS;
  font-size: 2rem;
  margin-bottom: -3rem;
  margin-top: -4rem;
  text-align: center;
}
.line_about {
  background-color: #f8c488;
  height: 2px;
  margin: -0.9rem auto 1rem;
  text-align: center;
  width: 30%;
}
.about-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}
.company_our_story {
  height: 2px;
  margin-left: auto;
  margin-right: auto;
  margin-top: -3rem;
  text-align: left;
  width: 50%;
}
.team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.team-member {
  text-align: center;
}
.team-member img {
  border-radius: 50%;
  height: 150px;
  margin-bottom: 1rem;
  object-fit: cover;
  width: 150px;
}
#testimonials {
  background-color: #000;
  padding: 4rem 0;
}
.testimonial_title {
  color: #fcfcfc;
  font-family: Trebuchet MS;
  font-size: 3rem;
  margin-bottom: 0;
  margin-top: 0;
  text-align: center;
}
.testimonial-slider {
  margin: 0 auto;
  max-width: 100%;
}
.testimonial {
  padding: 2rem;
  text-align: center;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  margin-top: 1rem;
}
#contact {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8));
  overflow: hidden;
  padding: 32rem 2rem 6rem 2rem;
  position: relative;
  min-height: 100vh;
}
.contact_title {
  color: #fcfcfc !important;
  font-family: Arial, sans-serif !important;
  font-size: 2.5rem !important;
  margin-bottom: 2rem !important;
  margin-top: 0 !important;
  text-align: center !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
}
.contact_title .line_about {
  background: linear-gradient(90deg, transparent, #f5e381, transparent) !important;
  height: 3px !important;
  margin: 1.5rem auto 0 auto !important;
  width: 40% !important;
  border-radius: 2px !important;
  box-shadow: 0 2px 10px rgba(245, 227, 129, 0.3) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}
#contact-form {
  background-color: rgba(26, 26, 26, 0.95);
  border: 2px solid #333;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  max-width: 700px;
  padding: 3rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 10;
}
#contact-form:hover {
  border-color: #f5e381;
  box-shadow: 0 15px 40px rgba(245, 227, 129, 0.3);
  transform: translateY(-5px) translateZ(0);
  background-color: rgba(34, 34, 34, 0.98);
}
.form-group {
  margin-bottom: 2rem;
  position: relative;
}
.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: #f5e381;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}
#contact-form:hover .form-group label {
  color: #ffd700;
}
.form-group input,
.form-group select,
.form-group textarea {
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid #333;
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #f5e381;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  outline: none;
  box-shadow: 0 0 15px rgba(245, 227, 129, 0.3);
  transform: translateY(-2px);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-group input[type="file"] {
  background-color: transparent;
  border: 2px dashed #333;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.form-group input[type="file"]:hover {
  border-color: #f5e381;
  background-color: rgba(245, 227, 129, 0.1);
}
.form-group input[type="file"]:focus {
  border-color: #f5e381;
  background-color: rgba(245, 227, 129, 0.15);
}
.file-help {
  color: #999;
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.5rem;
  display: block;
}
.red-text {
  color: #ff6b6b;
}
@media (max-width: 768px) {
  #contact {
    padding: 4rem 1rem 4rem 1rem !important;
    min-height: auto;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .contact_title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }
  
  #contact-form {
    padding: 2rem;
    margin: 0 1rem;
    max-width: calc(100% - 2rem);
    box-sizing: border-box;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .form-group textarea {
    min-height: 100px;
  }
}

/* Smaller mobile devices - contact section */
@media (max-width: 480px) {
  #contact {
    padding: 4rem 0.5rem 3rem 0.5rem !important;
  }
  
  .contact_title {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    padding: 0 0.3rem;
  }
  
  #contact-form {
    padding: 1.5rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
  }
}
#hero_pricing {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/IMG_3245_result.webp);
  background-position-y: 50%;
  background-size: cover;
  height: 700px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.hero_pricing_content {
  background-color: transparent;
  color: #e7e7e7;
  max-width: 1200px;
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* PRICING HERO - LUXURY STYLING */
.hero_pricing_content h1 {
  font-family: var(--font-heading) !important;
  font-size: 4rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
}

.hero_pricing_content h1,
.hero_pricing_content h4 {
  animation: slideFromTop 1s ease-out;
  text-align: center;
}

.hero_pricing_content h4 {
  font-family: var(--font-body) !important;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}
/* PRICING HERO - MOBILE RESPONSIVE */
@media (max-width: 768px) {
  #hero_pricing {
    background-position-y: center;
    height: auto;
    min-height: 70vh;
    padding: 20px;
  }
  .hero_pricing_content {
    max-width: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 1rem;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-x: hidden;
  }
  .hero_pricing_content h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
    margin: 0 0 1.5rem 0;
    letter-spacing: 1px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    max-width: 100%;
    white-space: normal;
    overflow-x: hidden;
  }
  .hero_pricing_content h4 {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem) !important;
    margin: 0;
    line-height: 1.5;
    padding: 0 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    max-width: 100%;
    white-space: normal;
    overflow-x: hidden;
  }
}

/* Smaller mobile devices - even more constrained text */
@media (max-width: 480px) {
  .hero_pricing_content {
    max-width: 95%;
    padding: 0 0.5rem;
    overflow-x: hidden;
  }
  
  .hero_pricing_content h1 {
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
    letter-spacing: 0.5px;
    padding: 0 0.2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    overflow-x: hidden;
  }
  
  .hero_pricing_content h4 {
    font-size: clamp(0.8rem, 3vw, 1rem) !important;
    padding: 0 0.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    overflow-x: hidden;
  }
}

#hero_editing {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../images/portrait_result.webp);
  background-size: cover;
  height: 600px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.hero_editing_content {
  background-color: transparent;
  border-radius: 10px;
  color: #fff;
  margin: 0 auto;
  max-width: 600px;
  padding: 2rem;
  position: relative;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.hero_editing_content h1 {
  animation: slideFromTop 1s ease-out;
  font-family: Verdana;
  font-size: 3rem;
  margin-bottom: 0;
  margin-top: 30%;
}
.hero_editing_content p {
  animation: slideFromLeft 1s ease-out 1s;
  animation-fill-mode: backwards;
  font-size: 0.8rem;
  font-style: oblique;
  margin-bottom: 5rem;
  margin-top: -1rem;
}
#steps_edit {
  background-color: #000;
  background-size: cover;
  height: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.line_edit {
  background-color: #e9891b;
  height: 2px;
  margin-bottom: 5rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: 30%;
}
.servor_edit {
  color: #fcfcfc;
  font-family: Trebuchet MS;
  font-size: 2rem;
  margin-bottom: 0;
  margin-top: 3rem;
  text-align: center;
}
.services-grid_edit {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 10%;
}
@media (max-width: 768px) {
  #hero_editing {
    background-position: 50%;
    background-size: cover;
    height: 400px;
  }
  .hero_editing_content {
    max-width: 90%;
    padding: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .hero_editing_content h1 {
    font-size: 2rem;
    margin-top: 20%;
  }
  .hero_editing_content p {
    font-size: 0.7rem;
    margin-bottom: 3rem;
    margin-top: -0.5rem;
  }
  #steps_edit {
    height: auto;
    padding-bottom: 2rem;
  }
  .line_edit {
    margin-bottom: 3rem;
    width: 50%;
  }
  .servor_edit {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  .services-grid_edit {
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 5%;
  }
}
@media (max-width: 480px) {
  #hero_editing {
    background-position: 50%;
    background-size: cover;
    height: 300px;
  }
  .hero_editing_content h1 {
    font-size: 1.8rem;
    margin-top: 15%;
  }
  .hero_editing_content p {
    font-size: 0.6rem;
    margin-bottom: 2rem;
  }
  .line_edit {
    margin-bottom: 2rem;
    width: 70%;
  }
  .servor_edit {
    font-size: 1.2rem;
    margin-top: 1.5rem;
  }
  .services-grid_edit {
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 3%;
  }
}
footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 0;
}
.footer-content {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.quick-links a,
.social-links a {
  margin-right: 1rem;
}
.quick-links a {
  color: #fff;
  text-decoration: none;
}
.copyright {
  margin-top: 1rem;
  text-align: center;
  width: 100%;
}
html {
  scroll-behavior: smooth;
}

/* Main section titles - consistent luxury styling */
#services .servor h2,
#explanation .servor h2,
#why_zouhal .servor_why h2,
#how_works .servor_why h2,
#contact .contact_title h2 {
  font-family: Arial, sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fcfcfc !important;
  text-align: center !important;
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
}

/* ENHANCED LINE STYLING - ALL SECTIONS INCLUDING PRICING */
#services .line_service,
#explanation .line_service,
#why_zouhal .line_why,
#how_works .line_why,
#contact .line_about,
.contact_title .line_about {
  background: linear-gradient(90deg, transparent, var(--accent-beige), transparent) !important;
  height: 3px !important;
  margin: 1.5rem auto 0 auto !important;
  width: 40% !important;
  border-radius: 2px !important;
  box-shadow: 0 2px 10px rgba(245, 227, 129, 0.3) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Hover effects for lines */
#services .line_service:hover,
#explanation .line_service:hover,
#why_zouhal .line_why:hover,
#how_works .line_why:hover,
#contact .line_about:hover {
  background: linear-gradient(90deg, transparent, #ffd700, transparent) !important;
  box-shadow: 0 4px 15px rgba(245, 227, 129, 0.5) !important;
  transform: scaleX(1.1) !important;
  transition: all 0.3s ease !important;
}

/* Mobile responsive styling for section titles */
@media (max-width: 768px) {
  /* Unified mobile section title styling */
  #services .servor,
  #explanation .servor,
  #why_zouhal .servor_why,
  #how_works .servor_why,
  #contact .contact_title {
    color: #fcfcfc !important;
    font-family: Arial, sans-serif !important;
    font-size: 2rem !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  /* Unified mobile line styling for all sections */
  #services .line_service,
  #explanation .line_service,
  #why_zouhal .line_why,
  #how_works .line_why,
  #contact .line_about {
    background: linear-gradient(90deg, transparent, #f5e381, transparent) !important;
    height: 2px !important;
    margin: 1rem auto 0 auto !important;
    width: 50% !important;
    border-radius: 1px !important;
    box-shadow: 0 1px 5px rgba(245, 227, 129, 0.3) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
}

/* Unified section title styling for all sections */
#services .servor,
#explanation .servor,
#why_zouhal .servor_why,
#how_works .servor_why,
#contact .contact_title {
  color: #fcfcfc !important;
  font-family: Arial, sans-serif !important;
  font-size: 2.5rem !important;
  text-align: center !important;
  margin-bottom: 2rem !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Unified line styling for all sections */
#services .line_service,
#explanation .line_service,
#why_zouhal .line_why,
#how_works .line_why,
#contact .line_about {
  background: linear-gradient(90deg, transparent, #f5e381, transparent) !important;
  height: 3px !important;
  margin: 1.5rem auto 0 auto !important;
  width: 40% !important;
  border-radius: 2px !important;
  box-shadow: 0 2px 10px rgba(245, 227, 129, 0.3) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.section-title {
  font-family: Arial, sans-serif;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-align: center;
  margin: 0 0 1.2rem 0;
  background: none;
  border: none;
  box-shadow: none;
  display: block;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 768px) {
  h2.section-title {
    white-space: normal !important;
    overflow: visible;
    text-overflow: unset;
  }
  h1.section-title,
  h3.section-title {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  h1.section-title,
  h2.section-title,
  h3.section-title {
    font-size: clamp(1rem, 6vw, 1.7rem) !important;
    font-weight: 700 !important;
    text-align: center;
    max-width: 100%;
    width: 100%;
    padding: 0 0.5vw;
    margin-left: auto;
    margin-right: auto;
    display: block;
    -webkit-text-size-adjust: 100%;
    word-break: normal;
    overflow-wrap: normal;
  }
  #services .servor,
  #explanation .servor,
  #why_zouhal .servor_why,
  #how_works .servor_why,
  #contact .contact_title {
    width: 100% !important;
    max-width: 100% !important;
  }

  #services .services-grid {
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 0;
    justify-content: center;
    align-items: center;
  }
  #services .service-card1,
  #services .service-card2,
  #services .service-card3,
  #services .service-card4 {
    width: calc(100vw - 2rem);
    max-width: 400px;
    min-width: 0;
    margin: 0 auto 1.2rem auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.hero-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hero-title-container .section-title {
  text-align: center;
  width: auto;
  margin-bottom: 0.5rem;
}
.hero-title-container hr {
  width: 80%;
  max-width: 500px;
  border: none;
  border-top: 2px solid #fff2cc;
  margin: 0 auto 1.5rem auto;
  opacity: 0.7;
}
@media (max-width: 768px) {
  .hero-title-container hr {
    width: 90%;
    max-width: 300px;
  }
  .hero-title-container .section-title {
    font-size: clamp(1.1rem, 6vw, 1.6rem);
    max-width: 95vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

/* Centered overlay label for gallery items */
.gallery-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  background-color: transparent !important;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: none !important;
  background-color: transparent !important;
}
.text_port {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  padding: 0.7em 2em;
  border-radius: 1.5em;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  pointer-events: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}

/* Responsive grid for .gallery */
.gallery {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 300px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
  background: none !important;
  background-color: transparent !important;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
    gap: 16px;
    padding: 1rem 0;
  }
  .text_port {
    font-size: 1.1rem;
    padding: 0.5em 1em;
  }
}

/* Portfolio Banners - FULL WIDTH LAYOUT */
.projects-page .portfolio-banners {
  display: flex !important;
  flex-direction: column !important;
  gap: 0;
  padding: 0;
  max-width: 100%;
  margin: 0;
  align-items: stretch;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.projects-page .portfolio-banner {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 35vh !important;
  min-height: 250px !important;
  transition: transform 0.3s ease;
}

.projects-page .portfolio-banner:hover {
  transform: scale(1.01);
}

.projects-page .portfolio-banner .banner-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.projects-page .portfolio-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.projects-page .portfolio-banner:hover img {
  transform: scale(1.05);
}

.projects-page .banner-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: auto;
  color: #fff;
  padding: 0.8em 2em;
  border-radius: 2em;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  pointer-events: none;
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.projects-page .portfolio-banner:nth-child(even) .banner-overlay {
  left: auto;
  right: 30px;
}

.projects-page .portfolio-banner:hover .banner-overlay {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .projects-page .portfolio-banner {
    height: 30vh !important;
    min-height: 200px !important;
  }
  
  .projects-page .banner-overlay {
    bottom: 20px;
    left: 20px;
    font-size: 1.4rem;
    padding: 0.6em 1.5em;
    letter-spacing: 2px;
  }
  
  .projects-page .portfolio-banner:nth-child(even) .banner-overlay {
    left: auto;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .projects-page .portfolio-banner {
    height: 25vh !important;
    min-height: 180px !important;
  }
  
  .projects-page .banner-overlay {
    bottom: 15px;
    left: 15px;
    font-size: 1.2rem;
    padding: 0.5em 1.2em;
    letter-spacing: 1px;
  }
  
  .projects-page .portfolio-banner:nth-child(even) .banner-overlay {
    left: auto;
    right: 15px;
  }
  
  /* Mobile adjustments for custom positioning */
  .projects-page .portfolio-banner[data-category="weddings"] img {
    object-position: center 40% !important; /* Move slightly down on mobile */
  }
  
  .projects-page .portfolio-banner[data-category="restaurants"] img {
    object-position: center 65% !important; /* Move down a little bit more on mobile */
  }
  
  .projects-page .portfolio-banner[data-category="nights"] img {
    object-position: center 40% !important; /* Move slightly down on mobile */
  }
  
  .projects-page .portfolio-banner[data-category="fashion"] img {
    object-position: center 30% !important; /* Move slightly down on mobile */
  }
  
  .projects-page .portfolio-banner[data-category="accommodations"] img {
    object-position: center 15% !important; /* Move up on mobile */
  }
}

/* Custom positioning for specific portfolio banners */
.projects-page .portfolio-banner[data-category="weddings"] img {
  object-position: center 45% !important; /* Move slightly down from center */
}

.projects-page .portfolio-banner[data-category="restaurants"] img {
  object-position: center 70% !important; /* Move down a little bit more from center */
}

.projects-page .portfolio-banner[data-category="nights"] img {
  object-position: center 45% !important; /* Move slightly down from center */
}

.projects-page .portfolio-banner[data-category="fashion"] img {
  object-position: center 35% !important; /* Move slightly down from center */
}

.projects-page .portfolio-banner[data-category="accommodations"] img {
  object-position: center 20% !important; /* Move up from center */
}

/* Fix gray background issue - add black backgrounds for all pages */
.projects-page,
.black-header-page {
  background-color: #000 !important;
}

.projects-page main, 
.projects-page section, 
.projects-page .gallery,
.black-header-page main,
.black-header-page section {
  background-color: #000 !important;
}

.black-header-page .gallery-item {
  background: none !important;
  background-color: transparent !important;
}

.black-header-page .gallery-item img {
  background: none !important;
  background-color: transparent !important;
}

/* Ensure pricing page sections have proper background */
#hero_pricing,
#contact,
#how_works {
  background-color: #000 !important;
}

/* ===== LUXURY ACCOMMODATION GALLERY STYLES ===== */

/* Accommodation gallery specific styles */
.accommodation-gallery {
    background: var(--background-color);
}

.accommodation-gallery .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.accommodation-gallery .gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.accommodation-gallery .gallery-item:hover {
    transform: scale(1.02);
}

.accommodation-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Basic body styles - keep these */
body.accommodation-gallery {
    margin: 0;
    min-height: 100vh;
}

/* Video thumbnail improvements */
.accommodation-gallery .video-item {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.accommodation-gallery .video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accommodation-gallery .video-item .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.accommodation-gallery .video-item:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}



/* Video thumbnail improvements */
.accommodation-gallery .video-item {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.accommodation-gallery .video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accommodation-gallery .video-item .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.accommodation-gallery .video-item:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* Video loading progress */
.accommodation-gallery .video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s linear;
}

.accommodation-gallery .video-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5e381;
    transform-origin: left;
}

/* Loading indicator improvements - DISABLED OLD LIGHTBOX
.accommodation-gallery .old-lightbox-loading {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(245, 227, 129, 0.2);
    border-top-color: #f5e381;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.accommodation-gallery .loading-text {
    position: absolute;
    top: calc(50% + 40px);
    left: 50%;
    transform: translateX(-50%);
    color: #f5e381;
    font-size: 14px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Image zoom functionality */
.accommodation-gallery .lightbox-content img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.accommodation-gallery .lightbox-content img.zoomed {
    cursor: zoom-out;
    transform: scale(1.5);
}

/* Mobile touch improvements */
@media (max-width: 768px) {
    .accommodation-gallery .lightbox-nav {
        opacity: 0.6;
        transform: translateY(-50%) scale(0.8);
    }

    .accommodation-gallery .lightbox-close {
        opacity: 0.6;
        transform: scale(0.8);
    }

    .accommodation-gallery .lightbox-content img.zoomed {
        transform: scale(1.2); /* Less zoom on mobile */
    }
}

/* Error state styling */
.accommodation-gallery .error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: #ff4444;
}

.accommodation-gallery .error-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.accommodation-gallery .error-message {
    font-size: 16px;
    margin-bottom: 15px;
}

.accommodation-gallery .retry-button {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accommodation-gallery .retry-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Improved lightbox navigation and close button styles */
.accommodation-gallery .lightbox-nav,
.accommodation-gallery .lightbox-close {
    background: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    font-family: Arial, sans-serif !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* Navigation arrows */
.accommodation-gallery .lightbox-nav {
    position: fixed !important;
    top: 50% !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 24px !important;
    z-index: 100003 !important;
    transform: translateY(-50%) !important;
}

.accommodation-gallery .lightbox-prev {
    left: 20px !important;
}

.accommodation-gallery .lightbox-next {
    right: 20px !important;
}

/* Close button */
.accommodation-gallery .lightbox-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 28px !important;
    z-index: 100003 !important;
    line-height: 1 !important;
    padding-bottom: 4px !important;
}

/* Counter styling */
.accommodation-gallery .lightbox-counter {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-family: Arial, sans-serif !important;
    z-index: 100002 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Hover effects */
.accommodation-gallery .lightbox-nav:hover,
.accommodation-gallery .lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.accommodation-gallery .lightbox-close:hover {
    transform: scale(1.1) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .accommodation-gallery .lightbox-nav {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }

    .accommodation-gallery .lightbox-close {
        width: 36px !important;
        height: 36px !important;
        font-size: 24px !important;
    }

    .accommodation-gallery .lightbox-counter {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
}
*/

/* CLEAN PROJECTS GALLERY IMPLEMENTATION */
/* This section is now handled by the main projects gallery CSS above */

.projects-page .gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive CSS is handled by the main projects gallery CSS above */

/* ===== PORTFOLIO STYLES (MERGED FROM Portfolio/styles.css) ===== */

/* Portfolio gallery styles for services.php */
.portfolio-body {
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
  padding: 0;
  margin: 0;
}

.portfolio-body h1 {
  font-size: 24px;
  margin: 0;
}

.portfolio-gallery {
  display: grid;
  gap: 10px;
  grid-auto-flow: dense;
  grid-auto-rows: 250px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 10px;
}

.portfolio-gallery .gallery-item {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.portfolio-gallery .gallery-item img,
.portfolio-gallery .gallery-item video {
  background: #000;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.portfolio-gallery .video-thumbnail {
  display: block;
}

.portfolio-gallery .gallery-item:hover img,
.portfolio-gallery .gallery-item:hover video {
  transform: scale(1.05);
}

.portfolio-gallery .gallery-item.fashion {
  grid-row: span 2;
}

.portfolio-gallery .gallery-item.cinematic {
  grid-column: span 2;
}

.portfolio-gallery .video-container {
  height: 0;
  padding-top: 56.25%;
  position: relative;
}

.portfolio-gallery .video-container video {
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  width: 100%;
}

.portfolio-gallery .lightbox {
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  position: fixed;
  z-index: 1000;
  height: 100%;
  left: 0;
  top: 0;
  width: 100%;
}

.portfolio-gallery .lightbox-content {
  left: 50%;
  max-height: 90%;
  max-width: 90%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.portfolio-gallery .lightbox-content img,
.portfolio-gallery .lightbox-content video {
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  width: 100%;
}

.portfolio-gallery .lightbox-close {
  right: 20px;
  top: 20px;
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  position: absolute;
}

.portfolio-gallery .lightbox-nav {
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.portfolio-gallery .lightbox-prev {
  left: 20px;
}

.portfolio-gallery .lightbox-next {
  right: 20px;
}

.portfolio-gallery .play-overlay {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  touch-action: manipulation;
  width: 100%;
}

.portfolio-gallery .play-button {
  background-color: hsla(0, 0%, 100%, 0.9);
  height: 80px;
  position: relative;
  transition: transform 0.2s ease;
  width: 80px;
}

.portfolio-gallery .play-button:active {
  transform: scale(0.9);
}

.portfolio-gallery .play-button:before {
  border-color: transparent transparent transparent #000;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  content: "";
  left: 54%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.portfolio-gallery .gallery-item:hover .play-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .portfolio-gallery {
    grid-auto-rows: 150px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .portfolio-gallery .play-button {
    height: 60px;
    width: 60px;
  }
  
  .portfolio-gallery .gallery-item video {
    object-position: center;
  }
}

@media (hover: none) {
  .portfolio-gallery .gallery-item:hover img {
    transform: none;
  }
  
  .portfolio-gallery .gallery-item:hover .play-overlay {
    background-color: rgba(0, 0, 0, 0.3);
  }
}

/* Portfolio footer styles */
.portfolio-footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 0;
}

.portfolio-footer .footer-content {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.portfolio-footer .quick-links a,
.portfolio-footer .social-links a {
  margin-right: 1rem;
}

.portfolio-footer .quick-links a {
  color: #fff;
  text-decoration: none;
}

.portfolio-footer .copyright {
  margin-top: 1rem;
  text-align: center;
  width: 100%;
}


/* ===== UX ENHANCEMENTS (RESTORED - CRITICAL FIX) ===== */

/* Scroll animations - FIXED FOR NO-JS */
.animate-on-scroll {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.6s ease-out;
}

.animate-stagger {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.4s ease-out;
}

.animate-stagger > * {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease-out;
}

/* Loading states */
.page-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
  opacity: 0 !important;
  pointer-events: none !important;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(245, 227, 129, 0.3);
  border-top: 3px solid #f5e381;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  color: #f5e381;
  font-size: 1.2rem;
  margin-top: 20px;
  text-align: center;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ==========================================
   SCROLL PROGRESS BAR & BACK TO TOP BUTTON
   ========================================== */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-beige), var(--accent-beige-light));
    z-index: 9999;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(233, 216, 169, 0.5);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-beige), var(--accent-beige-dark));
    color: var(--background-color);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--accent-beige-light), var(--accent-beige));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--accent-beige);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-left-color: #4CAF50;
}

.toast.error {
    border-left-color: #f44336;
}

.toast.warning {
    border-left-color: #FF9800;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        margin-bottom: 8px;
    }
}

/* Form enhancements */
.form-group input,
.form-group textarea,
.form-group select {
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #f5e381;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 227, 129, 0.3);
}

.form-validation.error {
  border-color: #ff4444;
  box-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
}

.form-validation.success {
  border-color: #44ff44;
  box-shadow: 0 0 5px rgba(68, 255, 68, 0.3);
}

.error-message {
  color: #ff4444;
  font-size: 0.9em;
  margin-top: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message.show {
  opacity: 1;
}

/* Accessibility improvements */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  border-radius: 4px;
}

.skip-to-content:focus {
  top: 6px;
}

/* Focus indicators */
*:focus {
  outline: 2px solid #f5e381;
  outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* Performance optimizations */
.animate-on-scroll,
.service-card1,
.btn {
  will-change: transform;
  backface-visibility: hidden;
}

/* Mobile enhancements */
@media (max-width: 768px) {
  .btn:active,
  .menu a:active {
    transform: scale(0.95);
  }
}

/* Essential utility classes */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.align-items-stretch { align-items: stretch; }

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

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }

.fw-normal { font-weight: normal; }
.fw-bold { font-weight: bold; }

.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }
.w-auto { width: auto; }

.h-25 { height: 25%; }
.h-50 { height: 50%; }
.h-75 { height: 75%; }
.h-100 { height: 100%; }
.h-auto { height: auto; }

.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.border { border: 1px solid #DEE2E6; }
.border-0 { border: 0; }
.rounded { border-radius: 0.25rem; }
.rounded-0 { border-radius: 0; }
.rounded-circle { border-radius: 50%; }

.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175); }
.shadow-none { box-shadow: none; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Responsive utilities */
@media (max-width: 575.98px) {
  .d-sm-none { display: none; }
  .d-sm-block { display: block; }
  .d-sm-flex { display: flex; }
}

@media (max-width: 767.98px) {
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  .d-md-flex { display: flex; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: #f5e381;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffd700;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #f5e381 rgba(255, 255, 255, 0.1);
}

/* ==========================================
   ADDITIONAL RESPONSIVE UTILITIES
   ========================================== */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

@media screen and (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .text-center-mobile {
    text-align: center !important;
  }
}

/* =====================================================
   PHASE 3: COMPLETE ANIMATIONS & OPTIMIZATIONS
   ===================================================== */

/* SCROLL REVEAL ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--transition);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s var(--transition);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s var(--transition);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 3D TRANSFORMS FOR SERVICE CARDS */
@media (min-width: 769px) {
  #services .service-card1:hover,
  #services .service-card2:hover,
  #services .service-card3:hover,
  #services .service-card4:hover {
    transform: translateY(-8px) rotateX(5deg) translateZ(0) !important;
    will-change: transform;
  }
}

/* PARALLAX EFFECTS */
.parallax-element {
  will-change: transform;
  transform: translateZ(0);
}

/* PERFORMANCE OPTIMIZATIONS */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ENHANCED SCROLL BEHAVIOR */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* ACCESSIBILITY - REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-content {
    animation: none;
  }

  .fade-in-up,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
  }
}

/* PHASE 3: ENHANCED FOCUS INDICATORS */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus,
.gallery-item:focus {
  outline: 3px solid var(--accent-beige);
  outline-offset: 2px;
}

/* PHASE 3: ENHANCED SERVICE CARD INTERACTIONS */
#services .service-card1,
#services .service-card2,
#services .service-card3,
#services .service-card4 {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 216, 169, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#services .service-card1::before,
#services .service-card2::before,
#services .service-card3::before,
#services .service-card4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(233, 216, 169, 0.05), rgba(233, 216, 169, 0.01));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

@media (min-width: 769px) {
  #services .service-card1:hover::before,
  #services .service-card2:hover::before,
  #services .service-card3:hover::before,
  #services .service-card4:hover::before {
    opacity: 1;
  }
}

/* PHASE 3: ENHANCED TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 2rem;
}

/* MOBILE RESPONSIVE ENHANCEMENTS - PHASE 3 */
@media screen and (max-width: 768px) {
  .hero-content {
    animation: none; /* Disable floating on mobile for performance */
  }
  
  #services .service-card1:hover,
  #services .service-card2:hover,
  #services .service-card3:hover,
  #services .service-card4:hover {
    transform: translateY(-4px) translateZ(0) !important; /* Reduced 3D effects on mobile */
  }
}


/* ========================================
   GALLERY HERO SECTIONS - COMPACT DESIGN
   ======================================== */
.gallery-hero {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8));
  padding: 4rem 2rem 3rem 2rem;
  text-align: center;
  margin: 0;
  width: 100%;
  position: relative;
  z-index: 10;
  min-height: auto;
}

.gallery-hero .hero-content {
  background-color: transparent;
  color: #fff;
  margin: 0 auto;
  max-width: 800px;
  padding: 0;
  position: static;
  transform: none;
  top: auto;
  animation: none;
  will-change: auto;
}

.gallery-hero .hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.2;
}

.gallery-hero .hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  padding: 0;
  letter-spacing: 1px;
}

/* Split-Color Branding for Gallery Pages */
.gallery-hero .beige-text {
  color: var(--accent-beige) !important;
}

.gallery-hero .white-text {
  color: #ffffff !important;
}

/* Mobile Responsive Gallery Hero */
@media (max-width: 768px) {
  .gallery-hero {
    padding: 4rem 1rem 2rem 1rem;
  }
  
  .gallery-hero .hero-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin: 1.5rem 0 1rem 0;
  }
  
  .gallery-hero .hero-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .gallery-hero {
    padding: 4rem 1rem 1.5rem 1rem;
  }
  
  .gallery-hero .hero-title {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    margin: 1.2rem 0 1rem 0;
  }
  
  .gallery-hero .hero-subtitle {
    font-size: 0.8rem;
  }
}

/* GLOBAL MOBILE TEXT OVERFLOW PREVENTION */
@media (max-width: 768px) {
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  h1, h2, h3, h4, h5, h6, p, div, span {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    white-space: normal !important;
    overflow-x: hidden !important;
  }
  
  body {
    overflow-x: hidden !important;
  }
  
  /* Exception for hero titles to prevent text cutoff */
  .gallery-hero .hero-title {
    white-space: nowrap !important;
    overflow-x: visible !important;
    max-width: none !important;
  }
}

/* REMOVE BLACK SPACES BETWEEN SECTIONS */
section {
  margin: 0 !important;
  padding: 0 !important;
}

/* Exception for contact section to maintain its padding */
#contact {
  padding: 4rem 2rem 6rem 2rem !important;
}

main {
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure seamless transitions between sections */
#hero, #services, #about, #testimonials, #steps_edit, #hero_pricing {
  margin: 0 !important;
  padding: 0 !important;
}

/* Keep explanation section with proper padding for brands section */
#explanation {
  margin: 0 !important;
  padding: 4rem 2rem 2rem 2rem !important;
}

/* Mobile explanation section padding */
@media (max-width: 768px) {
  #explanation {
    padding: 3rem 1rem 1.5rem 1rem !important;
  }
}

/* Keep how_works section with proper padding */
#how_works {
  margin: 0 !important;
  padding: 8rem 2rem 6rem 2rem !important;
}

/* Mobile how_works section padding */
@media (max-width: 768px) {
  #how_works {
    padding: 6rem 1rem 4rem 1rem !important;
  }
  
  .container_why {
    padding: 3rem 1rem 2rem 1rem !important;
  }
}

/* Keep original padding for why_zouhal to maintain video container */
#why_zouhal {
  margin: 0 !important;
  padding: 6rem 2rem !important;
}

/* Remove any remaining spacing from specific sections */
#about {
  padding: 0 !important;
  margin: 0 !important;
}

#testimonials {
  padding: 0 !important;
  margin: 0 !important;
}

#steps_edit {
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove spacing from all divs and containers */
.container_explanation,
.servor,
.servor_why,
.text-container_why,
.text-container_why1 {
  margin: 0 !important;
  padding: 0 !important;
}

/* Keep container_why with proper padding for step positioning */
.container_why {
  margin: 0 !important;
  padding: 4rem 1rem 2rem 1rem !important;
}

/* Keep rectangle_why with proper styling */
.rectangle_why {
  margin: 0 !important;
  padding: 0 !important;
}

/* NOTIFICATION SYSTEM */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000000;
  max-width: 400px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideInRight 0.3s ease-out;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.4;
}

.notification-success {
  background: rgba(34, 197, 94, 0.9);
  color: white;
  border-left: 4px solid #22c55e;
}

.notification-error {
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border-left: 4px solid #ef4444;
}

.notification-info {
  background: rgba(59, 130, 246, 0.9);
  color: white;
  border-left: 4px solid #3b82f6;
}

.notification-warning {
  background: rgba(245, 158, 11, 0.9);
  color: white;
  border-left: 4px solid #f59e0b;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.notification-message {
  flex: 1;
  white-space: pre-line;
}

.notification-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.notification-close:hover {
  opacity: 1;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile responsive notifications */
@media (max-width: 768px) {
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    font-size: 0.85rem;
  }
}
