/* ============================================
   HERO SECTION - FULL WIDTH REDESIGN
   Realistic MacBook Pro + iPhone 14 Pro
   Colors: NO neon teal — uses forest green palette
   ============================================ */

/* ── Full-width hero ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1c12 0%, #1a2e1a 35%, #243b24 60%, #2d4a2a 100%);
  width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(123,150,105,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(123,150,105,0.07) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 110px 80px 60px 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ── Hero Text ───────────────────────────────────────────────── */
.hero-greeting { color: rgba(186,200,177,0.85); font-size: 18px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 7.5vw, 110px);
  color: #ffffff;
  line-height: 0.92;
  letter-spacing: -1px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-title span:last-child { color: var(--primary-green); }

/* "Full Stack Developer" — crisp white, NO neon */
.hero-typing        { color: #ffffff; }
.hero-typing-secondary { color: rgba(186,200,177,0.75); }

.hero-subtitle { color: rgba(255,255,255,0.65); max-width: 520px; }

/* Stats — soft sage, not neon */
.hero-stat-number { color: #BAC8B1; }
.hero-stat-label  { color: rgba(186,200,177,0.6); }

/* Social links */
.hero-social a {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-social a:hover { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }

/* Available badge — muted green, not neon */
.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(123,150,105,0.12);
  border: 1px solid rgba(123,150,105,0.3);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  color: #BAC8B1;
  margin-bottom: 20px;
  font-weight: 500;
}
.available-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #7B9669;
  box-shadow: 0 0 8px rgba(123,150,105,0.8);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dotPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #7B9669, #5e7a4e);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(123,150,105,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #6a8558, #4d6840);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(123,150,105,0.5);
  color: #fff;
}
.btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}

/* ============================================================
   REALISTIC MacBook Pro Frame
   ============================================================ */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-devices-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
}

/* ── Laptop outer wrapper ────────────────────────────────────── */
.hero-laptop-3d {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  animation: floatLaptop 6s ease-in-out 2.8s infinite;
  /* No filter/perspective — causes blur artifacts in iframe */
}

/* ── Screen lid ──────────────────────────────────────────────── */
.hero-laptop-lid {
  position: relative;
}

.hero-laptop-frame {
  /* Brushed aluminum lid */
  background:
    linear-gradient(170deg,
      #e2e2e2 0%,
      #d0d0d0 15%,
      #c4c4c4 40%,
      #bcbcbc 60%,
      #c8c8c8 80%,
      #d4d4d4 100%);
  border-radius: 14px 14px 0 0;
  padding: 16px 14px 8px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.15);
}

/* Glossy top highlight on lid */
.hero-laptop-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, transparent 100%);
  pointer-events: none;
}

/* Camera dot */
.hero-laptop-camera {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background: #1a1a1a;
  border-radius: 50%;
  border: 1.5px solid rgba(80,80,80,0.5);
  z-index: 5;
}
.hero-laptop-camera::after {
  content: '';
  position: absolute;
  top: 1px; left: 1px;
  width: 2px; height: 2px;
  background: rgba(180,210,255,0.5);
  border-radius: 50%;
}

/* ── Screen display ──────────────────────────────────────────── */
.hero-laptop-screen {
  background: #080808;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
  width: 100%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.hero-laptop-screen img,
.hero-laptop-screen video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ── Keyboard Base ───────────────────────────────────────────── */
.hero-laptop-base {
  position: relative;
  background: linear-gradient(180deg,
    #d4d4d4 0%,
    #c6c6c6 20%,
    #bebebe 50%,
    #b4b4b4 80%,
    #b0b0b0 100%);
  height: 68px;
  border-radius: 0 0 14px 14px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.45),
    0 12px 40px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -2px 0 rgba(0,0,0,0.2);
  overflow: hidden;
}

/* Hinge / lid-to-base join line */
.hero-laptop-base::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #888, #c0c0c0 20%, #d0d0d0 50%, #c0c0c0 80%, #888);
}

/* Keyboard rows texture */
.hero-laptop-base::after {
  content: '';
  position: absolute;
  top: 12px; left: 10%; right: 10%;
  height: 24px;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.12) 0px,
      rgba(0,0,0,0.12) 14px,
      rgba(0,0,0,0.0) 14px,
      rgba(0,0,0,0.0) 18px),
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0.1) 0px,
      rgba(0,0,0,0.1) 8px,
      rgba(0,0,0,0.0) 8px,
      rgba(0,0,0,0.0) 11px);
  border-radius: 3px;
}

/* Trackpad */
.hero-laptop-trackpad {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 14px;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
}

/* Ground shadow */
.hero-laptop-shadow {
  position: absolute;
  bottom: -30px; left: 5%;
  width: 90%; height: 24px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.55) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

@keyframes floatLaptop {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}

/* ── Animated Code Screen ────────────────────────────────────── */
.hero-code-screen {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0a0a0a 0%, #111111 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
}

.code-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.code-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: block;
}
.code-url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-left: 8px;
  background: rgba(255,255,255,0.05);
  padding: 2px 10px;
  border-radius: 4px;
}

