/* ════════════════════════════════════════════════════════════
   style.css — Porty Clone for Santiago
   ════════════════════════════════════════════════════════════ */

/* ─── RESET & ROOT ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0a;
  --bg2:      #111111;
  --card:     #161616;
  --border:   rgba(255,255,255,0.08);
  --accent:   #c8f04d;      /* yellow-green — matches Porty */
  --accent-d: #a8d030;
  --text:     #f0f0f0;
  --muted:    #888;
  --radius:   14px;
  --nav-h:    68px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ════════════════════════════════════════════════════════════
   SCROLLBAR
   ════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 99px; }

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

#lang-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.navbar.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,.5); }

.nav-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  font-size: 1.1rem; /* Increased font size */
  font-weight: 500; /* Slightly thicker */
  color: var(--muted);
}

.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.7rem;
  border-radius: 99px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .22s;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,240,77,.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── LANGUAGE BUTTON ────────────────────────────────────── */
/* From Uiverse.io by mrhyddenn */
.shadow__btn {
  padding: 10px 20px;
  border: none;
  font-size: 15px; /* Slightly increased */
  color: #fff;
  border-radius: 7px;
  letter-spacing: 2px;
  font-family: 'Bricolage Grotesque', sans-serif; /* Similar to logo/title */
  font-weight: 800; /* Extra bold */
  text-transform: uppercase;
  transition: 0.5s;
  transition-property: box-shadow;
  cursor: pointer;
  background: rgb(0, 140, 255);
  box-shadow: 0 0 15px rgb(0, 140, 255);
  margin-left: 0; /* Removed margin as it's now in nav-right */
}

.shadow__btn:hover {
  box-shadow: 0 0 5px rgb(0, 140, 255),
              0 0 15px rgb(0, 140, 255),
              0 0 30px rgb(0, 140, 255),
              0 0 60px rgb(0, 140, 255);
}

@media (max-width: 768px) {
  .shadow__btn {
    display: none; /* Hide on mobile if it doesn't fit, or we can move it inside the menu */
  }
  .nav-links.open + .shadow__btn {
    display: block;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
  }
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 4rem) 5vw 4rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -200px; right: -100px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,240,77,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .4rem 1rem;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .5s .1s forwards;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: .95;
  letter-spacing: -.03em;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.name-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}

.name-line.accent { color: var(--accent); }

.hero-role {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp .5s .5s forwards;
}

.hero-role strong { color: var(--text); }

.hero-quote {
  font-size: .95rem;
  font-style: italic;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp .5s .65s forwards;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .5s .75s forwards;
}

.stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-label { font-size: .8rem; color: var(--muted); }

.stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .5s .85s forwards;
}

.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp .5s .95s forwards;
}

.avail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

/* ─── HERO RIGHT ─────────────────────────────────────────── */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeIn .8s .4s forwards;
}

.hero-photo-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-wrap.no-photo img { display: none; }
.photo-placeholder-text {
  position: absolute;
  color: var(--muted);
  font-size: .9rem;
  pointer-events: none;
}

.hero-photo-wrap:not(.no-photo) .photo-placeholder-text { display: none; }

.hero-ticker-wrap {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .7rem 1rem;
  overflow: hidden;
}

.hero-ticker {
  display: flex;
  gap: 3rem;
  width: max-content;
  font-size: .8rem;
  color: var(--muted);
  animation: tickerSlide 15s linear infinite;
}

/* ════════════════════════════════════════════════════════════
   CLIENTS TICKER
   ════════════════════════════════════════════════════════════ */
.ticker-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  overflow: hidden;
  position: relative;
  background: var(--bg2);
}

