/* ==================================== */
/* 0. LOCAL FONT DECLARATIONS - TERMINA TEST (NO CHANGES) */
/* ==================================== */
@font-face {
  font-family: "Termina Test";
  src: url("../css/fonts/TerminaTest-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Termina Test";
  src: url("../css/fonts/TerminaTest-ExtraLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Termina Test";
  src: url("../css/fonts/TerminaTest-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Termina Test";
  src: url("../css/fonts/TerminaTest-Regular.otf") format("opentype");
  font-weight: 400; /* Regular */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Termina Test";
  src: url("../css/fonts/TerminaTest-Medium.otf") format("opentype");
  font-weight: 500; /* Medium, currently used in navigation */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Termina Test";
  src: url("../css/fonts/TerminaTest-Demi.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Termina Test";
  src: url("../css/fonts/TerminaTest-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Termina Test";
  src: url("../css/fonts/TerminaTest-Heavy.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Termina Test";
  src: url("../css/fonts/TerminaTest-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==================================== */
/* 1. CONFIGURAÇÕES BÁSICAS (NO CHANGES)             */
/* ==================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #222;
}
::-webkit-scrollbar-thumb {
  background: rgb(0, 90, 255);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(0, 110, 255);
}
a {
  color: #fff;
  text-decoration: none;
}
/* ==================================== */
/* 2. CABEÇALHO E NAVEGAÇÃO (UPDATED)             */
/* ==================================== */
.menu-toggle {
  display: none;
  font-size: 2em;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  color: #fff;
  padding: 0;
  line-height: 1;
  /* ADDED: Ensure the logo doesn't overlap the toggle on small screens */
  position: absolute;
  top: 50px;
  right: 30px;
  transform: translateY(-50%);
  /* ADDED: Fallback font for the unicode hamburger symbol (&#9776;) */
  font-family: Arial, sans-serif;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px 0 30px;
  position: absolute;
  width: 100%;
  z-index: 5;
  font-family: "Termina Test", sans-serif;
}
.main-nav {
  margin-top: -60px;
}
.main-nav ul {
  list-style: none;
  display: flex;
}
.main-nav ul li {
  margin-left: 30px;
  font-size: 1.1em;
  font-family: "Termina Test", sans-serif;
  font-weight: 500;
}

.main-nav ul li a {
  color: #ffffff;
  transition: color 0.3s ease;
}

.main-nav ul:hover li a:not(:hover) {
  color: #9c9c9c;
}

.main-nav ul li a:hover {
  color: #ffffff;
}

.dropdown .arrow {
  font-size: 0.6em;
  margin-left: 5px;
  vertical-align: middle;
}
.logo {
  padding: 0;
  margin-left: 0;
}
.logo-image {
  height: 170px;
  width: auto;
  margin-left: 35px;
  margin-top: 35px;
}

/* ==================================== */
/* 3. HERO SECTION (NO CHANGES)                      */
/* ==================================== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../imgs/heropage.webp");
  background-size: cover;
  background-position: center;
}
.hero-text {
  position: relative;
  z-index: 2;
  font-family: "Serif", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.8;
  color: #ffffff;
  text-align: center;
  padding: 20px;
}
/* ==================================== */
/* 4. PORTFÓLIO E ESTATÍSTICAS (NO CHANGES)          */
/* ==================================== */
.portfolio-section {
  background-image: url("../imgs/img_section2.webp");
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 100px 0 150px;
  min-height: 80vh;
  overflow: hidden;
}
.portfolio-content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: center;
  gap: 40px;
}
.text-column {
  flex: 1;
  color: #fff;
  padding-right: 40px;
}
.section-subtitle {
  font-size: 1.1em;
  margin-bottom: 10px;
  font-weight: 400;
}
.section-title {
  font-family: "Noto Serif", serif;
  font-style: italic;
  font-size: clamp(30px, 4.5vw, 60px);
  line-height: 1.05;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.section-description {
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 400px;
  opacity: 0.8;
}
.portfolio-button {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: 12px 35px;
  border: 1px solid #fff;
  border-radius: 30px;
  transition: background-color 0.3s;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85em;
}
.portfolio-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.slider-column {
  flex: 1;
  padding: 0;
}
.slider-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide-image.active {
  opacity: 1;
}
.portfolio-section::after {
  content: "EVENTOS";
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%) rotate(90deg);
  font-size: 6em;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.1);
  z-index: 0;
  pointer-events: none;
  font-family: Arial, sans-serif;
}
.stats-row {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 20px 80px 40px;
  color: #fff;
  z-index: 3;
  font-family: Arial, sans-serif;
}
.stat-item {
  display: flex;
  align-items: center;
  text-align: left;
  line-height: 1.2;
  width: auto;
  margin-right: 20px;
}
.stat-item:last-child .stat-number {
  font-size: 3em;
}
.text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  padding-top: 5px;
}
.stat-text {
  font-size: 1.2em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1.2;
  display: block;
  letter-spacing: 1px;
  margin-top: 0;
}
/* ==================================== */
/* 5. SERVIÇOS E CAROUSEL (NO CHANGES)               */
/* ==================================== */
.services-section {
  background-color: #e6f0ff;
  padding: 80px 0 100px;
  text-align: center;
  color: #000;
  padding-bottom: 200px;
}
.services-section p.section-subtitle {
  font-size: 1.2em;
  color: #000;
  opacity: 0.8;
  margin-bottom: 0;
}
.services-title {
  color: rgb(0, 90, 255);
  font-family: "Noto Serif";
  font-style: italic;
  font-weight: 500;
  line-height: 92px;
  font-size: 71px;
  margin-bottom: 50px;
  text-transform: capitalize;
}
.carousel-container {
  overflow: hidden;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  height: 600px;
}
.carousel-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  animation: scrollSlides 30s linear infinite;
}
.carousel-container:hover .carousel-inner {
  animation-play-state: paused;
}
.carousel-slide {
  flex-shrink: 0;
  width: 33.333%;
  padding: 0 40px;
  box-sizing: border-box;
}
.carousel-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-top: 0;
  transition: margin-top 0.5s ease;
}
.carousel-slide:nth-child(odd) .carousel-image {
  margin-top: -50px;
}
.carousel-slide:nth-child(even) .carousel-image {
  margin-top: 50px;
}
.carousel-slide:nth-child(odd) .carousel-image {
  margin-top: -50px;
}
.carousel-slide:nth-child(even) .carousel-image {
  margin-top: 50px;
}
.services-button {
  display: inline-block;
  color: rgb(0, 90, 255);
  text-decoration: none;
  padding: 15px 40px;
  border: 2px solid rgb(0, 90, 255);
  border-radius: 30px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9em;
  font-weight: 500;
  margin-top: 50px;
  position: relative;
  z-index: 10;
  background-color: transparent;
}
.services-button:hover {
  background-color: rgb(0, 90, 255);
  color: #ffffff;
}
@keyframes scrollSlides {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* ==================================== */
/* 6. CLIENTES (Controllable Carousel) (NO CHANGES) */
/* ==================================== */
.clients-section {
  background-color: #f7f7f7;
  padding: 100px 0 150px;
  text-align: center;
  color: #000;
}
.clients-section p.section-subtitle {
  font-size: 1em;
  color: #000;
  opacity: 0.8;
  margin-bottom: 0;
}
.clients-title {
  color: rgb(0, 90, 255);
  font-family: "Noto Serif";
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.2;
  margin-bottom: 50px;
  text-transform: capitalize;
}
.client-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.client-carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.client-slide {
  width: 20%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
  height: 150px;
}
.client-logo {
  max-width: 100%;
  max-height: 100px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.client-logo:hover {
  opacity: 1;
}
/* --- Navigation Arrows --- */
.client-carousel-prev,
.client-carousel-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-100%);
  font-size: 1.5em;
  color: #999;
  background: none;
  border: 1px solid #ccc;
  border-radius: 50%;
  padding: 5px;
  width: 35px;
  height: 35px;
  z-index: 10;
  transition: color 0.3s, border-color 0.3s;
}
.client-carousel-prev {
  left: 20px;
}
.client-carousel-next {
  right: 20px;
}
.client-carousel-prev:hover,
.client-carousel-next:hover {
  color: rgb(0, 90, 255);
  border-color: rgb(0, 90, 255);
}
.client-carousel-dots {
  text-align: center;
  padding-top: 50px;
}
.client-dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}
.client-dot.active {
  background-color: rgb(0, 90, 255);
}
/* ==================================== */
/* 7. INSTAGRAM CTA & FOOTER - REVISÃO (NO CHANGES) */
/* ==================================== */
.instagram-cta-section {
  background-color: #f7f7f7;
  /* Ajustei o padding inferior já que o feed não está presente */
  padding: 80px 0 120px;
  text-align: center;
  color: #000;
}
.insta-title {
  color: rgb(0, 90, 255);
  font-family: "Noto Serif";
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 55px);
  margin-bottom: 5px;
}
.insta-handle {
  font-size: 1em;
  color: #333;
  opacity: 0.8;
  margin-bottom: 0;
}
/* --- Main Footer --- */
.main-footer {
  background-image: url("../imgs/img_footer.webp");
  color: #fff;
  padding: 60px 40px 20px;
  font-size: 0.9em;
  position: relative;
  overflow: hidden;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo-column {
  flex: 1.5;
  min-width: 200px;
  line-height: 1.6;
}
.footer-nav-column,
.footer-contact-column,
.footer-social-column {
  flex: 1;
  min-width: 150px;
  line-height: 1.6;
}
.footer-logo-image {
  height: 175px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 5px;
}
.footer-brand {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 5px;
  line-height: 1;
}
.footer-motto {
  opacity: 0.8;
  line-height: 1.4;
  font-size: 0.9em;
  margin-top: 5px;
}
.main-footer h4 {
  font-size: 1.1em;
  margin-bottom: 15px;
  font-weight: 500;
}
.footer-nav-column ul {
  list-style: none;
  padding: 0;
}
.footer-nav-column li {
  margin-bottom: 5px;
}
.footer-contact-column a,
.footer-contact-column p {
  display: block;
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  margin-bottom: 5px;
}
.social-links {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}
.social-links a {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}
.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.contact-button {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.9em;
}
.contact-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 40px 0 20px 0;
}
.footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.8em;
  opacity: 0.7;
  flex-wrap: wrap;
}
.legal-text {
  flex-basis: 75%;
}
.legal-text p {
  margin-bottom: 5px;
}
.copyright a {
  color: #fff;
  text-decoration: none;
  margin-right: 5px;
}
.back-to-top {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  align-self: flex-start;
}

