/* ===== משתני צבע - mishmish ===== */
:root {
  --orange:       #F4A22D;
  --orange-dark:  #D4851A;
  --orange-glow:  rgba(244, 162, 45, 0.25);
  --green-dark:   #1A3A2A;
  --green-mid:    #2E5E3E;
  --green-light:  #3d7a52;
  --bg:           #FDFAF5;
  --bg-card:      #F7F2E8;
  --bg-card2:     #fff;
  --text:         #1A3A2A;
  --text-light:   #5a7a6a;
  --text-xlight:  #8aaa9a;
  --border:       #e4ddd0;
  --shadow-sm:    0 2px 8px rgba(26,58,42,0.08);
  --shadow-md:    0 6px 24px rgba(26,58,42,0.12);
  --shadow-lg:    0 16px 48px rgba(26,58,42,0.16);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Rubik', 'Segoe UI', 'Arial', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Navbar — glassmorphism ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  background: rgba(26, 58, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(26, 58, 42, 0.97);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.navbar-brand img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px var(--orange-glow));
}
.navbar-brand span {
  color: var(--orange);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.navbar-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
  transition: width 0.25s;
}
.navbar-links a:hover { color: var(--orange); }
.navbar-links a:hover::after { width: 100%; }

/* המבורגר */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: rgba(26, 58, 42, 0.6);
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--orange);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(244,162,45,0.10) 0%, transparent 70%),
    linear-gradient(160deg, #FDFAF5 0%, #f3ecd8 100%);
  position: relative;
  overflow: hidden;
}

/* Dot grid background */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244,162,45,0.12) 0%, transparent 65%);
  pointer-events: none;
  animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(244,162,45,0.15), rgba(26,58,42,0.08));
  border: 1px solid rgba(244,162,45,0.4);
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 1.75rem;
  animation: float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 32px rgba(244,162,45,0.3));
  position: relative;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--green-dark);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  font-weight: 400;
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--orange-dark);
  font-style: italic;
  margin-bottom: 2.5rem;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.home-quick-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
  max-width: 760px;
}

.home-quick-nav a {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(26,58,42,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  color: var(--green-mid);
  font-size: 0.83rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(26,58,42,0.06);
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}

.home-quick-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(244,162,45,0.55);
  color: var(--orange-dark);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-hint span {
  width: 4px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(10px); opacity: 0; }
}

/* ===== כפתורים ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.9rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #e8943a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(244,162,45,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,162,45,0.5);
  background: linear-gradient(135deg, #f5ad40, var(--orange));
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp {
  background: #25D366;
  color: #083d1f;
  border-color: #25D366;
  box-shadow: 0 4px 14px rgba(37,211,102,0.28);
}

.btn-whatsapp:hover {
  background: #1fbd5a;
  border-color: #1fbd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.34);
}

.btn-icon-svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 1.15rem;
}

.btn-icon-svg svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.beta-hero .btn-outline {
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.04);
}

.beta-hero .btn-outline:hover {
  color: var(--green-dark);
  border-color: var(--orange);
  background: var(--orange);
}

/* ===== סקשנים כלליים ===== */
section {
  padding: 5.5rem 2rem;
  scroll-margin-top: 82px;
}

.section-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--green-dark);
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.project-paths-section {
  padding-top: 4.2rem;
  padding-bottom: 4.2rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.54), rgba(247,242,232,0.58));
}

.project-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.path-card {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem;
  border: 1px solid rgba(26,58,42,0.12);
  border-radius: 14px;
  background: var(--bg-card2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244,162,45,0.55);
  box-shadow: var(--shadow-md);
}

.path-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(244,162,45,0.13);
  color: var(--orange-dark);
  font-size: 1.35rem;
}

.path-card strong {
  color: var(--green-dark);
  font-size: 1rem;
}

.path-card small {
  color: var(--text-light);
  font-size: 0.87rem;
  line-height: 1.55;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 0;
  width: 44px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), transparent);
  border-radius: 2px;
}

