/* ═══════════════════════════════════════════
   GETBETTER.GAMES — Premium RTL Stylesheet
   ═══════════════════════════════════════════ */

/* ─── Tokens ─── */
:root {
  --bg-0: #0A0B14; /* Deep Navy-Black Foundation */
  --bg-1: #121421;
  --bg-2: #1A1D2E;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(99, 102, 241, 0.05);

  --accent-1: #6366F1; /* Primary Indigo */
  --accent-2: #818CF8; /* Soft Indigo */
  --accent-cyan: #06B6D4; /* Secondary Cyan Precision */
  --accent-glow: rgba(99, 102, 241, 0.3);
  --accent-green: #10B981;
  --accent-gold: #F59E0B;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 32px;

  --shadow-card: 0 12px 40px -8px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

  --gradient-text: linear-gradient(135deg, #F8FAFC 0%, #818CF8 50%, #06B6D4 100%);
  --gradient-btn: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  --gradient-hero: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace; 

  --nav-h: 80px;
  --section-gap: clamp(100px, 15vw, 160px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-0);
  color: var(--text-primary);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

::selection {
  background: var(--accent-1);
  color: #fff;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 50%;
  transform: translateX(50%);
  background: var(--accent-1);
  color: white;
  padding: 12px 24px;
  z-index: 2000;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

/* ─── Focus States (a11y) ─── */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Container ─── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ─── Typography helpers ─── */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-1);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section-sub {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: clamp(32px, 8vw, 56px);
  line-height: 1.7;
}

.section {
  padding: var(--section-gap) 0;
  scroll-margin-top: var(--nav-h); /* Ensures header doesn't overlap section when jumping */
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.6);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-1);
}

.btn-ghost-small {
  background: transparent;
  border: 1.5px solid var(--border-accent);
  color: var(--accent-2);
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}
.btn-ghost-small:hover { background: rgba(108, 99, 255, 0.12); }


/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}
.nav-bar.scrolled {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 74px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 2px;
  letter-spacing: -0.02em;
}
.logo-bracket { color: var(--accent-1); opacity: 0.6; }
.accent { color: var(--accent-cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  padding: 8px 0;
  letter-spacing: 0.01em;
}
.nav-links a:hover { 
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Mobile Menu ─── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(5, 8, 16, 0.98);
  backdrop-filter: blur(25px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { 
  opacity: 1; 
  visibility: visible; 
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 320px;
  text-align: center;
}
.mobile-link {
  display: block;
  padding: 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
}
.mobile-link:hover { 
  color: var(--text-primary); 
  background: rgba(124, 58, 237, 0.1);
  transform: scale(1.02);
}


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-0);
  padding: 120px 0 60px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
  opacity: 0.6;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.25) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: float1 12s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
  bottom: 100px; left: -50px;
  animation: float2 15s ease-in-out infinite;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, transparent 70%);
  top: 40%; right: 30%;
  animation: float3 10s ease-in-out infinite;
}

@keyframes float1 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(30px,40px); } }
@keyframes float2 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(-20px,-30px); } }
@keyframes float3 { 0%,100%{ transform: translate(0,0); } 40%{ transform: translate(15px,-20px); } }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05); /* Lighter background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: #fff; /* Crisp white */
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; } 50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: 24px; /* More space between buttons */
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 80px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 48px; /* More space between stats */
  flex-wrap: wrap;
  justify-content: center;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  animation: fadeIn 2s 1.5s both;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: grow-line 2s 2s ease-in-out infinite;
}
@keyframes grow-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* ══════════════════════════════════════════
   APPROACH
══════════════════════════════════════════ */
.approach { background: var(--bg-1); }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Wider cards */
  gap: 40px; /* Increased gap */
  margin-bottom: 80px;
}

.approach-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px; /* Much more internal padding */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.approach-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 2px;
  background: var(--gradient-btn);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.approach-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.approach-card:hover::before { transform: scaleX(1); }

.approach-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-2);
  transition: background 0.3s;
}
.approach-card:hover .approach-icon {
  background: rgba(108, 99, 255, 0.2);
}

.approach-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.approach-card p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.approach-card em { color: var(--accent-2); font-style: normal; }

.approach-quote {
  background: rgba(139, 92, 246, 0.08);
  border-right: 4px solid var(--accent-1);
  border-radius: 4px var(--radius-lg) var(--radius-lg) 4px;
  padding: 40px 48px;
  max-width: 900px;
  margin: 40px 0;
}
.approach-quote blockquote {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
  font-style: italic;
}
.approach-quote cite {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-1);
}


/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services { background: var(--bg-0); }

.services-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Adjusted for better balance */
  gap: 40px;
  align-items: stretch;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.service-card--featured {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.03);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.05);
}

