/* ===============================
██╗   ██╗██╗  ██╗██████╗     ██████╗ ███████╗███████╗██╗ ██████╗ ███╗   ██╗
██║   ██║╚██╗██╔╝██╔══██╗    ██╔══██╗██╔════╝██╔════╝██║██╔════╝ ████╗  ██║
██║   ██║ ╚███╔╝ ██████╔╝    ██║  ██║█████╗  ███████╗██║██║  ███╗██╔██╗ ██║
██║   ██║ ██╔██╗ ██╔══██╗    ██║  ██║██╔══╝  ╚════██║██║██║   ██║██║╚██╗██║
╚██████╔╝██╔╝ ██╗██████╔╝    ██████╔╝███████╗███████║██║╚██████╔╝██║ ╚████║
 ╚═════╝ ╚═╝  ╚═╝╚═════╝     ╚═════╝ ╚══════╝╚══════╝╚═╝ ╚═════╝ ╚═╝  ╚═══╝
   Main Style (style.css)
   Author: Bernd
   Description:
   Global styling for all UXB pages.
   Cleaned (duplicates removed), consistent theme tokens,
   and a solid Project 3 (portrait) mobile carousel.
   =============================== */

/* ===============================
   RESET
   =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

/* ===============================
   THEME TOKENS
   =============================== */
:root {
  --bg: #0d0f12;
  --card: #1a1c20;
  --text: #e8e8e8;
  --muted: rgba(255, 255, 255, .72);
  --border: rgba(255, 255, 255, .10);
  --link: #00b8d4;

  --shadow: 0 2px 13px rgba(0, 0, 0, .25);
  --radius-md: 16px;
  --radius-lg: 18px;
}

body.light-mode {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #0d0f12;
  --muted: #3a3f45;
  --border: rgba(0, 0, 0, .12);
  --link: #00b8d4;
}

/* ===============================
   BASE
   =============================== */
body {
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;

  display: flex;
  flex-direction: column;

  background: var(--bg);
  color: var(--text);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

main {
  flex: 1;
  padding-top: 120px;
  /* match header height */
}

p {
  color: var(--muted);
}

h1,
h2 {
  margin: 10px 0;
}

h3 {
  line-height: 1.3;
}

/* ===============================
   LINKS + BUTTONS
   =============================== */
a {
  color: var(--link);
  text-decoration: none;
  transition: color .3s ease;
}

a:hover {
  color: #66e0ff;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all .3s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #0097a7, #00b8d4);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #00b8d4, #0097a7);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  border: 2px solid var(--link);
  color: var(--link);
  margin: 10px 0;
}

.btn-secondary:hover {
  background: var(--link);
  color: #fff;
}

/* ===============================
   HEADER + NAV
   =============================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  width: 120px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 24px;
  color: var(--muted);
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--link);
  border-bottom: 2px solid var(--link);
}

.lang-flag {
  width: 28px;
  height: 20px;
  margin-left: 18px;
  cursor: pointer;
  border-radius: 3px;
  transition: opacity .2s ease;
}

.lang-flag:hover {
  opacity: .7;
}

/* ===============================
   HERO
   =============================== */
.hero,
.page-hero {
  padding: 2% 0;
  text-align: center;
}

.hero h1,
.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1%;
}

.hero p,
.page-hero p {
  margin: 0 auto 30px;
  color: var(--muted);
}

/* ===============================
   INDEX
   =============================== */
.index-preview {
  margin-top: 2%;
}

.contact-home {
  margin-top: 7%;
  margin-bottom: 2%;
}

.index-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

/* ===============================
   SERVICES
   =============================== */
.services-title {
  margin-top: 1%;
}

.service-grid {
  display: grid;
  margin-top: 1%;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 7%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: transform .3s ease, background-color .3s ease;
}

.service-card h3 {
  color: var(--link);
  margin-bottom: 12px;
}

.services-cta {
  padding-top: 3%;
  padding-bottom: 2%;
}

/* ===============================
   PORTFOLIO GRID
   =============================== */
.portfolio-grid-section {
  padding: 56px 0;
}

.portfolio-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 22px;
}

