/* =============================================
   AARADHYA'S WEBSITE — STYLESHEET
   ============================================= */

:root {
  --pink:    #f472b6;
  --purple:  #a855f7;
  --teal:    #14b8a6;
  --orange:  #f97316;
  --yellow:  #fbbf24;
  --bg:      #0f0c29;
  --card-bg: rgba(255,255,255,0.07);
  --text:    #f1f5f9;
  --muted:   #94a3b8;
  --radius:  16px;
  --shadow:  0 8px 32px rgba(0,0,0,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #0f0c29 0%, #1a1a4e 50%, #0f0c29 100%);
  color: var(--text);
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a4e; }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(15,12,41,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168,85,247,0.2);
}

.nav-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 600;
  font-size: 0.95rem; transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  transition: width .25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8rem 2.5rem 4rem;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 70% 50%, rgba(168,85,247,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 20% 60%, rgba(244,114,182,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { flex: 1; max-width: 600px; }

.hero-badge {
  display: inline-block;
  padding: .4rem 1.2rem;
  border-radius: 999px;
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.4);
  color: var(--purple);
  font-weight: 700; font-size: .9rem;
  margin-bottom: 1.2rem;
  animation: fadeDown .6s ease both;
}

.hero-content h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  animation: fadeDown .7s .1s ease both;
}

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

.hero-sub {
  font-size: 1.1rem; color: var(--yellow); font-weight: 700;
  margin: .8rem 0 1.2rem;
  animation: fadeDown .7s .2s ease both;
}

.hero-desc {
  color: var(--muted); line-height: 1.7; font-size: 1.05rem;
  animation: fadeDown .7s .3s ease both;
}

.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem;
  animation: fadeDown .7s .4s ease both;
}

/* ── BUTTONS ── */
.btn {
  padding: .75rem 2rem; border-radius: 999px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
}

/* ── HERO ART ── */
.hero-art {
  flex: 0 0 auto;
  position: relative; width: 320px; height: 320px;
  animation: fadeUp .8s .3s ease both;
}

.avatar-circle {
  width: 200px; height: 200px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka One', cursive; font-size: 5rem; color: #fff;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  box-shadow: 0 0 60px rgba(168,85,247,0.4);
}

.floating-card {
  position: absolute;
  font-size: 2.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: .8rem;
  animation: float 3s ease-in-out infinite;
}
.card-book { top: 0; left: 0; animation-delay: 0s; }
.card-ball { top: 20px; right: 0; animation-delay: 1s; }
.card-star { bottom: 10px; left: 10%; animation-delay: 2s; }

/* ── SECTIONS ── */
.section { padding: 6rem 1rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center; margin-bottom: .75rem;
}

.section-sub {
  text-align: center; color: var(--muted); font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ── ABOUT ── */
.about-section { background: rgba(255,255,255,0.02); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform .25s, border-color .25s;
}
.about-card:hover { transform: translateY(-6px); border-color: var(--purple); }
.about-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.about-card h3 { font-size: 1.1rem; color: var(--yellow); margin-bottom: .4rem; }
.about-card p { color: var(--muted); line-height: 1.6; }

/* ── BOOKS ── */
.books-section {
  background: linear-gradient(180deg, transparent, rgba(168,85,247,0.05), transparent);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.book-card {
  display: flex; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s;
  cursor: default;
}
.book-card:hover { transform: translateY(-8px) rotate(-1deg); }

.book-spine {
  width: 18px; flex-shrink: 0;
  background: var(--clr);
  opacity: .8;
}

.book-cover {
  flex: 1;
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  border-left: none;
  padding: 1.5rem 1rem;
  display: flex; flex-direction: column; gap: .4rem;
}

.book-emoji { font-size: 2rem; }
.book-cover h3 { font-size: .95rem; font-weight: 700; line-height: 1.3; }
.book-cover p { font-size: .8rem; color: var(--muted); }
.stars { color: var(--yellow); font-size: .85rem; }
.tag {
  display: inline-block;
  background: rgba(168,85,247,0.2);
  border: 1px solid rgba(168,85,247,0.4);
  color: var(--purple);
  font-size: .72rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 999px;
  margin-top: auto;
  width: fit-content;
}

/* Reading stats */
.reading-stats {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
}

.stat-box { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* ── CRICKET ── */
.cricket-section { background: rgba(255,255,255,0.02); }

.cricket-hero {
  display: flex; gap: 2rem; align-items: center;
  flex-wrap: wrap; margin-bottom: 3rem;
}

/* Pitch art */
.pitch-art {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 200px; height: 320px;
}

.pitch {
  width: 80px; height: 280px;
  background: linear-gradient(180deg, #5d8a3c, #4a7230);
  border-radius: 8px;
  position: relative;
  border: 3px solid #3d6128;
  box-shadow: 0 0 30px rgba(74,114,48,0.4);
  display: flex; flex-direction: column;
  justify-content: space-between; align-items: center;
  padding: 12px 0;
}

.crease {
  width: 80%; height: 2px;
  background: #fff;
  border-radius: 1px;
}

.wickets { font-size: .9rem; letter-spacing: -2px; }

.cricket-info {
  flex: 1; min-width: 260px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color .25s, transform .25s;
}
.info-card:hover { border-color: var(--teal); transform: translateY(-4px); }
.info-card h3 { font-size: .9rem; color: var(--yellow); margin-bottom: .4rem; }
.info-card p { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* Cricket facts */
.facts-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem; text-align: center; margin-bottom: 1.5rem;
}

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

.fact-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  transition: border-color .25s;
}
.fact-card:hover { border-color: var(--orange); }

.fact-num {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  color: rgba(249,115,22,0.2);
  position: absolute; top: .5rem; right: 1rem;
}
.fact-card p { color: var(--muted); line-height: 1.6; font-size: .95rem; }

/* ── CONTACT ── */
.contact-section {
  background: linear-gradient(180deg, transparent, rgba(244,114,182,0.05), transparent);
}

.contact-inner { max-width: 620px; }

.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row { display: flex; gap: 1rem; }

.contact-form input,
.contact-form textarea {
  width: 100%; padding: .85rem 1.1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Nunito', sans-serif; font-size: 1rem;
  transition: border-color .25s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }

.success-msg {
  display: none;
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(20,184,166,0.15);
  border: 1px solid var(--teal);
  border-radius: 10px;
  color: var(--teal);
  font-weight: 700;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: var(--muted);
  font-size: .9rem;
}
footer p + p { margin-top: .3rem; color: rgba(148,163,184,0.5); font-size: .8rem; }

/* ── ANIMATIONS ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; flex-direction: column; gap: 1rem;
    position: absolute; top: 100%; left: 0; width: 100%;
    background: rgba(15,12,41,0.97); padding: 1.5rem;
    border-bottom: 1px solid rgba(168,85,247,0.2);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }

  .hero { flex-direction: column; text-align: center; padding-top: 7rem; }
  .hero-btns { justify-content: center; }
  .hero-art { width: 260px; height: 260px; }
  .avatar-circle { width: 160px; height: 160px; font-size: 4rem; }

  .cricket-info { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .cricket-hero { justify-content: center; }
}

@media (max-width: 480px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .reading-stats { gap: 1.5rem; }
}
