@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #071a0a;
  --secondary: #0c2410;
  --accent: #c8a45c;
  --accent-light: #e8c97a;
  --accent-dark: #a8863a;
  --text: #f5f5f5;
  --text-muted: #999;
  --text-dark: #1a1a1a;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--primary); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.section { padding: 120px 0; position: relative; }
.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.8;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.nav.scrolled {
    background: rgba(7, 26, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.nav-logo .logo-img { height: 36px; width: auto; display: block; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #020804 0%, #071a0a 40%, #0d2e12 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(2,8,4,0.7) 0%, rgba(7,26,10,0.6) 40%, rgba(13,46,18,0.7) 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at 30% 50%, rgba(200, 164, 92, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(200, 164, 92, 0.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  backdrop-filter: blur(10px);
  background: var(--glass);
  margin-bottom: 32px;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 28px;
}
.hero h1 .highlight { color: var(--accent); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-primary {
  background: var(--accent);
  color: var(--text-dark);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(200, 164, 92, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--glass);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: white;
}
.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}
.hero-stat h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Floating architectural shapes */
.floating-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.floating-shapes .shape {
  position: absolute;
  border: 1px solid var(--glass-border);
  opacity: 0.3;
}
.floating-shapes .shape:nth-child(1) {
  width: 300px; height: 300px; top: -100px; right: -50px;
  transform: rotate(45deg);
  border-width: 2px;
}
.floating-shapes .shape:nth-child(2) {
  width: 200px; height: 200px; bottom: 10%; left: 5%;
  border-radius: 50%;
  border-width: 3px;
}
.floating-shapes .shape:nth-child(3) {
  width: 150px; height: 150px; top: 30%; right: 10%;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  border: none;
  background: rgba(200, 164, 92, 0.05);
}

/* Works / Portfolio */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.work-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.work-filter {
  padding: 10px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.work-filter:hover,
.work-filter.active {
  background: var(--accent);
  color: var(--text-dark);
  border-color: var(--accent);
}

.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--secondary);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}
.work-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.work-card:hover img { transform: scale(1.08); }

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: var(--transition);
}
.work-card:hover .work-overlay { opacity: 1; }

.work-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.work-overlay span {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--accent); color: var(--text-dark); }
.lightbox-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
  text-align: center;
  color: var(--text);
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
}
.lightbox-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.lightbox-info span { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; }
.lightbox-info .desc {
  color: #ddd;
  font-size: 0.95rem;
  margin-top: 10px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  opacity: 0.9;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  padding: 40px 32px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--secondary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: var(--transition);
}
.service-card:hover::before { height: 100%; }
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(200, 164, 92, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.service-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 50px;
  background: #25D366;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.service-order:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--secondary);
  border: 1px solid var(--glass-border);
  position: relative;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-experience {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--text-dark);
  padding: 24px 32px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.about-experience h3 { font-size: 2.5rem; font-weight: 800; font-family: 'Playfair Display', serif; }
.about-experience p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.about-content h2 { font-size: 2.5rem; }
.about-content p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.8; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.about-feature .check { color: var(--accent); font-weight: 700; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form textarea {
  padding: 16px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.1);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(200, 164, 92, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.footer-brand h3 .logo-img { height: 28px; }
.footer-brand h3 span { color: var(--accent); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 320px; }

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--accent);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-muted);
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  border: none;
  font-size: 1.5rem;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}
.whatsapp-float .pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2s ease-in-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Page header (inner pages) */
.page-header {
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #020804 0%, #071a0a 40%, #0d2e12 100%);
  overflow: hidden;
  padding-top: 100px;
}
.page-header .hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); }
.page-header-content { position: relative; z-index: 1; }

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Toast notifications */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.9rem;
  transform: translateX(120%);
  transition: var(--transition);
  max-width: 400px;
}
.toast.show { transform: translateX(0); }
.toast.success { background: #25D366; }
.toast.error { background: #e74c3c; }

/* Responsive */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(7,26,10,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: var(--transition);
    border-left: 1px solid var(--glass-border);
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .section { padding: 80px 0; }
  .works-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-features { grid-template-columns: 1fr; }
  .about-experience { bottom: -10px; right: -10px; padding: 16px 24px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
  .container { padding: 0 16px; }
}
