/* ============================================
   Rotem Iluz Portfolio — Style System
   ronasit.com inspired, light theme
   ============================================ */

/* ----- 1. Custom Properties ----- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F7F8;
  --color-text: #03030F;
  --color-text-secondary: #6B7280;
  --color-accent: #2563EB;
  --color-accent-hover: #1D4ED8;
  --color-border: #E5E7EB;
  --color-card-bg: #FFFFFF;
  --color-success: #16A34A;
  --color-error: #DC2626;

  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;

  --container-max: 1320px;
  --container-padding: 24px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --transition: 0.3s ease;
}

/* ----- 1b. Custom Cursor ----- */
.cursor {
  display: none;
}

.cursor--hover {
  display: none;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
  display: none;
}

@media (min-width: 769px) {
  .cursor-dot { display: block; }
}

.cursor-dot--hover {
  width: 8px;
  height: 8px;
  background: var(--color-accent-hover);
}

/* ----- 1c. Scroll Progress Bar ----- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #7C3AED);
  z-index: 10001;
  width: 0%;
  transition: width 0.05s linear;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.5s ease; }
a:hover { color: var(--color-accent-hover); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }

/* ----- 3. Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: var(--space-3); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { color: var(--color-text-secondary); line-height: 1.7; }
p + p { margin-top: var(--space-2); }

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

/* ----- 4. Layout ----- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 120px 0;
}

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

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-8);
}

.section__header p {
  margin-top: var(--space-2);
}

/* ----- 5. Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-text);
  color: #fff;
  border-radius: 30px;
}

.btn--primary:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn--sm {
  padding: 12px 28px;
  font-size: 0.9rem;
}

.btn--magnetic {
  transition: transform 0.15s ease;
}

/* ----- 6. Header / Navigation ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10003;
  padding: 32px 0;
  transition: all 0.5s ease;
  background: transparent;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header__inner .btn {
  justify-self: end;
}

.header__inner .hamburger {
  justify-self: end;
}

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

.logo:hover { color: var(--color-text); }

.nav__list {
  display: flex;
  gap: var(--space-6);
}

.nav__list a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.5s ease;
}

.nav__list a::after {
  display: none;
}

.nav__list a:hover,
.nav__list a.active {
  color: var(--color-text-secondary);
}

.header .btn { margin-left: 0; }

/* Wide Mega Dropdown Panel */
.has-dropdown {
  position: static;
}

.has-mega > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 4px;
  opacity: 0.4;
  transition: transform var(--transition);
  vertical-align: middle;
}

/* arrow rotation handled by .mega-open class */

.nav__mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10004;
  pointer-events: none;
  padding: var(--space-5) 0 var(--space-6);
}

/* JS-controlled open state */
.has-mega.mega-open .nav__mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.has-mega.mega-open > a::after {
  transform: rotate(180deg);
}

.nav__mega-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
}

.nav__mega-all {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  transition: all var(--transition);
}

.nav__mega-all:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.nav__mega-all::after { display: none !important; }

.nav__mega-close {
  position: absolute;
  top: 0;
  right: var(--container-padding);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-text);
  background: var(--color-bg);
  cursor: pointer;
  transition: all var(--transition);
}

.nav__mega-close:hover {
  border-color: var(--color-text);
}

.nav__mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.nav__mega-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.nav__mega-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

.nav__mega-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.nav__mega-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav__mega-col a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav__mega-col a:hover {
  color: var(--color-text);
}

.nav__mega-col a::after { display: none !important; }

/* Close button removes mega-open class via JS */

/* Hamburger — mobile only */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 10003;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ----- 7. Hero ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: clamp(96px, 16vh, 140px);
  padding-bottom: clamp(120px, 18vh, 180px);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.04;
  pointer-events: none;
}

.hero__bg-shape--1 {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  top: -100px;
  right: -150px;
}

