/* ---------- Base ---------- */
:root {
  --text: #40514E;
  --teal: #66BFBF;
  --teal-dark: #11999E;
  --bg: #EAF6F6;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  text-align: center;
  font-family: "Merriweather", serif;
  color: var(--text);
  background: var(--white);
}

/* Main page title */
h1 {
  margin-top: 50px;
  font-family: "Sacramento", cursive;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--teal);
}

/* Section headings */
h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  color: var(--teal);
  font-weight: normal;
}

/* Smaller headings */
h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--teal-dark);
}

/* Paragraph text */
p { line-height: 2; }

/* Decorative horizontal divider */
hr {
  border: dotted var(--bg) 6px;
  border-bottom: none;
  width: 4%;
  margin: 80px auto;
}

/* All links */
a {
  color: var(--teal-dark);
  font-family: "Montserrat", sans-serif;
  margin: 10px 20px;
  text-decoration: none;
}

/* Link hover effect */
a:hover { color: var(--bg); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: 10px;
  z-index: 9999;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(64, 81, 78, 0.08);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;            /* FLEXBOX */
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav__brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0;
  color: var(--teal-dark);
}

.nav__links {
  display: flex;            /* FLEXBOX */
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav__link {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 153, 158, 0.25);
}

.nav__link:hover {
  color: var(--teal-dark);
  background: rgba(102, 191, 191, 0.12);
}

.nav__link.is-active {
  background: rgba(102, 191, 191, 0.18);
  border-color: rgba(17, 153, 158, 0.35);
}

/* ---------- Top section background ---------- */
.top-container {
  background-color: var(--bg);
  position: relative;
  padding: 100px 18px 40px;
}

/* Hero title spacing */
.title-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Clouds */
.top-cloud,
.bottom-cloud {
  width: 140px;
  height: auto;
}

/* Decorative images should NOT animate */
.top-cloud:hover,
.bottom-cloud:hover,
.mountain:hover {
  transform: none;
  box-shadow: none;
  filter: none;
  cursor: default;
}

/* Mountain image */
.mountain {
  width: 500px;
  max-width: 90%;
  height: auto;
  margin-top: 20px;
}

/* ---------- Middle section spacing ---------- */
.middle-container {
  margin: 80px 0;
  padding: 0 18px;
}

.page {
  margin: 60px auto;
  padding: 0 18px;
  max-width: 1100px;
}

/* Profile picture */
.profile img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
}

.intro {
  width: min(30rem, 90%);
  margin: 0 auto;
}

.contact-message {
  width: min(40rem, 90%);
  margin: 40px auto 60px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: #11cdd4;
  background-image: linear-gradient(to bottom, #11cdd4, #11999e);
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  color: #ffffff;
  font-size: 20px;
  padding: 10px 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #30e3cb;
  background-image: linear-gradient(to bottom, #30e3cb, #2bc4ad);
  text-decoration: none;
}

/* Ghost button for secondary actions */
.btn--ghost {
  background: transparent;
  color: var(--teal-dark);
  border: 2px solid rgba(17, 153, 158, 0.35);
}

.btn--ghost:hover {
  background: rgba(102, 191, 191, 0.12);
  color: var(--teal-dark);
}

/* CTA row uses FLEXBOX (easy place for you to add more later) */
.cta-row {
  display: flex;            /* FLEXBOX */
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ---------- Images (general) ---------- */
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  filter: saturate(1.05);
}

/* ---------- Skills Layout ---------- */
/* Grid container for skills (GRID example) */
.parent {
  display: grid;                 /* GRID */
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 30px auto 0;
}

/* Same size + border + hover glow */
.parent .typing img,
.parent .chillies img {
  width: 240px;
  height: 180px;
  object-fit: cover;
  border: 3px solid rgba(102, 191, 191, 0.55);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  position: relative;
}

/* Hover glow + sparkle */
.parent .typing img:hover,
.parent .chillies img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.18),
    0 0 0 4px rgba(102, 191, 191, 0.18),
    0 0 22px rgba(48, 227, 203, 0.35);
  filter: brightness(1.04) saturate(1.12);
  border-color: rgba(48, 227, 203, 0.75);
}

/* Wrapper for sparkle overlay */
.typing,
.chillies {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Fake sparkle layer using gradients */
.typing::after,
.chillies::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 180px;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.85) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 20%, rgba(255,255,255,0.75) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,0.65) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 80%, rgba(255,255,255,0.6) 0 2px, transparent 3px),
    linear-gradient(135deg,
      rgba(48, 227, 203, 0.18),
      rgba(102, 191, 191, 0.10),
      rgba(255, 255, 255, 0.10)
    );
  mix-blend-mode: screen;
}

/* Show sparkles on hover */
.typing:hover::after,
.chillies:hover::after {
  opacity: 1;
  transform: translateY(-3px);
}

/* Make images appear above overlay */
.typing img,
.chillies img { z-index: 1; }

/* ---------- Contact form ---------- */
.form-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 18px;
  border-radius: 16px;
  border: 1px solid rgba(64, 81, 78, 0.10);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.contact-form {
  max-width: 760px;
  margin: 0 auto;
}

.form-grid {
  display: grid;                /* GRID */
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
  margin: 18px 0 16px;
}

.form-grid__full {
  grid-column: 1 / -1;
}

label {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  display: grid;
  gap: 6px;
}

input,
textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(64, 81, 78, 0.18);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(17, 153, 158, 0.55);
  box-shadow: 0 0 0 4px rgba(102, 191, 191, 0.18);
}

.form-note {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 10px;
}

/* ---------- Footer area ---------- */
.bottom-container {
  background-color: var(--teal);
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-link { color: var(--bg); }
.footer-link:hover { color: var(--white); }

.copyright {
  color: var(--bg);
  font-size: 0.75rem;
  padding: 20px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .parent { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .parent .typing img,
  .parent .chillies img,
  .typing::after,
  .chillies::after {
    width: 260px;
    height: 190px;
  }
}
