/* ================================================
   ديكورات الجبس - Luxury Portfolio CSS
   Author: Premium Web Design
   ================================================ */

/* ===== IMPORTS & VARIABLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Amiri:wght@400;700&display=swap');

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #A67C28;
  --gold-glow: rgba(201, 168, 76, 0.3);
  --black: #0A0A0A;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --dark-3: #222222;
  --dark-4: #2a2a2a;
  --white: #FFFFFF;
  --off-white: #F8F5F0;
  --beige: #D4C5A9;
  --beige-light: #EDE7D9;
  --beige-dark: #B5A48C;
  --text-light: #A09080;
  --text-muted: #6B5D4F;
  --border: rgba(201, 168, 76, 0.15);
  --border-light: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.2);
  --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-height: 80px;
  --font-main: 'Tajawal', 'Arial', sans-serif;
  --font-elegant: 'Amiri', serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ===== UTILITIES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(201, 168, 76, 0.5);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  backdrop-filter: blur(10px);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(201, 168, 76, 0.35);
}

.btn-sm { padding: 10px 24px; font-size: 0.9rem; }
.full-width { width: 100%; justify-content: center; }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-family: var(--font-main);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 20px;
  font-family: var(--font-main);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}

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

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

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

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

@keyframes loader-fill {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.visible,
.reveal-right.visible,
.reveal-left.visible {
  opacity: 1;
  transform: none;
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loaderPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.4));
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--dark-3);
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  animation: loader-fill 2s ease forwards;
}

.loader-text {
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
  padding: 0;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

/* ===== BRAND LOGO HTML (RTL-safe) ===== */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  direction: rtl;
  transition: var(--transition);
}

.nav-logo:hover .brand-logo {
  filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.35));
  transform: scale(1.02);
}

/* Text block */
.bl-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.bl-name {
  font-family: 'Amiri', serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #E8C97A 0%, #C9A84C 50%, #A67C28 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  display: block;
  direction: rtl;
  unicode-bidi: normal;
}

.bl-divider-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.bl-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent);
  min-width: 20px;
}

.bl-tagline {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(201, 168, 76, 0.7);
  white-space: nowrap;
  direction: rtl;
}

/* Ornament chevrons */
.bl-ornament {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  opacity: 0.9;
}

.bl-ornament-flip {
  transform: scaleX(-1);
}

.bl-arrow {
  display: block;
  width: 0;
  height: 0;
}

.bl-arrow-outer {
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 7px solid #C9A84C;
}

.bl-arrow-inner {
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-right: 5px solid rgba(201,168,76,0.45);
}

.bl-dot {
  display: block;
  width: 4px;
  height: 4px;
  background: #C9A84C;
  border-radius: 50%;
  margin-top: 2px;
}

/* Footer logo — slightly bigger */
.brand-logo-footer .bl-name { font-size: 2rem; }
.brand-logo-footer .bl-tagline { font-size: 0.6rem; }

/* Loader logo */
.brand-logo-loader {
  gap: 12px;
}
.brand-logo-loader .bl-name {
  font-size: 2.2rem;
  animation: loaderPulse 2s ease-in-out infinite;
}

/* Legacy - kept for safety */
.logo-icon { display: none; }
.logo-text { display: none; }
.logo-main { display: none; }
.logo-sub  { display: none; }


.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::after { transform: scaleX(1); }

.nav-link.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 700;
}

.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
  color: var(--black);
}

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

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

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroScale 8s ease-out forwards;
}

@keyframes heroScale {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.88) 0%,
    rgba(10,10,10,0.65) 50%,
    rgba(10,10,10,0.82) 100%
  );
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  animation: particleFloat linear infinite;
  opacity: 0;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) translateX(60px); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(201, 168, 76, 0.08);
  backdrop-filter: blur(10px);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  font-family: var(--font-main);
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-title-gold {
  display: block;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  font-family: var(--font-elegant);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  font-weight: 300;
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease 1.2s both;
}

