/* ==========================================================================
   Antigravity Design System - Erandeni Zavala Portfolio
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  /* Colors */
  --color-primary-orange: #F98104;
  --color-royal-blue: #4634FF;
  --color-tools-yellow: #FDD142;
  --color-expertise-peach: #F4A161;
  --color-soft-blue: #ADBCFF;
  --color-cyan: #0ECBC7;
  --color-beige: #EFEAE4;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-text-dark: #1A1A1A;
  --color-text-gray: #666666;
  --color-bg-light: #F8F9FA;
  --color-bg-input: #F5F5F5;
  --color-border: #E0E0E0;

  /* Typography */
  --font-primary: 'Montserrat', 'Helvetica', 'Arial', sans-serif;

  /* Fluid Typography using clamp() */
  --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --font-size-h1: clamp(2.5rem, 1.5rem + 5vw, 4.5rem);
  --font-size-h2: clamp(2rem, 1.2rem + 4vw, 3.5rem);
  --font-size-h3: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 8rem;

  /* Container */
  --container-width: 1200px;
}

/* --- Base Reset & Typography --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* --- Components --- */

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-royal-blue);
  color: var(--color-white);
  padding: 12px 30px;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(70, 52, 255, 0.4);
}

.btn-pill.btn-orange {
  background-color: var(--color-primary-orange);
}

.btn-pill.btn-orange:hover {
  box-shadow: 0 4px 15px rgba(249, 129, 4, 0.4);
}

/* Neo-brutalist Tags */
.brutalist-tag {
  display: inline-block;
  padding: 10px 24px;
  font-weight: 900;
  color: #000;
  border: 3px solid #000;
  box-shadow: 6px 6px 0px 0px #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--color-white);
  font-size: 1rem;
}

.brutalist-tag:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0px 0px #000;
}

/* Modifier Classes for Tags */
.tag-beige {
  background-color: var(--color-beige);
}

.tag-yellow {
  background-color: var(--color-tools-yellow);
}

.tag-peach {
  background-color: var(--color-expertise-peach);
}

.tag-blue {
  background-color: var(--color-soft-blue);
}

/* --- Section 1: Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* Liquid Glass Effect */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-container a {
  font-size: 1.5rem;
  font-weight: 900;
  color: #000;
  letter-spacing: -1px;
}

.logo-container span {
  color: var(--color-royal-blue);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.main-nav a.nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary-orange);
  transition: width 0.3s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #000;
  border-radius: 3px;
  transition: all 0.3s ease;
}/* --- Section 1: Hero (About Me) --- */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 80px 5% 0; /* 80px offset for fixed header */
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.content-col {
  flex: 1;
  max-width: 500px;
  padding-right: 40px;
  z-index: 2;
}

