/* ============================================
   معرض النخبة للذهب - Elite Gold Exhibition
   CSS Variables, Reset, Base Styles
   ============================================ */

:root {
  --black: #0B0B0B;
  --black-2: #111111;
  --black-3: #1A1A1A;
  --gold: #D4AF37;
  --gold-light: #F0D060;
  --gold-dark: #B8962E;
  --gold-glow: rgba(212, 175, 55, 0.3);
  --white: #FFFFFF;
  --off-white: #F8F5F0;
  --gray-100: #F0F0F0;
  --gray-200: #E0E0E0;
  --gray-300: #AAAAAA;
  --gray-600: #666666;
  --gray-800: #333333;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  --font: 'Cairo', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --section-padding: 120px 0;
  --container: 1200px;
  --nav-height: 80px;
}

/* Dark mode variables */
[data-theme="dark"] {
  --black: #0B0B0B;
  --black-2: #111111;
  --black-3: #1A1A1A;
  --white: #FFFFFF;
  --off-white: #F8F5F0;
  --gray-100: #1A1A1A;
  --gray-200: #2A2A2A;
  --gray-300: #666666;
  --gray-600: #999999;
  --gray-800: #CCCCCC;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Light mode (default) */
[data-theme="light"] {
  --black: #FFFFFF;
  --black-2: #F8F5F0;
  --black-3: #F0F0F0;
  --white: #0B0B0B;
  --off-white: #1A1A1A;
  --gray-100: #F0F0F0;
  --gray-200: #E0E0E0;
  --gray-300: #999999;
  --gray-600: #666666;
  --gray-800: #333333;
  --glass-bg: rgba(11, 11, 11, 0.06);
  --glass-border: rgba(11, 11, 11, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.08);
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

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

button, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

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

.gold { color: var(--gold); }

.section {
  padding: var(--section-padding);
  position: relative;
}

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

.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  position: relative;
}

.section-tag::before,
.section-tag::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  vertical-align: middle;
  margin: 0 12px;
}

.section-tag::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-desc {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   LOADER
   ============================================ */

.loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s, visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-gold {
  width: 60px;
  height: 60px;
  border: 3px solid var(--gold-dark);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}

.loader-text {
  color: var(--gold);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   HEADER / NAVBAR
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
  height: var(--nav-height);
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px var(--glass-shadow);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 18px;
}

.logo-icon i { color: var(--black); }

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--gray-300);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
  border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--gold);
  color: var(--black);
  transform: rotate(30deg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--black);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(212,175,55,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, rgba(212,175,55,0.08) 0%, transparent 40%),
    linear-gradient(180deg, var(--black) 0%, #0D0D0D 50%, var(--black) 100%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  animation: float-particle 6s infinite;
  opacity: 0;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid var(--gold);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  background: rgba(212, 175, 55, 0.1);
}

.hero-title {
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--gray-600);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray-600);
  font-size: 13px;
  letter-spacing: 2px;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--glass-border);
  border-radius: 13px;
  position: relative;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80% { transform: translateX(-50%) translateY(18px); opacity: 0.3; }
  100% { transform: translateX(-50%) translateY(18px); opacity: 0; }
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  background: linear-gradient(180deg, var(--black) 0%, var(--black-2) 100%);
}

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

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(212,175,55,0.05), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

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

.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-dark);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.08);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  border: 1px solid rgba(212,175,55,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 24px;
  transition: all var(--transition);
}

.glass-card:hover .service-icon {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--black);
  transform: scale(1.1);
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.service-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery {
  background: var(--black);
}

.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 28px;
  border-radius: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.gallery-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: all var(--transition);
}

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

.gallery-info h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.gallery-info span {
  font-size: 14px;
  color: var(--gold);
  font-weight: 500;
}

.gallery-expand {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  opacity: 0;
  transform: scale(0.8);
}

.gallery-item:hover .gallery-expand {
  opacity: 1;
  transform: scale(1);
}

.gallery-expand:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