.scroll-mouse {
  width: 28px;
  height: 46px;
  border: 2px solid rgba(201, 168, 76, 0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease infinite;
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
}

.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 20px;
}

.hero-stat {
  text-align: center;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hs-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.hs-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1px;
}

.hero-stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

/* ===== ABOUT ===== */
.about {
  padding: 120px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.about-image-wrapper {
  position: relative;
}

.about-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about-img-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--gold), transparent, var(--gold-dark));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.about-img-frame img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about-img-frame:hover img { transform: scale(1.05); }

.about-badge-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  padding: 20px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-dark);
  animation: float 4s ease-in-out infinite;
}

.abf-icon {
  font-size: 2rem;
  background: rgba(0,0,0,0.15);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.about-badge-float strong { display: block; font-size: 1.8rem; font-weight: 900; }
.about-badge-float span { font-size: 0.8rem; font-weight: 500; }

.about-content { display: flex; flex-direction: column; gap: 20px; }

.about-text {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.about-features li i {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== SERVICES ===== */
.services {
  padding: 120px 0;
  background: var(--black);
  position: relative;
}

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

.service-card {
  background: var(--dark-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--shadow-gold);
}

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

.service-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

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

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 24px;
  transition: var(--transition);
}

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

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
  font-weight: 300;
}

.service-number {
  position: absolute;
  bottom: 20px;
  left: 24px;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  font-family: var(--font-elegant);
  transition: var(--transition);
}

.service-card:hover .service-number {
  color: rgba(201, 168, 76, 0.08);
}

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: 120px 0;
  background: var(--dark);
}

.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  border: 1px solid var(--border-light);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item.tall { grid-row: span 2; }
.portfolio-item.wide { grid-column: span 2; }

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

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

.portfolio-info { align-self: flex-end; width: 100%; }

.port-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(201, 168, 76, 0.15);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  margin-bottom: 8px;
}

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

.portfolio-info p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

.port-zoom {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.port-zoom:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: scale(1.1);
}

.portfolio-item.hide {
  display: none;
}

/* ===== BEFORE / AFTER ===== */
.before-after {
  padding: 120px 0;
  background: var(--black);
}

.comparison-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.comparison-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 550px;
  cursor: ew-resize;
  box-shadow: var(--shadow-dark), var(--shadow-gold);
  border: 1px solid var(--border);
  user-select: none;
}

.comparison-before, .comparison-after {
  position: absolute;
  inset: 0;
}

.comparison-before img,
.comparison-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.comparison-after {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.05s linear;
}

.comp-label {
  position: absolute;
  top: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
}

.comp-label-before {
  right: 20px;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}

.comp-label-after {
  left: 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
}

.comparison-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--gold);
  z-index: 10;
  transition: left 0.05s linear;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--black);
  font-size: 0.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), var(--shadow-gold);
  border: 3px solid var(--white);
}

.comp-hint {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== STATISTICS ===== */
.statistics {
  padding: 100px 0;
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}

.stats-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  background: var(--glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-item:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
}

.stat-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.8;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: inline-block;
}

.stat-plus {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  display: inline-block;
  margin-right: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 120px 0;
  background: var(--dark);
  overflow: hidden;
}

.testimonials-slider {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card {
  flex: 0 0 calc(33.33% - 16px);
  background: var(--dark-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.04), transparent);
  opacity: 0;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

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

.test-quote {
  font-size: 1.8rem;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 20px;
}

.test-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 24px;
}

.test-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.test-avatar {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
}

.test-author strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.test-author span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.test-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.test-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

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

.test-dots {
  display: flex;
  gap: 8px;
}

.test-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.test-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.3);
}