.hero__bg-shape--2 {
  width: 350px;
  height: 350px;
  background: #7C3AED;
  bottom: -50px;
  left: -100px;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__title {
  margin-bottom: var(--space-6);
  font-weight: 600;
  font-size: clamp(3rem, 6.5vw, 104px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero__title span {
  display: inline-block;
  margin-right: 0.15em;
  cursor: default;
}

.hero__title span:last-child {
  margin-right: 0;
}

/* Decorative underlines — all gray, matching ronasit */
.underline-zigzag,
.underline-dashed,
.underline-wavy {
  position: relative;
  padding-bottom: 18px;
}

.underline-zigzag::after,
.underline-dashed::after,
.underline-wavy::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  background-repeat: repeat-x;
  background-position: bottom left;
  transition: width 0.6s ease;
}

.underline-zigzag::after {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='8' viewBox='0 0 40 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4L10 0L20 4L30 8L40 4' stroke='%23D1D5DB' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-size: 40px 10px;
}

.underline-dashed::after {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='2' viewBox='0 0 24 2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='1' x2='14' y2='1' stroke='%23D1D5DB' stroke-width='2' stroke-dasharray='10 6'/%3E%3C/svg%3E");
  background-size: 24px 2px;
}

.underline-wavy::after {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='8' viewBox='0 0 40 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4C5 0 10 0 15 4C20 8 25 8 30 4C35 0 40 0 40 4' stroke='%23D1D5DB' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-size: 40px 10px;
}

.underline-zigzag:hover::after,
.underline-zigzag.touch-hover::after {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='8' viewBox='0 0 40 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4L10 0L20 4L30 8L40 4' stroke='%2303030F' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  width: 100%;
  animation: underlineFlow 1.2s linear infinite;
}

.underline-wavy:hover::after,
.underline-wavy.touch-hover::after {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='8' viewBox='0 0 40 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4C5 0 10 0 15 4C20 8 25 8 30 4C35 0 40 0 40 4' stroke='%2303030F' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  width: 100%;
  animation: underlineFlow 1.2s linear infinite;
}

.underline-dashed:hover::after,
.underline-dashed.touch-hover::after {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='2' viewBox='0 0 24 2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='1' x2='14' y2='1' stroke='%2303030F' stroke-width='2' stroke-dasharray='10 6'/%3E%3C/svg%3E");
  width: 100%;
  animation: underlineFlowDashed 1s linear infinite;
}

@keyframes underlineFlow {
  from { background-position: bottom 0 left 0; }
  to { background-position: bottom 0 left 40px; }
}

@keyframes underlineFlowDashed {
  from { background-position: bottom 0 left 0; }
  to { background-position: bottom 0 left 24px; }
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 560px;
  margin: 0 auto var(--space-5);
}

.hero__cta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

/* Fixed Social Icons Bar — left side */
.social-bar {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.social-bar a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--color-text);
  transition: all var(--transition);
}

.social-bar a:hover {
  background: var(--color-accent);
  color: #fff;
  transform: scale(1.1);
}

.social-bar svg {
  width: 16px;
  height: 16px;
}

/* Circular rotating showreel element */
.hero__showreel {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  z-index: 2;
}

.hero__showreel-text {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotateText 12s linear infinite;
}

.hero__showreel-text svg {
  width: 100%;
  height: 100%;
}

.hero__showreel-text text {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  fill: var(--color-text);
}

.hero__showreel-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: all var(--transition);
}

.hero__showreel:hover .hero__showreel-icon {
  transform: translate(-50%, -50%) scale(1.15);
}

.hero__showreel-icon svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: var(--color-text);
}

@keyframes rotateText {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Scroll indicator — removed (ronasit style) */

/* ----- 7b. Intro Section ----- */
.intro {
  padding: 120px 0;
  border-bottom: 1px solid var(--color-border);
}

.intro__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.intro__text h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
}

.intro__text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: var(--space-3);
}

.intro__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.intro__highlight {
  padding: var(--space-3);
  border-left: 3px solid var(--color-accent);
}

.intro__highlight-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.intro__highlight-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* ----- 7c. Use Cases ----- */
.use-cases {
  padding: 120px 0;
}

.use-case {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.use-case:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.use-case__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--color-accent), #7C3AED);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.use-case__icon svg {
  width: 24px;
  height: 24px;
}

.use-case h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.use-case p {
  font-size: 0.9rem;
}