.image-col {
  flex: 1.2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.image-col img {
  width: 270%;
  max-width: 1070px;
  height: auto;
  transform: translateX(5%);
}

.title-about {
  font-weight: 900;
  line-height: 0.85;
  margin-bottom: 30px;
}

.title-about .word-about {
  display: block;
  color: var(--color-primary-orange);
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -2px;
}

.title-about .word-me {
  display: block;
  color: var(--color-royal-blue);
  font-size: clamp(5rem, 10vw, 8.5rem);
  letter-spacing: -4px;
}

.description {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 40px;
}

.btn-pill-hero {
  display: inline-block;
  background-color: var(--color-royal-blue);
  color: #FFFFFF;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(70, 52, 255, 0.3);
}

.btn-pill-hero:hover {
  background-color: var(--color-primary-orange);
  box-shadow: 0 4px 15px rgba(249, 129, 4, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .hero-section {
      flex-direction: column;
      justify-content: center;
      text-align: center;
      padding-top: 120px;
  }

  .content-col {
      padding-right: 0;
      margin-bottom: 40px;
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .image-col img {
      width: 100%;
      transform: translateX(0);
  }
}

/* =========================================
   2. SECCIÓN RESUME & NEO-BRUTALISMO
   ========================================= */
.resume-section {
  padding: 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Etiquetas Neo-brutalistas */
.brutalist-tag {
  display: inline-block;
  padding: 5px 20px;
  color: #000;
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: 5px 5px 0px 0px #000;
  margin-bottom: 40px;
}

.tag-beige { background-color: var(--color-beige); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 60px; }
.tag-yellow { background-color: var(--color-tools-yellow); }
.tag-peach { background-color: var(--color-expertise-peach); }
.tag-blue { background-color: var(--color-soft-blue); }

/* Estructura de 3 Columnas */
.resume-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

/* Lista de Habilidades (Bullets personalizados) */
.skills-list {
  list-style: none;
}

.skills-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 18px;
  color: #666;
  font-weight: 500;
  font-size: 0.95rem;
}

.skills-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  background-color: var(--color-tools-yellow);
  box-shadow: 2px 2px 0px 0px #000; /* Viñeta brutalista */
}

/* Línea de Tiempo (Experiencia y Educación) */
.timeline-item {
  margin-bottom: 35px;
}

.timeline-year {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.timeline-year.orange { color: var(--color-primary-orange); }
.timeline-year.blue { color: var(--color-royal-blue); }

.timeline-title {
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  font-size: 0.9rem;
  line-height: 1.4;
}

.timeline-subtitle {
  font-size: 0.85rem;
  color: #555;
  margin-top: 5px;
}

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

/* =========================================
   3. SECCIÓN WHAT I DO (MY WORK)
   ========================================= */
.what-i-do-section {
  padding: 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Contenedor de las 3 tarjetas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Estilo base de las tarjetas brutalistas */
.brutalist-card {
  border: 3px solid #000;
  box-shadow: 10px 10px 0px 0px #000;
  padding: 50px 40px;
  transition: transform 0.2s ease;
}

.brutalist-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 14px 14px 0px 0px #000;
}

.card-yellow { background-color: var(--color-tools-yellow); }
.card-peach { background-color: var(--color-expertise-peach); }
.card-blue { background-color: var(--color-soft-blue); }

/* Títulos dentro de las tarjetas */
.card-title {
  text-align: center;
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 40px;
  color: #000;
}

/* Lista con viñetas personalizadas y checkboxes animados */
.custom-list {
  list-style: none;
}

.custom-list li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 22px;
  font-weight: 500;
  font-size: 1.05rem;
  color: #222222;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Interacción: desplaza sutilmente el texto a la derecha */
.custom-list li:hover {
  transform: translateX(5px);
}

/* Caja del checkbox (blanca con sombra) */
.custom-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background-color: #FFFFFF;
  border: 2px solid #000;
  box-shadow: 2px 2px 0px 0px #000;
  transition: background-color 0.3s ease;
  z-index: 1;
}

/* Relleno de caja al pasar el ratón */
.custom-list li:hover::before {
  background-color: var(--color-primary-orange);
}

/* La "Palomita" (Checkmark) del checkbox */
.custom-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0); /* Inicia invisible y sin tamaño */
  opacity: 0;
  z-index: 2;
  /* La animación se dispara al cargar */
  animation: markCheckbox 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Animación "pop" para dibujar la marca del checkbox */
@keyframes markCheckbox {
  0% {
      transform: rotate(45deg) scale(0);
      opacity: 0;
  }
  100% {
      transform: rotate(45deg) scale(1);
      opacity: 1;
  }
}

/* Efecto de cascada/escalonado para que se vayan marcando 1 por 1 */
.custom-list li:nth-child(1)::after { animation-delay: 0.1s; }
.custom-list li:nth-child(2)::after { animation-delay: 0.2s; }
.custom-list li:nth-child(3)::after { animation-delay: 0.3s; }
.custom-list li:nth-child(4)::after { animation-delay: 0.4s; }
.custom-list li:nth-child(5)::after { animation-delay: 0.5s; }
.custom-list li:nth-child(6)::after { animation-delay: 0.6s; }
.custom-list li:nth-child(7)::after { animation-delay: 0.7s; }
.custom-list li:nth-child(8)::after { animation-delay: 0.8s; }

@media (max-width: 992px) {
  .cards-grid {
      grid-template-columns: 1fr;
      gap: 50px;
  }
}

/* =========================================
   4. SECCIÓN PROYECTOS / ESTUDIOS DE CASO
   ========================================= */
.projects-section {
  padding: 80px 5%;
  max-width: 1200px; /* Un poco más estrecho para mantener la línea compacta */
  margin: 0 auto;
}

/* Contenedor relativo para poder trazar la línea por detrás */
.projects-timeline-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 40px;
}

/* La línea conectora horizontal */
.connecting-line {
  position: absolute;
  top: 75px; /* Mitad aproximada de la altura de las cajas (150px/2) */
  left: 10%;
  width: 0; /* Inicia en 0 para la animación */
  height: 2px;
  background-color: #000;
  z-index: 1; /* Detrás de las cajas */
}

