/* ========================================
   TAFASEEL - Kitchens & Closets
   Luxury Interior Design Website
   ======================================== */

/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --color-primary: #1a1a1a;
  --color-secondary: #c9a962;
  --color-accent: #2d2d2d;
  --color-bg: #fafafa;
  --color-bg-alt: #f5f5f5;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-overlay: rgba(0, 0, 0, 0.7);
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1400px;
  --container-padding: 0 5%;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 30px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 50px rgba(0, 0, 0, 0.2);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-description {
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Shimmer effect on all buttons */
.btn::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.6s ease;
}

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

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

.btn-gold:hover {
  background: transparent;
  color: var(--color-secondary);
  box-shadow: 0 10px 30px rgba(201, 169, 98, 0.4);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-medium);
}

.header.scrolled {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
}

/* When nav is open, make header blend with overlay */
body:has(.nav-overlay.active) .header,
body:has(.nav-overlay.active) .header.scrolled {
  background: var(--color-primary) !important;
  box-shadow: none !important;
  z-index: 1002 !important;
}

body:has(.nav-overlay.active) .header .logo img {
  filter: brightness(0) invert(1) !important;
}

body:has(.nav-overlay.active) .hamburger span {
  background: var(--color-white) !important;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  transition: var(--transition-fast);
  filter: brightness(0) invert(1); /* White logo on hero */
}

.header.scrolled .logo img {
  height: 40px;
  filter: none; /* Black logo on white background */
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-fast);
}

.header:not(.scrolled) .hamburger span {
  background: var(--color-white);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Fullscreen Navigation */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-primary);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-medium);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

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

.nav-menu li {
  margin: 20px 0;
  overflow: hidden;
}

.nav-menu a {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-white);
  transform: translateY(100%) rotateX(-40deg);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform-origin: center bottom;
}

.nav-overlay.active .nav-menu a {
  transform: translateY(0) rotateX(0);
  opacity: 1;
}

.nav-menu li:nth-child(1) a { transition-delay: 0.1s; }
.nav-menu li:nth-child(2) a { transition-delay: 0.15s; }
.nav-menu li:nth-child(3) a { transition-delay: 0.2s; }
.nav-menu li:nth-child(4) a { transition-delay: 0.25s; }
.nav-menu li:nth-child(5) a { transition-delay: 0.3s; }
.nav-menu li:nth-child(6) a { transition-delay: 0.35s; }

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--color-secondary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-menu a:hover {
  color: var(--color-secondary);
  text-shadow: 0 0 30px rgba(201, 169, 98, 0.5);
}

.nav-menu a:hover::before {
  width: 50%;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 130%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--color-white);
  max-width: 900px;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards,
             glowPulse 3s ease-in-out 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title:hover {
  text-shadow: 0 2px 30px rgba(201, 169, 98, 0.3);
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: blurIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  animation: zoomInBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards;
}

/* Hero Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
}

.hero-dot.active,
.hero-dot:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--color-white);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.5; }
}

/* ===== About Section ===== */
.about {
  padding: var(--section-padding);
  background: var(--color-white);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

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

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-secondary);
  z-index: -1;
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--color-secondary);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateX(-50%);
}

.stat-item:hover {
  background: rgba(201, 169, 98, 0.05);
  transform: translateY(-5px);
}

.stat-item:hover::before {
  width: 80%;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 5px;
  transition: all 0.4s ease;
}

.stat-item:hover .stat-number {
  text-shadow: 0 0 30px rgba(201, 169, 98, 0.5);
  transform: scale(1.1);
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  transition: all 0.4s ease;
}

.stat-item:hover .stat-label {
  color: var(--color-secondary);
}

/* ===== Services Section ===== */
.services {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

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

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

.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
  background: var(--color-primary);
  border-radius: 8px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.6s ease;
  transform-style: preserve-3d;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(201, 169, 98, 0.2) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) scale(1.02);
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.3),
              -5px -5px 20px rgba(201, 169, 98, 0.1);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.15);
  filter: brightness(0.6) saturate(1.2);
}

.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    transparent 100%
  );
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.service-card:hover .service-overlay {
  padding-bottom: 50px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    transparent 100%
  );
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 10px;
  transition: transform 0.4s ease, text-shadow 0.4s ease;
}

.service-card:hover .service-title {
  transform: translateY(-5px);
  text-shadow: 0 0 20px rgba(201, 169, 98, 0.5);
}

.service-view {
  font-size: 0.875rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-view {
  opacity: 1;
  transform: translateY(0);
}

.service-view::after {
  content: '→';
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-view::after {
  transform: translateX(8px);
}

.service-view i,
.service-view svg {
  display: none !important;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 120px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-secondary), var(--color-primary));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d4b66a, #000);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-secondary) var(--color-bg-alt);
}

