/* ============================================
   MOHANTH PALEM — Premium Portfolio
   Apple/Tesla aesthetic — minimal, confident
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #f5f5f7;
  --mid: #6e6e73;
  --light: #86868b;
  --border: #d2d2d7;
  --border-dark: #333336;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --bg-dark: #1d1d1f;
  --bg-darker: #111111;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background 0.3s;
}

nav.dark {
  background: rgba(29, 29, 31, 0.85);
  border-color: rgba(255,255,255,0.08);
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.3px;
  transition: color 0.3s;
}

nav.dark .nav-logo { color: var(--white); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

nav.dark .nav-links a { color: rgba(255,255,255,0.6); }

.nav-links a:hover { color: var(--black); }
nav.dark .nav-links a:hover { color: var(--white); }

.nav-links a.active { color: var(--black); font-weight: 500; }
nav.dark .nav-links a.active { color: var(--white); }

.nav-cta {
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.7; }

/* ── TYPOGRAPHY ── */
.headline-xl {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--black);
}

.headline-lg {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.headline-md {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.018em;
}

.headline-sm {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.body-lg {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--mid);
}

.body-md {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--mid);
}

.body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--light);
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
}

/* ── SECTIONS ── */
.section {
  padding: 120px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-full {
  padding: 120px 24px;
}

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

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

.section-offwhite {
  background: var(--off-white);
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.divider-dark {
  background: var(--border-dark);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-blue {
  background: var(--accent);
  color: var(--white);
}
.btn-blue:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(0,113,227,0.3);
}
.btn-outline:hover { background: rgba(0,113,227,0.06); }

.btn-white {
  background: var(--white);
  color: var(--black);
}
.btn-white:hover { background: var(--off-white); }

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.stat-box {
  background: var(--white);
  padding: 48px 40px;
  text-align: center;
}

.stat-box.dark {
  background: var(--bg-dark);
}

.stat-value {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--black);
  margin-bottom: 8px;
}

.stat-box.dark .stat-value { color: var(--white); }

.stat-label-text {
  font-size: 14px;
  color: var(--light);
  font-weight: 400;
}

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── EXIT INTENT OVERLAY ── */
.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.exit-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.exit-card {
  background: var(--white);
  border-radius: 18px;
  padding: 48px;
  max-width: 480px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exit-overlay.active .exit-card {
  transform: translateY(0);
}

.exit-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--off-white);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  transition: background 0.2s;
}
.exit-close:hover { background: var(--border); }

.exit-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.exit-sub {
  font-size: 15px;
  color: var(--mid);
  margin-bottom: 28px;
  line-height: 1.5;
}

.exit-form input,
.exit-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

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

.exit-form textarea {
  height: 90px;
  resize: none;
}

.exit-form button {
  width: 100%;
  padding: 14px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.exit-form button:hover { background: var(--bg-dark); }

.exit-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.exit-action-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(0,113,227,0.25);
  border-radius: 980px;
  transition: all 0.2s;
}
.exit-action-link:hover {
  background: rgba(0,113,227,0.06);
}

/* ── FOOTER ── */
footer {
  background: var(--bg-darker);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, currentColor);
}

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-mid { color: var(--mid); }
.text-accent { color: var(--accent); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ── HAMBURGER MENU ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}
nav:not(.dark) .nav-hamburger span { background: var(--black); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.mobile-menu.dark-bg { background: rgba(0,0,0,0.97); }
.mobile-menu.active { 
  display: flex !important; 
}
.mobile-menu a {
  font-size: 36px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  padding: 16px 32px;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
  display: block;
  width: 100%;
  text-align: center;
}
.mobile-menu.dark-bg a { color: var(--white); }
.mobile-menu a:hover { opacity: 0.5; }
.mobile-menu-cta { color: var(--accent) !important; font-size: 20px !important; margin-top: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .stats-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .section { padding: 80px 20px; }
}
