@font-face {
  font-family: "AppleGaramond-Light";
  src: url("AppleGaramond-Light.ttf") format("truetype");
  font-weight: 200;
  font-display: swap;
}

:root {
  --cyan: #00a7c1;
  --deep: #085562;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "AppleGaramond-Light", Garamond, serif;
  background: linear-gradient(180deg, #ffffff 0%, #c7f1f8 100%);
  color: var(--deep);
}

/* === Background lights === */
body::before,
body::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 167, 193, 0.65),
    rgba(0, 167, 193, 0.15) 75%,
    transparent 100%
  );
  mix-blend-mode: screen;
  filter: blur(100px);
  opacity: 0.85;
  animation: floatLight 35s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

body::after {
  background: radial-gradient(
    circle at 70% 70%,
    rgba(0, 167, 193, 0.55),
    rgba(0, 167, 193, 0.15) 75%,
    transparent 100%
  );
  filter: blur(110px);
  animation-duration: 42s;
  animation-delay: -12s;
  opacity: 0.8;
}

@keyframes floatLight {
  0%   { transform: translateY(0%) scale(1); }
  50%  { transform: translateY(-15%) scale(1.1); }
  100% { transform: translateY(0%) scale(1); }
}

/* === Homepage === */
body.homepage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.index-container {
  width: 92%;
  max-width: 900px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.title-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.square-img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

h1 {
  margin: 0;
  color: var(--cyan);
  font-weight: 300;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: 1px;
  text-align: left;
}

.text-section {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--deep);
  text-align: center;
}

.text-section h2 {
  text-align: center;
  margin: 1rem 0;
  color: var(--deep);
}

/* === Section links === */
.section-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.95rem;
  color: #034550;
}

.section-links a {
  text-decoration: underline;
  color: inherit;
  transition: color 0.3s ease;
}

.section-links a:hover {
  color: var(--cyan);
}

/* === Header === */
.site-header {
  width: 100%;
  text-align: center;
  font-size: 1.4rem;
  color: var(--deep);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: linear-gradient(180deg, #ffffff 0%, #c7f1f8 100%);
  z-index: 10;
  position: sticky;
  top: 0;
}

/* === Header Navigation === */
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--deep);
}

.header-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.88rem; /* slightly smaller */
}

.header-nav a {
  text-decoration: none;
  color: var(--deep); /* dark blue tone */
  position: relative;
  transition: color 0.3s ease, opacity 0.3s ease;
  font-weight: 400;
  letter-spacing: 0.2px;
  opacity: 0.9;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background-color: var(--deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.header-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  opacity: 1;
}

.header-nav a:hover {
  color: var(--cyan);
  opacity: 1;
}

/* === About Me Page === */
.about-container {
  max-width: 960px;
  margin: 5rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-title-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 2.5rem;
}

.about-img {
  width: 160px; /* smaller */
  height: auto;
  border-radius: 16px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
  transform: translateY(0);
  animation: floatGentle 14s ease-in-out infinite;
}

.about-title-block h1 {
  font-size: clamp(3rem, 8vw, 5.2rem);
  color: var(--cyan);
  font-weight: 300;
  line-height: 1;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

.about-text {
  max-width: 720px;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--deep);
}

.about-text p {
  margin-bottom: 1.5rem;
}

@keyframes floatGentle {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* === Responsive === */
@media (max-width: 720px) {
  .title-block,
  .about-title-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  h1,
  .about-title-block h1 {
    text-align: center;
  }

  .about-container {
    align-items: center;
  }

  .about-text {
    text-align: center;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.6rem;
  }

  .header-nav {
    font-size: 0.85rem;
    gap: 1rem;
  }

  .about-img {
    width: 130px;
  }
}