@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0066FF;
  --primary-hover: #0052cc;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --radius: 16px;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--surface);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Navbar */
header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 5%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: var(--transition);
}

header.scrolled {
  padding: 12px 5%;
  background: rgba(255, 255, 255, 0.9);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--primary);
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

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

nav a:hover::after, nav a.active-link::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  position: absolute;
  left: 0;
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle span:first-child { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:last-child { top: 22px; }

.menu-toggle.active span:first-child {
  transform: rotate(45deg);
  top: 11px;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:last-child {
  transform: rotate(-45deg);
  top: 11px;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    padding: 100px 40px;
    box-shadow: var(--shadow-lg);
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }
  
  nav.active { right: 0; }
}

/* Typography & Sections */
section {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  section {
    padding: 60px 5%;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0 5%;
  overflow: hidden;
  max-width: 100%;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.9));
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
  padding: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: #CBD5E1;
  margin-bottom: 32px;
  font-weight: 300;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px 0 rgba(0, 102, 255, 0.39);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: #EFF6FF;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.gallery-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

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

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

/* Location */
.location-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  height: 400px;
}

.location-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--surface);
  border-radius: 24px;
  padding: 60px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .contact-wrapper {
    padding: 24px 16px;
  }
  .contact-info h2 {
    font-size: 2rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.125rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.info-item .icon {
  width: 48px;
  height: 48px;
  background: #EFF6FF;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
}

.info-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.info-text span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.input-group {
  position: relative;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition);
}

.input-group textarea {
  min-height: 150px;
  resize: vertical;
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  background: var(--surface);
  padding: 0 4px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  border-radius: 4px;
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 5% 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--surface);
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius);
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-content {
  padding: 40px;
  position: relative;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 30px 20px;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  color: #ff3b30;
}

.modal h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.modal p {
  color: var(--text-muted);
  margin-bottom: 16px;
}
