:root {
  --bg: #1a1a1a;
  --text: #d4d4d4;
  --text-muted: #777777;
  --border: #2a2a2a;
  --white: #ffffff;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* Navigation */
#navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 1440px;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.4s var(--ease);
}

#navbar.scrolled {
  background: rgba(26, 26, 26, 0.95);
  border-color: #333;
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 32px;
}

.nav-links a {
  font-size: 0.813rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.3s;
}

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

.nav-sep {
  color: var(--border);
  font-size: 0.75rem;
  user-select: none;
}

.nav-right { margin-left: auto; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: transparent;
  color: var(--white);
  font-size: 0.813rem;
  font-weight: 500;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: #555;
  background: rgba(255, 255, 255, 0.03);
}

.btn-arrow {
  font-size: 0.875rem;
  opacity: 0.6;
}

.btn-large {
  padding: 14px 32px;
  font-size: 0.938rem;
}

/* Scroll Video */
#video-section {
  padding: 0;
  height: 200vh;
}

.video-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* ========================================
   Page Transition
   ======================================== */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
  pointer-events: none;
}

.page-transition.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.transition-logo {
  font-family: var(--font-body);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: transparent;
  background: linear-gradient(90deg, var(--white) 50%, rgba(255,255,255,0.1) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 0.8s var(--ease) 0.3s;
}

.page-transition.active .transition-logo {
  background-position: 0% 0;
}

/* ========================================
   Contact Section
   ======================================== */

#contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.contact-title em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 300;
}

.contact-desc {
  font-size: 0.938rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.688rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.contact-value {
  display: block;
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Contact card */
.contact-card {
  background: #1e1e1e;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.card-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 12px;
  margin-bottom: 24px;
  transition: background 0.3s, border-color 0.3s;
}

.whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.35);
}

.wa-icon {
  font-size: 1.5rem;
  color: #25d366;
  flex-shrink: 0;
}

.whatsapp-btn strong {
  display: block;
  font-size: 0.875rem;
  color: #25d366;
  font-weight: 600;
}

.whatsapp-btn small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.whatsapp-btn .btn-arrow {
  margin-left: auto;
  color: #25d366;
  opacity: 0.5;
}

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

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-divider span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  white-space: nowrap;
}

#contactForm .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#contactForm .form-group {
  margin-bottom: 16px;
}

#contactForm label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

#contactForm input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s;
}

#contactForm input:focus {
  border-color: #555;
}

#contactForm input::placeholder {
  color: #555;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  cursor: pointer;
}

.chip input {
  display: none;
}

.chip span {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.chip input:checked + span {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.chip:hover span {
  border-color: #555;
  color: var(--text);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: linear-gradient(135deg, #1a8a5c, #25d366);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.938rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.submit-btn:hover {
  opacity: 0.9;
}

/* ========================================
   Service Pages
   ======================================== */

.service-page {
  padding-top: 100px;
  min-height: 100vh;
}

/* Hero */
.service-hero {
  max-width: 100%;
  padding: 60px 80px 80px;
}

.service-tag {
  display: none;
}

.service-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.service-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

/* Features specs table */
.service-features {
  max-width: 100%;
  padding: 0 80px 80px;
  border-top: 1px solid var(--border);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  transition: background 0.3s;
}

.feature-row:hover {
  background: rgba(255,255,255,0.02);
}

.feature-number {
  display: none;
}

.feature-name {
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--white);
}

.feature-desc {
  font-size: 0.813rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA section */
.service-cta {
  max-width: 100%;
  padding: 80px 80px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
  max-width: 500px;
}

.cta-text em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 300;
}

/* ========================================
   Portfolio Grid
   ======================================== */

.portfolio-section {
  max-width: 100%;
  margin: 0;
  padding: 0 0 80px;
  overflow: hidden;
}

.portfolio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.portfolio-label {
  font-size: 0.688rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.portfolio-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.portfolio-grid {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -8%;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  flex: 0 0 calc(18% - 18px);
  min-width: 200px;
  text-decoration: none;
  display: block;
  color: inherit;
}

.portfolio-item:hover {
  transform: scale(1.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 2;
}

.portfolio-item .portfolio-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-item .portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

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

.portfolio-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}

.portfolio-type {
  font-size: 0.688rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.portfolio-placeholder {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.08);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* Hover Slideshow on cards */
.hover-slideshow .portfolio-bg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hover-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.1s;
}

.hover-slide.active {
  opacity: 1;
}

/* Footer */
#footer {
  padding: 60px 40px 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.813rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive */
/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  margin-left: auto;
  padding: 2px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* Hamburger animation when open */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.nav-mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-menu a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  padding: 8px 0;
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
  color: var(--white);
}

.nav-mobile-menu .btn-outline {
  margin-top: 16px;
  font-size: 1rem;
  padding: 12px 28px;
}

/* Tablet */
@media (max-width: 1024px) {
  .nav-links { gap: 4px; }
  .nav-links a { font-size: 0.75rem; }
  .nav-sep { font-size: 0.65rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .feature-row { grid-template-columns: 1fr; gap: 8px; }
  .service-cta { flex-direction: column; text-align: center; }
  .service-hero { padding: 40px 20px 60px; }
  .service-features { padding: 0 20px 60px; }
  .service-cta { padding: 60px 20px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-section { padding: 0 20px 60px; }
  .contact-split { grid-template-columns: 1fr; }
  #contact { padding: 60px 20px; }
  #contactForm .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px 16px; }
}