/* Animación accionada por JavaScript */
.connecting-line.animate-line {
  animation: drawLine 0.8s ease-in-out forwards;
  animation-delay: 1.2s; /* Espera a que aparezcan las cajas */
}

@keyframes drawLine {
  to { width: 80%; } /* Atraviesa hasta el otro extremo */
}

/* Columna individual de proyecto */
.project-item {
  display: flex;
  flex-direction: column;
  z-index: 2; /* Por encima de la línea */
  opacity: 0;
  transform: translateX(-40px);
}

/* Animación accionada por JavaScript */
.project-item.animate-box {
  animation: slideInBox 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Retrasos escalonados para la aparición de las cajas */
.project-item.animate-box:nth-child(2) { animation-delay: 0.2s; } /* SAJ */
.project-item.animate-box:nth-child(3) { animation-delay: 0.5s; } /* Xeti */
.project-item.animate-box:nth-child(4) { animation-delay: 0.8s; } /* Bluetab */

@keyframes slideInBox {
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

/* Caja Neo-brutalista (Ahora como botón) */
.project-box {
  width: 100%; /* Ocupa el ancho disponible */
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #000; /* Refuerza la interactividad del botón */
  box-shadow: 8px 8px 0px 0px #000;
  margin-bottom: 30px;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.project-box:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px 0px #000;
  filter: brightness(1.05); /* Liguero brillo al pasar el mouse */
}

/* Efecto de clic (press) en el botón */
.project-box:active {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0px 0px #000;
}

.box-yellow { background-color: var(--color-tools-yellow); }
.box-blue { background-color: var(--color-soft-blue); }
.box-peach { background-color: var(--color-expertise-peach); }

/* Título dentro de la caja */
.project-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
}

/* Descripción debajo de la caja */
.project-desc {
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-text-dark);
  padding-right: 10px;
}

@media (max-width: 992px) {
  .projects-timeline-container {
      grid-template-columns: 1fr;
      gap: 60px;
  }

  /* Ocultamos la línea horizontal en móvil porque se apilarán verticalmente */
  .connecting-line {
      display: none;
  }

  .project-box {
      margin-bottom: 20px;
  }
}

/* =========================================
   5. SECCIÓN CASO DE ESTUDIO (Paneles Deslizantes)
   ========================================= */
.case-study-section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contenedor Grid (2 columnas) */
.case-study-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* La columna de texto es ligeramente más ancha */
  gap: 60px;
  align-items: start;
}

/* Tarjeta Logotipo */
.case-study-logo-card {
  background-color: var(--color-tools-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  box-shadow: 12px 12px 0px 0px #000;
}

.case-study-logo-card:hover {
  box-shadow: 16px 16px 0px 0px #000;
}

/* Estilo interno del logo "SAJ" */
.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #FFFFFF;
}

.logo-text {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 2px;
}

/* Columna de Textos (2 subcolumnas) */
.text-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.text-column {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.text-block h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
  display: inline-block;
}

.text-block h3::after,
.accent-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 4px;
  background-color: var(--color-tools-yellow);
}

.accent-title {
  position: relative;
  padding-bottom: 8px;
  display: inline-block;
}

.text-block p {
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
  color: #333333;
}

/* Proceso de Diseño Grid */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 80px;
  margin-top: 40px;
}

.process-phase {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.phase-title {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phase-num {
  border-bottom: 4px solid var(--color-tools-yellow);
  padding-bottom: 2px;
}

.process-phase p {
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
  color: #333333;
}

.deliverables-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 10px;
}

.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-list li {
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 500;
  color: #333333;
}

/* =========================================
   6. USER NEEDS Y USER PERSONA
   ========================================= */
.needs-box {
  background-color: #FDF6E3;
  padding: 40px 50px;
}

.needs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}

.need-item h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #000;
}

.need-item p {
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
  color: #333333;
}

/* User Persona */
.persona-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.persona-profile {
  text-align: center;
}

.persona-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}

.persona-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 5px;
}

.persona-role {
  font-size: 1.05rem;
  font-weight: 500;
  color: #333333;
}

.persona-details {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.persona-detail-block h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 20px;
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.clean-list li {
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
  color: #333333;
}

/* =========================================
   7. FUNCIONES Y SOLUCIONES
   ========================================= */
.functions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.function-item h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 15px;
}

.function-item p {
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
  color: #333333;
}

.functions-visuals-section {
  background-color: var(--color-tools-yellow);
  padding: 60px 5%;
  margin-top: 60px;
  text-align: center;
}