/* ----- 7d. Reviews / Social Proof ----- */
.reviews-bar {
  padding: var(--space-6) 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.reviews-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.review-platform {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.review-platform__name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}

.review-platform__rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-platform__stars {
  display: flex;
  gap: 1px;
  color: #F59E0B;
}

.review-platform__stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.review-platform__score {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.review-platform__count {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* ----- 8. About Section ----- */
.about__text p {
  font-size: 1.05rem;
  margin-bottom: var(--space-3);
}

.about__text .btn {
  margin-top: var(--space-2);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.about__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__image img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

.stat-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-card__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-card__label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}

/* ----- 9. Why Me Cards ----- */
.why-card {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

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

.why-card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  color: var(--color-accent);
}

.why-card__icon svg {
  width: 28px;
  height: 28px;
}

.why-card h3 {
  margin-bottom: var(--space-1);
}

.why-card p {
  font-size: 0.95rem;
}

/* ----- 10. Services (Numbered) ----- */
.service {
  margin-bottom: var(--space-12);
}

.service:last-child {
  margin-bottom: 0;
}

.service__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.service__number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-bg-alt);
  line-height: 1;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1.5px var(--color-border);
  min-width: 90px;
}

.service__info h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
}

.service__info p {
  font-size: 0.95rem;
}

.service .grid--3 {
  counter-reset: service-card;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  padding-left: calc(var(--space-4) + 8px);
  transition: all var(--transition);
  counter-increment: service-card;
}

.service-card::before {
  content: counter(service-card, decimal-leading-zero);
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.15;
  line-height: 1;
  transition: opacity var(--transition);
  pointer-events: none;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.service-card:hover {
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card:hover::before {
  opacity: 0.35;
}

.service-card:hover::after {
  transform: scaleY(1);
}

.service-card:hover h4 {
  color: var(--color-accent);
}

.service-card h4 {
  margin-bottom: var(--space-1);
  transition: color var(--transition);
}

.service-card p {
  font-size: 0.9rem;
}

/* ----- 11. Portfolio ----- */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-8);
}

.project:last-child {
  margin-bottom: 0;
}

.project:nth-child(even) .project__image {
  order: 2;
}

.project__image {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
  text-decoration: none;
  color: inherit;
}

.project__image:hover {
  transform: scale(1.02);
}

.project__image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.project__tags {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.project__tags span {
  padding: 4px 12px;
  background: var(--color-bg-alt);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.project__info h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
}

.project__info p {
  margin-bottom: var(--space-2);
}

.project__tech {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.project__tech strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ----- 11b. Technologies ----- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.tech-category h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.tech-tag {
  padding: 8px 18px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition);
}

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

/* ----- 12. Experience Timeline ----- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  padding-left: var(--space-5);
  padding-bottom: var(--space-5);
  position: relative;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline__date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.timeline__item h4 {
  margin-bottom: 4px;
}

.timeline__item p {
  font-size: 0.9rem;
}

/* ----- 13. Testimonials ----- */
.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-2);
  color: #F59E0B;
}

.testimonial__stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial__quote {
  font-size: 1rem;
  color: var(--color-text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1rem;
}

.testimonial__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.testimonial__role {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* ----- 14. Stats Bar ----- */
.stats-bar {
  background: var(--color-text);
  padding: var(--space-10) 0;
}

.stats-bar .grid {
  text-align: center;
}

.stat__number {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-1);
}

/* ----- 15. FAQ Accordion ----- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion__item {
  border-bottom: 1px solid var(--color-border);
}

.accordion__item summary {
  padding: var(--space-3) 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: var(--color-text);
  transition: color var(--transition);
}

.accordion__item summary::-webkit-details-marker { display: none; }

.accordion__item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  transition: transform var(--transition);
}

.accordion__item[open] summary::after {
  content: '\2212';
}

.accordion__item summary:hover {
  color: var(--color-accent);
}

.accordion__content {
  padding-bottom: var(--space-3);
}

.accordion__content p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ----- 16. Contact ----- */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.contact__item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.contact__item-icon svg {
  width: 20px;
  height: 20px;
}

.contact__item-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact__item-value {
  font-weight: 500;
  color: var(--color-text);
  margin-top: 2px;
}

.contact__item-value a {
  color: var(--color-text);
}

.contact__item-value a:hover {
  color: var(--color-accent);
}

/* Form */
.contact__form {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.contact__form h3 {
  margin-bottom: var(--space-3);
}

.field {
  margin-bottom: var(--space-2);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
  outline: none;
}

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

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

.field--error input,
.field--error textarea {
  border-color: var(--color-error);
}

.form-msg {
  display: none;
  padding: var(--space-2);
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: var(--space-2);
}

.form-msg--success {
  background: #ECFDF5;
  color: var(--color-success);
}

.form-msg--error {
  background: #FEF2F2;
  color: var(--color-error);
}

/* ----- 17. Footer ----- */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-10) 0 var(--space-4);
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer a:hover {
  color: #fff;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer__social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-8);
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ----- 18. Scroll Reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Reveal variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

/* Auto-stagger: any direct child of .stagger-children animates in */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-children > .revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ----- 19. Portfolio Detail Page ----- */
.project-hero {
  padding: 160px 0 var(--space-8);
  background: var(--color-bg-alt);
}

.project-hero h1 {
  margin-bottom: var(--space-2);
}

.project-hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
}

.project-meta {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
}

.project-meta .grid > div {
  text-align: center;
}

.project-meta .label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  font-weight: 600;
  margin-bottom: 4px;
}