.section-desc {
  color: var(--text-light);
  margin-top: 1.1rem;
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ===== אודות ===== */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.03rem;
  line-height: 1.8;
}
.about-text strong { color: var(--green-dark); }

.about-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--bg-card), #efe8d8);
  border-right: 4px solid var(--orange);
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--green-dark);
  font-style: italic;
  box-shadow: var(--shadow-sm);
}

.about-image-box {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-logo-wrap {
  position: relative;
  display: inline-block;
}
.about-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(244,162,45,0.12), transparent 70%);
  border-radius: 50%;
}
.about-logo {
  width: 210px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 6px 24px rgba(244,162,45,0.2));
  position: relative;
}

/* ===== כישורים ===== */
#skills { background: var(--bg-card); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skill-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.25s;
  cursor: default;
  box-shadow: var(--shadow-sm);
}
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(244,162,45,0.2);
  border-color: var(--orange);
  background: linear-gradient(135deg, #fff, #fffbf3);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}
.skill-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
}

/* ===== פרויקטים ===== */
#projects { background: var(--bg); }

.projects-section-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.projects-section-label span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-xlight);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.projects-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.projects-section-label.divider {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.projects-section-label.divider::after { display: none; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.project-filters-hero {
  margin-top: 1.8rem;
}

.project-filter {
  border: 1px solid rgba(26,58,42,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--green-mid);
  padding: 0.52rem 0.95rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.project-filter:hover,
.project-filter.active {
  transform: translateY(-1px);
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.project-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card.project-hidden,
.projects-section-label.project-hidden {
  display: none;
}

.project-card-dev {
  border-color: rgba(46,94,62,0.34);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(239,248,241,0.96));
}

.project-card-dev .project-ai-badge {
  background: rgba(46,94,62,0.1);
  border-color: rgba(46,94,62,0.26);
  color: var(--green-mid);
}

.projects-more-card {
  justify-content: center;
  cursor: default;
  border-style: dashed;
  background: linear-gradient(145deg, #fff, var(--bg-card));
}

.projects-more-card h3 {
  color: var(--green-dark);
  font-size: 1.05rem;
}

.projects-more-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.65;
}

.projects-more-card .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #f5c96a);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover::before { opacity: 1; }

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.project-card:focus-visible {
  outline: 3px solid rgba(244,162,45,0.35);
  outline-offset: 4px;
}

.project-card.featured {
  border-color: rgba(244,162,45,0.3);
  background: linear-gradient(145deg, #fff, #fffcf5);
}
.project-card.featured::before { opacity: 1; }

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-emoji {
  font-size: 2.2rem;
  line-height: 1;
}

.project-ai-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(244,162,45,0.15), rgba(244,162,45,0.05));
  border: 1px solid rgba(244,162,45,0.4);
  color: var(--orange-dark);
  letter-spacing: 0.5px;
}

.project-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
}

.project-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(244,162,45,0.24);
  background: #0b0d0c;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.project-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.08));
  pointer-events: none;
}

.project-preview img,
.project-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-preview video {
  background: #0b0d0c;
}

.project-preview-logo {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(244,162,45,0.2), transparent 55%),
    linear-gradient(145deg, #102319, #07110d);
}

.project-preview-logo img {
  width: min(58%, 170px);
  height: min(70%, 150px);
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.28));
}

.project-card:hover .project-preview img,
.project-card:hover .project-preview video {
  transform: scale(1.03);
}

.project-card[data-project-id="zebra-hairdresser"] .project-preview img,
.project-card[data-project-id="ten-li-yad-platform"] .project-preview img,
.zebra-detail-page .project-page-slide img {
  filter: sepia(0.09) brightness(0.98) contrast(1.03) saturate(1.04);
}

.project-desc {
  font-size: 0.91rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: var(--bg-card);
  color: var(--green-mid);
  border-radius: 50px;
  padding: 0.2rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--orange-dark);
  font-size: 0.87rem;
  font-weight: 600;
  transition: color 0.2s;
}
.project-link:hover { color: var(--orange); }