.ticker-label {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ticker-track { overflow: hidden; }

.ticker-inner {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: tickerSlide 18s linear infinite;
}

.ticker-inner span {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: .02em;
}

@keyframes tickerSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════════════
   SECTION SHARED
   ════════════════════════════════════════════════════════════ */
.section { padding: 6rem 5vw; }

.section-header { margin-bottom: 3.5rem; }

.section-title-big {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.outline-text {
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
}

.section-desc {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 460px;
  margin-top: .8rem;
}

.section-tag {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .5rem;
}

/* ════════════════════════════════════════════════════════════
   STATS
   ════════════════════════════════════════════════════════════ */
.stats-section {
  padding: 5rem 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  border-top: 1px solid var(--border);
}

.stats-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 3rem;
  font-weight: 800;
}

.stats-sub {
  color: var(--muted);
  font-size: .9rem;
  margin: .5rem 0 1.5rem;
}

.team-avatars {
  display: flex;
  gap: -.5rem;
}

.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--bg);
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
  margin-left: -8px;
  color: var(--muted);
}

.avatar:first-child { margin-left: 0; }

.stats-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.stat-big {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  display: inline;
}

.stat-card p {
  font-size: .85rem;
  margin-top: .5rem;
  font-weight: 500;
}

.stat-card small {
  font-size: .75rem;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════
   PROJECTS
   ════════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: border-color .25s, transform .25s;
  display: block;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.project-img {
  width: 100%; height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-mockup {
  width: 80%;
  background: rgba(0,0,0,.4);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  padding: .8rem;
}

.mockup-bar {
  display: flex; gap: .3rem; margin-bottom: .6rem;
}
.mockup-bar span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.m-line {
  height: 5px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  margin-bottom: .4rem;
}
.w50 { width: 50%; } .w60 { width: 60%; } .w65 { width: 65%; } 
.w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } 
.w85 { width: 85%; } .w90 { width: 90%; }

.project-info {
  padding: 1.2rem 1.5rem;
}

.project-tag {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: .4rem;
}

.project-info h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.project-arrow {
  position: absolute; 
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity .2s;
}

.project-card:hover .project-arrow { opacity: 1; }

.project-click-text {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 6px 12px;
  background: var(--accent);
  color: #000;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  transform: translateY(-5px);
}

.project-card:hover .project-click-text {
  opacity: 1;
  transform: translateY(0);
}

/* ─── MODAL STYLES (cardBox) ──────────────────────────────── */
.project-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none; /* Hidden by default */
  place-items: center;
  padding: 20px;
}

.project-modal.active { display: grid; }

.modal-close {
  position: absolute;
  top: 30px; right: 40px;
  background: none; border: none;
  color: white; font-size: 2.5rem;
  cursor: pointer; z-index: 1001;
  opacity: 0.7; transition: 0.3s;
}
.modal-close:hover { opacity: 1; transform: scale(1.1); }

/* From Uiverse.io by Pradeepsaranbishnoi */
.cardBox {
  width: 350px;
  height: 450px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 10px 0px,
    rgba(0, 0, 0, 0.5) 0px 2px 25px 0px;
}

.card {
  position: absolute;
  width: 98%;
  height: 98%;
  background: var(--bg); /* Same as page background */
  border-radius: 20px;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding: 30px;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 30px 60px -12px inset,
    rgba(0, 0, 0, 0.5) 0px 18px 36px -18px inset;
}

.card .h4 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 800;
  pointer-events: none;
  opacity: .8;
  font-family: 'Bricolage Grotesque', sans-serif;
  transition: 0.3s;
}

.card .content p {
  font-size: 16px;
  line-height: 1.5em;
  color: var(--muted);
  margin-bottom: 25px;
}

.modal-tech-icons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tech-icon-item {
  position: relative;
  font-size: 1.5rem;
  color: var(--accent);
  cursor: help;
  transition: transform 0.2s;
}

.tech-icon-item:hover {
  transform: scale(1.2);
}

.tech-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--card);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 1px solid var(--border);
}

