:root {
  --bg: #060c16;
  --surface: #101d32;
  --surface-2: #17253d;
  --text: #f6f7ff;
  --muted: #b7c8e3;
  --accent: #4ddfff;
  --accent-2: #ff7adb;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
  --header-bg: rgba(6, 12, 22, 0.78);
  --card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  --alt-bg: rgba(77, 223, 255, 0.08);
  --button-bg: rgba(255, 255, 255, 0.06);
}

body.light-mode {
  --bg: #f7faff;
  --surface: #ffffff;
  --surface-2: #eef5ff;
  --text: #16233a;
  --muted: #5a6b82;
  --accent: #0f6bd9;
  --accent-2: #ff5fa2;
  --border: rgba(22, 35, 58, 0.12);
  --shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
  --header-bg: rgba(255, 255, 255, 0.9);
  --card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 243, 255, 0.9));
  --alt-bg: rgba(15, 107, 217, 0.07);
  --button-bg: rgba(15, 107, 217, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--bg) 0%, #0d1830 45%, #132a45 100%);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.35s ease, color 0.35s ease;
}

body.light-mode {
  background: linear-gradient(135deg, #fdfefe 0%, #edf5ff 45%, #fef3f8 100%);
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 3rem;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(77, 223, 255, 0.16), rgba(255, 122, 219, 0.16));
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1,
.section-heading h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text,
.card p,
.image-card-content p,
.contact-card p,
.goal-card p {
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111f;
  box-shadow: 0 10px 22px rgba(77, 223, 255, 0.25);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--button-bg);
}

.tagline {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.75rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.hero-highlights div {
  min-width: 110px;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  background: var(--button-bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-highlights strong {
  font-size: 1rem;
  color: var(--text);
}

.hero-highlights span {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card,
.card,
.image-card,
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.card::before,
.image-card::before,
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.09) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.hero-card:hover::before,
.card:hover::before,
.image-card:hover::before,
.contact-card:hover::before {
  transform: translateX(120%);
}

.hero-card {
  padding: 0.9rem;
  max-width: 420px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.fun-button {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #07111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 22px rgba(77, 223, 255, 0.22);
}

.fun-message {
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.4rem;
}

.hero-card img {
  border-radius: 1rem;
  min-height: 320px;
  max-height: 440px;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 4 / 5;
  width: min(100%, 360px);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.alt-section {
  background: var(--alt-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 2rem;
}

.about-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.4rem;
}

.card h3,
.image-card-content h3,
.contact-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.image-card {
  overflow: hidden;
}

.image-card img {
  height: 220px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.image-card-content {
  padding: 1rem 1rem 1.25rem;
}

.goals-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-card {
  padding: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-links a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: var(--button-bg);
  border: 1px solid var(--border);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--button-bg);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.site-footer {
  padding: 1.6rem 0 2rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 3.5rem;
  }

  .hero-card {
    margin: 0 auto;
    width: min(100%, 360px);
  }

  .about-grid,
  .skills-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .goals-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero h1,
  .section-heading h2 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .hero-text,
  .card p,
  .image-card-content p,
  .contact-card p,
  .goal-card p {
    font-size: 0.95rem;
  }

  .about-grid,
  .skills-grid,
  .gallery-grid,
  .goals-layout {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 3.25rem 0;
  }

  .contact-links {
    width: 100%;
  }

  .contact-links a {
    width: calc(50% - 0.4rem);
    text-align: center;
  }
}