.project-policy-link {
  font-size: 0.78rem;
  color: var(--text-xlight);
  transition: color 0.2s;
  text-decoration: underline;
  text-decoration-color: transparent;
}
.project-policy-link:hover {
  color: var(--text-light);
  text-decoration-color: currentColor;
}

body.modal-open {
  overflow: hidden;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.project-modal.open {
  display: flex;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 36, 27, 0.62);
  backdrop-filter: blur(10px);
}

.project-modal-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: min(82vh, 780px);
  overflow: auto;
  background: var(--bg-card2);
  border: 1px solid rgba(244,162,45,0.28);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(18, 36, 27, 0.28);
  padding: 2rem;
}

.project-modal-panel:focus {
  outline: none;
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--green-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

[dir='ltr'] .project-modal-close {
  right: 1rem;
  left: auto;
}

.project-modal-close:hover {
  color: var(--orange-dark);
  border-color: rgba(244,162,45,0.5);
  transform: scale(1.04);
}

.project-modal-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-inline-end: 3rem;
  margin-bottom: 1rem;
}

[dir='ltr'] .project-modal-head {
  padding-inline-end: 0;
  padding-inline-start: 3rem;
}

.project-modal-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
  flex: 0 0 auto;
}

.project-modal-kicker {
  margin: 0 0 0.2rem;
  color: var(--text-xlight);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-modal-title {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1.25;
}

.project-modal-short {
  margin: 0 0 1rem;
  color: var(--orange-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.project-modal-long {
  color: var(--text-light);
  font-size: 0.98rem;
  line-height: 1.85;
}

.project-modal-screenshots {
  margin-top: 0.85rem;
}

.project-media-section {
  margin: 1.4rem 0 1.5rem;
}

.project-media-section.is-hidden {
  display: none;
}

.project-modal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.project-modal-section-title {
  margin: 0 0 0.75rem;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 800;
}

.project-modal-section-head .project-modal-section-title {
  margin-bottom: 0;
}

.project-modal-counter {
  color: var(--text-xlight);
  font-size: 0.8rem;
  font-weight: 700;
}

.project-description-section {
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.project-shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
}

.project-shot img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #0b0d0c;
}

.project-shot figcaption {
  padding: 0.7rem 0.85rem;
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 600;
}

.project-carousel {
  position: relative;
}

.project-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  background: rgba(8, 20, 16, 0.72);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.project-carousel-btn:hover {
  transform: translateY(-50%) scale(1.06);
  background: var(--orange);
}

.project-carousel-btn.prev {
  right: 0.8rem;
}

.project-carousel-btn.next {
  left: 0.8rem;
}

[dir='ltr'] .project-carousel-btn.prev {
  right: auto;
  left: 0.8rem;
}

[dir='ltr'] .project-carousel-btn.next {
  right: 0.8rem;
  left: auto;
}

.project-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.project-carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(26,58,42,0.25);
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}

.project-carousel-dot.active {
  width: 26px;
  border-radius: 999px;
  background: var(--orange);
}

/* ===== Project Detail Pages ===== */
.project-detail-hero {
  padding: 8rem 2rem 3rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(244,162,45,0.13) 0%, transparent 70%),
    linear-gradient(160deg, #FDFAF5 0%, #f3ecd8 100%);
}

.project-detail-hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 3rem;
  align-items: center;
}

.project-detail-hero-inner > *,
.project-page-carousel,
.project-page-carousel-track {
  min-width: 0;
}

.project-detail-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(244,162,45,0.35);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: rgba(244,162,45,0.12);
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.project-detail-title {
  margin: 0 0 0.75rem;
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.project-detail-summary {
  margin: 0;
  color: var(--text-light);
  font-size: 1.08rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.project-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.4rem;
}

.project-page-carousel {
  position: relative;
}

.project-page-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 18px;
}