.tech-icon-item:hover .tech-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.modal-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.modal-btns .btn-ghost {
  width: 45px;
  height: 45px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.card .content {
  transform: translateY(100%);
  opacity: 0;
  transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  width: 100%;
}

.card:hover .content {
  transform: translateY(0);
  opacity: 1;
}

.card:hover .h4 {
  opacity: 0;
  transform: translate(-50%, -60%);
}

.cardBox::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 180%;
  background: #40E0D0;
  background: -webkit-linear-gradient(to right, #FF0080, #FF8C00, #40E0D0);
  background: linear-gradient(to right, #FF0080, #FF8C00, #40E0D0);
  transform-origin: center;
  animation: glowing_401 5s linear infinite;
}

@keyframes glowing_401 {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════
   TIMELINE
   ════════════════════════════════════════════════════════════ */
.timeline-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline-label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 2rem;
}

.timeline-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  opacity: .45;
  transition: opacity .3s;
}

.timeline-entry.active { opacity: 1; }
.timeline-entry:hover   { opacity: 1; }

.tl-year { font-size: .82rem; color: var(--muted); }

.tl-content h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.tl-company {
  font-size: .85rem;
  color: var(--muted);
}

.tl-badge {
  background: var(--accent);
  color: #000;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 99px;
}

/* ════════════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════════════ */
.services-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-bg-glow {
  position: absolute;
  bottom: -100px; left: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,240,77,.05) 0%, transparent 70%);
  pointer-events: none;
}

.services-tabs {
  display: flex;
  gap: .5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .4rem;
  width: fit-content;
  margin: 0 auto 3rem; /* Centered */
}

.services-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  padding: .55rem 1.4rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all .22s;
}

.tab.active {
  background: var(--accent);
  color: #000;
}

.service-panel {
  display: none;
  flex-direction: column; /* Vertical layout */
  text-align: center;     /* Centered text */
  gap: 2rem;
  align-items: center;
}

.service-panel.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.service-exp {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .35rem 1rem;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.service-info h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.service-info p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 2rem; /* Centered width */
}

.service-btns { 
  display: flex; 
  gap: 1rem;
  justify-content: center; /* Centered buttons */
}

.service-number {
  display: none; /* Hide large number to favor centered text */
}

/* ════════════════════════════════════════════════════════════
   TOOLS
   ════════════════════════════════════════════════════════════ */
.tools-ticker-label {
  text-align: center;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tools-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.tools-subtitle {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all .25s;
  cursor: pointer;
  flex: 0 1 300px; /* Base width but can shrink/grow */
  text-align: left;
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tool-icon {
  font-size: 1.6rem;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg2);
  border-radius: 10px;
  flex-shrink: 0;
}

.tool-card strong {
  display: block;
  font-size: .9rem;
  margin-bottom: .15rem;
}

.tool-card span {
  display: block;
  font-size: .75rem;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════
   PROCESS
   ════════════════════════════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: border-color .22s, transform .22s;
}

.process-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.process-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: .8rem;
}

.process-card h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .7rem;
}

.process-card p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
   TESTIMONIAL
   ════════════════════════════════════════════════════════════ */
.testimonial-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: center;
}

.testimonial-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.t-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 1.4rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.t-name { font-weight: 600; margin-bottom: .2rem; }
.t-role { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.t-label { font-size: .78rem; color: var(--muted); }

.t-big {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
}

.testimonial-quote {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.quote-mark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 5rem;
  color: var(--accent);
  line-height: .5;
  margin-bottom: 1.5rem;
}

.testimonial-quote p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.t-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: .5rem; }
.t-source { font-size: .82rem; color: var(--muted); }

/* ════════════════════════════════════════════════════════════
   PRICING
   ════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 840px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: border-color .22s;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: #111a00;
}

.plan-tag {
  display: inline-block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .3rem .9rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.featured .plan-tag {
  background: var(--accent);
  color: #000;
  border-color: transparent;
}

.pricing-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: .4rem;
  margin-bottom: 1.5rem;
}

.price-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.price-unit {
  color: var(--muted);
  font-size: .9rem;
  padding-bottom: .3rem;
}

.plan-features {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.plan-features li {
  font-size: .88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.plan-features li::before { content: none; }

.plan-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
}

.plan-custom a {
  color: var(--accent);
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .22s;
}

.faq-item.open { border-color: var(--accent); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  padding: 1.3rem 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform .25s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
  transition: max-height .35s ease, padding .3s;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1.3rem;
}

/* ════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input, 
.contact-form textarea {
  background: var(--bg2);
  background-color: var(--bg2); /* Explicitly set color */
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s;
  width: 100%;
  resize: vertical; /* Allow vertical resize only */
}

