@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --color-primary: #111824; /* Deep Navy Space */
  --color-accent: #c89d53; /* Elegant Gold */
  --color-accent-hover: #b08741;
  --color-light: #fdfaf6; /* Warm off-white */
  --color-text-dark: #1f2937;
  --color-text-light: #f3f4f6;
  --color-gray: #6b7280;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, h4, .heading-font {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 157, 83, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(17, 24, 36, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 5%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo img {
  height: 100px;
  transition: var(--transition);
}

.logo span {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

nav a:hover, nav a.active {
  color: var(--color-accent);
}

.contact-btn {
  border: 1px solid rgba(200, 157, 83, 0.5);
  padding: 10px 24px;
  color: var(--color-accent);
}
.contact-btn:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 10px;
}

.lang-switcher span {
  transition: var(--transition);
}

.lang-switcher span:hover, .lang-switcher span.active {
  color: var(--color-accent);
}

/* Base Sections */
section {
  padding: 100px 5%;
}

.section-subtitle {
  color: var(--color-accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  display: block;
}

.section-title {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 30px;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: var(--color-primary);
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

.hero-slideshow .slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlider 10s infinite alternate;
}

.hero-slideshow .slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slideshow .slide:nth-child(2) {
  animation-delay: 5s;
}

@keyframes heroSlider {
  0% { opacity: 1; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.02); }
  50% { opacity: 0; transform: scale(1.03); }
  100% { opacity: 0; transform: scale(1.05); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(17,24,36,0.3) 0%, rgba(17,24,36,0.8) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding-top: 60px;
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 40px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

/* About Section */
.about {
  display: flex;
  gap: 80px;
  background-color: var(--color-light);
}

.about-content {
  flex: 1;
  max-width: 600px;
}

.about-text {
  font-size: 1.1rem;
  color: var(--color-gray);
  margin-bottom: 20px;
}

.about-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: center;
}

.stat-card {
  background: #fff;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--color-accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.stat-number {
  font-size: 3.5rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
  margin-bottom: 10px;
  line-height: 1;
}

.stat-number span {
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray);
}

/* Projects Section */
.projects {
  background-color: #fff;
  text-align: center;
  padding-bottom: 40px;
}

.project-item {
  display: flex;
  align-items: stretch;
  margin: 60px 5%;
  text-align: left;
  background-color: var(--color-light);
  min-height: 500px;
}

.project-item:nth-child(even) {
  flex-direction: row-reverse;
}

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

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.project-status {
  position: absolute;
  top: 30px;
  left: 30px;
  padding: 8px 16px;
  background-color: var(--color-accent);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

.project-status.en-cours {
  background-color: var(--color-primary);
}

.project-info {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-category {
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.project-info h3 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 25px;
}

.project-desc {
  color: var(--color-gray);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.project-features {
  list-style: none;
}

.project-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.project-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Contact Section */
.contact {
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
}

.contact .section-title {
  color: #fff;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

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

textarea, input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 15px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 15px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
  transition: var(--transition);
}

textarea:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

textarea::placeholder, input::placeholder {
  color: rgba(255,255,255,0.5);
}

.contact .btn-primary {
  width: 100%;
  margin-top: 20px;
}

/* Footer */
footer {
  background-color: #0b111a;
  color: rgba(255,255,255,0.6);
  padding: 60px 5% 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-logo img {
  height: 90px;
  opacity: 0.9;
  margin-bottom: 15px;
}

.footer-nav h4, .footer-contact h4 {
  color: #fff;
  font-family: var(--font-heading);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
}

/* Floating WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
}

.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

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

/* Scroll Reveals */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 30px;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Responsive */

@media (max-width: 900px) {

  /* Disable JS reveals on mobile to prevent Safari bugs */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-content h1 { font-size: 2.8rem; }
  .section-title { font-size: 2.2rem; }
  .about { flex-direction: column; gap: 40px; }
  .project-item { flex-direction: column !important; margin: 40px 0; }
  .project-item:nth-child(even) { flex-direction: column !important; }
  .project-image { min-height: 250px; }
  .project-info { padding: 30px 20px; }
  .footer-content { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .form-row { flex-direction: column; gap: 0; }
  
  .hamburger { display: flex; }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(17, 24, 36, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease-in-out;
    border-left: 1px solid rgba(255,255,255,0.05);
  }
  nav.active { right: 0; }
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

/* Lightbox & Detail Page */
.page-header {
  padding-top: 150px;
  padding-bottom: 50px;
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.property-details {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 0;
  font-size: 1.15rem;
  color: var(--color-gray);
}

.property-details p {
  margin-bottom: 20px;
}

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

.gallery-item {
  height: 250px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
}

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

.gallery-item:hover img {
  transform: scale(1.08); /* Zoom on hover */
}

/* Modal Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  animation: fadeIn 0.3s;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--color-accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  transition: color 0.3s ease;
}

.lightbox-nav:hover {
  color: var(--color-accent);
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

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

/* Text Modal Styles */
.text-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}

.text-modal.active {
  display: flex;
}

.text-modal-content {
  background-color: #fff;
  padding: 50px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  text-align: left;
  animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.text-modal-close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s;
}

.text-modal-close:hover {
  color: var(--color-accent);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header Image Hover Animation */
.page-header:hover .header-bg {
  transform: scale(1.05);
}
