/* ===================================
   POINT DOS - Interior Design Website
   Premium Design System & Styles
   =================================== */

/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background-color: #333333;
  color: #fff;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background-color: #666666;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #333333;
}

:root {
  /* Colors - Monochromatic Palette */
  --primary-gold: #333333;
  --gold-light: #666666;
  --gold-dark: #1a1a1a;
  --dark-bg: #1a1a1a;
  --dark-secondary: #2a2a2a;
  --light-cream: #f5f5f5;
  --warm-beige: #e8e8e8;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  --text-lighter: #999999;

  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-arabic: 'Cairo', sans-serif;

  /* Spacing */
  --container-max: 1400px;
  --section-padding: 100px;
  --gap-lg: 60px;
  --gap-md: 40px;
  --gap-sm: 20px;

  /* Border Radius */
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* ===================================
   Scroll Animations
   =================================== */
.scroll-animate {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate[data-animation="fade-up"] {
  transform: translateY(40px);
}

.scroll-animate[data-animation="slide-left"] {
  transform: translateX(-60px);
}

.scroll-animate[data-animation="slide-right"] {
  transform: translateX(60px);
}

.scroll-animate[data-animation="slide-up"] {
  transform: translateY(60px);
}

.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Counter Animation */
.counter-animate {
  transition: transform 0.3s ease;
}

.counter-animate.counted {
  animation: pulse 0.5s ease;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Stagger Animation for Grid Items */
.why-card,
.project-card,
.blog-card,
.sector-item,
.service-btn {
  transition-delay: calc(var(--animation-order, 0) * 0.1s);
}

/* ===================================
   Intro Animations (Page Load)
   =================================== */
@keyframes slideDownNav {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-100px);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideUpHero {
  0% {
    opacity: 0;
    transform: translateY(80px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInHero {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Initial state - hidden */
.modern-nav {
  opacity: 0;
}

.hero-container {
  opacity: 0;
}

.hero-section::before {
  opacity: 0;
}

/* Animated state */
.modern-nav.intro-animated {
  animation: slideDownNav 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-container.intro-animated {
  animation: slideUpHero 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.hero-section.intro-animated::before {
  animation: fadeInHero 1s ease 0.5s forwards;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--light-cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
}

.flex {
  display: flex;
}

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

.justify-between {
  justify-content: space-between;
}

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

.gap-4 {
  gap: 20px;
}

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

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.cursor-pointer {
  cursor: pointer;
}

.py-5 {
  padding-top: 30px;
  padding-bottom: 30px;
}

.px-5 {
  padding-left: 30px;
  padding-right: 30px;
}

.mb-5 {
  margin-bottom: 30px;
}

.mb-20 {
  margin-bottom: 100px;
}

.mt-5 {
  margin-top: 30px;
}

.ml-3 {
  margin-left: 15px;
}

.m-auto {
  margin: auto;
}

.w-14 {
  width: 56px;
}

.w-1\/2 {
  width: 50%;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-5xl {
  font-size: 3rem;
}

.text-white {
  color: var(--white);
}

.z-2 {
  z-index: 2;
}

.z-10 {
  z-index: 10;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.rounded-4xl {
  border-radius: var(--radius-xl);
}

/* ===================================
   Modern Navigation
   =================================== */
.modern-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 1400px;
  background: #F7F7F7;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50px;
  transition: var(--transition-smooth);
  z-index: 1000;
  padding: 15px 30px;
}

.modern-nav.scrolled {
  background: #F7F7F7;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  padding: 12px 30px;
}

.nav-container {
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 50px;
  width: auto;
  border-radius: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

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

.desktop-menu {
  display: flex;
  gap: 45px;
  align-items: center;
}

.desktop-menu li a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition-smooth);
  padding: 8px 0;
}

.desktop-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #333333;
  transition: var(--transition-smooth);
}

.desktop-menu li a:hover {
  color: var(--primary-gold);
}

.desktop-menu li a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary-gold);
  border: 2px solid var(--primary-gold);
  border-radius: 50px;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-switcher:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(51, 51, 51, 0.4);
}

.lang-icon {
  font-size: 16px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: var(--transition-smooth);
}

.mobile-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition: var(--transition-smooth);
}

.mobile-menu.active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.mobile-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-close:hover {
  background: #333333;
  border-color: #333333;
  transform: rotate(90deg);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.mobile-menu-links li a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  position: relative;
  transition: var(--transition-smooth);
  padding: 10px 0;
}

.mobile-menu-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #666666;
  transition: var(--transition-smooth);
}

.mobile-menu-links li a:hover {
  color: #666666;
  transform: translateX(10px);
}

.mobile-menu-links li a:hover::after {
  width: 100%;
}

/* ===================================
   Hero Section - Background Swiper
   =================================== */
.hero-section {
  position: relative;
  width: calc(100% - 60px);
  min-height: 85vh;
  display: flex;
  align-items: center;
  border-radius: 40px;
  overflow: hidden;
  margin-top: 70px;
  margin-left: 30px;
  margin-right: 30px;
  margin-bottom: 100px;
}

/* Hero Swiper Container */
.hero-swiper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1s ease, transform 6s ease;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  animation: heroZoom 6s ease forwards;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

/* Dark overlay on slides */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.5) 0%, rgba(42, 42, 42, 0.35) 100%);
}

/* Hero Dot Pagination */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-dot::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.hero-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.hero-dot.active::before {
  transform: scale(1);
}

/* Hero Content */
.hero-container {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-end;
}

.hero-left {
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-title .title-line {
  display: block;
  margin: 0;
}

/* Text Reveal Animation */
.animate-text {
  opacity: 0;
  transform: translateY(30px);
  animation: textReveal 0.8s ease forwards;
}

.animate-text:nth-child(1) {
  animation-delay: 0.3s;
}

.animate-text:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-description.animate-text {
  animation-delay: 0.7s;
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-description {
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.6;
  font-weight: 400;
}

/* CTA Button with Glow & Magnetic Effect */
.hero-cta-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 12px 26px;
  background: #333333;
  color: var(--white);
  font-weight: 500;
  font-size: 13px;
  border-radius: 6px;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.hero-cta-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #444, #666, #888, #666, #444);
  background-size: 400% 400%;
  border-radius: 8px;
  z-index: -1;
  opacity: 0;
  animation: glowPulse 3s ease infinite;
  transition: opacity 0.4s ease;
}

.hero-cta-btn:hover::before {
  opacity: 1;
}

@keyframes glowPulse {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-cta-btn:hover {
  background: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(51, 51, 51, 0.4);
}

/* Ripple effect on click */
.hero-cta-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

.hero-cta-btn:active::after {
  transform: scale(2);
  opacity: 0;
  transition: 0s;
}

/* ===================================
   Who We Are Section
   =================================== */
.section-who-we-are {
  padding: 0 0 100px;
  background: var(--light-cream);
}

.who-cards {
  display: flex;
  gap: 20px;
}

.who-stats-card {
  width: 35%;
  height: 300px;
  background-color: #2e2e2e;
  border-radius: 25px;
  padding: 28px;
  position: relative;
}

.who-mission-card {
  width: 65%;
  height: 300px;
  background-color: #2e2e2e;
  border-radius: 25px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.who-mission-card .txt {
  width: 60%;
  padding: 45px;

}

.who-mission-card .txt p {
  font-size: 12px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.who-mission-card .txt p.two {
  margin-bottom: 0;
}

.who-mission-card h2 {
  font-size: 35px;
  font-weight: 500;
  color: white;
  line-height: 100%;
  margin-bottom: 25px;
}

.who-mission-card h2 span {
  color: #888888;
}

.who-mission-card .img {
  width: 450px;
  height: 450px;
  background-color: #2a2a2a;
  border-radius: 50%;
  position: absolute;
  right: -120px;
  top: -75px;
  border: 20px solid #fff;
}

.who-mission-card .img img {

  border-radius: 50%;
  width: 100%;
  height: 100%;
}

/* RTL Support for Who We Are Section */
body.rtl .who-mission-card .img {
  right: auto;
  left: -120px;
}

body.rtl .who-mission-card .txt {
  text-align: right;
}

body.rtl .who-stats-card {
  text-align: right;
}

body.rtl .textInBotom {
  right: 28px;
  left: auto;
}

body.rtl .textInBotom::before {
  left: auto;
  right: 50%;
  transform: translate(50%, -50%);
}

/* RTL for Tabs */
body.rtl .tab-section .tab {
  /* Keep image on the right in RTL */
  flex-direction: row;
}

body.rtl .tab-section .tab .txt {
  text-align: right;
}

/* RTL for Why Choose Section */
body.rtl .why-choose-title {
  text-align: right;
}

body.rtl .card-solutions,
body.rtl .card-variety,
body.rtl .card-bespoke {
  text-align: right;
}

body.rtl .card-solutions .card-icon {
  left: auto;
  right: 30px;
}

body.rtl .card-quality .card-content {
  text-align: right;
}

body.rtl .card-support .card-content {
  text-align: right;
}

.who-stats-text {
  font-size: 12px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.4;
  text-transform: uppercase;
  display: inline-block;
}

.textInBotom {
  position: absolute;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 40px;
  color: white;
}

.textInBotom::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
}

.pOne {
  font-size: 65px;
  line-height: 45%;
}

.pOne span {
  font-size: 14px;
}

.pTwo {
  font-size: 32px;
  line-height: 45%;
}

.pTwo span {
  font-size: 12px;
  line-height: 45%;
}

;

/* Tab Section - Book Page Effect */
.tabs-wrapper {
  position: relative;
}

.tabs-wrapper .tab-section {
  position: sticky;
  top: 120px;
  margin-bottom: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Stacked tabs - each layer offset by 20px, later tabs on top */
.tabs-wrapper .tab-section:nth-child(1) {
  z-index: 1;
  top: 120px;
}

.tabs-wrapper .tab-section:nth-child(2) {
  z-index: 2;
  top: 140px;
}

.tabs-wrapper .tab-section:nth-child(3) {
  z-index: 3;
  top: 160px;
}

.tabs-wrapper .tab-section:nth-child(4) {
  z-index: 4;
  top: 180px;
}

.tabs-wrapper .tab-section:nth-child(5) {
  z-index: 5;
  top: 200px;
}

/* Stacked state - scale down and show as background layer */
.tabs-wrapper .tab-section.stacked {
  transform: scale(0.98);
}

.tabs-wrapper+.section-why-choose {

  position: relative;
  z-index: 10;
}

/* ===================================
   Why Choose Section
   =================================== */
.section-why-choose {
  padding: 100px 0;
  background: var(--light-cream);
  overflow: hidden;
  max-width: 100vw;
}

.why-choose-title {
  font-size: 3rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 50px;
}

.why-choose-title span {
  color: #666666;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

/* Base card styles */
.why-card {
  padding: 30px;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.why-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Card 1: End-to-End Solutions - Light Gray */
.card-solutions {
  background: #e8e8e8;
  grid-column: 1;
  grid-row: 1;
}

.card-solutions h3,
.card-solutions p {
  color: var(--text-dark);
}

.card-solutions .card-icon {
  position: absolute;
  bottom: 20px;
  left: 30px;
  font-size: 3rem;
  color: #666666;
  opacity: 0.6;
}

.card-solutions .card-icon i {
  transform: rotate(-15deg);
}

/* Card 2: After-Sales Support - Image background */
.card-support {
  grid-column: 2;
  grid-row: 1;
  min-height: 200px;
}

.card-support .card-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.card-support .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.card-support .card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 40px;
}

.card-support h3,
.card-support p {
  color: white;
}

/* Card 3: No Variety Restrictions - Dark Gray Gradient */
.card-variety {
  background: linear-gradient(135deg, #4a4a4a 0%, #1a1a1a 100%);
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.card-variety h3 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 25px;
}

.card-variety p {
  color: rgba(255, 255, 255, 0.85);
}

/* Card 4: Superior Quality - Image background */
.card-quality {
  grid-column: 1 / 3;
  grid-row: 2;
  min-height: 220px;
}

.card-quality .card-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.card-quality .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.card-quality .card-content {
  position: relative;
  z-index: 2;
  max-width: 450px;
  padding-top: 20px;
}

.card-quality h3 {
  font-size: 1.5rem;
  color: white;
}

.card-quality p {
  color: rgba(255, 255, 255, 0.85);
}

/* Card 5: Bespoke Furniture - Gray Gradient */
.card-bespoke {
  background: linear-gradient(180deg, #555555 0%, #2a2a2a 100%);
  grid-column: 3;
  grid-row: 2;
  display: none;
  /* Hide since variety card spans both rows */
}

.card-bespoke h3,
.card-bespoke p {
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .why-choose-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-variety {
    grid-column: 2;
    grid-row: 1;
    min-height: 200px;
  }

  .card-quality {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .card-bespoke {
    display: block;
    grid-column: 1 / 3;
    grid-row: 3;
  }
}

@media (max-width: 768px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
  }

  .card-solutions,
  .card-support,
  .card-variety,
  .card-quality,
  .card-bespoke {
    grid-column: 1;
    grid-row: auto;
  }

  .card-variety,
  .card-quality {
    min-height: 250px;
  }

  .why-choose-title {
    font-size: 2rem;
  }

  /* Fix icon position on mobile */
  .card-solutions {
    padding-bottom: 80px;
  }

  .card-solutions .card-icon {
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 2.5rem;
  }

  /* Disable scale on hover to prevent horizontal overflow */
  .why-card:hover {
    transform: translateY(-8px);
  }

  .why-choose-grid {
    max-width: 100%;
    overflow: hidden;
  }
}

.tabs-wrapper+.section-services {
  margin-top: 100px;
  position: relative;
  z-index: 10;
}

.tab-section .tab {
  width: 100%;
  height: 450px;
  border-radius: 35px;
  background-color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.tab-section .tab div {
  width: 50%;
}

.tab-section .tab .txt {
  padding: 50px 70px;
}

.tab-section .tab .txt h2 {
  font-size: 35px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 100%;
  margin-bottom: 45px;
}

.tab-section .tab .txt .spanOne {
  font-size: 12px;
  background-color: #888888;
  color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
  line-height: 100%;
  margin-bottom: 15px;
  display: inline-block;
}

.tab-section .tab .txt .spanTwo {
  font-size: 35px;
  color: #888888;
}

.tab-section .tab .txt .pOne {
  font-size: 35px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 100%;
  margin-bottom: 25px;
  text-transform: capitalize;
}

.tab-section .tab .txt .pTwo {
  font-size: 16px;
  font-weight: 300;
  color: #1a1a1a;
  line-height: 140%;
  margin-bottom: 25px;
}

.tab-section .tab .txt a {
  display: inline-block;
  padding: 12px 26px;
  background-color: #888888;
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  border-radius: 6px;
  border: none;
  transition: var(--transition-smooth);
  box-shadow: none;
}

.tab-section .tab .txt a:hover {
  background-color: #1a1a1a;
}

.tab-section .tab .img {
  border-radius: 35px;
  overflow: hidden;
  height: 100%;
}

.tab-section .tab .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tab Section Responsive */
@media (max-width: 1024px) {
  section.tab-section {
    margin-bottom: 100px;
  }

  .tab-section .tab {
    flex-direction: column;
    height: auto;
  }

  .tab-section .tab div {
    width: 100%;
  }

  .tab-section .tab .txt {
    padding: 30px;
  }

  .tab-section .tab .txt h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .tab-section .tab .txt .pOne {
    font-size: 28px;
  }

  .tab-section .tab .txt .spanTwo {
    font-size: 28px;
  }

  .tab-section .tab .txt .pTwo {
    font-size: 14px;
  }

  .tab-section .tab .img {
    height: 300px;
    border-radius: 35px;
  }

  /* Add space between tabs on mobile to see image before scrolling */
  .tabs-wrapper .tab-section {
    margin-bottom: 150px;
  }
}

.stats-card {
  position: relative;
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  padding: 60px 40px;
  border-radius: 20px;
  color: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stats-decoration {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0.3;
}

.stat-item-large {
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.stat-item-small {
  position: relative;
  z-index: 2;
}

.stat-number {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 10px;
  line-height: 1;
}

.stat-item-small .stat-number {
  font-size: 2.5rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.4;
}

.who-content {
  padding-top: 20px;
}

.who-title {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.who-title .highlight {
  color: #333333;
  font-weight: 600;
}

.who-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.who-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  height: 100%;
  max-height: 500px;
}

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

.who-image:hover img {
  transform: scale(1.05);
}

/* ===================================
   Section 2: About Us
   =================================== */
.section-about {
  padding: var(--section-padding) 0;
  background: var(--light-cream);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: var(--gap-lg);
  align-items: center;
}

.about-content {
  padding-right: 40px;
}

.section-label {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(51, 51, 51, 0.1);
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  border-radius: 30px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.2;
}

.arabic-title {
  font-family: var(--font-arabic);
  direction: rtl;
  color: #333333;
}

.section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.3;
}

.about-description {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.features-list {
  display: flex;
  gap: 30px;
  margin: 30px 0;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-dark);
}

.features-list li i {
  color: #333333;
  font-size: 20px;
}

.btn-primary {
  display: inline-block;
  margin-top: 20px;
  padding: 16px 40px;
  background: #333333;
  color: var(--white);
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 25px rgba(51, 51, 51, 0.3);
}

.btn-primary:hover {
  background: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(51, 51, 51, 0.5);
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.image-wrapper img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  border: 3px solid #666666;
  border-radius: var(--radius-md);
  z-index: -1;
}

/* ===================================
   Section 3: Services Categories
   =================================== */
.section-services {
  padding: 200px 0 100px;
  background: var(--warm-beige);
  position: relative;
  overflow: hidden;
}

.decorative-left {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.frame-illustration {
  width: 180px;
  height: 240px;
  border: 4px solid rgba(102, 102, 102, 0.3);
  border-radius: 20px;
  margin-bottom: 30px;
  transform: rotate(-10deg);
  overflow: hidden;
}

.frame-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-illustration-2 {
  width: 140px;
  height: 180px;
  border: 3px solid rgba(102, 102, 102, 0.2);
  border-radius: 15px;
  transform: rotate(15deg);
  margin-left: 40px;
  overflow: hidden;
}

.frame-illustration-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.decorative-right {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.interior-preview {
  width: 320px;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
}

.interior-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lamp-illustration {
  width: 100px;
  height: 200px;
  background: linear-gradient(180deg, rgba(102, 102, 102, 0.2) 0%, transparent 100%);
  border-radius: 50% 50% 0 0;
  margin-left: auto;
  margin-right: 60px;
}

.services-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 50px;
}

.services-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.services-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 50px;
  line-height: 1.7;
}

.service-categories {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.service-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.service-btn i {
  color: #666666;
  font-size: 20px;
  transition: var(--transition-smooth);
}

.service-btn:hover,
.service-btn.active {
  background: #333333;
  color: var(--white);
  border-color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(51, 51, 51, 0.4);
}

.service-btn:hover i,
.service-btn.active i {
  color: var(--white);
  transform: scale(1.2);
}

.service-btn span {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ===================================
   Work Sectors Section
   =================================== */
.section-work-sectors {
  padding: 100px 0;
  background: var(--white);
}

.section-work-sectors .section-header {
  margin-bottom: 70px;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.sector-item {
  position: relative;
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  border: 2px solid rgba(51, 51, 51, 0.08);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sector-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  opacity: 0;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  z-index: 0;
}

.sector-item:hover::before {
  opacity: 1;
}

.sector-item h3 {
  position: relative;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  transition: var(--transition-smooth);
  z-index: 1;
}

.sector-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(51, 51, 51, 0.2);
  border-color: #333333;
}

.sector-item:hover h3 {
  color: var(--white);
}

/* RTL Support for Sectors */
html[dir="rtl"] .sectors-grid {
  direction: rtl;
}

/* ===================================
   Section 4: Portfolio Gallery
   =================================== */
.section-portfolio {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle {
  margin-bottom: 15px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-lighter);
  max-width: 700px;
  margin: 0 auto;
}

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

.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(51, 51, 51, 0.95) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h4 {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.project-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.project-info {
  display: none;
}

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

.btn-gold {
  display: inline-block;
  padding: 18px 50px;
  background: #333333;
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  border-radius: 50px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(51, 51, 51, 0.3);
}

.btn-gold:hover {
  background: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(51, 51, 51, 0.5);
}

/* ===================================
   Section 5: Blog / Articles
   =================================== */
.section-blog {
  padding: var(--section-padding) 0;
  background: var(--light-cream);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.blog-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.blog-card:hover .blog-image img {
  transform: scale(1.08);
}

.blog-category {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 20px;
  background: #333333;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-content {
  padding: 30px;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-lighter);
}

.blog-meta i {
  margin-right: 6px;
  color: #666666;
}

.blog-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.4;
  transition: var(--transition-fast);
}

.blog-card:hover .blog-title {
  color: #333333;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333333;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-fast);
}

.blog-link:hover {
  gap: 15px;
}

.blog-link i {
  transition: var(--transition-fast);
}

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

.btn-outline {
  display: inline-block;
  padding: 16px 45px;
  background: transparent;
  color: #333333;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid #333333;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: #333333;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(51, 51, 51, 0.3);
}

/* ===================================
   Section 6: Footer
   =================================== */
.footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 80px;
  width: auto;
  border-radius: 12px;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.social-links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background: #666666;
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #666666;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  padding-left: 0;
  position: relative;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: var(--transition-fast);
  color: #666666;
}

.footer-links a:hover {
  color: #666666;
  padding-left: 25px;
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-contact i {
  color: #666666;
  font-size: 18px;
  margin-top: 2px;
  min-width: 20px;
}

.footer-bottom {
  padding: 30px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom i {
  color: #666666;
  margin: 0 5px;
}

/* ===================================
   RTL Support
   =================================== */
body.rtl {
  direction: rtl;
}

body.rtl .nav-logo h2,
body.rtl .hero-title,
body.rtl .section-title {
  font-family: var(--font-arabic);
}

body.rtl .desktop-menu li a::after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

body.rtl .mobile-menu {
  right: auto;
  left: -100%;
}

body.rtl .mobile-menu.active {
  left: 0;
  right: auto;
}

body.rtl .mobile-close {
  right: auto;
  left: 30px;
}

body.rtl .mobile-menu-links li a:hover {
  transform: translateX(-10px);
}

body.rtl .hero-btn i {
  margin-left: 0;
  margin-right: 12px;
}

body.rtl .footer-title::after {
  left: auto;
  right: 0;
}

body.rtl .footer-links a::before {
  content: '←';
  left: auto;
  right: -20px;
}

body.rtl .footer-links a:hover {
  padding-left: 0;
  padding-right: 25px;
}

body.rtl .footer-links a:hover::before {
  opacity: 1;
  left: auto;
  right: 0;
}

body.rtl .blog-link i {
  transform: scale(-1);
}

body.rtl .blog-meta i {
  margin-right: 0;
  margin-left: 6px;
}

body.rtl .btn-gold i {
  transform: scaleX(-1);
}

/* ===================================
   Responsive Design
   =================================== */

/* Medium screens (max 1280px) */
@media (max-width: 1280px) {

  /* Hide decorative elements in services section */
  .decorative-left,
  .decorative-right {
    display: none;
  }

  /* Reduce services section font sizes */
  .services-title {
    font-size: 2.5rem;
  }

  .services-subtitle {
    font-size: 1rem;
  }

  .services-content {
    padding: 0 30px;
    max-width: 800px;
  }

  .service-btn {
    padding: 14px 25px;
    font-size: 14px;
    gap: 10px;
  }

  .service-btn i {
    font-size: 18px;
  }

  /* Work Sectors Tablet */
  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --section-padding: 70px;
  }

  .desktop-menu {
    gap: 25px;
  }

  .desktop-menu li a {
    font-size: 14px;
  }

  .title-main {
    font-size: 4.5rem;
  }

  .hero-description {
    font-size: 1.15rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content {
    padding-right: 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Work Sectors Large Tablet */
  .sectors-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .decorative-left,
  .decorative-right {
    display: none;
  }

  /* Who We Are Section Tablet */
  .who-cards {
    flex-direction: column-reverse;
    gap: 15px;
  }

  .who-stats-card {
    width: 100%;
    height: auto;
    min-height: 200px;
    padding: 20px;
  }

  .who-mission-card {
    width: 100%;
    height: auto;
    min-height: 250px;
  }

  .who-mission-card .txt {
    width: 100%;
    padding: 30px;
  }

  .who-mission-card .img {
    display: none;
  }

  .who-mission-card h2 {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .who-mission-card .txt p {
    font-size: 11px;
    margin-bottom: 15px;
  }

  .pOne {
    font-size: 45px;
  }

  .pTwo {
    font-size: 24px;
  }

  .who-stats-text {
    font-size: 11px;
  }

  .textInBotom {
    bottom: 20px;
  }

  .services-title {
    font-size: 2.5rem;
  }

  /* Service buttons for tablet */
  .service-btn {
    padding: 14px 25px;
    font-size: 14px;
    gap: 10px;
  }

  .service-btn i {
    font-size: 18px;
  }

  .services-content {
    padding: 0 30px;
  }

  .nav-logo img {
    height: 50px;
  }
}

/* Medium Tablet (max 900px) */
@media (max-width: 900px) {
  .hero-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 100px 40px 50px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-right {
    gap: 20px;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero-cta-btn {
    padding: 13px 28px;
    font-size: 13px;
  }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
  :root {
    --section-padding: 50px;
  }

  .container,
  .nav-container {
    padding: 0 20px;
  }

  /* New Navigation Mobile */
  .desktop-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-logo h2 {
    font-size: 1.4rem;
  }

  .modern-nav {
    width: calc(100% - 40px);
    padding: 12px 20px;
    border-radius: 30px;
  }

  .modern-nav.scrolled {
    padding: 10px 20px;
  }

  /* New Hero Mobile */
  .hero-section {
    min-height: 70vh;
    border-radius: 25px;
    margin-top: 80px;
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);
  }

  .textInBotom::before {
    left: 45%;
  }

  body.rtl .textInBotom::before {
    right: 45%;
  }

  .hero-container {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 30px;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 0;
    font-weight: 400;
  }

  .hero-right {
    gap: 18px;
  }

  .hero-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .hero-cta-btn {
    width: 100%;
    text-align: center;
    padding: 14px 30px;
    font-size: 13px;
    border-radius: 6px;
  }

  /* Hero Dots Mobile */
  .hero-dots {
    bottom: 15px;
    gap: 10px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .hero-container {
    bottom: 50px;
  }

  /* Who We Are Mobile */
  .who-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Section Who We Are Mobile */
  .who-cards {
    flex-direction: column-reverse;
    overflow: hidden;
  }

  .who-stats-card {
    width: 100%;
  }

  .who-mission-card {
    width: 100%;
  }

  .who-mission-card .img {
    display: none;
  }

  .who-mission-card .txt {
    width: 100%;
  }

  .stats-card {
    padding: 40px 30px;
  }

  .who-title {
    font-size: 2.2rem;
  }

  .who-content p {
    font-size: 1rem;
  }

  .who-image {
    max-height: 350px;
  }

  /* About */
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.3rem;
  }

  .features-list {
    flex-direction: column;
    gap: 15px;
  }

  .image-wrapper img {
    height: 400px;
  }

  /* Services */
  .section-services {
    padding: 100px 0;

  }

  .services-content {
    padding: 0 20px;
  }

  .services-title {
    font-size: 1.8rem;
  }

  .services-subtitle {
    font-size: 1rem;
  }

  .service-categories {
    flex-direction: column;
    gap: 12px;
  }

  .service-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 13px;
    gap: 8px;
  }

  /* Work Sectors Mobile */
  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .sector-item {
    padding: 30px 20px;
    min-height: 90px;
  }

  .sector-item h3 {
    font-size: 1rem;
  }

  .service-btn i {
    font-size: 16px;
  }

  .service-btn span {
    font-size: 13px;
  }

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

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lang-switcher {
    padding: 8px 16px;
    font-size: 13px;
  }

  .lang-icon {
    font-size: 16px;
  }

  .nav-logo img {
    height: 45px;
  }

  /* Adjust project card image height */
  .project-image {
    height: 220px;
  }

  /* Better blog card spacing */
  .blog-content {
    padding: 25px 20px;
  }

  /* Improve button spacing */
  .btn-primary,
  .btn-gold,
  .btn-outline {
    padding: 14px 30px;
    font-size: 15px;
  }
}

/* Extra small devices (max 360px) */
@media (max-width: 360px) {


  .social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }

  .social-links a {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* Extra small devices (max 480px) */
@media (max-width: 480px) {
  .title-main {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

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

  .service-btn {
    padding: 12px 18px;
    font-size: 12px;
  }

  .service-btn i {
    font-size: 14px;
  }

  .nav-logo img {
    height: 40px;
  }
}

/* ===================================
   Enhanced Animations & Effects
   =================================== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   3D Card Hover Effects
   =================================== */
.who-stats-card,
.who-mission-card,
.why-card,
.project-card,
.blog-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.who-stats-card:hover,
.who-mission-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Enhanced Card Shadows */
.why-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* Card Icon Animation */
.card-solutions .card-icon i {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-solutions:hover .card-icon i {
  transform: rotate(-15deg) scale(1.3);
  color: #333;
}

/* ===================================
   Portfolio Enhancements
   =================================== */
.project-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-15px) rotateX(2deg);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2);
}

.project-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
  z-index: 1;
}

.project-card:hover .project-image::before {
  transform: translateX(100%);
}

.project-overlay {
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===================================
   Service Buttons Enhanced
   =================================== */
.service-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(51, 51, 51, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.service-btn:hover::before {
  width: 300px;
  height: 300px;
}

.service-btn i {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-btn:hover i {
  transform: scale(1.3) rotate(10deg);
}

/* ===================================
   Sector Items Enhanced
   =================================== */
.sector-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.sector-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: all 0.4s ease;
}

.sector-item:hover::after {
  border-color: #333;
  box-shadow: 0 0 30px rgba(51, 51, 51, 0.2);
}

/* ===================================
   Blog Cards Enhanced
   =================================== */
.blog-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

.blog-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.blog-card:hover .blog-image::before {
  opacity: 1;
}

.blog-category {
  transition: all 0.4s ease;
  transform-origin: left top;
}

.blog-card:hover .blog-category {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(51, 51, 51, 0.4);
}

.blog-link {
  position: relative;
}

.blog-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #333;
  transition: width 0.4s ease;
}

.blog-card:hover .blog-link::after {
  width: 100%;
}

/* ===================================
   Footer Enhancements
   =================================== */
.social-links a {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
  background: #666666;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(102, 102, 102, 0.4);
}

.footer-links a {
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #666;
  transition: width 0.4s ease;
}

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

/* ===================================
   Magnetic Button Effect Base CSS
   =================================== */
.magnetic-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Navbar Enhanced Glass Effect
   =================================== */
.modern-nav {
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  background: rgba(247, 247, 247, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.modern-nav.scrolled {
  background: rgba(247, 247, 247, 0.95);
  backdrop-filter: blur(30px) saturate(250%);
}

/* ===================================
   Floating Elements Animation
   =================================== */
.frame-illustration {
  animation: floatSlow 6s ease-in-out infinite;
}

.frame-illustration-2 {
  animation: floatSlow 6s ease-in-out infinite 0.5s;
}

.interior-preview {
  animation: floatSlow 6s ease-in-out infinite 1s;
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0) rotate(-10deg);
  }

  50% {
    transform: translateY(-15px) rotate(-10deg);
  }
}

.frame-illustration-2 {
  animation-name: floatSlow2;
}

@keyframes floatSlow2 {

  0%,
  100% {
    transform: translateY(0) rotate(15deg);
  }

  50% {
    transform: translateY(-12px) rotate(15deg);
  }
}

.interior-preview {
  animation-name: floatSlow3;
}

@keyframes floatSlow3 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ===================================
   Tab Section Enhanced
   =================================== */
.tab-section .tab {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-section .tab:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.tab-section .tab .img img {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-section .tab:hover .img img {
  transform: scale(1.08);
}

.tab-section .tab .txt a {
  position: relative;
  overflow: hidden;
}

.tab-section .tab .txt a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.tab-section .tab .txt a:hover::before {
  left: 100%;
}

/* ===================================
   Stats Glow Effect
   =================================== */
.who-stats-card .pOne,
.who-stats-card .pTwo {
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.who-stats-card:hover .pOne,
.who-stats-card:hover .pTwo {
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
}

/* ===================================
   Stagger Animation Delays
   =================================== */
.why-choose-grid .why-card:nth-child(1) {
  transition-delay: 0s;
}

.why-choose-grid .why-card:nth-child(2) {
  transition-delay: 0.1s;
}

.why-choose-grid .why-card:nth-child(3) {
  transition-delay: 0.2s;
}

.why-choose-grid .why-card:nth-child(4) {
  transition-delay: 0.3s;
}

.why-choose-grid .why-card:nth-child(5) {
  transition-delay: 0.4s;
}

.portfolio-grid .project-card:nth-child(1) {
  transition-delay: 0s;
}

.portfolio-grid .project-card:nth-child(2) {
  transition-delay: 0.05s;
}

.portfolio-grid .project-card:nth-child(3) {
  transition-delay: 0.1s;
}

.portfolio-grid .project-card:nth-child(4) {
  transition-delay: 0.15s;
}

.portfolio-grid .project-card:nth-child(5) {
  transition-delay: 0.2s;
}

.portfolio-grid .project-card:nth-child(6) {
  transition-delay: 0.25s;
}

.portfolio-grid .project-card:nth-child(7) {
  transition-delay: 0.3s;
}

.portfolio-grid .project-card:nth-child(8) {
  transition-delay: 0.35s;
}

.sectors-grid .sector-item:nth-child(1) {
  transition-delay: 0s;
}

.sectors-grid .sector-item:nth-child(2) {
  transition-delay: 0.05s;
}

.sectors-grid .sector-item:nth-child(3) {
  transition-delay: 0.1s;
}

.sectors-grid .sector-item:nth-child(4) {
  transition-delay: 0.15s;
}

.sectors-grid .sector-item:nth-child(5) {
  transition-delay: 0.2s;
}

.sectors-grid .sector-item:nth-child(6) {
  transition-delay: 0.25s;
}

.sectors-grid .sector-item:nth-child(7) {
  transition-delay: 0.3s;
}

.sectors-grid .sector-item:nth-child(8) {
  transition-delay: 0.35s;
}

.sectors-grid .sector-item:nth-child(9) {
  transition-delay: 0.4s;
}

.sectors-grid .sector-item:nth-child(10) {
  transition-delay: 0.45s;
}

.blog-grid .blog-card:nth-child(1) {
  transition-delay: 0s;
}

.blog-grid .blog-card:nth-child(2) {
  transition-delay: 0.1s;
}

.blog-grid .blog-card:nth-child(3) {
  transition-delay: 0.2s;
}

/* ===================================
   Shimmer Loading Effect
   =================================== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ===================================
   Button Shine Effect
   =================================== */
.btn-gold,
.btn-primary,
.btn-outline {
  position: relative;
  overflow: hidden;
}

.btn-gold::before,
.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.5s ease;
}

.btn-gold:hover::before,
.btn-primary:hover::before {
  left: 100%;
}

/* ===================================
   RTL Support for Animations
   =================================== */
.rtl .hero-btn.primary i,
.rtl .hero-btn.secondary i {
  transform: scaleX(-1);
}

.rtl .hero-btn:hover i {
  transform: scaleX(-1) translateX(5px);
}

.rtl .hero-btn.secondary:hover i {
  transform: scaleX(-1) scale(1.1);
}

/* ===================================
   Smooth Page Transitions
   =================================== */
.section-who-we-are,
.section-why-choose,
.section-services,
.section-portfolio,
.section-work-sectors,
.section-blog {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-who-we-are.revealed,
.section-why-choose.revealed,
.section-services.revealed,
.section-portfolio.revealed,
.section-work-sectors.revealed,
.section-blog.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   FANCY EFFECTS & ANIMATIONS
   Premium Visual Enhancements
   =================================== */

/* ===================================
   Glowing Hover Effects
   =================================== */
.glow-effect {
  transition: all 0.4s ease;
}

.glow-effect:hover {
  box-shadow: 0 0 40px rgba(102, 102, 102, 0.4),
    0 0 80px rgba(102, 102, 102, 0.2),
    0 0 120px rgba(102, 102, 102, 0.1);
}

/* Card Glow on Hover */
.why-card:hover,
.project-card:hover,
.blog-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(102, 102, 102, 0.15);
  transform: translateY(-10px);
}

/* Neon Border Glow */
.neon-border {
  position: relative;
}

.neon-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #333, #666, #999, #666, #333);
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  animation: neonBorderFlow 4s ease infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.neon-border:hover::before {
  opacity: 1;
}

@keyframes neonBorderFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ===================================
   Shimmer / Shine Effects
   =================================== */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 25%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0.1) 75%,
      transparent 100%);
  animation: shimmerWave 3s ease-in-out infinite;
}

@keyframes shimmerWave {
  0% {
    left: -150%;
  }

  100% {
    left: 150%;
  }
}

/* Card Shine Effect */
.who-stats-card,
.who-mission-card,
.card-variety {
  overflow: hidden;
}

/* .who-stats-card::after,
.who-mission-card::after,
.card-variety::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 60%
  );
  transform: rotate(45deg);
  animation: cardShine 6s ease-in-out infinite;
  pointer-events: none;
} */

@keyframes cardShine {

  0%,
  100% {
    transform: rotate(45deg) translateX(-100%);
  }

  50% {
    transform: rotate(45deg) translateX(100%);
  }
}

/* ===================================
   Floating Animations
   =================================== */
.float-element {
  animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-12px) rotate(1deg);
  }

  50% {
    transform: translateY(-20px) rotate(0deg);
  }

  75% {
    transform: translateY(-12px) rotate(-1deg);
  }
}

/* Floating Effect for Decorative Elements */
.decorative-left .frame-illustration,
.decorative-right .interior-preview {
  animation: floatSlow 6s ease-in-out infinite;
}

.decorative-left .frame-illustration-2 {
  animation: floatSlow 6s ease-in-out infinite 1s;
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

/* Floating Cards */
.sector-item {
  animation: subtleFloat 5s ease-in-out infinite;
  animation-delay: calc(var(--animation-order, 0) * 0.3s);
}

@keyframes subtleFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ===================================
   Gradient Text Animation
   =================================== */
.gradient-text,
.hero-title,
.services-title,
.why-choose-title span,
.section-title {
  background-size: 200% auto;
  transition: background-position 0.5s ease;
}

.hero-title:hover,
.services-title:hover {
  background: linear-gradient(90deg, #333, #666, #999, #666, #333);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientTextFlow 3s ease infinite;
}

@keyframes gradientTextFlow {
  0% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }

  100% {
    background-position: 0% center;
  }
}

/* ===================================
   3D Card Transform Effects
   =================================== */
.project-card,
.blog-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.6s ease;
}

.project-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
}

.blog-card:hover {
  transform: translateY(-12px) rotateX(3deg) rotateY(-3deg);
}

.project-card .project-image,
.blog-card .blog-image {
  transform: translateZ(30px);
  transition: transform 0.6s ease;
}

.project-card:hover .project-image,
.blog-card:hover .blog-image {
  transform: translateZ(50px);
}

/* Tab Cards 3D Effect */
.tab-section .tab {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.5s ease;
}

.tab-section .tab:hover {
  transform: translateY(-8px) perspective(1000px) rotateX(2deg);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Morphing Blob Backgrounds
   =================================== */
.blob-bg {
  position: relative;
  overflow: hidden;
}

.blob-bg::before,
.blob-bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: morphBlob 15s ease-in-out infinite;
  pointer-events: none;
}

.blob-bg::before {
  background: linear-gradient(135deg, #333 0%, #666 100%);
  top: -100px;
  left: -100px;
}

.blob-bg::after {
  background: linear-gradient(135deg, #666 0%, #999 100%);
  bottom: -100px;
  right: -100px;
  animation-delay: -7s;
}

@keyframes morphBlob {

  0%,
  100% {
    border-radius: 50% 60% 70% 40% / 40% 50% 60% 50%;
    transform: scale(1) translate(0, 0);
  }

  25% {
    border-radius: 60% 40% 50% 70% / 60% 40% 50% 60%;
    transform: scale(1.1) translate(20px, -30px);
  }

  50% {
    border-radius: 40% 60% 40% 60% / 50% 60% 40% 50%;
    transform: scale(1) translate(-20px, 20px);
  }

  75% {
    border-radius: 70% 50% 60% 40% / 40% 70% 50% 60%;
    transform: scale(1.1) translate(10px, -10px);
  }
}

/* ===================================
   Ripple Effect
   =================================== */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.ripple-effect:active::before {
  width: 300%;
  height: 300%;
  opacity: 0;
}

/* ===================================
   Pulse Animation
   =================================== */
.pulse-on-view {
  animation: pulseOnce 0.8s ease-out;
}

@keyframes pulseOnce {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hero Dot Pulse */
.hero-dot.active {
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
}

/* ===================================
   Rotating Icons
   =================================== */
.rotate-on-hover i,
.service-btn i,
.card-solutions .card-icon i {
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-btn:hover i {
  transform: rotate(360deg) scale(1.2);
}

.card-solutions:hover .card-icon i {
  transform: rotate(-15deg) scale(1.15);
  animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: rotate(-15deg) scale(1);
  }

  50% {
    transform: rotate(-15deg) scale(1.2);
  }
}

/* ===================================
   Typewriter Effect (for hero text)
   =================================== */
.typewriter {
  overflow: hidden;
  border-right: 3px solid #666;
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blinkCaret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blinkCaret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: #666;
  }
}

/* ===================================
   Stagger Reveal Animation
   =================================== */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item:nth-child(1) {
  transition-delay: 0.1s;
}

.stagger-item:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger-item:nth-child(3) {
  transition-delay: 0.3s;
}

.stagger-item:nth-child(4) {
  transition-delay: 0.4s;
}

.stagger-item:nth-child(5) {
  transition-delay: 0.5s;
}

.stagger-item:nth-child(6) {
  transition-delay: 0.6s;
}

.stagger-item:nth-child(7) {
  transition-delay: 0.7s;
}

.stagger-item:nth-child(8) {
  transition-delay: 0.8s;
}

.stagger-item:nth-child(9) {
  transition-delay: 0.9s;
}

.stagger-item:nth-child(10) {
  transition-delay: 1s;
}

/* ===================================
   Underline Slide Animation
   =================================== */
.hover-underline {
  position: relative;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #333, #666);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-underline:hover::after {
  width: 100%;
}

/* Slide from center */
.hover-underline-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ===================================
   Image Reveal Animation
   =================================== */
.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dark-bg);
  z-index: 2;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.image-reveal.revealed::before {
  transform: scaleX(0);
  transform-origin: right;
}

.image-reveal img {
  transform: scale(1.2);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1) 0.3s;
}

.image-reveal.revealed img {
  transform: scale(1);
}

/* ===================================
   Parallax Hover Effect
   =================================== */
.parallax-hover {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.parallax-hover:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.parallax-hover>* {
  transition: transform 0.6s ease;
}

.parallax-hover:hover>* {
  transform: translateZ(20px);
}

/* ===================================
   Glitch Effect (subtle)
   =================================== */
.glitch-text {
  position: relative;
}

.glitch-text:hover {
  animation: glitch 0.3s ease infinite;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

/* ===================================
   Elastic Button Animation
   =================================== */
.btn-elastic,
.hero-cta-btn,
.btn-gold,
.btn-primary {
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-cta-btn:active,
.btn-gold:active,
.btn-primary:active {
  transform: scale(0.95);
}

/* ===================================
   Service Button Hover Expansion
   =================================== */
.service-btn {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.service-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.service-btn:hover::before {
  left: 100%;
}

.service-btn:hover {
  transform: scale(1.03) translateX(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.service-btn.active {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Footer Social Icons Animation
   =================================== */
.social-links a {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.4s ease;
}

.social-links a:hover::before {
  transform: scale(2);
}

.social-links a:hover {
  transform: translateY(-8px) rotate(10deg) scale(1.15);
}

/* Staggered social icons */
.social-links a:nth-child(1) {
  transition-delay: 0s;
}

.social-links a:nth-child(2) {
  transition-delay: 0.05s;
}

.social-links a:nth-child(3) {
  transition-delay: 0.1s;
}

.social-links a:nth-child(4) {
  transition-delay: 0.15s;
}

.social-links a:nth-child(5) {
  transition-delay: 0.2s;
}

.social-links a:nth-child(6) {
  transition-delay: 0.25s;
}

.social-links a:nth-child(7) {
  transition-delay: 0.3s;
}

/* ===================================
   Navigation Link Animations
   =================================== */

/* ===================================
   Sector Items Wave Animation
   =================================== */
.sectors-grid .sector-item {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.sectors-grid .sector-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.sectors-grid .sector-item:hover h3 {
  letter-spacing: 1px;
}

/* ===================================
   Blog Card Image Zoom
   =================================== */
.blog-card .blog-image {
  overflow: hidden;
}

.blog-card .blog-image img {
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    filter 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.15);
  filter: brightness(1.1);
}

/* ===================================
   Why Cards Interactive Effects
   =================================== */
.why-card {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-solutions {
  position: relative;
  overflow: hidden;
}

/* .card-solutions::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 102, 102, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
} */

.card-solutions:hover::before {
  opacity: 1;
  animation: lightSpot 2s ease infinite;
}

@keyframes lightSpot {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Card Image Hover Effects */
.card-support .card-bg-image,
.card-quality .card-bg-image {
  transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1),
    filter 0.5s ease;
}

.card-support:hover .card-bg-image,
.card-quality:hover .card-bg-image {
  transform: scale(1.1);
  filter: brightness(0.85);
}

/* ===================================
   Stats Number Animation
   =================================== */
.textInBotom p {
  transition: transform 0.4s ease, color 0.3s ease;
}

.who-stats-card:hover .textInBotom p {
  transform: scale(1.05);
}

/* ===================================
   Who Mission Card Image Effects
   =================================== */
.who-mission-card .img {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.4s ease;
}

.who-mission-card:hover .img {
  transform: scale(1.05) rotate(5deg);
  border-color: #999;
}

.who-mission-card .img img {
  transition: transform 0.8s ease;
}

.who-mission-card:hover .img img {
  transform: scale(1.1);
}

/* ===================================
   Hero Section Enhancements
   =================================== */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(102, 102, 102, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  animation: spotlightMove 10s ease infinite;
}

@keyframes spotlightMove {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(0, 0);
  }

  25% {
    opacity: 0.7;
    transform: translate(10%, -10%);
  }

  50% {
    opacity: 0.5;
    transform: translate(-5%, 5%);
  }

  75% {
    opacity: 0.8;
    transform: translate(5%, -5%);
  }
}

/* ===================================
   Loading Spinner & Skeleton
   =================================== */
.skeleton {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
}

@keyframes skeletonLoading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ===================================
   Cursor Trail Effect (CSS only)
   =================================== */
.cursor-glow {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 102, 102, 0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: transform 0.1s ease;
}

/* ===================================
   Particle Background Dots
   =================================== */
.particle-bg {
  position: relative;
  overflow: hidden;
}

.particle-bg::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(102, 102, 102, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(102, 102, 102, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 40% 70%, rgba(102, 102, 102, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 60% 50%, rgba(102, 102, 102, 0.1) 1px, transparent 1px);
  background-size: 200px 200px, 150px 150px, 180px 180px, 120px 120px;
  animation: particleFloat 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes particleFloat {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-50px, -50px);
  }
}

/* ===================================
   Smooth Scroll Reveal Classes
   =================================== */
.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-rotate {
  opacity: 0;
  transform: rotate(-10deg) translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-left.revealed,
.reveal-right.revealed,
.reveal-up.revealed,
.reveal-scale.revealed,
.reveal-rotate.revealed {
  opacity: 1;
  transform: translate(0) scale(1) rotate(0);
}

/* ===================================
   Media Gallery Section
   =================================== */
.section-media-gallery {
  padding: var(--section-padding) 0;
  background: var(--light-cream);
  position: relative;
  overflow: hidden;
}

.section-media-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(51, 51, 51, 0.2), transparent);
}

.section-media-gallery .section-header.centered {
  text-align: center;
  margin-bottom: 50px;
}

.section-media-gallery .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.section-media-gallery .section-title span {
  color: var(--primary-gold);
  position: relative;
}

.section-media-gallery .section-title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(51, 51, 51, 0.15);
  z-index: -1;
  border-radius: 4px;
}

.section-media-gallery .section-description {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Gallery Filter Buttons */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 28px;
  border: 2px solid var(--primary-gold);
  background: transparent;
  color: var(--primary-gold);
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  width: 200%;
  height: 200%;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
  border-color: var(--primary-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(51, 51, 51, 0.3);
}

/* Gallery Grid - CSS Grid for proper layout */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 280px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(26, 26, 26, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-content {
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-content {
  transform: translateY(0);
}

.gallery-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
}

.gallery-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.gallery-zoom {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0) rotate(-180deg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-zoom {
  transform: scale(1) rotate(0);
}

.gallery-zoom:hover {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  transform: scale(1.1) rotate(0) !important;
}

/* Gallery Action Button */
.gallery-action {
  text-align: center;
  margin-top: 50px;
}

/* Filter Animation - Use display for proper layout recalculation */
.gallery-item.hidden {
  display: none !important;
  pointer-events: none;
}

.gallery-item.show {
  display: block;
  animation: galleryShow 0.4s ease forwards;
}

@keyframes galleryShow {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===================================
   Lightbox Modal
   =================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lightbox-close {
  position: fixed;
  top: 25px;
  right: 25px;
  left: auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3010;
}

.lightbox-close:hover {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  transform: rotate(90deg) scale(1.1);
}

/* RTL Support for close button */
[dir="rtl"] .lightbox-close {
  right: auto;
  left: 25px;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3010;
}

.lightbox-prev {
  left: 25px;
  right: auto;
}

.lightbox-next {
  right: 25px;
  left: auto;
}

/* RTL Support for navigation arrows */
[dir="rtl"] .lightbox-prev {
  left: auto;
  right: 25px;
}

[dir="rtl"] .lightbox-next {
  right: auto;
  left: 25px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-content {
  max-width: 85%;
  max-height: 85vh;
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
  opacity: 1;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 25px;
  color: var(--white);
}

.lightbox-caption h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.lightbox-caption p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   Gallery Responsive
   =================================== */
@media (max-width: 1024px) {
  .gallery-masonry {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .gallery-item {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .section-media-gallery .section-title {
    font-size: 2rem;
  }

  .gallery-filter {
    gap: 10px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-item {
    height: 180px;
  }

  .lightbox-prev,
  .lightbox-next {
    position: fixed;
    top: auto;
    bottom: 40px;
    transform: none;
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .lightbox-prev {
    left: calc(50% - 65px);
    right: auto;
  }

  .lightbox-next {
    right: calc(50% - 65px);
    left: auto;
  }

  /* RTL arrows for tablet/mobile */
  [dir="rtl"] .lightbox-prev,
  [dir="rtl"] .lightbox-next {
    left: auto;
    right: auto;
  }

  [dir="rtl"] .lightbox-prev {
    left: calc(50% - 65px);
  }

  [dir="rtl"] .lightbox-next {
    right: calc(50% - 65px);
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
}

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

  .gallery-item {
    height: 200px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .gallery-content h4 {
    font-size: 1.1rem;
  }

  .lightbox-caption h4 {
    font-size: 1.2rem;
  }

  .lightbox-prev,
  .lightbox-next {
    bottom: 30px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .lightbox-prev {
    left: calc(50% - 55px);
  }

  .lightbox-next {
    right: calc(50% - 55px);
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  [dir="rtl"] .lightbox-close {
    right: auto;
    left: 15px;
  }

  [dir="rtl"] .lightbox-prev {
    left: calc(50% - 55px);
  }

  [dir="rtl"] .lightbox-next {
    right: calc(50% - 55px);
  }
}

/* ===================================
   Portfolio Page Gallery Styles
   =================================== */
.portfolio-page-gallery {
  padding-top: 140px;
  /* Account for fixed nav */
}

.portfolio-page-gallery .section-label {
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
  font-weight: 600;
}

.portfolio-page-gallery .gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 20px;
}

.portfolio-page-gallery .gallery-item {
  height: 320px;
}

/* All items same size for cleaner grid without gaps */
.portfolio-page-gallery .gallery-item.large,
.portfolio-page-gallery .gallery-item.tall {
  grid-column: span 1;
  grid-row: span 1;
  height: 320px;
}

@media (max-width: 1200px) {
  .portfolio-page-gallery .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-page-gallery .gallery-item,
  .portfolio-page-gallery .gallery-item.large,
  .portfolio-page-gallery .gallery-item.tall {
    height: 280px;
  }
}

@media (max-width: 900px) {
  .portfolio-page-gallery .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .portfolio-page-gallery .gallery-item,
  .portfolio-page-gallery .gallery-item.large,
  .portfolio-page-gallery .gallery-item.tall {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .portfolio-page-gallery {
    padding-top: 100px;
  }

  .portfolio-page-gallery .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .portfolio-page-gallery .gallery-item,
  .portfolio-page-gallery .gallery-item.large,
  .portfolio-page-gallery .gallery-item.tall {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .portfolio-page-gallery {
    padding-top: 90px;
  }

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

  .portfolio-page-gallery .gallery-item,
  .portfolio-page-gallery .gallery-item.large,
  .portfolio-page-gallery .gallery-item.tall {
    height: 220px;
  }
}

/* ===================================
   RTL Mobile Responsive - Tab Section Fix
   =================================== */

/* Mobile: Enable sticky stacking with adjusted values */
@media (max-width: 768px) {
  .tabs-wrapper .tab-section {
    position: sticky;
    margin-bottom: 0;
  }

  .tabs-wrapper .tab-section:nth-child(1) {
    z-index: 1;
    top: 80px;
  }

  .tabs-wrapper .tab-section:nth-child(2) {
    z-index: 2;
    top: 95px;
  }

  .tabs-wrapper .tab-section:nth-child(3) {
    z-index: 3;
    top: 110px;
  }

  .tabs-wrapper .tab-section:nth-child(4) {
    z-index: 4;
    top: 125px;
  }

  .tabs-wrapper .tab-section:nth-child(5) {
    z-index: 5;
    top: 140px;
  }

  .tab-section .tab {
    flex-direction: column !important;
    overflow: hidden;
  }

  .tab-section .tab .txt,
  .tab-section .tab .img {
    width: 100% !important;
    max-width: 100%;
  }

  .tab-section .tab .txt {
    padding: 25px 20px;
  }

  .tab-section .tab .txt h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .tab-section .tab .txt .pOne {
    font-size: 22px;
    line-height: 1.3;
  }

  .tab-section .tab .txt .pTwo {
    font-size: 13px;
    line-height: 1.6;
  }

  .tab-section .tab .img {
    height: 220px;
    border-radius: 20px;
  }
}

/* RTL Mobile Specific Fixes */
@media (max-width: 768px) {
  body.rtl .tab-section .tab {
    flex-direction: column !important;
  }

  body.rtl .tab-section .tab .txt {
    text-align: right;
    padding: 25px 20px;
  }

  body.rtl .tab-section .tab .txt h2 {
    font-size: 24px;
  }

  body.rtl .tab-section .tab .txt .pOne,
  body.rtl .tab-section .tab .txt .spanTwo {
    font-size: 22px;
  }

  body.rtl .tab-section .tab .txt .pTwo {
    font-size: 13px;
    line-height: 1.6;
  }

  body.rtl .tab-section .tab .txt a {
    font-size: 14px;
  }

  /* Prevent RTL horizontal overflow */
  body.rtl .tab-section,
  body.rtl .tab-section .tab,
  body.rtl .tab-section .container {
    max-width: 100%;
    overflow: hidden;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .tabs-wrapper .tab-section {
    margin-bottom: 20px;
  }

  .tab-section .tab .txt {
    padding: 20px 15px;
  }

  .tab-section .tab .txt h2 {
    font-size: 20px;
  }

  .tab-section .tab .txt .pOne {
    font-size: 18px;
  }

  .tab-section .tab .txt .pTwo {
    font-size: 12px;
  }

  .tab-section .tab .img {
    height: 180px;
  }

  body.rtl .tab-section .tab .txt h2 {
    font-size: 20px;
  }

  body.rtl .tab-section .tab .txt .pOne,
  body.rtl .tab-section .tab .txt .spanTwo {
    font-size: 18px;
  }
}

@media (max-width: 450px) {
  .service-btn span {
    font-size: 11px;
  }
}

/* ===================================
   NO-JS FALLBACK & AUTO-REVEAL
   Ensures content is visible even if 
   JavaScript fails or is delayed
   =================================== */

/* Fallback: Auto-reveal sections after a delay if JS doesn't add .revealed class */
.section-who-we-are,
.section-why-choose,
.section-services,
.section-portfolio,
.section-work-sectors,
.section-blog,
.section-media-gallery {
  animation: autoReveal 0.8s ease forwards;
}

/* Stagger the auto-reveal for each section */
.section-who-we-are {
  animation-delay: 0.2s;
}

.section-why-choose {
  animation-delay: 0.3s;
}

.section-services {
  animation-delay: 0.4s;
}

.section-portfolio {
  animation-delay: 0.5s;
}

.section-work-sectors {
  animation-delay: 0.6s;
}

.section-media-gallery {
  animation-delay: 0.7s;
}

.section-blog {
  animation-delay: 0.8s;
}

@keyframes autoReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* If revealed class is present (JS worked), remove animation delay */
.section-who-we-are.revealed,
.section-why-choose.revealed,
.section-services.revealed,
.section-portfolio.revealed,
.section-work-sectors.revealed,
.section-media-gallery.revealed,
.section-blog.revealed {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

/* Ensure scroll-animate items also have fallback */
.scroll-animate {
  animation: autoReveal 0.6s ease forwards;
  animation-delay: 0.3s;
}

.scroll-animate.animated {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

/* Stagger items fallback */
.stagger-item {
  animation: autoReveal 0.5s ease forwards;
}

.stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
  animation-delay: 0.15s;
}

.stagger-item:nth-child(3) {
  animation-delay: 0.2s;
}

.stagger-item:nth-child(4) {
  animation-delay: 0.25s;
}

.stagger-item:nth-child(5) {
  animation-delay: 0.3s;
}

.stagger-item:nth-child(6) {
  animation-delay: 0.35s;
}

.stagger-item:nth-child(7) {
  animation-delay: 0.4s;
}

.stagger-item:nth-child(8) {
  animation-delay: 0.45s;
}

.stagger-item.revealed {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

/* Cards that use opacity:0 - ensure they're visible */
.who-cards,
.who-stats-card,
.who-mission-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
}