/* ============================================
   RAJNI RUGHWANI — PORTFOLIO
   Dark Theme + Teal Accent
   ============================================ */

:root {
  --bg: #080d1a;
  --bg-surface: #0d1526;
  --bg-card: #111e35;
  --bg-card-hover: #162340;
  --border: #1a2a45;
  --border-light: #243550;
  --teal: #0eb8a8;
  --teal-dim: rgba(14, 184, 168, 0.12);
  --teal-glow: rgba(14, 184, 168, 0.25);
  --text: #e8f0fe;
  --text-muted: #7a90b0;
  --text-dim: #4a6080;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1100px;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===================== UTILITY ===================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--teal); }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 48px;
}
.section-dark { background: var(--bg-surface); }
section { padding: 96px 0; }
.hide-sm { display: inline; }

/* ===================== NAV ===================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal-dim) !important;
  color: var(--teal) !important;
  border: 1px solid var(--teal) !important;
}
.nav-cta:hover { background: var(--teal-glow) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ===================== HERO ===================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 184, 168, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 184, 168, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.5;
}
.hero-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.03em;
  display: inline-block;
}
.btn-primary {
  background: var(--teal);
  color: #080d1a;
}
.btn-primary:hover { background: #0cd4c2; transform: translateY(-1px); }
.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* HERO PHOTO */
.hero-photo { position: relative; flex-shrink: 0; }
.photo-frame {
  width: 280px;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  position: relative;
}
.photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(8, 13, 26, 0.4));
  z-index: 1;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.photo-card {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.photo-card-icon { font-size: 1.4rem; }
.photo-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.photo-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}
.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.98rem;
}
.about-text p strong { color: var(--text); }
.about-links {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.about-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--teal);
  border: 1px solid var(--teal);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.about-link:hover { background: var(--teal-dim); transform: translateY(-1px); }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}
.stat-item:hover { border-color: var(--border-light); transform: translateY(-2px); }
.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
  font-family: var(--font-mono);
}

/* ===================== IMPACT ===================== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.impact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.impact-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.impact-card-highlight {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--bg-card), rgba(14, 184, 168, 0.06));
  grid-column: span 1;
}
.impact-num {
  font-size: 2.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--teal);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.impact-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.impact-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================== EXPERIENCE ===================== */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--teal), var(--border), transparent);
}
.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  position: relative;
  z-index: 1;
}
.timeline-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--bg);
  border: 1px solid var(--teal);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
.section-dark .timeline-num { background: var(--bg-surface); }
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.timeline-content:hover { border-color: var(--border-light); }
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.timeline-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.timeline-company {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  padding-top: 4px;
}
.timeline-bullets {
  margin-bottom: 16px;
}
.timeline-bullets li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 5px 0 5px 16px;
  position: relative;
  line-height: 1.6;
}
.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.7rem;
  top: 7px;
}
.timeline-bullets strong { color: var(--text); }
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid rgba(14, 184, 168, 0.2);
  letter-spacing: 0.02em;
}

/* ===================== AI LAB ===================== */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.lab-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.lab-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.lab-card-featured {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--bg-card), rgba(14, 184, 168, 0.06));
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 0 24px;
}
.lab-card-featured .lab-card-top { grid-column: 1 / -1; }
.lab-card-featured h3 { font-size: 1.2rem; }
.lab-card-featured p { color: var(--text-muted); }
.lab-card-coming { opacity: 0.6; }
.lab-card-coming:hover { opacity: 0.8; }
.lab-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.lab-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.06em;
}
.lab-status-live {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.lab-status-built {
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid rgba(14, 184, 168, 0.3);
}
.lab-status-progress {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.lab-award {
  font-size: 0.78rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
}
.lab-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.lab-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.lab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lab-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ===================== SKILLS ===================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.skill-group:hover { border-color: var(--border-light); }
.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-pills span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.skill-pills span:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
}

/* ===================== AWARDS ===================== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.award-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.award-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}
.award-icon { font-size: 1.8rem; margin-bottom: 12px; }
.award-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.award-org {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
  margin-bottom: 10px;
}
.award-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* TESTIMONIALS */
.testimonials-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  color: var(--teal);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 1px solid var(--teal);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ===================== CONTACT ===================== */
#contact { text-align: center; }
.contact-inner { max-width: 700px; margin: 0 auto; }
.contact-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}
.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}
.contact-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  background: var(--teal-dim);
}
.contact-icon {
  color: var(--teal);
  width: 44px;
  height: 44px;
  background: var(--teal-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-value {
  font-size: 0.82rem;
  color: var(--text);
  word-break: break-all;
}

/* ===================== FOOTER ===================== */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-card-featured { grid-column: span 1; display: block; }
  .lab-grid { grid-template-columns: 1fr; }
  .contact-options { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 72px 0; }
  .hide-sm { display: none; }
  .impact-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(8, 13, 26, 0.98);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===================== ANIMATIONS ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