.project-page-carousel-track::-webkit-scrollbar {
  display: none;
}

.project-page-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  border: 1px solid rgba(244,162,45,0.24);
  border-radius: 18px;
  overflow: hidden;
  background: #0b0d0c;
  box-shadow: var(--shadow-lg);
}

.project-page-slide[hidden] {
  display: none;
}

.project-page-slide img,
.project-page-slide video {
  display: block;
  width: 100%;
  height: min(58vh, 520px);
  object-fit: contain;
}

.project-page-slide video {
  background: #0b0d0c;
}

.project-page-slide figcaption {
  padding: 0.8rem 1rem;
  color: rgba(255,255,255,0.86);
  background: #0b0d0c;
  font-size: 0.86rem;
  font-weight: 700;
}

.project-detail-body {
  padding: 4rem 2rem;
}

.project-detail-body.compact {
  padding: 3.2rem 2rem;
}

.project-detail-content {
  max-width: 880px;
  margin: 0 auto;
}

.project-detail-content h2 {
  margin: 0 0 1rem;
  color: var(--green-dark);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.project-detail-content p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.9;
}

.project-detail-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.project-detail-point {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card2);
  box-shadow: var(--shadow-sm);
}

.project-detail-point h3 {
  margin: 0 0 0.45rem;
  color: var(--green-dark);
  font-size: 1rem;
}

.project-detail-point p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.project-showcase-strip {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.7rem;
  padding: 1.1rem;
  border: 1px solid rgba(244,162,45,0.24);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #fffcf5);
  box-shadow: var(--shadow-sm);
}

.project-showcase-media {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 42%, rgba(244,162,45,0.2), transparent 58%),
    linear-gradient(145deg, #102319, #07110d);
}

.project-showcase-media img {
  width: min(62%, 170px);
  height: auto;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.28));
}

.project-showcase-copy span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.project-showcase-copy h3 {
  margin: 0 0 0.55rem;
  color: var(--green-dark);
  font-size: 1.2rem;
}

.project-showcase-copy p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
}

.project-page-carousel.single-slide .project-carousel-btn,
.project-page-carousel.single-slide .project-carousel-dots {
  display: none;
}

/* ===== יצירת קשר ===== */
#contact {
  background: linear-gradient(145deg, var(--green-dark), #0f2219);
  color: #fff;
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
#contact::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244,162,45,0.07), transparent 60%);
  pointer-events: none;
}

#contact .section-title { color: #fff; }
#contact .section-title::after { background: linear-gradient(90deg, var(--orange), transparent); }
#contact .section-desc { color: rgba(255,255,255,0.55); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
  position: relative;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--orange);
  font-weight: 700;
}
.contact-info p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.75rem;
  font-size: 0.97rem;
  line-height: 1.7;
}

.contact-links { display: flex; flex-direction: column; gap: 0.85rem; }

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.93rem;
  transition: color 0.2s;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.2s;
}
.contact-link-item:hover {
  color: var(--orange);
  background: rgba(244,162,45,0.08);
  border-color: rgba(244,162,45,0.2);
}
.contact-link-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.contact-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.contact-link-icon.brand-whatsapp { color: #25D366; }
.contact-link-icon.brand-chrome { color: #fbbc05; }
.contact-link-icon.brand-facebook { color: #1877F2; }

/* טופס */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: #fff;
  font-size: 0.93rem;
  font-family: inherit;
  direction: rtl;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255,255,255,0.09);
}
.form-group textarea { min-height: 110px; }

.form-msg {
  font-size: 0.87rem;
  margin-top: 0.3rem;
  display: none;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.form-msg.success { color: #7fff9a; background: rgba(127,255,154,0.08); display: block; }
.form-msg.error { color: #ffaaaa; background: rgba(255,100,100,0.08); display: block; }

/* ===== Footer ===== */
footer {
  background: #081410;
  color: rgba(255,255,255,0.45);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}
.footer-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  opacity: 0.6;
  filter: drop-shadow(0 0 8px var(--orange-glow));
}
footer p { font-size: 0.88rem; }
footer span { color: var(--orange); font-weight: 600; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.2s;
}
.footer-links a:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

/* ===== about-cards ===== */
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}

.about-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
}

.about-card-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 2px;
}