/* ===== Gallery Modal ===== */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
}

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

.gallery-close {
  display: none; /* Hidden - user can close by clicking background or pressing ESC */
}

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

.gallery-close span {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  transform: rotate(45deg);
}

.gallery-close span::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  transform: rotate(90deg);
}

.gallery-content {
  width: 95%;
  max-width: 1600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  /* Glass morphism effect */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  /* Hide scrollbar while keeping scroll functionality */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.gallery-content::-webkit-scrollbar {
  display: none;
}

.gallery-title {
  text-align: center;
  color: var(--color-white);
  margin-bottom: 50px;
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
  opacity: 0;
  transform: translateY(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.gallery-modal.active .gallery-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* Masonry Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Varied heights for masonry effect */
.gallery-item:nth-child(3n + 1) {
  grid-row: span 2;
}

.gallery-item:nth-child(5n + 2) {
  grid-row: span 1;
}

.gallery-item:nth-child(7n + 3) {
  grid-row: span 2;
}

.gallery-modal.active .gallery-item {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stagger animation delays */
.gallery-modal.active .gallery-item:nth-child(1) { transition-delay: 0.1s; }
.gallery-modal.active .gallery-item:nth-child(2) { transition-delay: 0.15s; }
.gallery-modal.active .gallery-item:nth-child(3) { transition-delay: 0.2s; }
.gallery-modal.active .gallery-item:nth-child(4) { transition-delay: 0.25s; }
.gallery-modal.active .gallery-item:nth-child(5) { transition-delay: 0.3s; }
.gallery-modal.active .gallery-item:nth-child(6) { transition-delay: 0.35s; }
.gallery-modal.active .gallery-item:nth-child(7) { transition-delay: 0.4s; }
.gallery-modal.active .gallery-item:nth-child(8) { transition-delay: 0.45s; }

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(201, 169, 98, 0.3) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: brightness(0.9);
}

.gallery-item:hover img {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(1.1);
}

/* ===== Enhanced Lightbox ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(20px);
}

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

.lightbox-close {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

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

.lightbox-close span {
  position: relative;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transform: rotate(45deg);
}

.lightbox-close span::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  transform: rotate(90deg);
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: lightboxZoom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-white);
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { 
  left: 40px;
}

.lightbox-next { 
  right: 40px;
}

/* ===== Projects Section ===== */
.projects {
  padding: var(--section-padding);
  background: var(--color-white);
}

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

.projects-slider {
  position: relative;
  overflow: hidden;
}

.projects-track {
  display: flex;
  transition: transform 0.5s ease;
}

.project-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

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

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

.project-content {
  padding: 40px 0;
}

.project-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-bg-alt);
  line-height: 1;
  margin-bottom: 20px;
}

.project-name {
  margin-bottom: 20px;
}

.project-description {
  margin-bottom: 30px;
}

.projects-nav {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.project-nav-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.project-nav-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ===== Why Choose Us ===== */
.why-us {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.why-us .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.why-us-content {
  position: sticky;
  top: 120px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  background: var(--color-white);
  border: 1px solid #eee;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 8px;
}

.accordion-item:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 5px 20px rgba(201, 169, 98, 0.1);
  transform: translateX(5px);
}

.accordion-header {
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.4s ease;
}

.accordion-item.active .accordion-header h4 {
  color: var(--color-secondary);
  text-shadow: 0 0 10px rgba(201, 169, 98, 0.2);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accordion-item:hover .accordion-icon {
  transform: scale(1.2);
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--color-primary);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accordion-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.accordion-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion-item.active .accordion-icon::before {
  background: var(--color-secondary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content p {
  padding: 0 30px 25px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease 0.1s;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
}

.accordion-item.active .accordion-content p {
  opacity: 1;
  transform: translateY(0);
}

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

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

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.portfolio-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(201, 169, 98, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.portfolio-item:hover {
  transform: perspective(1000px) rotateY(-3deg) rotateX(3deg) scale(1.03);
  box-shadow: 15px 15px 50px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.portfolio-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.15);
  filter: brightness(0.8) saturate(1.2);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.8) 0%,
    rgba(201, 169, 98, 0.3) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(0px);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  backdrop-filter: blur(3px);
}

.portfolio-overlay span {
  color: var(--color-white);
  font-size: 2.5rem;
  transform: scale(0) rotate(-90deg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 0 20px rgba(201, 169, 98, 0.5);
}

.portfolio-item:hover .portfolio-overlay span {
  transform: scale(1) rotate(0);
}

/* ===== CTA Section ===== */
.cta {
  padding: 120px 0;
  background: var(--color-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=1920') center/cover;
  opacity: 0.2;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  color: var(--color-white);
  margin-bottom: 20px;
}

.cta-description {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.125rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo img {
  height: 60px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

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

.footer-social a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--color-secondary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.footer-social a:hover::before {
  width: 100%;
  height: 100%;
}

.footer-social a:hover {
  border-color: var(--color-secondary);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(201, 169, 98, 0.3),
              0 0 15px rgba(201, 169, 98, 0.2);
}

.footer-social a:active {
  transform: translateY(-2px) scale(1.05);
}

.footer-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  color: var(--color-white);
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.4s ease;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
}

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-secondary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-contact li:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(5px);
}

.footer-contact i {
  color: var(--color-secondary);
  transition: all 0.3s ease;
}

.footer-contact li:hover i {
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(201, 169, 98, 0.5);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

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

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== Modern Animation Keyframes ===== */

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

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% { 
    box-shadow: 0 0 5px rgba(201, 169, 98, 0.3),
                0 0 20px rgba(201, 169, 98, 0.2);
  }
  50% { 
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.5),
                0 0 40px rgba(201, 169, 98, 0.3);
  }
}

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

/* Gentle Rotate */
@keyframes gentleRotate {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

/* Scale Pulse */
@keyframes scalePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Gradient Animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Text Reveal */
@keyframes textReveal {
  0% { 
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  100% { 
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* Slide In From Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide In From Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Zoom In Bounce */
@keyframes zoomInBounce {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Rotate In */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-20deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

/* Flip In */
@keyframes flipInX {
  0% {
    opacity: 0;
    transform: perspective(400px) rotateX(90deg);
  }
  40% {
    transform: perspective(400px) rotateX(-10deg);
  }
  70% {
    transform: perspective(400px) rotateX(10deg);
  }
  100% {
    opacity: 1;
    transform: perspective(400px) rotateX(0);
  }
}

/* Border Draw */
@keyframes borderDraw {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Blur In */
@keyframes blurIn {
  0% {
    opacity: 0;
    filter: blur(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* Shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Bounce In */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.1);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Elastic */
@keyframes elastic {
  0% { transform: scale(0); }
  55% { transform: scale(1.1); }
  70% { transform: scale(0.95); }
  85% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Ripple Effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Line Expand */
@keyframes lineExpand {
  from { width: 0; }
  to { width: 100%; }
}

/* Letter Spacing Animation */
@keyframes letterSpacing {
  0% { letter-spacing: -0.5em; opacity: 0; }
  100% { letter-spacing: normal; opacity: 1; }
}

/* Glow Pulse */
@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 5px rgba(201, 169, 98, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(201, 169, 98, 0.8),
                 0 0 30px rgba(201, 169, 98, 0.6);
  }
}

/* Morph */
@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

/* ===== Enhanced Animation Classes ===== */

/* Shimmer on Hover */
.shimmer-hover {
  position: relative;
  overflow: hidden;
}

.shimmer-hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.shimmer-hover:hover::after {
  left: 100%;
}

/* Glow Effect */
.glow-effect {
  transition: box-shadow 0.4s ease;
}

.glow-effect:hover {
  box-shadow: 0 0 20px rgba(201, 169, 98, 0.4),
              0 0 40px rgba(201, 169, 98, 0.2);
}

/* Float Animation */
.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Gradient Background Animation */
.gradient-animated {
  background: linear-gradient(-45deg, #1a1a1a, #2d2d2d, #1a1a1a, #c9a962);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

/* Magnetic Button Effect - needs JS support */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ripple Button Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

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

.btn-ripple:active::before {
  width: 300px;
  height: 300px;
}

/* 3D Card Effect */
.card-3d {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.card-3d:hover {
  transform: perspective(1000px) rotateY(10deg) rotateX(5deg) scale(1.02);
  box-shadow: -10px 15px 40px rgba(0, 0, 0, 0.3);
}

/* Underline Animation */
.underline-animated {
  position: relative;
  display: inline-block;
}

.underline-animated::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.8s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Blur Reveal Animation */
.blur-reveal {
  opacity: 0;
  filter: blur(15px);
  transition: opacity 1s ease, filter 1s ease;
}

.blur-reveal.visible {
  opacity: 1;
  filter: blur(0);
}

/* Scale Up Animation */
.scale-up {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Slide Up Reveal */
.slide-up-reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Rotate Reveal */
.rotate-reveal {
  opacity: 0;
  transform: rotate(-10deg) scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rotate-reveal.visible {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Parallax Container */
.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-bg {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  will-change: transform;
}

/* Split Text Animation Ready */
.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) rotateX(-90deg);
  transform-origin: 0 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.split-text.visible .char {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .about .container,
  .why-us .container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-image::before {
    display: none;
  }
  
  .about-image img {
    height: 400px;
  }
  
  .why-us-content {
    position: relative;
    top: 0;
  }
  
  .project-slide {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 250px);
  }
  
  .portfolio-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .hero {
    min-height: 600px;
  }
  
  .hero-controls {
    bottom: 30px;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    aspect-ratio: 16/10;
  }
  
  .project-image img {
    height: 350px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .portfolio-item,
  .portfolio-item:nth-child(1) {
    grid-column: span 1;
    grid-row: span 1;
    height: 250px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }
  
  .footer-brand .logo {
    display: flex;
    justify-content: flex-start;
  }
  
  .footer-social {
    justify-content: flex-start;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: left;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .gallery-close {
    top: 45px;
    right: 22px;
  }
  
  .page-header {
    padding: 140px 0 80px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .btn {
    padding: 14px 30px;
    font-size: 0.75rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .service-card {
    aspect-ratio: 4/3;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ===== Page Header (Interior Pages) ===== */
.page-header {
  position: relative;
  padding: 180px 0 100px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 L50 0 L100 50 L50 100 Z" fill="rgba(201,169,98,0.03)"/></svg>');
  opacity: 0.1;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

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

.breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
  color: var(--color-secondary);
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 15px;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* ===== Contact Form ===== */
.contact-form-section {
  padding: var(--section-padding);
  background: var(--color-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-cards {
  display: grid;
  gap: 25px;
}

.contact-card {
  padding: 30px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.contact-card:hover {
  background: var(--color-white);
  border-color: var(--color-secondary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-card i {
  width: 50px;
  height: 50px;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 15px;
  transition: var(--transition-fast);
}

.contact-card:hover i {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 20px rgba(201, 169, 98, 0.4);
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.contact-card p {
  color: var(--color-text-light);
  margin: 0;
}

.contact-card a {
  color: var(--color-secondary);
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--color-bg-alt);
  padding: 40px;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

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

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e74c3c;
}

.form-error {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 5px;
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-submit {
  text-align: right;
}

.form-submit .btn {
  min-width: 200px;
}

/* Map Container */
.map-container {
  margin-top: 60px;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-gold { color: var(--color-secondary); }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 2rem; }

/* ===== Translation & RTL Support ===== */

/* Language Switcher */
.lang-switcher {
  margin-left: 20px;
  padding: 8px 16px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.header.scrolled .lang-switcher {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.header:not(.scrolled) .lang-switcher {
  border-color: var(--color-white);
  color: var(--color-white);
}

.lang-switcher:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}



/* ===== Fade In Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ===== Services Page Grid ===== */
.services-list {
  padding: var(--section-padding);
  background-color: var(--color-bg);
}

.services-page-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px !important;
  width: 100%;
}

.services-page-grid .service-card {
  position: relative;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  /* Reset global conflicts */
  aspect-ratio: auto !important;
  background: transparent !important;
  transform: none !important;
  transform-style: flat !important;
}

/* Hide global overlay */
.services-page-grid .service-card::before {
  display: none !important;
}

.services-page-grid .service-card:hover {
  transform: none !important; /* Prevent global tilt */
}

.services-page-grid .service-image {
  width: 100%;
  height: 100%;
}

.services-page-grid .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.services-page-grid .service-card:hover .service-image img {
  transform: scale(1.1);
}

.services-page-grid .service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.5), transparent);
  transition: all 0.4s ease;
  z-index: 2;
}

.services-page-grid .service-title {
  color: var(--color-white);
  font-size: 1.5rem;
  font-family: var(--font-heading);
  margin-bottom: 10px;
}

.services-page-grid .service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 10px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.services-page-grid .service-link:hover {
  opacity: 1;
  gap: 15px;
}

/* Services Grid Responsive */
@media (max-width: 992px) {
  .services-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-page-grid {
    grid-template-columns: 1fr;
  }
  
  .services-page-grid .service-card {
    height: 350px;
  }
}

/* RTL Support */
body.rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Tahoma', 'Segoe UI', sans-serif; /* Fallback for Arabic */
}

body.rtl .header .container {
  flex-direction: row-reverse;
}

body.rtl .nav-menu a {
  transform-origin: center bottom;
  font-family: 'Tahoma', sans-serif;
}

/* Right-align elements that are Left-aligned in LTR */
body.rtl .about-content,
body.rtl .footer-grid,
body.rtl .contact-info,
body.rtl .why-us-content,
body.rtl .service-card {
  text-align: right;
}

/* Maintain Center alignment for elements that are Centered in LTR */
body.rtl .hero-content,
body.rtl .section-title,
body.rtl .section-subtitle,
body.rtl .section-description,
body.rtl .services-header,
body.rtl .projects-header,
body.rtl .portfolio-header,
body.rtl .cta,
body.rtl .cta-title,
body.rtl .cta-description,
body.rtl .page-header,
body.rtl .page-header h1,
body.rtl .page-header p,
body.rtl .stat-item,
body.rtl .nav-menu {
  text-align: center;
}

body.rtl .section-description {
  margin-left: auto;
  margin-right: auto;
}

body.rtl .footer-brand, 
body.rtl .footer-contact-col,
body.rtl .footer-bottom {
  text-align: right;
}


body.rtl .stat-item::before {
  left: 50%;
  transform: translateX(-50%);
}

body.rtl .service-view {
  flex-direction: row; 
}

body.rtl .service-view::after {
  content: '\2190'; /* Left Arrow */
}

body.rtl .service-card:hover .service-view::after {
  transform: translateX(-8px);
}

body.rtl .lang-switcher {
  margin: 0;
}

body.rtl .hero-content,
body.rtl .hero-content .hero-title,
body.rtl .hero-content .hero-subtitle,
body.rtl .hero-content .hero-description {
  text-align: center;
}

body.rtl .header-actions {
  flex-direction: row-reverse;
}

/* Specific Override for Why Us Section in RTL */
body.rtl .why-us-content .section-title,
body.rtl .why-us-content .section-subtitle,
body.rtl .why-us-content p {
  text-align: right;
}

/* Specific Override for About Section in RTL */
body.rtl .about-content .section-title,
body.rtl .about-content .section-subtitle,
body.rtl .about-content p {
  text-align: right;
}

/* Keep Stats Centered */
body.rtl .about-stats .stat-item {
  text-align: center;
}

/* Lightbox Arrows RTL */
/* Lightbox Arrows RTL */
body.rtl .lightbox-prev {
  left: auto !important;
  right: 20px !important;
  transform: none;
}

body.rtl .lightbox-next {
  right: auto !important;
  left: 20px !important;
  transform: none;
}

/* Service Link Arrow RTL */
body.rtl .service-link i,
body.rtl .service-link svg {
  transform: scale(-1);
  margin-right: 10px;
  margin-left: 0;
}

body.rtl .services-page-grid .service-link:hover {
  gap: 15px;
}



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

@keyframes zoomInBounce {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
  }
  70% {
    transform: translateY(5px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(20px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes glowPulse {
  0% {
    text-shadow: 0 0 10px rgba(201, 169, 98, 0.2);
  }
  50% {
    text-shadow: 0 0 20px rgba(201, 169, 98, 0.6), 0 0 30px rgba(201, 169, 98, 0.4);
  }
  100% {
    text-shadow: 0 0 10px rgba(201, 169, 98, 0.2);
  }
}

/* Footer RTL Fixes */
body.rtl .footer-heading::after {
  left: auto;
  right: 0;
}

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

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

/* ===== Arabic Font - Cairo ===== */
html[lang="ar"],
html[lang="ar"] body,
body.rtl {
  font-family: 'Cairo', var(--font-body);
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6 {
  font-family: 'Cairo', var(--font-heading);
}

html[lang="ar"] .nav-menu a,
body.rtl .nav-menu a {
  font-family: 'Cairo', var(--font-heading);
}

html[lang="ar"] .btn,
body.rtl .btn {
  font-family: 'Cairo', var(--font-body);
}

html[lang="ar"] .hero-title,
body.rtl .hero-title {
  line-height: 1.5;
}
/* ===== Contact Page Styles ===== */
.contact-section {
  padding: 80px 0;
  background: var(--color-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.contact-info > p {
  color: var(--color-text-light);
  margin-bottom: 40px;
  line-height: 1.8;
}
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: var(--color-light);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.info-card i {
  font-size: 1.5rem;
  color: var(--color-secondary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: 50%;
  flex-shrink: 0;
}
.info-card h4 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 5px;
}
.info-card p, .info-card a {
  color: var(--color-text-light);
  font-size: 0.95rem;
  text-decoration: none;
}
.info-card a:hover {
  color: var(--color-secondary);
}
.contact-form-wrapper {
  background: var(--color-light);
  padding: 40px;
  border-radius: 20px;
}
.contact-form-wrapper h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 30px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--color-white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.submit-btn {
  width: 100%;
  padding: 18px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.submit-btn:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 25px;
  }
}