.accent-white::after {
  background-color: #FFFFFF !important;
}

.visuals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.visual-box {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.visual-white {
  background-color: #FFFFFF;
  padding: 20px;
}

/* =========================================
   8. GUIA DE ESTILO
   ========================================= */
.style-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.color-swatch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.color-swatch {
  width: 70px;
  height: 90px;
  border: 1px solid #EAEAEA;
}

.color-swatch-container p {
  font-size: 0.85rem;
  font-weight: 800;
  color: #333333;
}

.tools-box {
  background-color: #FDF6E3;
  padding: 20px 25px;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  border-radius: 4px;
  overflow-x: auto;
}

.tool-icon {
  width: 45px;
  height: 45px;
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .case-study-grid {
      grid-template-columns: 1fr;
      gap: 40px;
  }

  .text-content-wrapper,
  .process-grid,
  .needs-grid,
  .persona-grid,
  .functions-grid,
  .visuals-grid,
  .style-guide-grid {
      grid-template-columns: 1fr;
  }

  .needs-box {
      padding: 30px 20px;
  }

  .case-study-logo-card {
      height: 200px;
      max-width: 400px; /* Evita que la tarjeta sea excesivamente ancha en tablets */
      margin: 0 auto;
      width: 100%;
  }
}

  /* Mobile Menu Styles */
  @media (max-width: 992px) {
    .hamburger-menu {
      display: flex;
    }

    .main-nav {
      position: fixed;
      top: 0;
      left: -100%;
      width: 80%;
      height: 100vh;
      background-color: var(--color-white);
      box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
      z-index: 999;
    }

    .main-nav.active {
      left: 0;
    }

    .main-nav ul {
      flex-direction: column;
      gap: 2.5rem;
    }

    .main-nav a.nav-link {
      font-size: 1.5rem;
    }

    /* Hamburger Animation when Active */
    .hamburger-menu.active span:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
    }

    /* Adjustments for header actions on mobile */
    .header-actions .btn-pill.btn-orange {
      display: none; /* Hide contact button on mobile as requested */
    }

    .lang-switcher {
      margin-right: 15px;
      font-size: 0.85rem;
    }

    .lang-switcher a {
      padding: 5px;
    }
  }

/* Lang Switcher Global Styles */
.lang-switcher {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.lang-switcher a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.lang-switcher span {
    margin: 0 8px;
    opacity: 0.3;
}

/* =========================================
   SECTION 6: GLOBAL FOOTER
   ========================================= */
.site-footer {
  background-color: var(--color-white);
  padding: 50px 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--spacing-xxl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.slogan {
  color: var(--color-primary-orange);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-icons a.active, .social-icons a:hover {
  background-color: var(--color-primary-orange);
  color: var(--color-white);
  border-color: var(--color-primary-orange);
}

.follow-us {
  font-weight: 800;
  color: var(--color-text-dark);
  font-size: 1rem;
}

.footer-middle {
  display: flex;
  flex-direction: column;
}

.footer-nav {
  display: flex;
  gap: 25px;
  list-style: none;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
}

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

.about-widget h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 15px;
}

.about-widget p {
  color: var(--color-text-gray);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 90%;
}

.footer-right {
  border-left: 1px solid var(--color-border);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info p {
  font-size: 0.85rem;
  color: var(--color-text-gray);
  margin-bottom: 15px;
}

.contact-info strong {
  color: var(--color-text-dark);
  font-size: 0.95rem;
  display: inline-block;
  margin-bottom: 3px;
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-input);
  border-radius: 4px 0 0 4px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.newsletter-form button {
  background-color: var(--color-primary-orange);
  color: var(--color-white);
  border: none;
  padding: 0 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: #e07300;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-right {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: 30px;
  }
  .about-widget p {
    max-width: 100%;
  }
}

/* ==============================================
   PROJECT SLIDE-IN PANEL
   ============================================== */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.project-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: #FFFFFF;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .project-panel {
    width: 85%;
    max-width: 1200px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  }
}

.project-panel.open {
  transform: translateX(0);
}

.project-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #FFF;
}

/* Floating Action Buttons inside the panel */
.panel-btn {
  position: absolute;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #000;
  color: #FFF;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.panel-btn:hover {
  transform: scale(1.1);
  background-color: var(--color-tools-yellow);
  color: #000;
}

#close-panel {
  top: 20px;
}

#top-panel {
  bottom: 20px;
}

body.panel-open {
  overflow: hidden;
}