*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a2a4a;
  --navy-light: #243b6b;
  --gold: #f5b942;
  --gold-dark: #d99a1f;
  --coral: #ff6b6b;
  --mint: #4ecdc4;
  --sky: #6ec1ff;
  --lavender: #b8a9e8;
  --cream: #fff9f0;
  --text: #2d3748;
  --text-muted: #5a6578;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(26, 42, 74, 0.12);
  --shadow-hover: 0 12px 40px rgba(26, 42, 74, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 0 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}

.nav-logo-icon {
  font-size: 1.6rem;
}

.nav-logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-logo-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--gold-dark) !important;
  color: var(--navy) !important;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #2d5a8e 100%);
  color: var(--white);
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(245, 185, 66, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 185, 66, 0.2);
  border: 1px solid rgba(245, 185, 66, 0.4);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(245, 185, 66, 0.4);
}

.btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: 0 8px 24px rgba(245, 185, 66, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* ── Sections ── */
section {
  padding: 4.5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ── About ── */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1.25rem 0.75rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-weight: 500;
}

.about-visual {
  background: linear-gradient(145deg, var(--sky), var(--mint));
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow);
}

.about-visual-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.about-visual h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-visual p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ── Skills ── */
.skills {
  background: var(--cream);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid transparent;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.skill-card:nth-child(1) { border-top-color: var(--coral); }
.skill-card:nth-child(2) { border-top-color: var(--sky); }
.skill-card:nth-child(3) { border-top-color: var(--mint); }
.skill-card:nth-child(4) { border-top-color: var(--lavender); }

.skill-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.skill-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Projects ── */
.projects {
  background: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.project-card-header {
  padding: 1.75rem 1.5rem 1.25rem;
  color: var(--white);
}

.project-card-header.football {
  background: linear-gradient(135deg, #1b4332, #2d6a4f);
}

.project-card-header.cartoon {
  background: linear-gradient(135deg, #7b2d8b, #c77dff);
}

.project-card-header.cricket {
  background: linear-gradient(135deg, #1d3557, #457b9d);
}

.project-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.project-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.project-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-authors {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.project-card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.project-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.projects-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ── Footer ── */
.footer {
  background: #0f1c33;
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--white);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 3.5rem 1.25rem 4.5rem;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
}