.portfolio-hint {
  opacity: .75;
  color: var(--link);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

/* ===============================
   PORTFOLIO TILE — THICK BLUE BORDER + ANIMATED BORDER (HOVER)
   =============================== */

.project-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* keep content above the animated border layer */
.project-tile>* {
  position: relative;
  z-index: 2;
}

/* This is the animated BORDER layer (only shows on hover) */
.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  /* thickness of the border */
  padding: 2px;

  /* the animated “shine” running along your blue border */
  background: linear-gradient(90deg,
      rgba(0, 182, 209, 1),
      rgba(4, 82, 94, 0.25),
      rgba(0, 182, 209, 1));
  background-size: 200% 100%;

  /* show ONLY the border, not the inside */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity: 0;
  pointer-events: none;
  z-index: 3;

  transition: opacity 0.2s ease;
}

@keyframes uxbBorderSweep {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

@media (hover:hover) {
  .project-tile:hover::after {
    opacity: 1;
    animation: uxbBorderSweep 5.2s linear infinite;
  }
}

.project-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 14px 14px 16px;
}

.project-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text);
}

.project-description {
  margin: 0;
  opacity: .78;
  line-height: 1.45;
}

.project-cta {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  /* center horizontally */
  align-items: center;
}

.project-chip {
  font-size: .9rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 85%, transparent);
  color: var(--text);
}

.project-arrow {
  font-size: 0px;
}

.glow-on-hover {

  border: none;
  outline: none;
  color: #fff;
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
}

.glow-on-hover:before {
  content: '';
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity .3s ease-in-out;
  border-radius: 10px;
}

.glow-on-hover:active {
  color: #000
}

.glow-on-hover:active:after {
  background: transparent;
}

.glow-on-hover:hover:before {
  opacity: 1;
}

.glow-on-hover:after {
  z-index: -1;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #111;
  left: 0;
  top: 0;
  border-radius: 10px;
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

  100% {
    background-position: 0 0;
  }
}

/* ===============================
   ABOUT / LEGAL BLOCKS
   =============================== */
.about,
.project-detail,
.project-details {
  padding: 95px 0;
}

.about-content {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.about-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.about-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ===============================
   PROJECT PAGE
   =============================== */
#project-intro {
  margin-top: 16px;
  margin-bottom: 24px;
}