.about-card strong {
  display: block;
  font-size: 0.93rem;
  color: var(--green-dark);
  margin-bottom: 0.15rem;
}

.about-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== Hire / Services section ===== */
#hire {
  background: var(--bg-card);
}

.hire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

.hire-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.hire-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}

.hire-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hire-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.hire-card p {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.55;
}

.pricing-box {
  margin-top: 1.4rem;
  padding: 1.5rem;
  border: 1px solid rgba(244,162,45,0.32);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #fffcf5);
  box-shadow: var(--shadow-sm);
}

.pricing-copy {
  margin-bottom: 1rem;
}

.pricing-label {
  display: inline-flex;
  margin-bottom: 0.4rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(244,162,45,0.35);
  border-radius: 999px;
  background: rgba(244,162,45,0.12);
  color: var(--orange-dark);
  font-size: 0.74rem;
  font-weight: 800;
}

.pricing-copy h3 {
  margin-bottom: 0.35rem;
  color: var(--green-dark);
  font-size: 1.2rem;
}

.pricing-copy p,
.pricing-note {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.65;
}

.pricing-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.pricing-item {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card2);
}

.pricing-item span {
  display: block;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-item strong {
  display: block;
  color: var(--green-dark);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
}

.pricing-note {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.before-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(26,58,42,0.14);
  border-radius: 14px;
  background: var(--bg-card2);
  box-shadow: var(--shadow-sm);
}

.before-contact h3 {
  color: var(--green-dark);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.before-contact p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.65;
}

.before-contact-list {
  display: grid;
  gap: 0.65rem;
  list-style: none;
}

.before-contact-list li {
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fffcf5;
  color: var(--green-mid);
  font-size: 0.9rem;
  font-weight: 700;
}

.hire-cta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}




.hire-cta p {
  color: var(--text-light);
  font-size: 0.97rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== Beta Page ===== */
.beta-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--green-dark) 0%, #0d2219 100%);
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 5rem;
}

.beta-hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244,162,45,0.10), transparent 60%);
  pointer-events: none;
  animation: pulseGlow 5s ease-in-out infinite;
}

.beta-hero-inner {
  max-width: 620px;
  width: 100%;
  text-align: center;
  position: relative;
}

.beta-game-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 16px rgba(244,162,45,0.3));
  animation: float 4s ease-in-out infinite;
}

.beta-label {
  display: inline-block;
  background: rgba(244,162,45,0.15);
  border: 1px solid rgba(244,162,45,0.4);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.beta-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.beta-tagline {
  font-size: 1.05rem;
  color: var(--orange);
  font-style: italic;
  margin-bottom: 1rem;
}

.beta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.beta-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.beta-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.beta-step-num {
  width: 36px;
  height: 36px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.beta-step-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
  max-width: 90px;
}

.beta-step-arrow {
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.beta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-beta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--orange), #e8943a);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(244,162,45,0.4);
  text-decoration: none;
}

.btn-beta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(244,162,45,0.55);
}

.btn-icon {
  font-size: 0.9rem;
}

.btn-beta-outline {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

.btn-beta-outline:hover {
  color: var(--orange);
}

/* טופס בטא */
.beta-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.beta-form-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  flex-wrap: wrap;
}

.beta-form-row input {
  flex: 1;
  min-width: 140px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: #fff;
  font-size: 0.93rem;
  font-family: inherit;
  direction: rtl;
  transition: border-color 0.2s;
}

.beta-form-row input::placeholder { color: rgba(255,255,255,0.35); }
.beta-form-row input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255,255,255,0.1);
}