.contact-form textarea {
  min-height: 120px;
  background-color: var(--bg2) !important;
  color: #fff !important;
  resize: none; /* Disable manual resize */
  overflow-y: hidden; /* Hide scrollbar for auto-resize */
}

/* ─── Skill Modals ────────────────────────────────────────── */
.skill-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 20px;
}

.skill-modal.active { display: grid; }

.skill-modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 450px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.skill-modal-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.skill-modal-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}

.skill-modal-desc {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.skill-modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: none; border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.skill-modal-close:hover { color: var(--text); }

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-info-extra {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: var(--text);
}

.info-item i {
  font-size: 1.2rem;
  color: var(--accent);
  width: 24px; /* Increased */
  text-align: center;
}

.info-item a {
  word-break: break-all;
}

.info-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.info-links a {
  font-size: 1.8rem; /* Increased icon size */
  color: var(--muted);
  transition: color 0.3s, transform 0.3s;
}

.info-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-info-extra {
    order: -1;
  }
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.footer-phrase {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 400px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-tags span {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .35rem .9rem;
  font-size: .78rem;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ════════════════════════════════════════════════════════════
   KEYFRAMES
   ════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-section { grid-template-columns: 1fr; gap: 2rem; }
  .stats-right   { grid-template-columns: repeat(3, 1fr); }
  .service-number { display: none; }
}

@media (max-width: 768px) {
  #lang-btn {
    display: block !important;
    font-size: 12px;
    padding: 8px 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 2rem);
    text-align: center;
    gap: 2rem;
  }

  .hero-right { 
    order: -1; 
    width: 100%;
    transition: filter 0.3s ease, opacity 0.3s ease;
  }

  .hero-photo-wrap { 
    width: 180px; /* Reduced size */
    height: 180px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    border-radius: 50%; /* Circle look for smaller photo */
  }

  .hero-ticker-wrap {
    display: none; /* Hide ticker on mobile to focus on photo */
  }

  .hero-name {
    font-size: clamp(2.8rem, 10vw, 4rem);
    margin-bottom: 1rem;
  }

  .hero-role {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero-quote {
    font-size: 0.85rem;
    text-align: center;
    border-left: none;
    border-top: 2px solid var(--accent);
    padding-left: 0;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-right { order: -1; }
  .hero-photo-wrap { 
    max-height: 300px; 
    border-radius: 18px;
  }
  .hero-btns { 
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats { 
    justify-content: center; 
    gap: 1rem;
  }
  .stat-num { font-size: 1.4rem; }
  .hero-availability { margin: 0 auto; }

  /* Navbar Mobile */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right { gap: 0.8rem; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 2rem 5vw;
    gap: 1.5rem;
    z-index: 99;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  .nav-links.open a {
    font-size: 1.2rem;
  }

  /* Sections */
  .section { padding: 4rem 5vw; }
  .section-title-big { font-size: 2.2rem; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .project-img { height: 180px; }

  /* Tools */
  .tools-grid { 
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .tool-card { 
    flex: 1 1 auto; 
    width: 100%;
    padding: 1rem;
  }

  /* Services */
  .services-tabs {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 20px;
    padding: 0.6rem;
  }
  .tab {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
  .service-info h2 { font-size: 1.8rem; }

  /* Contact */
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-info-extra {
    order: 1; /* Info below form on mobile */
    padding: 1.5rem;
  }
  .info-item { font-size: 0.9rem; }

  /* Footer */
  .footer { 
    flex-direction: column; 
    text-align: center; 
    padding: 2.5rem 5vw;
    gap: 1.5rem;
  }
  .footer-phrase { margin: 0 auto 1rem; }
  .footer-tags { justify-content: center; }

  /* Modals */
  .cardBox {
    width: 100%;
    height: auto;
    min-height: 400px;
  }
  .card { padding: 20px; }
  .card .h4 { font-size: 1.4rem; }
  .skill-modal-content {
    padding: 1.5rem;
    width: 95%;
  }
  .skill-modal-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.5rem; }
  .stat-num { font-size: 1.2rem; }
  .tool-card { gap: 0.8rem; }
}