.project-gallery {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-shot {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}

.project-shot {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.up {
  margin-top: 0px;
}

@media (hover: hover) {
  .project-shot:hover {
    transform: translateY(-4px);

    box-shadow:
      0 0 0 2px #00B6D1,
      0 0 20px rgba(0, 182, 209, 0.35),
      0 20px 40px rgba(0, 182, 209, 0.18);
  }
}

/* Full card hover outline (outer, not inside) */
@media (hover:hover) {
  .project-shot:hover {
    box-shadow:
      0 0 0 2px var(--link),
      0 10px 30px rgba(0, 184, 212, .15);
  }
}

.project-shot-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}

.project-shot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Clickable image button */
.project-shot-open {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

/* Captions: ON by default (desktop), even if HTML uses hidden */
.project-shot-caption,
.project-shot-caption[hidden] {
  display: block !important;
  position: static !important;
  padding: 12px 14px 16px;
  font-size: .9rem;
  line-height: 1.5;
  opacity: .85;
  color: var(--muted);
}

/* Captions OFF on mobile */
@media (max-width:768px) {

  .project-shot-caption,
  .project-shot-caption[hidden] {
    display: none !important;
  }
}

/* ===============================
   PROJECT 3 — MOBILE PORTRAIT CAROUSEL (ONLY mobile)
   =============================== */
@media (max-width:640px) {

  body.project-id-3 .project-gallery {
    width: 100vw;
    margin-left: calc(50% - 50vw);

    --slide: 78vw;

    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--slide);
    gap: 14px;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;

    padding-left: calc((100vw - var(--slide))/2);
    padding-right: calc((100vw - var(--slide))/2);
    padding-bottom: 10px;
  }

  body.project-id-3 .project-gallery::-webkit-scrollbar {
    display: none;
  }

  body.project-id-3 .project-shot {
    scroll-snap-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  body.project-id-3 .project-shot-media {
    background: transparent;
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 28px;
    overflow: hidden;
  }

  body.project-id-3 .project-shot-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: transparent;
  }
}

/* ===============================
   PROJECT 3 — DESKTOP PORTRAIT TILES (ONLY desktop/tablet)
   “Like project 1/2 but portrait”
   =============================== */
@media (min-width:641px) {
  body.project-id-3 .project-shot-media {
    aspect-ratio: 9/16;
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  body.project-id-3 .project-shot-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
  }
}

/* ===============================
   LIGHTBOX (default / desktop)
   =============================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 12px;
}

.lightbox-content {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  display: block;
  border-radius: 35px;
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;

  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid var(--border);
}

.lightbox-caption {
  width: 100%;
  margin-top: 12px;
  text-align: center;
  font-size: .95rem;
  line-height: 1.5;
  color: #f7f6f6;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 85%, transparent);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background-color .18s ease;
}

.lightbox-close:hover {
  background: color-mix(in srgb, var(--card) 100%, transparent);
}

.lightbox-close:active {
  transform: scale(.97);
}

.lightbox-nav {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 85%, transparent);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background-color .18s ease;
}

.lightbox-nav:hover {
  background: color-mix(in srgb, var(--card) 100%, transparent);
}

.lightbox-nav:active {
  transform: scale(.97);
}

/* Hide header when lightbox open (mobile only) */
@media (max-width:768px) {
  body.lightbox-open .header {
    display: none;
  }

  body.lightbox-open main {
    padding-top: 0;
  }
}

/* Lightbox — MOBILE fullscreen layout */
@media (max-width:768px) {

  .lightbox-nav {
    display: none !important;
  }

  .lightbox-caption {
    display: none !important;
  }

  .lightbox.is-open {
    padding: 0 !important;
    gap: 0 !important;
    align-items: center;
    justify-content: center;
  }

  .lightbox-content {
    width: 100vw;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .lightbox-img {
    max-width: 100vw !important;
    max-height: 100svh !important;
    width: auto !important;
    height: auto !important;
    border-radius: 24px !important;
  }

  .lightbox-close {
    top: max(14px, env(safe-area-inset-top)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    z-index: 5;
  }

  /* Small swipe hint */
  .lightbox.is-open::after {
    content: "← swipe →";
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    font-size: 14px;
    letter-spacing: .5px;

    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .92);

    opacity: 0;
    animation: swipeHint 2.2s ease-out .35s 1 forwards;
    pointer-events: none;
  }

  @keyframes swipeHint {
    0% {
      opacity: 0;
      transform: translateX(-50%) translateY(6px);
    }

    20% {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    70% {
      opacity: 1;
    }

    100% {
      opacity: 0;
      transform: translateX(-50%) translateY(-4px);
    }
  }
}

/* ===============================
   ABOUT PAGE
   =============================== */
.about {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: -50px;
  margin-bottom: 12px;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow);
}

.about-who-text {
  grid-column: span 2;
  text-align: center;
}

.about-who-text p+p {
  margin-top: 3rem;
}

.about-who-photo {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-who-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 equal columns */
  gap: 18px;
  margin: 12px 0;
}

.highlight-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow);
}

.highlight-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--link);
  margin-bottom: .5rem;
}

.highlight-education {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.highlight-education h3 {
  font-size: 1.5rem;
}

.education-school {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--link);
  margin: 0;
}

.education-degree {
  font-size: .95rem;
  opacity: .9;
  margin: 0;
}

/* Certificate */
.about-certificate {
  margin-top: -35px;
  margin-bottom: -10px;
  text-align: center;
  scale: 1;
}

.about-certificate img {
  max-width: 220px;
  width: 100%;
  height: auto;
  opacity: .9;
  transition: transform .3s ease;
}

.about-certificate img:hover {
  transform: scale(1.03);
}

/* ===============================
   CONTACT
   =============================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin: 8px 0;
  color: var(--link);
}

input,
textarea {
  width: 100%;
  padding: 3%;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--link);
}

textarea {
  resize: none;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ===============================
   FOOTER
   =============================== */
