/* Global centering */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #faf7f9 90%, #ffb3d9 50%, #ffa6cf 10%);
  box-shadow: inset 0 0 60px rgba(255, 182, 219, 0.436);
  color: #222;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  transition: background 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #1a1a2e 10%, #16213e 90%);
    color: #f0f4f8;
  }
}

main {
  width: 100%;
  max-width: 800px;
  padding: 2rem;
  margin: 0 auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 2rem auto;
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

section {
  text-align: center;
  margin: 2rem auto;
  padding: 2rem 1rem;
  max-width: 100%;
  border-radius: 12px;
}

#hero {
  background: rgba(239, 107, 239, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(154, 117, 154, 0.1);
  margin-top: 2rem;
}

@media (prefers-color-scheme: dark) {
  #hero {
    background: rgba(37, 90, 90, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
  }
}

p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

ul {
  text-align: center;
  list-style-position: inside;
}

.skills-list {
  text-align: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

/* Center all headings */
h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  background: linear-gradient(90deg, var(--primary-pink), var(--dark-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

h2, h3, h4, h5, h6 {
  text-align: center;
  color: var(--dark-purple);
}

h1,
h2 {
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  h2, h3, h4, h5, h6 {
    color: var(--cyan);
  }
}

header {
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  border-bottom: 2px solid var(--primary-pink);
  background: rgba(255, 107, 255, 0.02);
}

@media (prefers-color-scheme: dark) {
  header {
    border-bottom-color: var(--cyan);
    background: rgba(0, 255, 255, 0.02);
  }
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 1rem;
  margin: 0;
  flex-wrap: wrap;
}

.nav-list a {
  color: var(--dark-purple);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--primary-pink);
  border-bottom-color: var(--primary-pink);
  background: rgba(255, 107, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
  .nav-list a {
    color: var(--cyan);
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    color: var(--light-pink);
    border-bottom-color: var(--light-pink);
    background: rgba(0, 255, 255, 0.1);
  }
/* =========================
   HERO SECTION (FIXED CROPPING)
   ========================= */
.page-hero {
  width: 100%;
  max-width: 800px;
  margin: 1.5rem auto 0;
  padding: 0;
  /* IMPORTANT: defines cropping area */
  height: 350px;
  overflow: hidden;
}
/* IMAGE HANDLING */
.page-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* THIS enables cropping */
  object-position: center;   /* keeps center focus */
  display: block;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}
@media (max-width: 768px) {
  .page-hero {
    height: 250px;
    max-width: 100%;
  }
}
:root {
  --primary-pink: #ff6bff;
  --dark-purple: #810947;
  --deep-purple: #3d0025;
  --text-dark: #2b1221;
  --cyan: #00ffff;
  --tech-blue: #0077c0;
  --light-pink: #fee2f2;
  --light-bg: #f0f4f8;
  --cyan-accent: #00bbde;
}

/* Age Gate Modal Styles */
.age-gate-modal,
.age-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.age-gate-modal.show,
.age-modal {
  display: flex;
}

body.age-gate-lock > :not(.age-gate-modal) {
  filter: blur(5px);
  pointer-events: none !important;
  user-select: none !important;
  opacity: 0.35;
}

body.age-gate-lock {
  overflow: hidden;
}

.age-gate-lock *:not(.age-gate-modal):not(.age-gate-modal *) {
  caret-color: transparent !important;
}

.age-gate-content,
.age-modal-content {
  background: #1a1a1a;
  border: 2px solid #7fd5ff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  color: #fff;
}

.age-gate-content h2,
.age-modal-content h2 {
  margin-top: 0;
  color: #7fd5ff;
  font-size: 1.8rem;
}

.age-gate-content p,
.age-modal-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ccc;
}

.age-gate-form {
  margin: 1.5rem 0;
}

.age-gate-form input {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  font-family: sans-serif;
}

.age-gate-form input::placeholder {
  color: #666;
}

.age-gate-form input:focus {
  outline: none;
  border-color: #7fd5ff;
  box-shadow: 0 0 8px rgba(127, 213, 255, 0.3);
}

.age-gate-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.age-gate-btn {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.age-gate-btn-accept {
  background: #7fd5ff;
  color: #000;
}

.age-gate-btn-accept:hover {
  background: #5fb8d4;
}

.age-gate-btn-decline {
  background: #333;
  color: #fff;
  border: 1px solid #555;
}

.age-gate-btn-decline:hover {
  background: #444;
}

.age-gate-error {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.age-modal button {
  margin: 10px;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
}

#age-confirm {
  background: #7fd5ff;
  color: #000;
}

#age-confirm:hover {
  background: #5fb8d4;
}

#age-deny {
  background: #333;
  color: #fff;
  border: 1px solid #555;
}

#age-deny:hover {
  background: #444;
}
