:root {
  --dark: #111;
  --light: #fff;
  --accent: #c9a24d;
  --gray: #f4f4f4;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--dark);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  background: var(--light);
  border-bottom: 1px solid #ddd;
  z-index: 1000;
}

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

@media (max-width: 768px) {
  .nav a {
    padding: 0.6rem 0;
  }

  .nav a {
  font-size: 1rem;
  font-weight: 500;
  }

  .nav.active {
  box-shadow: -10px 0 30px rgba(0,0,0,0.08);
  }
}

.nav {
  transition: right 0.35s ease-in-out;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
}

/* LOGO */
.logo {
  font-weight: bold;
  font-size: 1.3rem;
}

.logo span {
  display: block;
  font-size: 0.75rem;
  color: #555;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem; /* controls space between image and text */
}

.logo-img {
  height: 42px;          /* does NOT affect header height */
  width: auto;
  object-fit: contain;
}

.logo-text {
  line-height: 1.1;
}

@media (max-width: 768px) {
  .logo-img {
    height: 36px;
  }
}

.logo img {
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.03);
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
}

.btn-nav {
  background: var(--accent);
  padding: 0.5rem 1rem;
  color: #fff;
}

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

/* HERO */
.hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.5s ease, transform 6s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  padding: 1rem;
}

/* ABOUT */
.about-section {
  position: relative;
  padding: 6rem 2rem;
  overflow: hidden;
}

.about-split {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: var(--dark);
  z-index: 0;
}

.about-wrapper {
  position: relative;
  z-index: 2;
}

.about-story {
  max-width: 800px;
  margin-left: auto;
  color: var(--dark);
}

.about-story h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.about-story p {
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Mobile */
@media (max-width: 768px) {
  .about-split {
    width: 0%;
    height: 120px;
  }

  .about-story {
    margin-left: 0;
  }
}

.about-split {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.architectural-svg {
  width: 100%;
  height: 100%;
}

.snake-line {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: square;
}

/* VMV */
.vmv-section {
  padding: 5rem 2rem;
  background: var(--gray);
}

.vmv-section .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.vmv-card {
  background: #fff;
  padding: 2rem;
  position: relative;
  transition: transform 0.4s ease;
}

.vmv-card:hover {
  transform: translateY(-8px);
}

.architect-line {
  width: 0;
  height: 3px;
  background: var(--accent);
  margin: 12px 0 20px 0;
  transition: width 1.2s ease;
}

.reveal-active, .architect-line {
  width: 100px;
}

/* SECTIONS */
.section {
  padding: 4rem 2rem;
}

.bg-light {
  background: var(--gray);
}

.bg-dark {
  background: var(--dark);
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* GRID */
.grid,
.projects,
.team,
.vmv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card,
.project-card,
.team-card,
.vmv-card {
  background: #fff;
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card:hover,
.project-card:hover,
.team-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  margin-bottom: 1rem;
}

/* PROCESS */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.step {
  padding: 1rem;
  border-left: 4px solid var(--accent);
}

/* CONTACT */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
}

.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.8rem;
  cursor: pointer;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(201,162,77,0.2);
}

/* CONTACT ICONS */
.contact-info {
  display: grid;
  gap: 1.2rem;
  max-width: 600px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
}

.contact-item i {
  color: var(--accent);
  font-size: 1.2rem;
  min-width: 22px;
}

.contact-item a {
  color: var(--light);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 1rem;
  background: #000;
  color: #fff;
}

.footer-legal a {
  color: var(--light);
  text-decoration: none;
}

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

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 56px;
  height: 56px;

  background: #25D366;
  color: #fff;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.8rem;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 2000;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.whatsapp-float {
  animation: whatsappPulse 2.5s infinite;
}

.whatsapp-float::after {
  content: "Chat with us";
  position: absolute;
  right: 70px;
  background: #000;
  color: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover::after {
  opacity: 1;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 3rem 2rem;
    transition: right 0.3s ease;
  }

  .nav.active {
    right: 0;
  }
}

/* MODAL SYSTEM (FINAL – JS ALIGNED) */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 2000;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- MODAL CONTENT ---------- */

.modal-content {
  background: #fff;
  max-width: 900px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  border-radius: 8px;
  transform: translateY(20px);
  transition: transform 0.35s ease;
  touch-action: pan-y;
}

.modal.active .modal-content {
  transform: translateY(0);
}

/* LEADERSHIP MODAL */
.leader-modal {
  max-width: 900px;
  width: 90%;
  animation: scaleIn 0.4s ease;
}

.leader-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.leader-image img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.leader-details h3 {
  margin-bottom: 0.3rem;
}