.footer {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  padding: 35px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer p {
  color: var(--muted);
  margin-bottom: 12px;
}

.social-links a {
  margin: 0 8px;
}

.footer-legal {
  margin-top: 12px;
  font-size: .65rem;
}

.footer-business {
  margin-top: 8px;
  font-size: .8rem;
  color: var(--muted);
}

/* ===============================
   THEME TOGGLE (JS injected)
   =============================== */
.theme-toggle {
  margin-left: 12px;
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  padding: 0;
  display: inline-block;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--text);
  transition: transform .25s ease;
}

body.light-mode .theme-toggle::before {
  transform: translateX(28px);
}

.theme-toggle .toggle-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  object-fit: contain;
  pointer-events: none;
  display: block;
}

.theme-toggle .toggle-icon-moon {
  left: 6px;
}

.theme-toggle .toggle-icon-sun {
  right: 4px;
}

body:not(.light-mode) .toggle-icon-moon {
  opacity: 1;
}

body:not(.light-mode) .toggle-icon-sun {
  opacity: 0;
}

body.light-mode .toggle-icon-sun {
  opacity: 1;
}

body.light-mode .toggle-icon-moon {
  opacity: 0;
}

/* ===============================
   COOKIE BANNER
   =============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background: var(--card);
  padding: 3px 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 9999;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow);

  transform: translateY(100%);
  opacity: 0;
  transition: transform .4s ease, opacity .3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.btn-cookie,
.btn-cookie-decline {
  padding: 8px 18px;
  font-size: .85rem;
  border-radius: 10px;
  min-width: 100px;
}

.btn-cookie-decline:hover {
  background: red;
  border-color: red;
  transform: translateY(-2px);
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px;
  padding: 1px 1px 20px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.cookie-table {
  margin: 32px auto 0;
}

.cookie-table th {
  padding: 16px 14px;
}

.cookie-table td {
  padding: 18px 14px;
  line-height: 1.6;
}

/* ===============================
   ANIMATIONS
   =============================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp .8s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   MOBILE MENU (Injected by JS)
   =============================== */
.menu-toggle {
  display: none !important;
}

@media (max-width:768px) {
  .nav-container {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: 12px;

    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);

    font-size: 28px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .18s ease, background-color .18s ease;
  }

  .menu-toggle:active {
    transform: scale(.96);
  }

  .header .nav {
    position: absolute;
    top: 62px;
    right: 0;
    width: min(280px, 88vw);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;

    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .header .nav.nav-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header .nav a {
    margin-left: 0;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
  }

  .header .nav a:hover,
  .header .nav a.active {
    border-bottom: none;
    background: color-mix(in srgb, var(--link) 18%, transparent);
    color: var(--link);
  }

  .header .nav .lang-flag {
    margin-left: 0;
    margin-top: 6px;
  }

  .header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .header .nav .lang-flag,
  .header .nav #theme-toggle {
    margin: 0 !important;
  }

  .menu-toggle {
    margin-left: 25px;
  }
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (min-width:768px) {
  .portfolio-hint {
    display: none;
  }
}

@media (max-width:1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:768px) {

  .hero h1,
  .page-hero h1 {
    font-size: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-who-text,
  .about-who-photo {
    grid-column: span 1;
    text-align: center;
  }

  .about-who-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width:640px) {
  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .hero p,
  .page-hero p {
    max-width: 92%;
  }
}

@media (max-width:600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width:480px) {
  .footer-business {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .services-cta {
    padding: 48px 0 32px;
    margin-top: 24px;
  }

  .services-cta h2 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin: 0 0 16px;
  }

  .services-cta .btn-secondary {
    display: inline-block;
    margin-top: 8px;
  }

  .service-card p {
    line-height: 1.6;
  }
}

/* ===============================
   MOBILE SPACING (scoped & safe)
   =============================== */
@media (max-width:768px) {

  /* Project page only */
  .project-detail {
    padding-top: 10px;
  }

  /* Portfolio CTA + Contact spacing from footer */
  .cta {
    padding-bottom: 72px;
  }

  .contact-form {
    margin-bottom: 72px;
  }
}