/* =====================================================
   יהונתן גליק | Personal Brand
   Dark Modern: #0f0f23 + Indigo #6366f1 + Sky #38bdf8
===================================================== */

:root {
  --bg: #0f0f23;
  --bg2: #16163a;
  --bg3: #1e1e4a;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --accent: #38bdf8;
  --accent-light: #7dd3fc;
  --white: #ffffff;
  --text: rgba(255,255,255,0.9);
  --text-muted: rgba(255,255,255,0.55);
  --border: rgba(255,255,255,0.08);
  --card-bg: rgba(255,255,255,0.04);
  --card-hover: rgba(255,255,255,0.08);
  --shadow: 0 4px 24px rgba(99,102,241,0.15);
  --shadow-lg: 0 12px 48px rgba(99,102,241,0.25);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.3s ease;
  --container: 1140px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Heebo', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}

ul, ul li { list-style: none !important; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== GLOW BG ===== */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
#site-header.scrolled {
  background: rgba(15,15,35,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo { text-decoration: none; }
.logo-name {
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover { color: var(--white); background: var(--card-bg); }
.cta-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 700;
}
.cta-nav:hover { background: var(--primary-light); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 998; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.35);
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 480px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Heebo', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); }
.btn-accent { background: var(--accent); color: #0f0f23; }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-full { width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.hidden { display: none !important; }

/* HERO VISUAL */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-main {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.hero-card-main::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99,102,241,0.4), rgba(56,189,248,0.2), transparent);
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.card-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}
.card-name { font-weight: 700; font-size: 0.95rem; color: var(--white); }
.card-sub { font-size: 0.78rem; color: var(--text-muted); }

.card-site {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-site-name { font-size: 0.88rem; font-weight: 600; color: var(--white); }
.card-site-url { font-size: 0.75rem; color: var(--accent); }
.card-site-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.card-time {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.card-time strong { color: var(--accent); }

.floating-badge {
  position: absolute;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}
.badge-1 { top: -20px; left: -30px; animation: float1 4s ease-in-out infinite; }
.badge-2 { bottom: -20px; right: -30px; animation: float2 4s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* ===== STATS ===== */
.stats-row {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 900; color: var(--white); }
.stat-suffix { color: var(--primary-light); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); }

/* ===== SECTION ===== */
section { position: relative; z-index: 1; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  background: rgba(99,102,241,0.12);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-header { margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 520px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ===== HOW IT WORKS ===== */
.how { padding: 100px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.step-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}
.step-card:hover { background: var(--card-hover); transform: translateY(-4px); border-color: rgba(99,102,241,0.3); }
.step-card:hover::after { transform: scaleX(1); }

.step-num {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ===== PORTFOLIO ===== */
.portfolio { padding: 100px 0; background: rgba(255,255,255,0.01); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.portfolio-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.3); box-shadow: var(--shadow-lg); }

.portfolio-preview {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.portfolio-preview-amit { background: linear-gradient(135deg, #133d3d, #1d5858); }
.portfolio-preview-yifat { background: linear-gradient(135deg, #4d1f2c, #6B2D3E); }

.portfolio-preview-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
  text-align: center;
  direction: rtl;
}
.portfolio-preview-sub { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

.portfolio-info { padding: 24px; }
.portfolio-info h3 { font-size: 1.05rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.portfolio-info p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 14px; }
.portfolio-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(99,102,241,0.15);
  color: var(--primary-light);
  border: 1px solid rgba(99,102,241,0.25);
}

/* ===== ABOUT ===== */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900; color: var(--white); margin-bottom: 20px; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.about-text strong { color: var(--white); }

.skills-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--primary-light);
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.about-feature:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(99,102,241,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.feature-title { font-weight: 700; color: var(--white); margin-bottom: 4px; font-size: 0.95rem; }
.feature-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; }
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-inner::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.contact-inner h2 { font-size: 2rem; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.contact-inner > p { color: var(--text-muted); margin-bottom: 36px; }

.contact-form { text-align: right; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 7px; }
.form-group input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Heebo', sans-serif;
  font-size: 0.97rem;
  color: var(--white);
  outline: none;
  direction: rtl;
  transition: var(--transition);
}
.form-group input::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus { border-color: var(--primary); background: rgba(99,102,241,0.08); }
.form-group input.error { border-color: #f87171; }

.success-message { text-align: center; padding: 32px 0; }
.success-icon { font-size: 3rem; margin-bottom: 12px; }
.success-message strong { display: block; font-size: 1.2rem; color: var(--white); margin-bottom: 6px; }
.success-message p { color: var(--text-muted); }

.contact-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--text-muted); font-size: 0.82rem; }
.contact-divider::before, .contact-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.contact-alts { display: flex; gap: 12px; justify-content: center; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer strong { color: var(--white); }

/* ===== WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px; left: 28px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }
.whatsapp-float::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.35);
  animation: pulse-wa 2s infinite;
}
@keyframes pulse-wa { 0%{transform:scale(1);opacity:1} 100%{transform:scale(1.5);opacity:0} }

/* ===== TYPING CURSOR ===== */
.typing-cursor::after {
  content: '|';
  animation: blink-cursor 0.8s infinite;
  color: var(--accent);
}
@keyframes blink-cursor { 0%,100%{opacity:1} 50%{opacity:0} }

/* ===== GRADIENT BORDER PULSE ===== */
@keyframes border-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
  50% { box-shadow: 0 0 24px 4px rgba(99,102,241,0.3); }
}
.hero-card-main { animation: border-glow 3s ease-in-out infinite; }

/* ===== PARTICLE DOTS ===== */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
}
@keyframes particle-float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) translateX(40px); opacity: 0; }
}

/* ===== SHIMMER ON CARDS ===== */
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: left 0.6s ease;
}
.step-card:hover::before { left: 150%; }

/* ===== COUNTER GLOW ===== */
.stat-number {
  text-shadow: 0 0 20px rgba(99,102,241,0.4);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  animation: scroll-bounce 2s ease-in-out infinite;
}
.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}
@keyframes scroll-bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ===== ANIMATIONS ===== */
.fade-in, .fade-in-left, .fade-in-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in { transform: translateY(28px); }
.fade-in-left { transform: translateX(36px); }
.fade-in-right { transform: translateX(-36px); }
.fade-in.visible, .fade-in-left.visible, .fade-in-right.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .steps-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  nav { display: none; }
  .hamburger { display: flex; }
  #nav-links {
    position: fixed; top: 0; right: -100%;
    width: min(300px, 85vw); height: 100vh;
    background: var(--bg2);
    display: flex; flex-direction: column;
    padding: 90px 28px 40px; gap: 6px;
    transition: right 0.35s ease; z-index: 999;
    border-left: 1px solid var(--border);
  }
  #nav-links.open { right: 0; }
  #nav-links .nav-link { font-size: 1.05rem; padding: 12px 14px; border-radius: var(--radius); }
  .stats-row { gap: 28px; justify-content: center; }
}
@media (max-width: 600px) {
  .hero-cta { flex-direction: column; }
  .contact-inner { padding: 36px 20px; }
  .contact-alts { flex-direction: column; }
  .hero-card-main { max-width: 100%; }
  .badge-1, .badge-2 { display: none; }
}
