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

:root {
  --primary-color: #ff6a00;
  --primary-hover: #e05d00;
  --bg-color: #0d1117;
  --card-bg: #161b22;
  --text-main: #c9d1d9;
  --text-muted: #8b949e;
  --border-color: #30363d;
  --header-bg: rgba(13, 17, 23, 0.95);
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -1px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.6), 0 4px 6px -2px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.7), 0 10px 10px -5px rgba(0,0,0,0.6);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
}

body { line-height: 1.6; }

/* =====================
   HEADER & NAV
   ===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo img {
  height: 80px;
  width: auto;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.logo img:hover { transform: scale(1.05); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  visibility: hidden;
}
.nav-links.lang-ready { visibility: visible; }
.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--primary-color); }

.lang-switch { display: flex; gap: 0.5rem; }

.lang-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.lang-btn:hover, .lang-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* =====================
   HAMBURGER (mobile)
   ===================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================
   MOBILE MENU OVERLAY
   ===================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(12px);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover { color: white; }

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.mobile-menu-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.2s ease;
}
.mobile-menu-nav a:hover { color: var(--primary-color); }

.mobile-menu-lang {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* =====================
   HERO SLIDER
   ===================== */
.hero-slider {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  z-index: -1;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.slide.active { opacity: 1; }

/* =====================
   PAGE CONTENT
   ===================== */
.page-content {
  position: relative;
  margin-top: 55vh;
  z-index: 10;
  min-height: 100vh;
  padding-bottom: 2rem;
}

.page-content--gallery {
  margin-top: 0;
  padding-top: 7rem;
}

/* =====================
   SECTIONS (general)
   ===================== */
section:not(.hero-slider) {
  padding: 4rem 3rem;
  max-width: 1100px;
  margin: 0 auto 4rem auto;
  background-color: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* =====================
   INTRO
   ===================== */
#intro {
  padding-top: 6rem;
  padding-bottom: 4rem;
  text-align: center;
}
.main-title {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  animation: fadeInDown 1s ease-out;
}
.by-raul {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  color: var(--primary-color);
  display: inline-block;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  transform: rotate(-3deg);
  animation: fadeInDown 1s ease-out 0.2s both;
}
.main-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #e6edf3;
  animation: fadeInUp 1s ease-out 0.5s both;
}
.cta-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  animation: fadeInUp 1s ease-out 1s both;
}
.cta-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* =====================
   ABOUT US
   ===================== */
.who-we-are {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* =====================
   WHAT WE DO — 2×2 grid
   ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

/* Fixed photo on each card */
.service-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-img img {
  transform: scale(1.04);
}

.service-content { padding: 1.5rem; }
.service-content h3 {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 1rem;
}
.service-content ul { list-style: none; }
.service-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.service-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Gallery card (4th card — link) */
.service-card--gallery .service-card-gallery-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.service-card-gallery-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* =====================
   INTERNATIONAL CLIENTS
   ===================== */
.international { text-align: center; }
.international p {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

/* =====================
   GALLERY PAGE
   ===================== */
.gallery-section { max-width: 1100px !important; }

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 1rem;
}

.gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gallery-photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  /* Same lift effect as service cards */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-photo:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}
.gallery-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.gallery-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}
.gallery-label--before {
  background-color: rgba(0,0,0,0.7);
  color: #ccc;
}
.gallery-label--after {
  background-color: var(--primary-color);
  color: white;
}

/* =====================
   CONTACT FORM
   ===================== */
.contact-section {
  margin-top: 12rem !important;
  max-width: 800px !important;
}
.contact-form {
  background-color: transparent;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.form-group label { font-weight: 600; color: var(--text-main); }
.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  color: white;
  font-family: inherit;
  transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary-color); }
.form-group textarea { resize: vertical; min-height: 150px; }

/* =====================
   WHATSAPP
   ===================== */
.whatsapp-btn-oval {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-btn-oval span { font-weight: 600; font-size: 1.1rem; }
.whatsapp-btn-oval:hover { transform: scale(1.05); box-shadow: var(--shadow-xl); }
.whatsapp-icon { width: 35px; height: 35px; fill: currentColor; }

/* =====================
   FOOTER
   ===================== */
footer {
  background-color: rgba(1, 4, 9, 0.9);
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* =====================
   COOKIE BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.cookie-banner.hidden { display: none; }
.cookie-text { color: var(--text-main); font-size: 0.95rem; max-width: 600px; line-height: 1.5; }
.cookie-text a { color: var(--primary-color); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 1rem; flex-shrink: 0; }
.cookie-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.cookie-btn-accept { background-color: var(--primary-color); color: white; }
.cookie-btn-accept:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.cookie-btn-decline { background-color: transparent; color: var(--text-muted); border: 1px solid var(--border-color); }
.cookie-btn-decline:hover { background-color: var(--card-bg); color: var(--text-main); }

/* =====================
   RESPONSIVE — TABLET
   ===================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .lang-switch { display: none; }
  .hamburger { display: flex; }
}

/* =====================
   RESPONSIVE — MOBILE
   ===================== */
@media (max-width: 768px) {
  section:not(.hero-slider) {
    padding: 2.5rem 1.5rem;
    margin: 0 1rem 3rem 1rem;
    border-radius: 15px;
  }
  .page-content { margin-top: 45vh; }
  .main-title { font-size: 2.2rem; }
  .main-subtitle { font-size: 1.1rem; }
  .by-raul { font-size: 2rem; }
  .section-title { font-size: 2rem; }
  .logo img { height: 60px; }
  .who-we-are { font-size: 1rem; }

  /* Stack service cards on mobile */
  .services-grid { grid-template-columns: 1fr; }

  /* Stack gallery pairs on mobile */
  .gallery-pair { grid-template-columns: 1fr; }
  .gallery-photo img { height: 220px; }

  .whatsapp-btn-oval span { display: none; }
  .whatsapp-btn-oval { border-radius: 50%; width: 60px; height: 60px; padding: 0; }

  .cookie-banner { flex-direction: column; text-align: center; padding: 1rem; gap: 1rem; }
  .cookie-buttons { width: 100%; justify-content: center; }
}