.project-meta .value {
  font-weight: 600;
  color: var(--color-text);
}

.project-meta a {
  font-weight: 600;
}

.project-showcase {
  padding: var(--space-8) 0;
}

.project-showcase img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.project-details {
  padding: var(--space-8) 0;
}

.project-details h2 {
  font-size: 1.5rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.tech-list li {
  padding: 8px 16px;
  background: var(--color-bg-alt);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.project-nav {
  display: flex;
  justify-content: space-between;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border);
}

.project-nav a {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ----- 20. Media Queries ----- */

/* Tablet */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Cursor + dot hidden on mobile */
  .cursor, .cursor-dot { display: none !important; }

  /* Progress bar thinner on mobile */
  .progress-bar { height: 2px; }

  :root {
    --container-padding: 16px;
  }

  .section {
    padding: var(--space-8) 0;
  }

  /* Header — mobile layout */
  .header {
    padding: 16px 0;
  }

  .header--scrolled {
    padding: 10px 0;
  }

  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.1rem;
  }

  /* Nav — fullscreen overlay on mobile */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 10002;
  }

  .nav--open {
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }

  .nav__list a {
    font-size: 1.5rem;
  }

  /* Mega dropdowns hidden on mobile */
  .nav__mega { display: none !important; }
  .has-mega > a::after { display: none; }

  .hamburger { display: flex; }

  /* CTA button — show on mobile like ronasit */
  .header .btn--primary {
    display: inline-flex;
    padding: 10px 22px;
    font-size: 0.82rem;
  }

  /* Intro — larger text on mobile like ronasit */
  .intro { padding: var(--space-6) 0; }
  .intro__content { grid-template-columns: 1fr; gap: var(--space-4); }
  .intro__highlights { grid-template-columns: 1fr 1fr; }
  .intro__text h2 { font-size: 1.5rem; }
  .intro__text p { font-size: 1.35rem; line-height: 1.5; }

  /* Use cases — bigger titles */
  .use-cases { padding: var(--space-6) 0; }
  .use-cases .grid--3 { grid-template-columns: 1fr; }
  .use-case h4 { font-size: 1.15rem; }

  /* Reviews bar */
  .reviews-bar { padding: var(--space-4) 0; }
  .reviews-bar .container {
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
  }

  /* Hero — left-align on mobile like ronasit */
  .hero .container { text-align: left; padding-left: 16px; padding-right: 16px; width: 100%; }
  .hero__showreel {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: var(--space-6) auto 0;
    width: 120px;
    height: 120px;
    display: block;
    align-self: center;
  }
  .social-bar { display: none; }
  .hero__bg-shape { display: none; }

  /* Grids */
  .grid--2,
  .grid--3,
  .grid--4,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero {
    padding-top: 120px;
    min-height: 100svh;
    min-height: 100vh;
    padding-bottom: var(--space-8);
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .hero__title {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  .hero__title span {
    display: block;
    width: fit-content;
    margin-right: 0;
    margin-bottom: var(--space-3);
  }

  /* Section headers */
  .section__header {
    margin-bottom: var(--space-5);
  }

  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }

  /* Services on mobile */
  .service { margin-bottom: var(--space-6); }
  .service__header { flex-direction: column; gap: var(--space-1); }
  .service__number { font-size: 2.5rem; min-width: auto; }
  .service__info h3 { font-size: 1.25rem; }

  /* Projects on mobile */
  .project__info h3 { font-size: 1.25rem; }
  .project__tags { gap: 4px; }
  .project__tags span { font-size: 0.7rem; padding: 3px 8px; }

  /* Why cards */
  .why-card { padding: var(--space-3); }

  /* Contact */
  .contact__form { padding: var(--space-3); }

  /* Footer social icons fix */
  .footer__social a {
    border-color: rgba(255,255,255,0.3);
  }

  /* Projects */
  .project {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .project:nth-child(even) .project__image {
    order: 0;
  }

  /* Stats bar */
  .stats-bar .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .stat__number {
    font-size: 2.25rem;
  }

  /* Footer */
  .footer .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  /* Timeline */
  .timeline { max-width: 100%; }

  /* Portfolio detail */
  .project-meta .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .project-details .grid--2 {
    gap: var(--space-6);
  }
}

/* Mobile small */
@media (max-width: 480px) {
  .about__stats {
    grid-template-columns: 1fr;
  }

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

  .stats-bar .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer .grid--4 {
    grid-template-columns: 1fr;
  }

  .service__header {
    flex-direction: column;
  }

  .service__number {
    font-size: 2.5rem;
  }

  .project__info h3 {
    font-size: 1.25rem;
  }

  .why-card {
    padding: var(--space-3);
  }

  .contact__form {
    padding: var(--space-3);
  }

  .review-platform__name {
    font-size: 0.95rem;
  }

  .service__header {
    flex-direction: column;
  }

  .service__number {
    font-size: 3rem;
  }
}

/* ============================================
   Premium Showcase — Design Touches
   ============================================ */

/* ----- 20a. Noise Texture Overlay ----- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ----- 20b. Marquee Strip ----- */
.marquee {
  background: var(--color-text);
  color: #fff;
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

.marquee__item {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.marquee__sep {
  color: var(--color-accent);
  font-size: 0.7rem;
  flex-shrink: 0;
  opacity: 0.7;
}

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

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* ----- 20c. Magnetic Buttons ----- */
.btn--primary {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              background var(--transition),
              box-shadow var(--transition);
  will-change: transform;
}

/* ----- 20d. Project Hover Overlay ----- */
.project__image {
  position: relative;
  cursor: pointer;
}

.project__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 3, 15, 0.7) 0%, rgba(37, 99, 235, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  pointer-events: none;
}

.project__image::after {
  content: "View Project →";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}

.project__image:hover::before {
  opacity: 1;
}

.project__image:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* ----- 20e. Cursor Label (View) ----- */
.cursor-dot {
  display: none;
}

@media (min-width: 769px) {
  .cursor-dot { display: flex; }
}

.cursor-dot {
  align-items: center;
  justify-content: center;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.25s ease,
              border-radius 0.25s ease;
}

.cursor-dot__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.cursor-dot--label {
  width: 72px !important;
  height: 72px !important;
  background: var(--color-accent) !important;
  mix-blend-mode: normal;
}

.cursor-dot--label .cursor-dot__label {
  opacity: 1;
  transform: scale(1);
}

/* ----- 20f. SVG Header Underline (auto-injected) ----- */
.section__header {
  position: relative;
}

.header-underline {
  display: block;
  margin: 16px auto 0;
  width: 110px;
  height: 14px;
  overflow: visible;
}

.header-underline path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
}

.section__header.revealed .header-underline path {
  stroke-dashoffset: 0;
}

/* ----- 20g. Reduced Motion Overrides ----- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none !important;
  }

  .btn--primary {
    transform: none !important;
  }

  .header-underline path {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .noise {
    display: none;
  }
}

/* ----- Mobile: hide cursor label, keep marquee + overlay ----- */
@media (max-width: 768px) {
  .marquee {
    padding: 16px 0;
  }

  .marquee__item {
    font-size: 0.75rem;
  }

  .project__image::after {
    font-size: 0.95rem;
  }
}
