@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-dark: #070a08;
  --bg-light: #fdfbf7;
  --primary-gold: #cca45c;
  --primary-gold-dim: rgba(204, 164, 92, 0.2);
  --accent-green: #11261b;
  --text-main: #eaeaea;
  --text-muted: #8a938c;
  --glass-bg: rgba(7, 10, 8, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir='rtl'] {
  direction: rtl;
  text-align: right;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================================================
   NAVBAR 
   ========================================================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  height: 70px;
}

.nav-content {
  width: 92%;
  max-width: 1600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-container img {
  height: 40px;
  border-radius: 4px;
  animation: rock10 4s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  transition: color 0.4s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-gold);
  transition: width 0.4s ease;
}
.nav-links a:hover {
  color: var(--primary-gold);
}
.nav-links a:hover::after {
  width: 100%;
}

/* Language Dropdown */
.lang-switcher {
  position: relative;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.4s ease;
  color: #ffffff;
}
.lang-switcher:hover {
  border-color: var(--primary-gold);
}
.lang-dropdown {
  position: absolute;
  top: 130%;
  right: 0;
  background: var(--accent-green);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  min-width: 100px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.4s ease;
  overflow: hidden;
}
.lang-switcher:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-link {
  display: block;
  width: 100%;
  padding: 10px;
  background: none;
  border: none;
  color: #fff;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: 0.3s;
}
.lang-link:hover {
  background: var(--primary-gold-dim);
  color: var(--primary-gold);
}

/* =========================================================================
   HERO SECTION 
   ========================================================================= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero_background_1776332564356.png') center/cover;
  transform-origin: center center;
  animation: droneFlyover 12s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes droneFlyover {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.25) translate(0, 2%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(7, 10, 8, 1) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 1000px;
  padding: 0 5%;
  transform: translateY(20px);
  opacity: 0;
  animation: heroReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-gold);
  margin-bottom: 20px;
  display: block;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 40px;
}
.hero-content h1 span {
  font-style: italic;
  color: var(--primary-gold);
}

.custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  background: transparent;
  padding: 18px 40px;
  border: 1px solid var(--primary-gold);
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition-smooth);
  overflow: hidden;
  position: relative;
}
.custom-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary-gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.custom-btn:hover::before {
  transform: scaleY(1);
}
.custom-btn:hover {
  color: var(--bg-dark);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  opacity: 0;
  animation: heroReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}
.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.scroll-line::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gold);
  animation: scrollLineDrop 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes heroReveal {
  to { transform: translateY(0); opacity: 1; }
}
@keyframes scrollLineDrop {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* =========================================================================
   PROJECT SHOWCASE (ASYMMETRICAL BENTO/OVERLAPPING STYLE)
   ========================================================================= */
.projects-container {
  padding: 40px 5% 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-gold);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.section-label::after {
  content: '';
  height: 1px;
  width: 100px;
  background: var(--primary-gold-dim);
}

.project-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 50px;
  gap: 5%;
}
.project-block.reverse {
  flex-direction: row-reverse;
}
[dir='rtl'] .project-block { flex-direction: row-reverse; }
[dir='rtl'] .project-block.reverse { flex-direction: row; }

.project-image {
  width: 50%;
  height: 60vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--primary-gold-dim);
}
.project-image .img-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 10, 8, 0.8) 0%, transparent 40%);
  opacity: 0.6;
}
.project-block.reverse .project-image::after {
  background: linear-gradient(-90deg, rgba(7, 10, 8, 0.8) 0%, transparent 40%);
}
.project-block:hover .img-inner {
  transform: scale(1.05);
}

.project-content {
  width: 45%;
  background: var(--accent-green);
  padding: 60px 50px;
  position: relative;
  z-index: 10;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
[dir='rtl'] .project-content { text-align: right; }

.proj-num {
  position: absolute;
  top: -20px;
  right: 20px;
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
}
[dir='rtl'] .proj-num { right: auto; left: 20px; }

.project-content h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: #fff;
  font-weight: 400;
}
.project-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.feature-list li {
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 15px;
}
.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary-gold);
  border-radius: 50%;
}

/* Image assignments */
.img-flats { background-image: url('images/luxury_flats_1776332764359.png'); }
.img-plots { background-image: url('images/plot_development_1776332779123.png'); }
.img-resort { background-image: url('images/resort_ai_1776334067897.png'); }
.img-agro { background-image: url('images/modern_agro_1776332795776.png'); }


