:root {
      /* COLORS FROM YOUR SOURCE CODE */
      --brand-bg: #BDC6C7;
      --brand-surface: #C7CFD1;
      --brand-primary: #1E1E1E;
      --brand-accent: #4C5C68;
      --brand-muted: #7C8A92;
      --brand-highlight: #D3DBDD;

      --radius-lg: 1rem;
      --radius-xl: 1.25rem;
      --shadow-soft: 0 8px 20px rgba(0,0,0,0.06);
      --transition-fast: 0.2s ease;
      --transition-medium: 0.4s ease;
    }

    * { box-sizing:border-box; margin:0; padding:0; }
    html, body { height:100%; }
    html { scroll-behavior:smooth; }

    body {
      font-family:'Inter',system-ui,-apple-system,sans-serif;
      background:var(--brand-bg);
      color:var(--brand-primary);
      -webkit-font-smoothing:antialiased;
      line-height: 1.5;
      overflow-x: hidden;
    }

    body.no-scroll { overflow: hidden; height: 100vh; }

    img { max-width:100%; display:block; }
    a { color:inherit; text-decoration:none; }
    button { font-family:inherit; cursor:pointer; border:none; background:none; }

    .container {
      max-width:1120px;
      margin:0 auto;
      padding:0 16px;
    }

    .page-shell { min-height:100vh; display:flex; flex-direction:column; }
    main { flex:1; }

    /* --- HEADER (FROM YOUR SOURCE CODE) --- */
    .site-header {
      position:sticky;
      top:0;
      z-index:40;
      background:rgba(199,207,209,0.96);
      backdrop-filter:blur(10px);
      border-bottom:1px solid var(--brand-highlight);
    }
    .nav-inner {
      height:56px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:16px;
    }
    .nav-brand {
      font-family:'Poppins',sans-serif;
      font-weight:700;
      font-size:1.1rem;
      letter-spacing:0.02em;
      padding:4px 6px;
      border-radius:6px;
      transition:opacity var(--transition-fast);
    }
    .nav-brand:hover { opacity:0.85; }

    .nav-links-desktop {
      display:none; /* Hidden by default (mobile first) */
      align-items:center;
      gap:24px;
      font-size:0.9rem;
      flex:1;
      justify-content:center;
    }
    .nav-link {
      position:relative;
      padding:6px 4px;
      font-family:'Poppins',sans-serif;
      font-weight:600;
      transition:color var(--transition-fast);
    }
    /* Active Link Style */
    .nav-link.active { color: var(--brand-primary); } 
    .nav-link::after {
      content:"";
      position:absolute;
      left:0;
      bottom:-3px;
      width:100%;
      height:2px;
      border-radius:999px;
      background:var(--brand-primary);
      transform-origin:left;
      transform:scaleX(0);
      transition:transform var(--transition-fast);
    }
    .nav-link:hover::after,
    .nav-link:focus-visible::after,
    .nav-link.active::after { transform:scaleX(1); }

    .nav-right {
      display:flex;
      align-items:center;
      gap:8px;
    }

    .lang-select {
      background:rgba(199,207,209,0.95);
      border:1px solid var(--brand-highlight);
      border-radius:999px;
      padding:4px 10px;
      font-size:0.82rem;
      outline:none;
      min-width:60px;
      font-weight:500;
      cursor: pointer;
    }

    .nav-mobile-toggle {
      display:inline-flex;
      width:40px;
      height:40px;
      border-radius:14px;
      border:1px solid var(--brand-highlight);
      background:var(--brand-surface);
      align-items:center;
      justify-content:center;
      transition:transform var(--transition-fast), background var(--transition-fast);
    }
    .nav-mobile-toggle:active { transform:scale(0.96); }
    .nav-mobile-toggle:hover { background:#d3dadc; }

    .nav-burger {
      width:19px;
      height:2px;
      background:var(--brand-primary);
      position:relative;
      transition:background var(--transition-fast);
    }
    .nav-burger::before,
    .nav-burger::after {
      content:"";
      position:absolute;
      left:0;
      width:19px;
      height:2px;
      background:var(--brand-primary);
      transition:transform var(--transition-fast), opacity var(--transition-fast);
    }
    .nav-burger::before { top:-6px; }
    .nav-burger::after { top:6px; }

    .nav-mobile-toggle.is-open .nav-burger { background:transparent; }
    .nav-mobile-toggle.is-open .nav-burger::before {
      transform:translateY(6px) rotate(45deg);
    }
    .nav-mobile-toggle.is-open .nav-burger::after {
      transform:translateY(-6px) rotate(-45deg);
    }

    /* Animated Mobile Menu */
    .nav-links-mobile {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      background:rgba(199,207,209,0.98);
      border-bottom:1px solid var(--brand-highlight);
      transition: max-height 0.4s ease, opacity 0.4s ease, visibility 0s linear 0.4s;
      display:flex;
      flex-direction:column;
    }
    .nav-links-mobile.is-open {
      max-height: 100vh;
      opacity: 1;
      visibility: visible;
      overflow-y: auto;
      transition-delay: 0s;
    }

    .nav-links-mobile-inner {
      padding:12px 0 20px;
      display:flex;
      flex-direction:column;
    }
    .nav-link-mobile {
      text-align:left;
      padding:10px 0;
      font-family:'Poppins',sans-serif;
      font-weight:600;
      font-size:0.95rem;
      border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    .nav-link-mobile:last-child { border-bottom: none; }

    /* --- HERO --- */
    .hero {
      padding-top:32px;
      padding-bottom:32px;
      animation:heroIntro 0.7s ease-out both;
    }
    .hero-title {
      font-family:'Poppins',sans-serif;
      font-weight:600;
      font-size:1.8rem;
      line-height:1.2;
      max-width:640px;
    }
    .hero-text {
      margin-top:8px;
      color:var(--brand-muted);
      font-size:0.95rem;
      max-width:640px;
    }

    /* --- FILTERS --- */
    .chip-row {
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-bottom:20px;
      animation:heroFade 0.8s ease-out forwards;
      animation-delay: 0.1s;
    }
    .chip {
      padding:8px 16px;
      border-radius:999px;
      border:1px solid var(--brand-highlight);
      background:var(--brand-surface);
      font-family:'Poppins',sans-serif;
      font-size:0.85rem;
      font-weight:600;
      color:var(--brand-primary);
      transition:all var(--transition-fast);
      cursor: pointer;
    }
    .chip:hover {
      transform:translateY(-1px);
      box-shadow:var(--shadow-soft);
    }
    .chip--active {
      background:var(--brand-primary);
      color:#ffffff;
      border-color:var(--brand-primary);
    }

    /* --- PROJECTS GRID / SLIDER --- */
    .grid { display:grid; gap:20px; grid-template-columns:1fr; }
    
    /* Card Styles matching your system */
    .card {
      background:var(--brand-surface);
      border-radius:var(--radius-xl);
      border:1px solid var(--brand-highlight);
      overflow:hidden;
      box-shadow:0 0 0 rgba(0,0,0,0);
      transition:transform var(--transition-fast), box-shadow var(--transition-fast), opacity 0.3s ease;
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    .card:hover {
      transform:translateY(-3px) scale(1.01);
      box-shadow:var(--shadow-soft);
    }
    .card-image-wrapper {
        position: relative;
        aspect-ratio: 4/3;
        overflow: hidden;
    }
    .card-image {
      width:100%;
      height:100%;
      object-fit:cover;
      transition: transform 0.5s ease;
    }
    .card:hover .card-image { transform: scale(1.05); }

    .card-body { padding:20px; flex: 1; display: flex; flex-direction: column; }
    
    .card-subtitle {
      font-size:0.75rem; 
      color:var(--brand-muted); 
      text-transform:uppercase; 
      letter-spacing:0.04em; 
      margin-bottom:6px;
    }
    .card-title {
      font-family:'Poppins',sans-serif;
      font-weight:600;
      font-size:1.1rem;
      margin-bottom:8px; 
      line-height:1.3;
    }
    .card-text {
      font-size:0.88rem; 
      color:rgba(30,30,30,0.85); 
      flex:1; 
    }
    .card-link-arrow { 
      margin-top:16px; 
      font-weight:600; 
      font-size:0.85rem; 
      display:flex; 
      align-items:center; 
      gap:6px; 
      color:var(--brand-accent); 
    }

    /* --- UTILITIES & FOOTER --- */
    .whatsapp-help-btn {
      position:fixed;
      right:18px;
      bottom:18px;
      z-index:50;
      background:#25D366;
      color:#ffffff;
      border-radius:999px;
      padding:10px 18px;
      display:inline-flex;
      align-items:center;
      gap:8px;
      font-family:'Poppins',sans-serif;
      font-weight:600;
      font-size:0.88rem;
      box-shadow:0 12px 25px rgba(0,0,0,0.18);
      border:none;
      transition:transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
      cursor: pointer;
    }
    .whatsapp-help-btn span:first-child{
      width:22px;
      height:22px;
      border-radius:999px;
      background:rgba(0,0,0,0.08);
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size:0.9rem;
    }
    .whatsapp-help-btn:hover{
      transform:translateY(-2px);
      box-shadow:0 16px 30px rgba(0,0,0,0.24);
      background:#1ebe5b;
    }

    .back-to-top {
      position:fixed;
      right:18px;
      bottom:80px;
      padding:8px 14px;
      border-radius:999px;
      border:1px solid var(--brand-highlight);
      background:var(--brand-surface);
      font-size:0.8rem;
      color:var(--brand-primary);
      box-shadow:var(--shadow-soft);
      opacity:0;
      pointer-events:none;
      transition:opacity var(--transition-fast), transform var(--transition-fast);
      z-index:40;
    }
    .back-to-top.is-visible {
      opacity:1;
      pointer-events:auto;
      transform:translateY(0);
    }

    .site-footer {
      border-top:1px solid var(--brand-highlight);
      background:rgba(199,207,209,0.98);
      padding:24px 0;
      font-size:0.85rem;
      color:rgba(30,30,30,0.8);
      margin-top: 40px;
    }
    .footer-inner {
      display:flex;
      flex-wrap:wrap;
      justify-content:space-between;
      gap:16px;
      align-items:center;
    }

    /* Modal Styles */
    .modal {
      position:fixed;
      inset:0;
      display:none;
      align-items:center;
      justify-content:center;
      z-index:60;
    }
    .modal--open { display:flex; }
    .modal-backdrop {
      position:absolute;
      inset:0;
      background:rgba(0,0,0,0.35);
      backdrop-filter: blur(2px);
    }
    .modal-dialog {
      position:relative;
      z-index:1;
      width:100%;
      max-width:440px;
      background:var(--brand-surface);
      border-radius:var(--radius-xl);
      border:1px solid var(--brand-highlight);
      box-shadow:0 18px 45px rgba(0,0,0,0.18);
      padding:24px;
      margin: 16px;
      animation:modalIn 0.25s ease-out forwards;
    }
    .modal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
    .modal-title { font-family:'Poppins',sans-serif; font-weight:600; font-size:1.1rem; }
    .modal-close {
      width:32px; height:32px; border-radius:999px; border:1px solid var(--brand-highlight);
      background:var(--brand-surface); display:inline-flex; align-items:center; justify-content:center;
      font-size:1.2rem; cursor:pointer; transition:background 0.2s, transform 0.2s;
    }
    .modal-close:hover { background:#d4dbdd; transform:scale(1.05); }
    .form-group { margin-bottom:14px; text-align:left; }
    .form-label { display:block; font-size:0.85rem; font-weight:500; margin-bottom:6px; }
    .form-input, .form-textarea {
      width:100%; border-radius:10px; border:1px solid var(--brand-highlight); padding:10px;
      font-size:0.9rem; font-family:inherit; outline:none; background:#dde4e6;
      transition:border-color 0.2s, box-shadow 0.2s, background 0.2s;
    }
    .form-input:focus, .form-textarea:focus {
      border-color:var(--brand-accent); box-shadow:0 0 0 2px rgba(76,92,104,0.25); background:var(--brand-surface);
    }
    .form-textarea { min-height:100px; resize:vertical; }
    .modal-footer { margin-top:20px; display:flex; justify-content:flex-end; gap:8px; }
    .form-error { font-size:0.8rem; color:#b91c1c; margin-top:4px; display:none; }
    .form-error.is-visible { display:block; }

    /* --- ANIMATIONS --- */
    .reveal { opacity:0; transform:translateY(16px); transition:opacity 0.6s ease-out, transform 0.6s ease-out; }
    .reveal.is-visible { opacity:1; transform:translateY(0); }
    @keyframes modalIn { from { opacity:0; transform:translateY(16px) scale(0.98); } to { opacity:1; transform:translateY(0) scale(1); } }
    @keyframes heroIntro { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
    @keyframes heroFade { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

    /* --- RESPONSIVE --- */
    @media (max-width:767px){
      .hero-title { font-size:1.8rem; }
      .nav-links-desktop { display:none; } 
      
      /* Creative Mobile Slider */
      .grid {
          display: flex;
          overflow-x: auto;
          scroll-snap-type: x mandatory;
          padding-bottom: 24px;
          margin-right: -16px;
          padding-right: 16px;
          -webkit-overflow-scrolling: touch;
      }
      .grid::-webkit-scrollbar { display: none; }
      .grid { -ms-overflow-style: none; scrollbar-width: none; }
      .card {
          min-width: 85vw;
          scroll-snap-align: center;
          box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      }
    }
    
    @media (min-width:768px){
      .back-to-top { bottom:88px; }
      .nav-links-desktop { display:flex; }
      .nav-mobile-toggle { display:none; }
      .nav-links-mobile { display:none; }
      .hero-title { font-size:2.5rem; }
      
      /* Grid Desktop */
      .grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (min-width:1024px){
      .grid { grid-template-columns: repeat(3, 1fr); }
    }

/* PROJECT FILTER ACCESSIBILITY STABILITY */
.chip-row {
  opacity: 1;
  animation: chipRowIntro 0.55s ease-out 0.08s both;
}

@keyframes chipRowIntro {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}

/* PROJECTS INDEX VISUAL POLISH V1 */
:root {
  --brand-surface: #C8D0D1;
  --brand-accent: #40525E;
  --brand-muted: #3B4850;
  --brand-highlight: rgba(30, 30, 30, 0.11);
  --radius-lg: 0.875rem;
  --radius-xl: 1.125rem;
  --shadow-soft: 0 18px 48px rgba(30, 30, 30, 0.10);
}

body {
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--brand-primary);
  color: #fff;
}

.container {
  max-width: 1240px;
  padding-inline: clamp(20px, 4vw, 40px);
}

.site-header {
  background: rgba(189, 198, 199, 0.90);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border-bottom-color: rgba(30, 30, 30, 0.10);
}

.nav-inner {
  height: 68px;
  gap: 24px;
}

.nav-brand {
  padding: 4px 0;
  font-size: 1.04rem;
  letter-spacing: 0.015em;
}

.nav-links-desktop {
  gap: clamp(16px, 2vw, 28px);
  font-size: 0.84rem;
}

.nav-link {
  padding-block: 8px;
  letter-spacing: 0.01em;
}

.lang-select {
  min-height: 38px;
  padding: 6px 12px;
  background: rgba(200, 208, 209, 0.82);
  border-color: rgba(30, 30, 30, 0.12);
}

.nav-mobile-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border-color: rgba(30, 30, 30, 0.12);
}

.nav-links-mobile-inner {
  padding: 18px 0 28px;
}

.nav-link-mobile {
  padding: 13px 0;
  font-size: 1rem;
}

.hero {
  padding-top: clamp(76px, 9vw, 132px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.hero-title {
  max-width: 940px;
  font-size: clamp(2.55rem, 5.5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.044em;
  text-wrap: balance;
}

.hero-text {
  max-width: 760px;
  margin-top: 22px;
  color: var(--brand-muted);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.75;
}

.chip-row {
  gap: 9px;
  margin-bottom: 34px;
}

.chip {
  min-height: 38px;
  padding: 8px 15px;
  border-color: rgba(30, 30, 30, 0.10);
  background: rgba(200, 208, 209, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.chip:hover {
  transform: translateY(-1px);
  background: rgba(210, 218, 220, 0.78);
  box-shadow: none;
}

.chip--active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.grid {
  gap: clamp(20px, 2.5vw, 32px);
}

.card {
  border-radius: 1.15rem;
  border-color: rgba(30, 30, 30, 0.10);
  background: rgba(200, 208, 209, 0.62);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 30, 30, 0.17);
  background: rgba(210, 218, 220, 0.76);
  box-shadow: 0 20px 48px rgba(30, 30, 30, 0.09);
}

.card-image-wrapper {
  aspect-ratio: 16 / 10;
}

.card-image {
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}

.card:hover .card-image {
  transform: scale(1.025);
}

.card-body {
  padding: clamp(21px, 2.4vw, 29px);
}

.card-subtitle {
  margin-bottom: 8px;
  color: var(--brand-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.card-title {
  margin-bottom: 10px;
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.34;
  letter-spacing: -0.014em;
}

.card-text {
  color: rgba(30, 30, 30, 0.84);
  font-size: 0.91rem;
  line-height: 1.68;
}

.card-link-arrow {
  margin-top: 20px;
  color: var(--brand-primary);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.whatsapp-help-btn {
  color: #0F2A1C;
  padding: 11px 18px;
  box-shadow: 0 12px 30px rgba(18, 80, 45, 0.22);
}

.site-footer {
  margin-top: clamp(54px, 7vw, 88px);
  padding: 30px 0;
  border-top-color: rgba(30, 30, 30, 0.10);
  background: rgba(200, 208, 209, 0.76);
}

:where(a, button, select, input, textarea):focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .container {
    padding-inline: 20px;
  }

  .nav-inner {
    height: 62px;
  }

  .hero {
    padding-top: 58px;
    padding-bottom: 34px;
  }

  .hero-title {
    font-size: clamp(2.25rem, 10.8vw, 3.4rem);
    line-height: 1.03;
  }

  .hero-text {
    margin-top: 18px;
    font-size: 0.98rem;
  }

  .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -20px;
    padding-inline: 20px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .chip-row::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
  }

  .grid {
    margin-right: -20px;
    padding-right: 20px;
    gap: 16px;
  }

  .card {
    min-width: min(86vw, 390px);
  }

  .card-image-wrapper {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

