/* ===== CSS RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gold: #c9a96e;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f6f3;
  --text-dark: #2c2c2c;
  --text-light: #ffffff;
  --text-gray: #6b6b6b;
  --accent-dark: #0f0f0f;
}

html {
  scroll-behavior: smooth;
  /* Mobile scroll optimization */
  -webkit-overflow-scrolling: touch;
  overflow-y: scroll;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevent text size adjustment on mobile */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  /* Enable hardware acceleration for smoother scrolling */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
}

.navbar.scrolled {
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 3px;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.navbar.scrolled .logo-img {
  height: 50px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-gold);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

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

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

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

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

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

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

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: 8px;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--primary-gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
  background-color: var(--primary-gold);
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201, 169, 110, 0.3);
}

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

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

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.title-underline {
  width: 80px;
  height: 3px;
  background-color: var(--primary-gold);
  margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 8rem 0;
  background-color: var(--light-bg);
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-gray);
  font-weight: 300;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  padding: 8rem 0;
  background-color: #ffffff;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.project-card {
  background-color: var(--light-bg);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  /* Mobile touch optimization */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Slideshow Styles */
.project-slideshow {
  position: relative;
  height: 450px;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

.slide.active {
  opacity: 1;
}

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

.project-card:hover .slide.active img {
  transform: scale(1.1);
}

/* Slideshow Navigation Buttons */
.slide-prev,
.slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(201, 169, 110, 0.8);
  color: white;
  border: none;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0;
  /* Mobile touch optimization */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
}

.project-card:hover .slide-prev,
.project-card:hover .slide-next {
  opacity: 1;
}

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

.slide-prev {
  left: 1rem;
}

.slide-next {
  right: 1rem;
}

/* Slideshow Dots */
.slide-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
  background-color: var(--primary-gold);
  width: 12px;
  height: 12px;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0.2), rgba(26, 26, 26, 0.8));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-info {
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.project-card:hover .project-info {
  transform: translateY(0);
}

.project-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.project-info p {
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-gold);
}

.project-details {
  padding: 2rem;
}

.project-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.project-location {
  font-size: 0.9rem;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-features li {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.project-features li::before {
  content: '•';
  color: var(--primary-gold);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.project-features li strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 8rem 0;
  background-color: var(--dark-bg);
  color: var(--text-light);
  text-align: center;
}

.contact-section .section-title {
  color: var(--text-light);
}

.contact-text {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background-color: #25d366;
  color: var(--text-light);
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
  background-color: #1ebc57;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--accent-dark);
  color: var(--text-light);
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  color: var(--primary-gold);
}

.footer-tagline {
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }

  .project-slideshow {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
    padding: 2rem;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 1.1rem;
    padding: 1rem 0;
  }

  .logo-img {
    height: 45px;
  }

  .navbar.scrolled .logo-img {
    height: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 4px;
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
  }

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

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-slideshow {
    height: 350px;
  }

  .slide-prev,
  .slide-next {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    /* Always show navigation arrows on mobile */
    opacity: 0.7;
  }

  .slide-prev:active,
  .slide-next:active {
    opacity: 1;
    background-color: var(--primary-gold);
  }

  .about-section,
  .projects-section,
  .contact-section {
    padding: 5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .nav-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    width: 85%;
  }

  .logo-img {
    height: 40px;
  }

  .navbar.scrolled .logo-img {
    height: 35px;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 3px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 0.8rem;
  }

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

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }
}