/* Intersection Observer Reveal Classes */
.reveal-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   GALLERY SECTION
   ========================================================================= */
.gallery-section {
  text-align: center;
  margin-bottom: 120px;
}
.gallery-section h2 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 400;
}
.gallery-section > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 300px 300px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 8, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 30px;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

/* Bento grid sizing logic for creativity */
.large-span {
  grid-column: span 2;
  grid-row: span 2;
}
.wide-span {
  grid-column: span 2;
}

/* =========================================================================
   MANAGEMENT SECTION
   ========================================================================= */
.management-section {
  text-align: center;
  margin-bottom: 20px;
}
.management-section h2 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 400;
}
.management-section > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 80px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
}
[dir='rtl'] .team-grid { text-align: right; }

.team-member {
  background: var(--accent-green);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 30px;
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-member:hover {
  transform: translateY(-10px);
  border-color: var(--primary-gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.team-member img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 25px;
  background: var(--primary-gold-dim);
}
.team-member h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 5px;
}
.team-member p {
  color: var(--primary-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* =========================================================================
   LIGHTBOX
   ========================================================================= */
.lightbox {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  background-color: rgba(4, 8, 6, 0.95);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
}
.lightbox.show {
  display: flex;
  animation: fadeIn 0.4s ease;
}
.lightbox-img {
  max-width: 85%;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}
.lightbox-close:hover {
  color: var(--primary-gold);
  transform: scale(1.1);
}
.lightbox-prev, .lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 20px;
  margin-top: -50px;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  font-size: 60px;
  font-family: serif;
  background: transparent;
  border: none;
  transition: 0.3s ease;
  user-select: none;
}
.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }
.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--primary-gold);
  transform: scale(1.1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================================================================
   FOOTER 
   ========================================================================= */
.site-footer {
  background: linear-gradient(180deg, #040806 0%, #061009 100%);
  border-top: 1px solid var(--glass-border);
  padding: 120px 5% 40px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: var(--primary-gold);
  filter: blur(150px);
  opacity: 0.1;
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  max-width: 1600px;
  margin: 0 auto;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
}

.footer-logo {
  height: 60px;
  border-radius: 6px;
  margin-bottom: 25px;
  display: block;
  animation: rock10 4s ease-in-out infinite;
}

@keyframes rock10 {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

.footer-brand h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 400px;
}

.footer-col h4 {
  color: var(--primary-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-col ul li a {
  color: var(--text-main);
  transition: 0.3s ease;
  position: relative;
  display: inline-block;
}
.footer-col ul li a:hover {
  color: var(--primary-gold);
  transform: translateX(5px);
}
[dir='rtl'] .footer-col ul li a:hover { transform: translateX(-5px); }

.footer-col p {
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.8;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}
.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
  transition: 0.3s;
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.social-icons a:hover {
  background: var(--primary-gold);
  color: var(--bg-dark);
  border-color: var(--primary-gold);
  transform: translateY(-3px);
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
}
.newsletter-form input {
  padding: 14px 15px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.03);
  color: #fff;
  border-radius: 4px 0 0 4px;
  outline: none;
  font-family: var(--font-sans);
  width: 100%;
  transition: border-color 0.3s;
}
.newsletter-form input:focus {
  border-color: var(--primary-gold);
}
.newsletter-form button {
  padding: 14px 20px;
  background: var(--primary-gold);
  color: var(--bg-dark);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  transition: 0.3s;
}
.newsletter-form button:hover {
  background: #fff;
}

.footer-bottom {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .project-block, .project-block.reverse {
    flex-direction: column;
    margin-bottom: 80px;
    gap: 30px;
  }
  .project-image {
    width: 100%;
    height: 400px;
  }
  .project-content {
    width: 100%;
    padding: 50px 30px;
    margin-top: 0;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .large-span { grid-column: span 2; grid-row: span 1; height: 400px; }
  .wide-span { grid-column: span 1; }
  .gallery-item { height: 300px; }
}

/* WHATSAPP FLOATING CHAT */
.whatsapp-chat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background-color: #25D366;
  color: white;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-decoration: none;
  transition: transform 0.3s ease;
  animation: pulse-green 2s infinite;
}

.whatsapp-chat:hover {
  transform: scale(1.1);
  color: white;
}

.whatsapp-chat svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
