/*
Theme Name: G.MEDIA Agency
Description: אתר תדמית לסוכנות G.MEDIA, בסגנון ארקייד רטרו, נבנה בקוד מותאם אישית
Author: G.MEDIA
Version: 1.0
*/

:root {
  --bg: #0a0a0a;
  --bg-2: #151515;
  --white: #f4f2ea;
  --grey: #7a7a7a;
  --yellow: #ffde59;
  --border: #f4f2ea;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html[dir="rtl"] body { direction: rtl; }
html[dir="ltr"] body { direction: ltr; }

body {
  font-family: 'Rubik', 'Arial Hebrew', Arial, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* קו סריקה עדין בסגנון מסך CRT ישן */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 200;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
section { padding: 6.5rem 1.5rem; max-width: 1200px; margin: 0 auto; position: relative; text-align: start; }

.pixel { font-family: 'Press Start 2P', monospace; }

[lang-el] { display: none; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* קו הפרדה מרובע בין סקציות */
.pixel-rule {
  max-width: 1200px;
  margin: 0 auto;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, transparent 10px 20px);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.8rem;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--white);
}
.nav-logo { height: 30px; filter: invert(1); image-rendering: pixelated; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-toggle {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  border: 2px solid var(--white);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  background: transparent;
  color: var(--white);
}
.lang-toggle:hover { background: var(--white); color: #0a0a0a; }
.nav-cta {
  background: var(--yellow);
  color: #0a0a0a;
  font-weight: 800;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  border: 2px solid var(--white);
  box-shadow: 4px 4px 0 var(--white);
  transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--white); }

/* ── HERO: איור פיקסל-ארט + טקסט על השמיים ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: url('assets/hero-scene.jpg');
  background-size: cover;
  background-position: left center;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.75) 100%);
  pointer-events: none;
}
/* סימני $ שקופצים מעל ארגז הבננות, כדי לרמז: בננות = תוצאות/כסף שהסוכנות מייצרת */
.hero-dollar {
  position: absolute;
  z-index: 1;
  font-family: 'Press Start 2P', monospace;
  color: var(--yellow);
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
  font-size: 1.4rem;
  opacity: 0;
  animation: dollar-pop 3.6s ease-in-out infinite;
  pointer-events: none;
}
.hero-dollar.d1 { left: 27%; bottom: 28%; animation-delay: .8s; }
.hero-dollar.d2 { left: 30%; bottom: 27%; animation-delay: 2s; }
.hero-dollar.d3 { left: 24%; bottom: 29%; animation-delay: 3.1s; }
@keyframes dollar-pop {
  0%, 92%, 100% { opacity: 0; transform: translateY(0) scale(0.6); }
  4% { opacity: 1; transform: translateY(-8px) scale(1.15); }
  10%, 18% { opacity: 1; transform: translateY(-26px) scale(1); }
  26% { opacity: 0; transform: translateY(-40px) scale(0.9); }
}
@media (max-width: 760px) { .hero-dollar { display: none; } }

/* עוגן פיזי בצד ימין של התמונה (שם השמיים הריקים) — קבוע בלי קשר לכיוון השפה */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-right: 6vw;
  margin-left: auto;
  text-align: right;
  padding: 8rem 0 4rem;
}
html[dir="ltr"] .hero-content { text-align: left; }
@media (max-width: 760px) {
  .hero { background-position: 30% center; }
  .hero::after { background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.75) 65%, rgba(10,10,10,0.85) 100%); }
  .hero-content { margin-inline: auto; text-align: center; padding: 8rem 1.5rem 3rem; }
}
.hero-eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--yellow);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fade-up .6s ease .1s forwards;
}
.hero h1 {
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fade-up .7s ease .3s forwards;
  text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 3px 3px 0 #000;
}
@keyframes fade-up { to { opacity: 1; transform: translateY(0);} from { opacity: 0; transform: translateY(20px);} }
.hero h1 .hl { color: var(--yellow); }
.hero p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--grey);
  max-width: 560px;
  margin: 0 auto 2.4rem;
  opacity: 0;
  animation: fade-up .7s ease .5s forwards;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1rem 2.4rem;
  border: 3px solid var(--white);
  box-shadow: 6px 6px 0 var(--white);
  transition: transform .15s, box-shadow .15s;
  opacity: 0;
  animation: fade-up .7s ease .7s forwards;
}
.btn-hero:hover { transform: translate(3px,3px); box-shadow: 3px 3px 0 var(--white); }

/* ── SECTION HEADINGS ── */
.eyebrow {
  font-family: 'Press Start 2P', monospace;
  color: var(--yellow);
  font-size: 0.7rem;
  margin-bottom: 1rem;
  display: block;
}
.section-title {
  font-weight: 900;
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 3rem;
  max-width: 700px;
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.service-card {
  background: var(--bg-2);
  border: 3px solid var(--white);
  box-shadow: 6px 6px 0 var(--yellow);
  padding: 2rem 1.6rem;
  transition: transform .15s, box-shadow .15s;
}
.service-card:hover { transform: translate(3px,3px); box-shadow: 3px 3px 0 var(--yellow); }
.service-card .icon { font-size: 1.9rem; margin-bottom: 1rem; display: block; }
.service-card h3 { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--grey); font-size: 0.93rem; }

/* ── STATEMENT ── */
.statement { text-align: center; padding: 6.5rem 1.5rem; }
.statement p {
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: 1.45;
  max-width: 860px;
  margin: 0 auto;
}
.statement .hl { color: var(--yellow); }

/* ── PORTFOLIO ── */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.portfolio-card {
  aspect-ratio: 16/10;
  background: var(--bg-2);
  border: 3px solid var(--white);
  box-shadow: 6px 6px 0 var(--yellow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  color: var(--grey);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.5rem;
}
.portfolio-card .icon { font-size: 1.8rem; opacity: 0.6; }

/* ── CONTACT ── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 800px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
  background: var(--bg-2);
  border: 2px solid var(--white);
  padding: 1rem 1.1rem;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--yellow); }
.contact-form button {
  background: var(--yellow);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 1rem;
  border: 3px solid var(--white);
  box-shadow: 6px 6px 0 var(--white);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.contact-form button:hover { transform: translate(3px,3px); box-shadow: 3px 3px 0 var(--white); }
.contact-info { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-info a { font-size: 1.05rem; font-weight: 700; }
.contact-info a:hover { color: var(--yellow); }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 1.6rem; inset-inline-start: 1.6rem;
  width: 54px; height: 54px;
  background: #25D366;
  border: 3px solid var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  z-index: 100;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2.6rem 1.5rem;
  color: var(--grey);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  border-top: 3px solid var(--white);
  line-height: 2;
}
