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

:root {
  --bg-color: #050505;
  --bg-gradient: radial-gradient(circle at top right, #111a22, #050505 50%);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --accent-secondary: #8b5cf6;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 88%);
  opacity: 0.45;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: normal;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* ===== LAYOUT & COMPONENTS ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 6rem 0;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 100;
  border-bottom: 1px solid var(--card-border);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  max-width: none;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--card-border);
  box-shadow: none;
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--card-bg);
  box-shadow: none;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-radius: 20px;
  z-index: -1;
  opacity: 0.5;
  filter: blur(40px);
}

.hero-image {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--card-border);
  display: block;
  box-shadow: none;
}

/* Timeline & Experience */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: none;
}

.glass-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255,255,255,0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

.company-role {
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.card-desc {
  color: var(--text-muted);
}

.parallax-section {
  padding: 1rem 0 2rem;
}

.parallax-frame {
  position: relative;
  width: 90%;
  max-width: 1280px;
  min-height: 70vh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--card-border);
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(7, 10, 16, 0.72), rgba(5, 5, 5, 0.92));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.parallax-media {
  position: absolute;
  inset: -10% 0;
  will-change: transform;
}

.ai-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ai-grid,
.ai-orb,
.ai-ring,
.ai-beam,
.ai-node,
.ai-pulse {
  position: absolute;
}

.ai-grid {
  inset: -8%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: perspective(1200px) rotateX(72deg) scale(1.4);
  transform-origin: center center;
  opacity: 0.65;
}

.ai-orb {
  top: 50%;
  left: 52%;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(143, 211, 255, 0.75) 18%, rgba(59, 130, 246, 0.28) 46%, rgba(59, 130, 246, 0.04) 72%, transparent 74%);
  filter: blur(0.4px);
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.55),
    0 0 120px rgba(139, 92, 246, 0.28);
  animation: orbFloat 7s ease-in-out infinite;
}

.ai-ring {
  top: 50%;
  left: 52%;
  border-radius: 50%;
  border: 1px solid rgba(147, 197, 253, 0.22);
}

.ai-ring-1 {
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  animation: ringSpin 18s linear infinite;
}

.ai-ring-2 {
  width: 500px;
  height: 500px;
  margin: -250px 0 0 -250px;
  border-style: dashed;
  border-color: rgba(120, 119, 198, 0.18);
  animation: ringSpinReverse 28s linear infinite;
}

.ai-beam {
  top: 50%;
  left: 52%;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(59, 130, 246, 0.18), transparent);
}

.ai-beam-1 {
  width: 320px;
  transform: rotate(24deg);
}

.ai-beam-2 {
  width: 260px;
  transform: rotate(154deg);
}

.ai-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dbeafe;
  box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.08), 0 0 20px rgba(59, 130, 246, 0.4);
  animation: nodeBlink 3.8s ease-in-out infinite;
}

.ai-node-1 { top: 24%; left: 18%; animation-delay: 0s; }
.ai-node-2 { top: 22%; right: 20%; animation-delay: 0.7s; }
.ai-node-3 { bottom: 28%; left: 22%; animation-delay: 1.2s; }
.ai-node-4 { bottom: 18%; right: 18%; animation-delay: 1.8s; }
.ai-node-5 { top: 52%; left: 12%; animation-delay: 2.3s; }

.ai-pulse {
  top: 50%;
  left: 52%;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.22);
  opacity: 0;
}

.ai-pulse-1 {
  animation: pulseWave 4.4s ease-out infinite;
}

.ai-pulse-2 {
  animation: pulseWave 4.4s ease-out infinite 2.1s;
}

.parallax-image {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.95) contrast(1.05) brightness(0.72);
  transform: scale(1.06);
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.12), rgba(5, 5, 5, 0.7)),
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.16), transparent 26%),
    radial-gradient(circle at 80% 25%, rgba(139, 92, 246, 0.18), transparent 24%);
}

.parallax-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
}

.parallax-tag {
  margin-bottom: 1rem;
  width: fit-content;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
}

.parallax-quote {
  max-width: 18ch;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: var(--text-main);
}

/* Metadata tag */
.tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
}

/* Mentorships */
.mentorship-card {
  position: relative;
  overflow: hidden;
}

.spots-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: pulse 2s infinite;
}

.mentorship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mentorship-card ul {
  margin-top: 1.5rem;
  color: var(--text-muted);
}

.mentorship-card {
  background:
    var(--card-bg);
}
.mentorship-card ul li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Contact */
.contact-section {
  padding: 3rem 0 6rem;
}

.contact-shell {
  width: min(94%, 1380px);
  margin: 0 auto;
  padding: 3rem;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 2rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.22), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(10, 18, 32, 0.96), rgba(18, 10, 36, 0.92));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.contact-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-tag {
  width: fit-content;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #dbeafe;
}

.contact-title {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  margin-bottom: 1.2rem;
  max-width: 10ch;
}

.contact-copy {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.76);
  max-width: 56ch;
  margin-bottom: 2rem;
}

.contact-points {
  display: grid;
  gap: 1rem;
}

.contact-point {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-point strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.contact-point span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-container {
  max-width: none;
  margin: 0;
  padding: 2rem;
  background: rgba(4, 8, 18, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 160px;
}

.form-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #93c5fd 50%),
    linear-gradient(135deg, #93c5fd 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 4px),
    calc(100% - 16px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.submit-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem 1.2rem;
  font-size: 1.05rem;
}

.submit-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.form-response {
  min-height: 24px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.form-response.is-success {
  color: #86efac;
}

.form-response.is-error {
  color: #fca5a5;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.9rem;
  background: transparent;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -14px, 0) scale(1.03); }
}

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

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

@keyframes nodeBlink {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.45); opacity: 1; }
}

@keyframes pulseWave {
  0% { transform: scale(0.75); opacity: 0; }
  20% { opacity: 0.55; }
  100% { transform: scale(3.3); opacity: 0; }
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Delay modifiers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Responsive */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content p {
    margin: 0 auto 2rem auto;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .nav-links {
    display: none; /* simple mobile behavior for now */
  }

  .contact-shell {
    width: 90%;
    padding: 1.5rem;
    grid-template-columns: 1fr;
  }

  .contact-container {
    padding: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .parallax-frame,
  .parallax-content {
    min-height: 58vh;
  }

  .ai-orb {
    width: 160px;
    height: 160px;
    margin: -80px 0 0 -80px;
  }

  .ai-ring-1 {
    width: 260px;
    height: 260px;
    margin: -130px 0 0 -130px;
  }

  .ai-ring-2 {
    width: 380px;
    height: 380px;
    margin: -190px 0 0 -190px;
  }

  .ai-beam-1 {
    width: 200px;
  }

  .ai-beam-2 {
    width: 160px;
  }

  .parallax-content {
    padding: 2rem 1.5rem;
  }

  .parallax-quote {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 3.2rem);
  }
}