.beta-form-msg {
  font-size: 0.88rem;
  min-height: 1.2em;
  color: rgba(255,255,255,0.5);
}
.beta-form-msg.success { color: #7fff9a; }
.beta-form-msg.error   { color: #ffaaaa; }

.beta-android-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.3);
  color: #5dffa0;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
}

.beta-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

/* About / features section on beta page */
.beta-about-section {
  background: var(--bg);
  padding: 5.5rem 2rem;
}

.beta-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.beta-feature {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.beta-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}

.beta-feature-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.beta-feature h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.beta-feature p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ===== Privacy Policy Page ===== */
.policy-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
}
.policy-page h1 {
  font-size: 2rem;
  color: var(--green-dark);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.policy-page .policy-meta {
  font-size: 0.88rem;
  color: var(--text-xlight);
  margin-bottom: 2.5rem;
}
.policy-page h2 {
  font-size: 1.15rem;
  color: var(--green-dark);
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}
.policy-page p, .policy-page li {
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.policy-page ul { padding-right: 1.25rem; }
.policy-page a { color: var(--orange-dark); text-decoration: underline; }
.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--orange-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.policy-back:hover { color: var(--orange); }

/* ===== אנימציית כניסה ===== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 0;
    width: 100%;
    background: rgba(26, 58, 42, 0.97);
    backdrop-filter: blur(14px);
    padding: 1.25rem 2rem 1.75rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
  }
  .navbar-links.open { display: flex; }
  .hamburger { display: flex; }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .project-paths,
  .before-contact {
    grid-template-columns: 1fr;
  }
  .about-image-box { order: -1; }
  .about-logo { width: 150px; }

  section { padding: 4rem 1.5rem; }
  .hero { padding: 6rem 1.5rem 5rem; }
  .home-quick-nav a,
  .project-filter {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }
  .project-detail-hero { padding: 6.5rem 1rem 2.5rem; }
  .project-detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project-page-slide img { height: min(64vh, 460px); }
  .project-modal-panel { padding: 1.35rem; }
  .project-modal-head { padding-inline-end: 2.8rem; }
  .project-showcase-strip {
    grid-template-columns: 1fr;
  }
  .pricing-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-logo { width: 130px; height: 130px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
  .project-detail-title { font-size: 2rem; }


  .project-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.7rem;
  }
  .project-page-slide img { height: 390px; }
}


/* ===== Language Switcher ===== */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-right: 0.5rem;
}

[dir='ltr'] .lang-switcher {
  margin-right: 0;
  margin-left: 0.5rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.65);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
  line-height: 1.4;
  font-weight: 500;
}

.lang-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.lang-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-right: 0.25rem;
  }
  .lang-btn {
    padding: 2px 7px;
    font-size: 0.72rem;
  }
}



.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  z-index: 899;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d5e3db;
  border-radius: 50%;
  background: #fff;
  color: #083d1f;
  box-shadow: 0 4px 16px #1a3a2a22;
  cursor: pointer;
}
.back-to-top[hidden] { display: none; }
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top:hover { background: #eaf8ee; }
.back-to-top:focus-visible { outline: 3px solid #147a42; outline-offset: 4px; }


@media (max-width: 768px) {

  .back-to-top {
    right: max(.85rem, env(safe-area-inset-right, 0px));
    bottom: calc(.85rem + env(safe-area-inset-bottom, 0px));
  }
}

/* The floating WhatsApp icon stays circular while moving to an on-page link. */
.floating-whatsapp {
  position: fixed;
  right: max(.85rem, env(safe-area-inset-right, 0px));
  bottom: calc(.85rem + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  color: #083d1f;
  box-shadow: 0 6px 20px #25d36640;
}
.floating-whatsapp svg { width: 24px; height: 24px; fill: currentColor; }
.floating-whatsapp span { display: none; }
.floating-whatsapp:focus-visible { outline: 3px solid #147a42; outline-offset: 4px; }
.back-to-top {
  right: max(.85rem, env(safe-area-inset-right, 0px));
  bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
}