.leader-details h5 {
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Mobile */
@media (max-width: 768px) {
  .leader-modal-grid {
    grid-template-columns: 1fr;
  }

  .leader-image img {
    max-height: 300px;
  }
}

/* Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* LEADERSHIP HORIZONTAL SCROLL */
.leadership-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1.5rem;

  overflow-x: auto;
  padding-bottom: 1rem;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.leadership-scroll::-webkit-scrollbar {
  height: 6px;
}

.leadership-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.team-card {
  scroll-snap-align: start;
  background: #fff;
  padding: 1.2rem;
  cursor: pointer;
  width: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
  .leadership-scroll {
    grid-auto-columns: 80%;
  }

  .team-card img {
    height: 220px;
  }
}

@media (min-width: 1200px) {
  .leadership-scroll {
    grid-auto-columns: 280px;
  }
}

/* PROJECTS HORIZONTAL SCROLL */
.projects-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.projects-scroll::-webkit-scrollbar {
  height: 6px;
}

.projects-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.project-card {
  scroll-snap-align: start;
  background: var(--gray);
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 200px;
  border-radius: 4px;
  object-fit: cover;
}

/* PROJECTS MODAL GALLERY */
.project-modal {
  max-width: 1000px;
  width: 92%;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-gallery img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.03);
}

/* SERVICE MODAL – CINEMATIC EXPERIENCE */
.service-modal {
  backdrop-filter: blur(6px);
  animation: fadeBackdrop 0.4s ease;
}

.service-modal-content {
  max-width: 1000px;
  width: 92%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  animation: liftIn 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 420px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-text {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.service-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.service-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* MOBILE – IMMERSIVE FULLSCREEN */
@media (max-width: 768px) {
  .service-modal-content {
    height: 100vh;
    border-radius: 10px;
  }

  .service-modal-grid {
    grid-template-columns: 1fr;
  }

  .service-image img {
    height: 220px;
  }

  .service-text h3 {
  font-size: 1.5rem;
 }

  .service-text p {
  font-size: 1rem;
  line-height: 1.6;
 }
}

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

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

/* UNIVERSAL DYNAMIC CLOSE BUTTON */
.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;

  width: 30px;
  height: 30px;

  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);

  color: #fff;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 
    transform 0.35s cubic-bezier(0.19,1,0.22,1),
    background 0.3s ease,
    box-shadow 0.3s ease;

  z-index: 20;
}

.modal-close i {
  font-size: 1rem;
  transition: transform 0.35s ease;
}

.modal-close:hover {
  background: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.modal-close:hover i {
  transform: rotate(90deg);
}

.modal-close:active {
  transform: scale(0.95);
}

@keyframes modalEnter {
  from {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Mobile refinement */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
  }

  .modal-close {
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
  }
}

.modal-content {
  transform: translateY(40px);
  transition: transform 0.4s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

/* BTN DOWNLOAD */
.btn-download {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-download:hover {
  background: #a88435;
  transform: translateY(-3px);
}

/* THANK YOU MODAL */
.thankyou-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 9999;
}

.thankyou-modal.active {
  opacity: 1;
  visibility: visible;
}

.thankyou-box {
  position: relative;
  background: #111;
  color: #fff;
  max-width: 500px;
  width: 90%;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 12px;
  transform: translateY(40px) scale(0.95);
  transition: all 0.4s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  overflow: hidden;
}

.thankyou-modal.active .thankyou-box {
  transform: translateY(0) scale(1);
}

.thankyou-lines {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #c9a24d, transparent);
  animation: lineGlow 3s infinite;
}

@keyframes lineGlow {
  0%,100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.checkmark-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 2px solid #c9a24d;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.6s ease forwards;
}

.checkmark {
  width: 25px;
  height: 12px;
  border-left: 3px solid #c9a24d;
  border-bottom: 3px solid #c9a24d;
  transform: rotate(-45deg);
  opacity: 0;
  animation: checkDraw 0.6s 0.4s ease forwards;
}

@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes checkDraw {
  to { opacity: 1; }
}

.thankyou-close {
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: #c9a24d;
  border: none;
  color: #111;
  font-weight: bold;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.thankyou-close:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* G-RECAPTCHA */
.g-recaptcha {
  margin: 1rem 0;
  transform: scale(0.95);
  transform-origin: left;
}

.recaptcha-disclaimer {
  font-size: 0.75rem;
  color: var(--light);
  margin-top: 10px;
}

.recaptcha-disclaimer a {
  color: var(--accent);
}

/* REVEAL ANIMATIONS */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

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

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

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0);
}