/* ==========================================================================
   Aviad Shahar Tendler — Personal Brand Website
   Styles: Clean, minimal, premium consultancy aesthetic
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #FAFAFA;
  --text: #111111;
  --accent: #1A1A2E;
  --muted: #6B7280;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  display: block;
}

/* --- Utility --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Fade-in on scroll --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.shimmer-btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 6px;
}

.btn-primary:hover {
  background-color: #12121f;
}

.btn-nav {
  background-color: var(--accent);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 6px;
}

.btn-nav:hover {
  background-color: #12121f;
  color: var(--white) !important;
}

/* ==========================================================================
   Shimmer Buttons
   ========================================================================== */
.shimmer-btn {
  --shimmer-color: #ffffff;
  --shimmer-speed: 3s;
  --shimmer-bg: rgba(26, 26, 46, 1);
  --shimmer-radius: 100px;
  --shimmer-cut: 0.05em;

  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 36px;
  border-radius: var(--shimmer-radius);
  background: var(--shimmer-bg);
  color: var(--white);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.shimmer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.3);
}

.shimmer-btn:active {
  transform: translateY(1px);
}

/* Nav size variant */
.shimmer-btn--nav {
  padding: 10px 24px;
  font-size: 0.9rem;
  isolation: isolate;
  will-change: transform;
}

.shimmer-btn--nav .shimmer-btn__label {
  color: #fff;
}

/* Large variant */
.shimmer-btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
}

/* Spark container — the rotating shimmer border */
.shimmer-btn__spark {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: visible;
  filter: blur(2px);
  container-type: size;
}

.shimmer-btn__spark-inner {
  position: absolute;
  inset: 0;
  height: 100cqh;
  aspect-ratio: 1;
  border-radius: 0;
  animation: shimmer-slide var(--shimmer-speed) ease-in-out infinite alternate;
}

.shimmer-btn__spark-inner::before {
  content: '';
  position: absolute;
  inset: -100%;
  width: auto;
  height: auto;
  background: conic-gradient(
    from 225deg,
    transparent 0deg,
    var(--shimmer-color) 90deg,
    transparent 90deg
  );
  animation: spin-around calc(var(--shimmer-speed) * 2) linear infinite;
}

/* Button label text */
.shimmer-btn__label {
  position: relative;
  z-index: 1;
}

/* Inner highlight / glow */
.shimmer-btn__highlight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--shimmer-radius);
  box-shadow: inset 0 -8px 10px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.3s ease-in-out;
  pointer-events: none;
}

.shimmer-btn:hover .shimmer-btn__highlight {
  box-shadow: inset 0 -6px 10px rgba(255, 255, 255, 0.24);
}

.shimmer-btn:active .shimmer-btn__highlight {
  box-shadow: inset 0 -10px 10px rgba(255, 255, 255, 0.24);
}

/* Backdrop — fills the inside behind the text, leaving the shimmer at the edge */
.shimmer-btn__backdrop {
  position: absolute;
  z-index: -2;
  inset: var(--shimmer-cut);
  border-radius: var(--shimmer-radius);
  background: var(--shimmer-bg);
}

/* Shimmer keyframes */
@keyframes shimmer-slide {
  to {
    transform: translate(calc(100cqw - 100%), 0);
  }
}

@keyframes spin-around {
  0% {
    transform: translateZ(0) rotate(0deg);
  }
  15%, 35% {
    transform: translateZ(0) rotate(90deg);
  }
  65%, 85% {
    transform: translateZ(0) rotate(270deg);
  }
  100% {
    transform: translateZ(0) rotate(360deg);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* --- Lamp glow effect (adapted from React component) --- */
.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 350px;
  z-index: 0;
  pointer-events: none;
}

/* Main soft glow orb */
.hero-glow-main {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(56, 140, 220, 0.3), rgba(120, 80, 220, 0.15), transparent 70%);
  filter: blur(50px);
  animation: glowPulse 4s ease-in-out infinite alternate;
}

/* Bright center lamp */
.hero-glow-lamp {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 160, 255, 0.5), rgba(140, 100, 240, 0.3), transparent 70%);
  filter: blur(35px);
  animation: lampExpand 0.8s ease-in-out 0.3s forwards;
}

/* Horizontal light line */
.hero-glow-line {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(100, 160, 255, 0.6), rgba(140, 100, 240, 0.5), rgba(100, 160, 255, 0.6), transparent);
  animation: lineExpand 0.8s ease-in-out 0.3s forwards;
}

/* Light cone containers */
.hero-glow-cone {
  position: absolute;
  top: 0;
  height: 280px;
  width: 0;
  overflow: hidden;
  animation: coneExpand 0.8s ease-in-out 0.3s forwards;
  opacity: 0;
}

.hero-glow-cone-left {
  right: 50%;
  background: conic-gradient(from 70deg at 100% 0%, rgba(100, 160, 255, 0.18), rgba(140, 100, 240, 0.08), transparent 40%);
}

.hero-glow-cone-right {
  left: 50%;
  background: conic-gradient(from 250deg at 0% 0%, transparent 60%, rgba(140, 100, 240, 0.08), rgba(100, 160, 255, 0.18));
}

/* Fade-out masks */
.hero-cone-mask-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 2;
}

.hero-cone-mask-side {
  position: absolute;
  bottom: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
}

.hero-glow-cone-left .hero-cone-mask-side {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.hero-glow-cone-right .hero-cone-mask-side {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* Blur overlay at very top */
.hero-glow-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
  opacity: 0.5;
}

@keyframes lampExpand {
  to { width: 220px; }
}

@keyframes lineExpand {
  to { width: 600px; }
}

@keyframes coneExpand {
  to { width: 450px; opacity: 1; }
}

@keyframes glowPulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* --- Hero content layout --- */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo-img {
  width: 300px;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.hero-photo-img:hover {
  filter: grayscale(0%);
}

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* --- About photo --- */
.about-layout {
  margin-bottom: 32px;
}

.about-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.about-photo:hover {
  filter: grayscale(0%);
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section {
  padding: 100px 0;
}

.section-alt {
  background-color: var(--white);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ==========================================================================
   Services
   ========================================================================== */
.service-main {
  margin-bottom: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  transition: box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.service-card-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.service-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-content {
  max-width: 680px;
  margin-bottom: 48px;
}

.about-text {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-text:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 24px;
  flex: 1;
}

.testimonial-quote strong {
  font-weight: 600;
  color: var(--accent);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.testimonial-position {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 3px 0 0;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
  max-width: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group-full {
  grid-column: 1 / -1;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.required {
  color: var(--accent);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s ease;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #B0B6BF;
}

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

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: auto;
}

.form-status {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.4em;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #dc2626;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: column;
    gap: 24px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 72px;
  }

  .hero-content {
    flex-direction: column-reverse;
    gap: 32px;
    text-align: center;
  }

  .hero-photo-img {
    width: 220px;
    height: 280px;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-headline {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .service-card {
    padding: 24px;
  }

  .nav-inner {
    height: 56px;
  }

  .nav-links {
    top: 56px;
  }
}