/* ==================================== */
/* 8. COOKIE BANNER (MODAL VERSION) (NO CHANGES)     */
/* ============================+======== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  color: #fff;
  z-index: 100;
  font-family: Arial, sans-serif;

  /* Inicialmente oculto por JavaScript */
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: all 0.5s ease; /* Transição para o efeito de expansão */

  /* Garante que apenas a barra inicial está visível por padrão */
  max-height: 200px;
  overflow: hidden;
}

.cookie-banner.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Estado Expandido: Ocupa a viewport inteira */
.cookie-banner.expanded {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Overlay escura para focar */
  max-height: 100vh;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto; /* Permite scroll se o conteúdo for grande */
}

/* ---------------- Visão Inicial (Barra inferior) ---------------- */
/* Visão Inicial do Banner (a barra azul escura inferior) */
.cookie-initial-view {
  position: relative;
  width: 100%;
  background-color: #000a6c; /* Cor azul escuro semelhante à imagem */
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}
.cookie-banner.expanded .cookie-initial-view {
  display: none; /* Oculta a barra inicial quando expandido */
}
.cookie-content {
  flex-grow: 1;
  padding-right: 20px;
}

.cookie-content h4 {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.cookie-content p {
  font-size: 0.9em;
  opacity: 0.9;
  line-height: 1.4;
  max-width: 800px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------------- Visão Expandida (Painel de Preferências) ---------------- */

.cookie-expanded-view {
  display: none; /* Oculto por padrão */
  width: 90%;
  max-width: 1000px;
  background-color: #f0f0f0;
  color: #000;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  margin: 50px auto;
  position: relative;
  /* Adicionar um fade-in para a vista expandida */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.expanded .cookie-expanded-view {
  display: block; /* Mostra o conteúdo expandido */
  opacity: 1;
  transform: translateY(0);
}

.expanded-content {
  padding: 30px;
}

.close-expanded-view {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none !important;
  border: none !important;
  color: #fff !important;
  font-size: 1.5em !important;
  cursor: pointer;
  text-transform: none !important;
  font-weight: normal !important;
  padding: 5px !important;
  z-index: 10;
}

.cookie-banner button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85em;
  transition: background-color 0.2s, opacity 0.2s;
}

.cookie-accept {
  background-color: #fff;
  color: #000a6c;
}

.cookie-reject {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.cookie-personalizar {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.cookie-accept:hover,
.cookie-reject:hover,
.cookie-personalizar:hover {
  opacity: 0.8;
}

/* ================== Modal de Preferências ================== */

.cookie-preferences-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay */
  z-index: 110;
  display: none; /* Oculto por padrão */
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.cookie-preferences-modal.open {
  display: flex;
}

.modal-content {
  background-color: #f0f0f0;
  color: #000;
  padding: 30px;
  width: 90%;
  max-width: 1000px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 50px auto;
}

.modal-header {
  background-color: #000a6c;
  color: #fff;
  padding: 20px;
  margin: -30px -30px 20px -30px;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title-group {
  flex-basis: 70%;
}
.modal-title-group h4 {
  font-size: 1.5em;
  margin-bottom: 5px;
}
.modal-title-group p {
  font-size: 0.8em;
  opacity: 0.9;
}
.modal-initial-buttons button {
  text-transform: none;
  font-size: 0.9em;
  padding: 8px 15px;
  border-radius: 20px;
}

.preferences-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
}
.preferences-description,
.preferences-note {
  font-size: 0.9em;
  margin-bottom: 20px;
}
.preferences-note {
  font-weight: 500;
}

/* Estilo para as Categorias de Cookies */
.cookie-category {
  border: 1px solid #ccc;
  margin-bottom: 10px;
  border-radius: 4px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #e9e9e9;
  border-radius: 4px;
}

.category-header .toggle-btn {
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-header .toggle-arrow {
  font-size: 0.7em;
}

.category-header .status {
  font-size: 0.9em;
}
.always-active {
  color: green;
  font-weight: bold;
}

.category-details {
  padding: 15px;
  border-top: 1px solid #ccc;
}
.category-details p {
  font-size: 0.85em;
  line-height: 1.4;
  margin-bottom: 5px;
}

/* Estilo para o Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 25px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #007bff;
}

input:focus + .slider {
  box-shadow: 0 0 1px #007bff;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 25px;
}

.slider.round:before {
  border-radius: 50%;
}
/* Footer do Modal */
.modal-footer {
  text-align: right;
  padding-top: 20px;
}
.modal-footer button {
  text-transform: none;
  font-size: 0.9em;
  padding: 10px 30px;
}

/* Ajuste para dispositivos móveis (Mobile Responsiveness) */
@media (max-width: 900px) {
  .cookie-initial-view {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }
  .cookie-content {
    padding-right: 0;
    margin-bottom: 10px;
  }
  .cookie-actions {
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
    margin-top: 5px;
    gap: 10px;
  }
  .cookie-banner button {
    width: 100%;
  }
  .modal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal-title-group {
    flex-basis: 100%;
    margin-bottom: 15px;
  }
  .modal-initial-buttons {
    display: flex;
    width: 100%;
    gap: 10px;
  }
  .modal-initial-buttons button {
    width: 50%;
  }
}

/* ==================================== */
/* 9. MOBILE RESPONSIVENESS MEDIA QUERIES (ENHANCED) */
/* ==================================== */

/* Tablet & Mobile Landscape (up to 1024px) */
@media (max-width: 1024px) {
  /* Portfolio */
  .portfolio-content {
    flex-direction: column;
    padding: 0 20px;
    text-align: center;
  }
  .text-column {
    padding-right: 0;
    order: 2;
  }
  .slider-column {
    order: 1;
    margin-bottom: 40px;
    max-width: 500px;
    width: 100%;
  }
  .section-description {
    max-width: 100%;
  }

  /* Stats Row */
  .stats-row {
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 20px 40px;
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 40px;
  }
  .stat-item {
    width: 48%; /* Adjusted to 48% for small gap */
    margin: 15px 1%; /* Added small horizontal margin */
    justify-content: center;
    text-align: center; /* Centered text */
  }
  .stat-item:last-child {
    margin-right: 1%;
  }
  .stat-number {
    font-size: 3em;
    margin-right: 10px; /* Reduced margin */
  }
  /* Footer */
  .footer-content {
    justify-content: space-between; /* Better distribution */
    padding: 0 20px;
  }
  .footer-logo-column {
    flex-basis: 100%;
    text-align: center; /* Center logo column content */
  }
  .footer-logo-image {
    margin: 0 auto 10px auto; /* Centered logo */
  }
  .footer-nav-column,
  .footer-contact-column,
  .footer-social-column {
    flex-basis: 48%; /* Two columns per row, more space */
    min-width: unset;
    margin-bottom: 20px;
  }
}

/* Mobile Portrait (up to 768px) */
@media (max-width: 768px) {
  /* Header & Navigation */
  .main-header {
    padding: 10px 20px;
    /* Removed justify-content: space-between; to allow logo and toggle to position independently */
  }
  .logo-image {
    height: 100px; /* Even smaller logo */
    margin-left: 0;
    margin-top: 10px;
  }
  .main-nav {
    display: none;
    margin-top: 0;
  }
  .main-nav.open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 8;
    padding-top: 100px; /* Reduced top padding */
    overflow-y: auto;
  }
  .main-nav.open ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  .main-nav.open ul li {
    margin: 15px 0; /* Reduced vertical margin */
    font-size: 1.3em; /* Slightly smaller font */
    font-weight: 700;
  }
  .menu-toggle {
    display: block;
    position: fixed; /* FIXED: Important to keep the toggle clickable over the overlay */
    top: 55px; /* Adjusted position */
    right: 20px;
    transform: translateY(-50%);
    color: #fff;
    z-index: 10;
  }

  /* Hero */
  .hero-text {
    font-size: clamp(30px, 8vw, 60px);
  }

  /* Services Carousel */
  .services-title {
    font-size: clamp(35px, 8vw, 71px); /* Slightly smaller clamp start */
    line-height: 1.1;
  }
  .carousel-slide {
    width: 80%; /* Show one slide centered with space on sides */
    padding: 0 10px;
  }
  .carousel-inner {
    animation: scrollSlides 25s linear infinite; /* Slightly faster scroll */
  }
  .carousel-slide:nth-child(odd) .carousel-image,
  .carousel-slide:nth-child(even) .carousel-image {
    margin-top: 0;
  }
  .carousel-container {
    height: 350px; /* Reduce carousel height */
  }

  /* Clients Carousel */
  .client-slide {
    width: 33.333%;
  }
  .client-carousel-prev,
  .client-carousel-next {
    display: none;
  }

  /* Portfolio Section */
  .portfolio-section {
    padding: 50px 0 80px; /* Reduced overall padding */
  }
  .portfolio-section::after {
    content: none;
  }
  .section-title {
    font-size: clamp(30px, 6vw, 60px); /* Adjusted clamp for mobile */
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }
  .footer-logo-column,
  .footer-nav-column,
  .footer-contact-column,
  .footer-social-column {
    flex-basis: 100%;
    min-width: unset;
    margin-bottom: 30px;
  }
  .footer-nav-column ul {
    display: block; /* Align left */
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  .footer-legal {
    flex-direction: column;
    text-align: center;
  }
  .legal-text {
    flex-basis: 100%;
    margin-bottom: 10px;
  }
  .back-to-top {
    align-self: center;
  }
}

/* Mobile Portrait Small (up to 480px) */
@media (max-width: 480px) {
  /* Stats Row */
  .stats-row {
    flex-direction: column;
  }
  .stat-item {
    width: 100%;
    margin: 10px 0;
    justify-content: flex-start;
    padding-left: 20px;
  }
  .stat-number {
    font-size: 2.5em;
  }
  .stat-text {
    font-size: 1em;
  }

  /* Clients Carousel */
  .client-slide {
    width: 50%;
  }

  /* Services Carousel */
  .carousel-slide {
    width: 100%;
    padding: 0 10px;
  }

  /* Cookie Banner */
  .cookie-initial-view {
    padding: 15px;
  }
  .cookie-actions {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-banner button {
    width: 100%;
  }
  .cookie-expanded-view,
  .modal-content {
    width: 95%;
    margin: 10px auto; /* FIXED: Reduced vertical margin from 20px to 10px */
    padding: 15px;
  }
}
