/* ============================================
   MAHI SHETH PORTFOLIO — style.css
   Shared across index.html, analytics.html,
   resume.html, project-brightbox.html,
   project-robot.html
   ============================================ */

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

/* VARIABLES */
:root {
  --pink: #f06292;
  --pink-light: #fce4ec;
  --pink-mid: #f48fb1;
  --pink-dark: #c2185b;
  --bg: #f5f5f5;
  --bg2: #ffffff;
  --text: #1a1a1a;
  --muted: #888888;
  --border: rgba(240, 98, 146, 0.15);
  --border-hover: rgba(240, 98, 146, 0.4);
  --shadow: 0 8px 24px rgba(240, 98, 146, 0.1);
  --shadow-lg: 0 12px 36px rgba(240, 98, 146, 0.15);
  --font-head: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --radius: 14px;
  --radius-lg: 18px;
}

/* BASE */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle dot grid background on all pages */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(240, 98, 146, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Everything sits above the dot grid */
nav, main, section, footer, .hero {
  position: relative;
  z-index: 1;
}

/* TYPOGRAPHY */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ============================================
   NAVIGATION — identical on all pages
   ============================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 68px;
  background: rgba(245, 245, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pink);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  transition: color 0.2s;
}

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

.nav-links a.active {
  color: var(--pink);
  border-bottom: 2px solid var(--pink);
  border-radius: 0;
  padding-bottom: 0.15rem;
}

/* ============================================
   HERO BANNER — used on all pages
   ============================================ */
.hero {
  background: linear-gradient(135deg, #f06292 0%, #f8afc6 60%, #fce4ec 100%);
  padding: 5rem 2rem 4.5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.7rem;
  animation: fadeUp 0.6s ease both;
}

.hero p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 300;
  animation: fadeUp 0.6s ease 0.15s both;
}

.hero-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeUp 0.6s ease 0.3s both;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  padding: 0.3rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.hero-badges {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  animation: fadeUp 0.6s ease 0.3s both;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-white {
  background: #fff;
  color: var(--pink);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-pink {
  background: var(--pink);
  color: #fff;
}

/* ============================================
   LAYOUT
   ============================================ */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.section-heading {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-rule {
  width: 50px;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
  margin: 0 auto 2.5rem;
}

/* ============================================
   CARDS — shared card style
   ============================================ */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ============================================
   HOME PAGE — about section
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.2rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong {
  font-weight: 700;
  color: var(--pink);
}

.about-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.about-image-wrap::after {
  content: '';
  display: block;
  width: 160px;
  height: 14px;
  background: radial-gradient(ellipse, rgba(240,98,146,0.35) 0%, transparent 70%);
  border-radius: 50%;
  margin-top: 8px;
  animation: shadowPulse 3s ease-in-out infinite;
}

.profile-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 6px solid var(--pink);
  padding: 6px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(240, 98, 146, 0.2);
  animation: float 3s ease-in-out infinite;
}

.profile-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ============================================
   HOME PAGE — project cards
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.project-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--pink-light);
}

.project-thumb svg {
  width: 100%;
  height: 100%;
}

.project-body {
  padding: 1.4rem;
}

.project-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.project-body p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1rem;
}

.project-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.project-link:hover { gap: 8px; }

/* ============================================
   CONTACT / CTA STRIP — used on all pages
   ============================================ */
.cta-strip {
  background: linear-gradient(135deg, #f06292 0%, #e91e8c 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cta-strip h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.cta-strip p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.3rem;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Full-width centered contact section for homepage */
.contact-section {
  background: linear-gradient(135deg, #f06292 0%, #e91e8c 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  margin-bottom: 0;
}

.contact-section h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.contact-section p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  margin-bottom: 2rem;
}

.contact-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes shadowPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.4; }
  50%       { transform: scaleX(0.6); opacity: 0.15; }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--pink-light) 25%, #fff8fa 50%, var(--pink-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

/* ============================================
   FILTER BUTTONS — analytics + resume pages
   ============================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
  align-items: center;
}

.filter-btn {
  padding: 0.45rem 1.05rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg2);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
}

.filter-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.filter-btn.active {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  nav {
    padding: 0 1.5rem;
    height: auto;
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  main {
    padding: 2rem 1.2rem 4rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image-wrap { order: -1; }

  .profile-ring {
    width: 200px;
    height: 200px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .cta-strip {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .hero {
    padding: 3.5rem 1.5rem 3rem;
  }
}

@media (max-width: 480px) {
  .section-heading { font-size: 1.6rem; }
  .hero h1 { font-size: 1.9rem; }
}

/* Smooth scroll */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Selection color */
::selection {
  background-color: var(--pink);
  color: white;
}
