@font-face {
  font-family: "Chewy";
  src: url("fonts/Chewy-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  color: white;
  background: linear-gradient(135deg, #00122e, #0a2a5e, #0074d9);
  overflow-x: hidden;
  position: relative;
}

/* ---------- layered depth background ---------- */

.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  will-change: transform;
}

.blob-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite;
}

.blob-1 {
  width: 420px;
  height: 420px;
  top: -100px;
  left: -80px;
}
.blob-1 .blob-inner {
  background: #7fdbff;
  animation-delay: 0s;
}

.blob-2 {
  width: 460px;
  height: 460px;
  top: -110px;
  right: -120px;
}
.blob-2 .blob-inner {
  background: #b388ff;
  animation-delay: 4s;
}

.blob-3 {
  width: 420px;
  height: 420px;
  bottom: -120px;
  left: -100px;
}
.blob-3 .blob-inner {
  background: #ff6ec7;
  animation-delay: 8s;
}

.blob-4 {
  width: 460px;
  height: 460px;
  bottom: -130px;
  right: -110px;
}
.blob-4 .blob-inner {
  background: #ffd66b;
  animation-delay: 6s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 60px) scale(1.1); }
  66% { transform: translate(-30px, -40px) scale(0.95); }
}

/* ---------- content sits above the background layer ---------- */

.hero,
.socials,
.counter-section,
.gallery,
.footer {
  position: relative;
  z-index: 1;
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem 1.5rem;
}

.hero-logo {
  width: 180px;
  height: auto;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

.title {
  font-family: "Chewy", "Comic Sans MS", "Comic Sans", cursive;
  font-size: 4.5rem;
  margin: 0;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

.subtitle {
  font-family: "Chewy", "Comic Sans MS", "Comic Sans", cursive;
  font-size: 1.3rem;
  opacity: 0.85;
  margin: 0.75rem 0 0;
}

/* ---------- glass panels (behind text, react to scroll) ---------- */

.glass-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 0 0 rgba(127, 219, 255, 0);
  transition: box-shadow 0.6s ease, background 0.6s ease, transform 0.6s ease;
}

.reveal.in-view.glass-panel,
.reveal.in-view .glass-panel {
  box-shadow: 0 0 45px rgba(127, 219, 255, 0.18);
}

.heading-panel {
  display: inline-block;
  padding: 0.6rem 1.75rem;
}

/* ---------- shared section styling ---------- */

.section-heading {
  font-family: "Chewy", "Comic Sans MS", "Comic Sans", cursive;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.bio,
.socials,
.gallery {
  padding: 2.5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.counter-section {
  padding: 1rem 1.5rem 2.5rem;
  display: flex;
  justify-content: center;
}

/* ---------- bio ---------- */

.bio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.bio-text {
  flex: 1 1 280px;
  padding: 1.75rem;
  display: flex;
  align-items: center;
}

.bio-text p {
  margin: 0;
  line-height: 1.7;
  font-size: 1.02rem;
}

.bio-image {
  flex: 1 1 280px;
  aspect-ratio: 882 / 463;
  overflow: hidden;
  padding: 0;
}

.bio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- glass cards ---------- */

.app-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  text-decoration: none;
  color: white;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.045);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.card-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  width: 100%;
}

.card-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.card-label {
  font-weight: 700;
  font-size: 1.1rem;
}

.card-sub {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- counter card ---------- */

.counter-card {
  width: 100%;
  max-width: 320px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.counter-card .card-label {
  font-family: "Chewy", "Comic Sans MS", "Comic Sans", cursive;
  font-size: 1.3rem;
}

#clickBtn {
  font-family: "Chewy", "Comic Sans MS", "Comic Sans", cursive;
  font-size: 1.3rem;
  padding: 0.9rem 2.25rem;
  border: none;
  border-radius: 50px;
  background: white;
  color: #0074d9;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin: 1rem 0;
}

#clickBtn:hover {
  animation: wiggle 0.4s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg) scale(1.05); }
  25% { transform: rotate(-5deg) scale(1.05); }
  75% { transform: rotate(5deg) scale(1.05); }
}

#clickBtn.clicked {
  animation: pressPop 0.3s ease;
}

@keyframes pressPop {
  0% { transform: scale(1); }
  40% { transform: scale(0.85); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

#count {
  font-family: "Chewy", "Comic Sans MS", "Comic Sans", cursive;
  font-size: 1.8rem;
}

#count.bump {
  animation: bump 0.3s ease;
}

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ---------- gallery (masonry: preserves each photo's own aspect ratio) ---------- */

.gallery-grid {
  column-count: 2;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    column-count: 3;
  }
}

.gallery-item {
  margin-bottom: 1rem;
  break-inside: avoid;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- footer ---------- */

.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-family: "Chewy", "Comic Sans MS", "Comic Sans", cursive;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* ---------- reveal-on-load animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