/* ============================================
   WHY US SECTION
   ============================================ */

.why-us {
  background: var(--black-2);
  position: relative;
  overflow: hidden;
}

.section-bg-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(212,175,55,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(212,175,55,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.counter-card {
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
  position: relative;
}

.counter-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.08);
}

.counter-icon {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 20px;
}

.counter-number {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  display: inline;
}

.counter-plus {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--gold);
  display: inline;
  margin-right: 2px;
}

.counter-label {
  font-size: 16px;
  color: var(--gray-600);
  margin-top: 12px;
  font-weight: 500;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials {
  background: var(--black);
  overflow: hidden;
}

.testimonials-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 320px;
  scroll-snap-align: start;
  padding: 40px 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.06);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  gap: 4px;
}

.testimonial-text {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.author-info span {
  font-size: 13px;
  color: var(--gray-600);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-800);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.testimonial-dot.active {
  background: var(--gold);
  width: 30px;
  border-radius: 5px;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq {
  background: var(--black-2);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: rgba(212,175,55,0.2);
}

.faq-item.active {
  border-color: var(--gold-dark);
}

.faq-question {
  width: 100%;
  padding: 24px 28px;
  background: none;
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: right;
  transition: color var(--transition);
}

.faq-item.active .faq-question {
  color: var(--gold);
}

.faq-question i {
  font-size: 14px;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 28px 24px;
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.9;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  background: var(--black);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.contact-item:hover {
  border-color: var(--gold-dark);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

.contact-form {
  padding: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 15px;
  transition: all var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: rgba(212,175,55,0.03);
}

.form-group label {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--gray-600);
  font-size: 15px;
  pointer-events: none;
  transition: all var(--transition);
  background: transparent;
  padding: 0 4px;
}

.form-group textarea ~ label {
  top: 18px;
  transform: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  transform: none;
  font-size: 12px;
  color: var(--gold);
  background: var(--black);
  padding: 0 6px;
}

.form-group input:-webkit-autofill,
.form-group textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--black-2) inset !important;
  -webkit-text-fill-color: var(--white) !important;
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 18px 36px;
}

/* ============================================
   MAP SECTION
   ============================================ */

.map-section {
  padding: 0 0 80px;
  background: var(--black);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.map-wrapper iframe {
  display: block;
  filter: grayscale(1) invert(0.9);
  transition: filter 0.5s;
}

[data-theme="light"] .map-wrapper iframe {
  filter: grayscale(0.3);
}

.map-wrapper iframe:hover {
  filter: grayscale(0);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--black-2);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--glass-border);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-about {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 24px;
}

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

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 16px;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

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

.footer-links a {
  color: var(--gray-600);
  font-size: 15px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '\f104';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-5px);
  transition: all var(--transition);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-600);
  font-size: 14px;
}

.footer-contact i {
  color: var(--gold);
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 14px;
  color: var(--gray-600);
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */

.whatsapp-btn {
  position: fixed;
  bottom: 100px;
  left: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
}

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

.back-to-top:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
  padding: 48px;
}

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

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.4s;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  left: 24px;
  background: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  color: var(--black);
}

.lightbox-prev { right: 24px; }
.lightbox-next { left: 24px; }

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 16px;
  background: rgba(0,0,0,0.6);
  padding: 8px 24px;
  border-radius: 50px;
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }
.reveal-delay-400 { transition-delay: 0.4s; }
.reveal-delay-500 { transition-delay: 0.5s; }

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(11, 11, 11, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-link { font-size: 18px; }

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

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

  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .counter-card {
    padding: 32px 16px;
  }

  .testimonial-card {
    flex: 0 0 85%;
    min-width: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form {
    padding: 24px;
  }

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

@media (max-width: 480px) {
  :root {
    --section-padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

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

  .counters-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .section-tag {
    font-size: 12px;
  }

  .section-tag::before,
  .section-tag::after {
    width: 20px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  .whatsapp-btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
    bottom: 80px;
    left: 16px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 80px;
    right: 16px;
  }
}