/* ===== CONTACT ===== */
.contact {
  padding: 120px 0;
  background: var(--black);
}

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--dark-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateX(-6px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-card-icon.whatsapp { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.contact-card-icon.phone { background: rgba(201, 168, 76, 0.15); color: var(--gold); }
.contact-card-icon.instagram { background: rgba(225, 48, 108, 0.15); color: #E1306C; }

.contact-card-content h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-card-content a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s;
}

.contact-card-content a:hover { color: var(--gold); }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-placeholder {
  background: var(--dark-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.map-placeholder i {
  font-size: 2.5rem;
  color: var(--gold);
}

.map-placeholder h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.map-placeholder p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
  background: var(--dark-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full { grid-column: span 2; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
  direction: rtl;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select option { background: var(--dark-3); }

.form-group select optgroup {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--dark-4);
  padding: 4px 0;
}

.form-group select optgroup option {
  color: var(--white);
  font-weight: 400;
  padding-right: 8px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
  background: var(--dark-4);
}

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

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 500;
}

.form-success.show { display: flex; }
.form-success i { font-size: 1.2rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.footer-top { padding: 80px 0 60px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 28px;
  font-weight: 300;
}

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

.social-link {
  width: 40px;
  height: 40px;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

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

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-light);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

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

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.footer-contact-list i {
  color: var(--gold);
  font-size: 0.9rem;
  width: 16px;
  flex-shrink: 0;
}

.footer-contact-list a, .footer-contact-list span {
  color: var(--text-light);
  transition: color 0.3s;
}

.footer-contact-list a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 900;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.wf-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark-2);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.whatsapp-float:hover .wf-tooltip { opacity: 1; }

.wf-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse-ring 2s ease infinite;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 100px;
  left: 30px;
  z-index: 900;
  width: 44px;
  height: 44px;
  background: var(--dark-2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  cursor: pointer;
}

.scroll-top-right {
  left: auto;
  right: 30px;
}

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

.scroll-top:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-4px);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.lightbox-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px;
  max-width: 90vw;
}

.lb-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 800px;
  max-height: 80vh;
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--border);
}

.lb-img-wrapper img {
  max-width: 800px;
  max-height: 80vh;
  object-fit: contain;
}

.lb-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent);
  padding: 30px 24px 16px;
  color: var(--white);
  font-size: 0.9rem;
}

.lb-close {
  position: absolute;
  top: 0;
  left: -60px;
  width: 44px;
  height: 44px;
  background: var(--dark-2);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.lb-close:hover {
  background: #e74c3c;
  color: var(--white);
  border-color: #e74c3c;
}

.lb-prev, .lb-next {
  width: 48px;
  height: 48px;
  background: var(--dark-2);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item.wide { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonials-track { gap: 20px; }
  .testimonial-card { flex: 0 0 calc(50% - 10px); }
}

@media (max-width: 768px) {
  :root { --nav-height: 70px; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link { padding: 12px 16px; border-radius: 10px; width: 100%; text-align: center; }
  .nav-toggle { display: flex; }

  .hero-title { font-size: 2.2rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; width: 100%; align-items: stretch; }
  .hero-btns .btn { justify-content: center; }
  .hero-stat { padding: 0 20px; }
  .hs-num { font-size: 1.4rem; }

  .about-img-frame img { height: 320px; }
  .about-badge-float { left: 10px; bottom: -15px; padding: 14px 16px; }
  .about-badge-float strong { font-size: 1.5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .portfolio-item.tall { grid-row: span 1; }

  .comparison-container { height: 320px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-number { font-size: 2.8rem; }

  .testimonial-card { flex: 0 0 100%; }

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

  .contact-form-wrapper { padding: 28px 20px; }

  .lb-prev, .lb-next { display: none; }
  .lb-img-wrapper img { max-width: 90vw; }

  .whatsapp-float { bottom: 20px; left: 20px; width: 52px; height: 52px; font-size: 1.4rem; }
  .scroll-top { left: auto; right: 20px; bottom: 90px; }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-stat-divider { display: none; }
  .hero-stat { padding: 10px 16px; }

  .portfolio-filter { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 0.82rem; }

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