/* ============================================================
   Kenric Nair — Student Athlete Profile
   style.css
   ============================================================ */

:root {
  --navy: #0b1f3a;
  --navy-mid: #142d52;
  --sky: #3b82f6;
  --sky-light: #93c5fd;
  --cream: #f7f4ef;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --accent: #e8b84b;
  --text: #111827;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 31, 58, 0.97);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--sky-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 8rem 4rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(105,190,40,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(232,184,75,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* LEFT: text content */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  flex-shrink: 0;
}

/* RIGHT: photo */
.hero-photo-right {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  animation: fadeUp 0.8s 0.4s ease both;
}
.hero-photo-frame {
  position: relative;
  width: 320px;
}
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(105, 190, 40, 0.45);
  border-radius: 20px;
  z-index: 0;
}
.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(105, 190, 40, 0.18);
  border-radius: 26px;
  z-index: 0;
}
.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 28px 70px rgba(0,0,0,0.65),
    0 0 90px rgba(105,190,40,0.15);
}
.hero-photo-frame:hover img {
  transform: scale(1.02);
  box-shadow:
    0 0 0 1px rgba(105,190,40,0.35),
    0 34px 80px rgba(0,0,0,0.7),
    0 0 110px rgba(105,190,40,0.25);
}
.hero-photo-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(105, 190, 40, 0.95);
  color: #002244;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 2rem;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--sky-light);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}
.hero-tag::before { content: '⚾'; font-size: 0.9rem; }
h1.hero-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  line-height: 1.05;
  animation: fadeUp 0.7s 0.1s ease both;
}
h1.hero-name em { font-style: italic; color: var(--accent); }
.hero-sub {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--sky-light);
  font-weight: 300;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-divider {
  width: 60px; height: 3px;
  background: var(--accent);
  margin: 1.8rem 0;
  border-radius: 2px;
  animation: fadeUp 0.7s 0.3s ease both;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  animation: fadeUp 0.7s 0.35s ease both;
}
.hero-cta {
  margin-top: 2.2rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.45s ease both;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 6px;
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary { background: var(--sky); color: var(--white); }
.btn-primary:hover { background: #2563eb; transform: translateY(-1px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.25); color: var(--white); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── SECTIONS ── */
section { padding: 5rem 2.5rem; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.section-line {
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

/* ── PHOTO / COLLAGE ── */
#photo { background: var(--navy); }
#photo .section-label { color: var(--sky-light); }
#photo .section-title { color: var(--white); }

.collage-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 4rem;
  align-items: center;
}

/* two-card stacked collage */
.collage-frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  position: relative;
}

.collage-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}
.collage-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 18px 48px rgba(0,0,0,0.5);
  z-index: 2;
}

/* action shot: tall, spans both rows on left */
.collage-card--action {
  grid-column: 1;
  grid-row: 1 / 3;
  aspect-ratio: 2/3;
}

/* headshot: sits top-right */
.collage-card--profile {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 3/4;
}

.collage-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.collage-card:hover img { transform: scale(1.06); }