.code-content {
  padding: 14px 16px;
  flex: 1;
  overflow: hidden;
}
.code-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.85;
  white-space: nowrap;
}

/* Syntax colors — vivid on dark, NO blue tints in background */
.c-purple { color: #c792ea; }
.c-blue   { color: #82aaff; }
.c-green  { color: #c3e88d; }
.c-orange { color: #f78c6c; }
.c-yellow { color: #ffcb6b; }
.c-gray   { color: rgba(186,200,177,0.45); }

/* Code cursor uses sage green, NOT neon teal */
.code-cursor { animation: blink 1s step-end infinite; color: #BAC8B1; }
.code-active {
  background: rgba(123,150,105,0.1);
  border-radius: 4px;
  padding: 1px 4px;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ============================================================
   REALISTIC iPhone 14 Pro Frame
   ============================================================ */
.hero-mobile-frame {
  position: absolute;
  bottom: 0;
  right: -5%;
  z-index: 10;
  animation: floatMobile 5s ease-in-out 3.2s infinite;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.65));
}
@keyframes floatMobile {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero-mobile-inner {
  position: relative;
  width: 130px;
  height: 260px;
  background: linear-gradient(160deg, #3a3a3a 0%, #252525 40%, #1e1e1e 60%, #2a2a2a 100%);
  border-radius: 30px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14),
    0 0 0 2px rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 30px 60px rgba(0,0,0,0.7);
  overflow: visible;
}

/* Titanium side shimmer */
.hero-mobile-inner::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 31.5px;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.2) 0%,
    rgba(255,255,255,0.05) 25%,
    rgba(0,0,0,0.3) 50%,
    rgba(255,255,255,0.1) 75%,
    rgba(255,255,255,0.2) 100%);
  z-index: -1;
}

/* Glossy screen area */
.hero-mobile-screen-area {
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  background: #080808;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island */
.hero-mobile-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 12px;
  background: #000;
  border-radius: 8px;
  z-index: 20;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}

/* Screen content — pure dark, NO blue gradient */
.hero-mobile-screen {
  flex: 1;
  background: #0a0a0a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 22px;
}

.hero-mobile-screen-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #141414, #0a0a0a, #111111);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border-radius: inherit;
}

.hero-mobile-screen video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 2;
}

/* Home indicator */
.hero-mobile-home-bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 4px;
  background: rgba(255,255,255,0.28);
  border-radius: 2px;
  z-index: 25;
}

/* Side buttons */
.hero-mobile-btn-vol-up {
  position: absolute;
  left: -3px; top: 68px;
  width: 3px; height: 26px;
  background: linear-gradient(180deg, #4a4a4a, #333);
  border-radius: 2px 0 0 2px;
}
.hero-mobile-btn-vol-down {
  position: absolute;
  left: -3px; top: 102px;
  width: 3px; height: 26px;
  background: linear-gradient(180deg, #4a4a4a, #333);
  border-radius: 2px 0 0 2px;
}
.hero-mobile-btn-power {
  position: absolute;
  right: -3px; top: 84px;
  width: 3px; height: 36px;
  background: linear-gradient(180deg, #4a4a4a, #333);
  border-radius: 0 2px 2px 0;
}

/* Lock screen widget */
.mobile-app-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px 12px;
  width: 100%;
}
.mobile-app-time {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 200;
  color: rgba(255,255,255,0.95);
  display: block;
  margin-bottom: 2px;
  letter-spacing: 1px;
}
.mobile-app-date {
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 14px;
}
.mobile-app-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 4px;
}
.mobile-app-icon {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ── Floating tech badges — HIDDEN (they cause dark blob overlaps on laptop screens) ── */
.hero-badge,
.hero-badge-1,
.hero-badge-2,
.hero-badge-3 {
  display: none !important;
}

/* Particles canvas */
#hero-particles { position: absolute; inset: 0; z-index: 1; opacity: 0.35; }
/* Hide decorative shapes — they overlap the devices */
.hero-shapes { display: none !important; }

/* ── FIX: Remove all blur artifacts from hero visual ── */
.hero-visual,
.hero-devices-wrapper,
.hero-laptop-3d,
.hero-laptop-lid,
.hero-laptop-frame,
.hero-laptop-screen,
.hero-laptop-base,
.hero-code-screen {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}
/* Force GPU compositing layer to prevent sub-pixel blur */
.hero-devices-wrapper {
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
}
/* Mobile frame: use box-shadow instead of drop-shadow filter */
.hero-mobile-frame {
  filter: none !important;
  -webkit-filter: none !important;
}
.hero-mobile-inner {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14),
    0 0 0 2px rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 30px 60px rgba(0,0,0,0.7) !important;
}
/* Remove backdrop-filter from available badge */
.available-badge {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-container { padding: 110px 40px 60px; gap: 40px; }
}
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    padding: 100px 30px 60px;
    text-align: center;
  }
  .hero-buttons, .hero-social, .hero-stats { justify-content: center; }
  .hero-subtitle { margin: 0 auto 30px; }
  .hero-visual { display: none; }
}
@media (max-width: 600px) {
  .hero-container { padding: 90px 20px 50px; }
  .hero-title { font-size: clamp(48px, 12vw, 72px); }
}