.service-tag {
  display: inline-block;
  background: var(--accent-1);
  color: white;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.service-icon-wrap {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-2);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.service-card p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.service-list {
  margin-bottom: 32px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.service-list li:last-child { border-bottom: none; }
.check { 
  color: var(--accent-cyan); 
  font-weight: 700; 
  background: rgba(6, 182, 212, 0.1);
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
}

.service-btn { 
  width: 100%; 
  justify-content: center; 
}

/* Portfolio Play Button */
.btn-play-now {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan) !important;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(6, 182, 212, 0.05);
}

.btn-play-now:hover {
  background: var(--accent-cyan);
  color: #000 !important;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-play-now:active {
  transform: translateY(0);
}


/* ══════════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════════ */
.portfolio { background: var(--bg-1); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.portfolio-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.portfolio-card-header {
  padding: 24px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.portfolio-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.portfolio-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tag {
  font-size: 0.72rem;
  background: rgba(108, 99, 255, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.portfolio-card-body {
  padding: 20px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.portfolio-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.portfolio-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.portfolio-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.portfolio-skills span {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.portfolio-format-row {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-top: auto;
  gap: 12px;
}

.portfolio-format {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.portfolio-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.portfolio-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}


/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about { background: var(--bg-0); }

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px; /* Increased from 80px */
  align-items: center;
}

.about-body p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}
.about-highlight {
  background: rgba(99, 102, 241, 0.05);
  border-right: 4px solid var(--accent-1);
  border-radius: 4px var(--radius-md) var(--radius-md) 4px;
  padding: 24px 28px;
  color: var(--text-primary) !important;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.about-highlight strong { color: var(--accent-2); }

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 6px 14px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 999px;
  color: var(--accent-2);
  transition: background 0.2s;
}
.skill-pill:hover { background: rgba(108, 99, 255, 0.2); }

.about-visual {
  position: relative;
}

.profile-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: var(--radius-xl);
  filter: grayscale(0.2) contrast(1.1);
  box-shadow: var(--shadow-card), 0 0 50px rgba(99, 102, 241, 0.15);
  border: 1px solid var(--border);
  transition: all 0.5s ease;
}
.profile-frame:hover .profile-img {
  filter: grayscale(0) contrast(1.1);
  transform: scale(1.02);
}

.profile-code {
  position: absolute;
  bottom: -60px;
  right: -30px;
  width: 280px;
  z-index: 2;
  transform: rotate(3deg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(13, 14, 26, 0.9) !important;
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-1);
}
.profile-frame:hover .profile-code {
  transform: rotate(0) translateY(-10px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(6, 182, 212, 0.2);
}

/* Code Window */
.code-window {
  background: #0D0E1A;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 50px rgba(0, 0, 0, 0.5);
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot.red { background: #FF5555; }
.dot.yellow { background: #FFB86C; }
.dot.green { background: #50FA7B; }
.code-window-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 12px;
  opacity: 0.8;
}
.code-content {
  padding: 24px 32px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
}
.kw { color: #818CF8; }
.cls { color: #06B6D4; }
.fn { color: #818CF8; }
.str { color: #10B981; }
.num { color: #F59E0B; }


/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact {
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}
.contact-bg-orb {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  top: 50%; right: 50%;
  transform: translate(50%, -50%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.contact .section-title { text-align: center; }
.contact-sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  backdrop-filter: blur(8px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  direction: rtl;
}
.form-group input[dir="ltr"],
.form-group select option { direction: ltr; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-1);
  background: rgba(99, 102, 241, 0.03);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}
.form-group select option { background: #121421; }
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-submit {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 18px;
  margin-top: 10px;
}
.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.contact-alternatives {
  text-align: center;
}
.contact-alternatives p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-2);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  transition: all 0.2s;
}
.contact-link:hover {
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-2px);
}
.contact-link--whatsapp { border-color: rgba(37, 211, 102, 0.35); color: #25d366; }
.contact-link--whatsapp:hover { background: rgba(37, 211, 102, 0.1); border-color: rgba(37, 211, 102, 0.6); }


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.footer-legal {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: var(--text-muted);
}
.footer-legal a {
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: var(--accent-cyan);
}
.footer-legal .separator {
  opacity: 0.3;
}
.back-to-top {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}
.back-to-top:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(108, 99, 255, 0.1);
}


/* ══════════════════════════════════════════
   ANIMATIONS (Intersection Observer)
══════════════════════════════════════════ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }


/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .about-visual { 
    order: -1;
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
  }
  .about-body p, .about-highlight { text-align: right; }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 70px;
  }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding-top: 80px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.1; margin-left: auto; margin-right: auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta-group { gap: 16px; width: 100%; justify-content: center; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }

  .hero-stats { gap: 16px; justify-content: center; width: 100%; }
  .stat { flex: 1; min-width: 80px; }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.7rem; }
  .stat-divider { display: none; }

  .approach-grid { gap: 24px; }
  .approach-card { padding: 32px 24px; }
  .approach-quote { padding: 32px 24px; }

  .portfolio-grid { gap: 24px; }
  .portfolio-card-header { padding: 20px 20px 0; }
  .portfolio-card-body { padding: 16px 20px 20px; }
  .portfolio-format-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .portfolio-format-row .btn-play-now { width: 100%; justify-content: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }

  .footer-inner { flex-direction: column; text-align: center; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-badge { font-size: 0.72rem; }
  .section-title { font-size: 1.6rem; }
  .approach-grid { grid-template-columns: 1fr; }
}