/* gold accent bar below action card area */
.collage-frames::after {
  content: '';
  grid-column: 2;
  grid-row: 2;
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
  border-radius: 10px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* caption overlays */
.collage-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(to top, rgba(11,31,58,0.9) 0%, transparent 100%);
  color: rgba(255,255,255,0.85);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* accent block text (the gold square) */
.collage-frames::after {
  content: '⚾  Pitcher  ·  Student';
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
}

/* right-side bio */
.photo-content {}
.photo-number {
  font-family: 'DM Serif Display', serif;
  font-size: 7rem;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  margin-bottom: -1.5rem;
  user-select: none;
}
.photo-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.photo-headline em { font-style: italic; color: var(--accent); }
.photo-bio {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.photo-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.photo-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem; font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  transition: background 0.2s, border-color 0.2s;
}
.photo-tag:hover { background: rgba(59,130,246,0.2); border-color: rgba(59,130,246,0.4); color: var(--sky-light); }

/* ── ABOUT ── */
#about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  color: #374151;
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}
.about-cards { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.info-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); transform: translateY(-2px); }
.info-icon {
  font-size: 1.4rem;
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-card-label { font-size: 0.75rem; color: var(--gray); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.info-card-value { font-size: 1rem; font-weight: 600; color: var(--navy); }

/* ── ACADEMICS ── */
#academics { background: var(--white); }
.grades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.grade-card {
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.2s, transform 0.2s;
}
.grade-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.07); transform: translateY(-2px); }
.grade-subject { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.grade-sub-level { font-size: 0.75rem; color: var(--gray); margin-top: 2px; }
.grade-letter {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--sky);
  line-height: 1;
}
.grade-letter.a-plus { color: #16a34a; }
.grade-letter.b { color: var(--sky); }
.gpa-banner {
  background: var(--navy);
  border-radius: 12px;
  padding: 1.8rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.gpa-label { font-size: 0.85rem; font-weight: 500; color: var(--sky-light); text-transform: uppercase; letter-spacing: 0.1em; }
.gpa-number { font-family: 'DM Serif Display', serif; font-size: 3rem; color: var(--accent); line-height: 1; }
.gpa-desc { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; }
.honors-list { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--sky-light);
  font-size: 0.75rem; font-weight: 600;
  border-radius: 2rem;
  letter-spacing: 0.05em;
}
.badge.gold { background: rgba(232,184,75,0.15); border-color: rgba(232,184,75,0.35); color: var(--accent); }

/* ── AWARDS GRID ── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.award-card {
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 1.3rem 1.2rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.award-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.08); transform: translateY(-3px); }
.award-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.award-name { font-weight: 700; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.25rem; }
.award-org { font-size: 0.75rem; color: var(--gray); }

/* ── LEADERSHIP LIST ── */
.leadership-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 0.5rem; }
.leadership-item {
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 1rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.2s, transform 0.2s;
}
.leadership-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.07); transform: translateY(-2px); }
.leadership-role { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.leadership-org { font-size: 0.8rem; color: var(--gray); margin-top: 2px; }
.leadership-date {
  font-size: 0.75rem; font-weight: 600;
  color: var(--sky);
  white-space: nowrap;
  margin-left: 1rem;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
}

/* ── CLUBS GRID ── */
.clubs-grid {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.club-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--gray-light);
  color: var(--navy);
  font-size: 0.8rem; font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 2rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.club-pill:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ── BASEBALL ── */
#baseball { background: var(--cream); }
.baseball-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.team-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.09); transform: translateY(-3px); }
.team-card-header {
  background: var(--navy);
  padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.team-card-header.alt { background: #142d52; }
.team-icon { font-size: 1.6rem; }
.team-name { font-weight: 700; color: var(--white); font-size: 1rem; }
.team-type { display: inline-block; margin-top: 2px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.team-card-body { padding: 1.5rem; }
.team-detail { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--gray-light); font-size: 0.9rem; }
.team-detail:last-child { border-bottom: none; }
.team-detail-key { color: var(--gray); font-weight: 500; }
.team-detail-val { font-weight: 600; color: var(--navy); }
.stats-title { font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: var(--navy); margin-bottom: 1.2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.stat-box {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.stat-box:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); transform: translateY(-2px); }
.stat-num { font-family: 'DM Serif Display', serif; font-size: 2.2rem; color: var(--navy); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--gray); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.4rem; }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 2.5rem; text-align: center; }
.footer-name { font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: var(--white); margin-bottom: 0.4rem; }
.footer-name span { color: var(--accent); }
.footer-sub { font-size: 0.85rem; color: rgba(255,255,255,0.4); }

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

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .collage-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .collage-frames { max-width: 420px; margin: 0 auto; }
  .photo-number { display: none; }
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 7rem;
  }
  .hero-photo-right { order: -1; }
  .hero-photo-frame { width: 240px; margin: 0 auto; }
  .hero-inner { max-width: 100%; }
  .hero-cta { justify-content: center; }
}
@media (max-width: 700px) {
  nav { padding: 0 1.2rem; }
  .nav-links { gap: 1rem; }
  section { padding: 4rem 1.2rem; }
  .about-grid, .baseball-grid { grid-template-columns: 1fr; }
  .hero { padding: 7rem 1.2rem 4rem; }
  .gpa-banner { flex-direction: column; }
}
