/* === Base Styles === */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

/* === Header === */
header {
  background-color: #3f87a6;
  color: white;
  padding: 20px 0;
}

header h1 {
  text-align: center;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* === Logo Section === */
.logo-section {
  text-align: center;
  margin-bottom: 30px;
}

.logo-section img {
  width: 150px;
  height: auto;
}

/* === Portfolio === */
.portfolio-section h3 {
  text-align: center;
  margin-top: 40px;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.portfolio-item {
  width: 250px;
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* === Footer === */
footer {
  background-color: #3f87a6;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

footer a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}

/* === HOMEPAGE Snow Globe Styles (scoped to .home-page) === */
.home-page .snow-globe {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  position: relative;
}

.home-page .globe-glass {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at top, #e0f7ff, #ccefff);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5),
              0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  z-index: 1;
}

/* 🌀 Shake on hover */
@keyframes shake {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(2deg); }
  40% { transform: rotate(-2deg); }
  60% { transform: rotate(1.5deg); }
  80% { transform: rotate(-1.5deg); }
  100% { transform: rotate(0deg); }
}

.home-page .globe-glass:hover {
  animation: shake 0.6s ease-in-out;
  cursor: pointer;

  /* Fix: higher stacking on hover */
  position: relative;
  z-index: 2;
}

/* Image inside globe */
.home-page .snow-globe-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ❄️ Snowfall inside globe */
.home-page .globe-snow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3; /* Fix: flakes above globe glass */
  pointer-events: none;
  will-change: transform;
}

.home-page .flake {
  position: absolute;
  top: -30px;
  width: 16px;
  height: 16px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/2/2f/Snow_flake_icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* ⬇️ Snowfall animation */
@keyframes fall {
  to {
    transform: translateY(240px);
    opacity: 0;
  }
}

/* ❄️ Snowflake positions and speeds */
.home-page .flake:nth-child(1) { left: 10%; animation-duration: 4s; animation-delay: 0s; }
.home-page .flake:nth-child(2) { left: 25%; animation-duration: 5s; animation-delay: 0.5s; }
.home-page .flake:nth-child(3) { left: 40%; animation-duration: 6s; animation-delay: 1s; }
.home-page .flake:nth-child(4) { left: 55%; animation-duration: 4.5s; animation-delay: 1.5s; }
.home-page .flake:nth-child(5) { left: 70%; animation-duration: 3.5s; animation-delay: 0.8s; }
.home-page .flake:nth-child(6) { left: 85%; animation-duration: 5s; animation-delay: 1.2s; }
.home-page .flake:nth-child(7) { left: 20%; animation-duration: 4.2s; animation-delay: 1s; }
.home-page .flake:nth-child(8) { left: 35%; animation-duration: 4.8s; animation-delay: 1.3s; }
.home-page .flake:nth-child(9) { left: 60%; animation-duration: 4.1s; animation-delay: 0.6s; }
.home-page .flake:nth-child(10) { left: 90%; animation-duration: 5.5s; animation-delay: 1.6s; }

/* 🟤 Globe base */
.home-page .globe-base {
  width: 140px;
  height: 40px;
  background: #8b5e3c;
  border-radius: 10px;
  margin-top: -10px;
  z-index: 0;
}

/* === About Me Page Styles (scoped to .about-me-page) === */
.about-me-page .about-me-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  background: linear-gradient(135deg, #dbe9f4 0%, #f7fcff 100%);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.about-me-page .about-me-text {
  flex: 1 1 320px;
  max-width: 480px;
  color: #1a1a1a;
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-me-page .about-me-text h2 {
  font-family: 'Pacifico', cursive;
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #3f87a6;
}

.about-me-page .about-me-text strong {
  color: #1565c0;
}

.about-me-page .about-me-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
}

.about-me-page .highlight-card {
  background: white;
  flex: 1 1 140px;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: center;
  color: #444;
  transition: transform 0.2s ease;
}

.about-me-page .highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.about-me-page .highlight-card h4 {
  margin-bottom: 10px;
  color: #3f87a6;
}

/* Snow Globe photo container */
.about-me-page .about-me-photo {
  flex: 1 1 280px;
  max-width: 280px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Snow Globe styling scoped to about-me-page */
.about-me-page .globe-glass {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at top, #e0f7ff, #ccefff);
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.6),
              0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  cursor: default;
}

.about-me-page .globe-glass:hover {
  transform: scale(1.05);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.8),
    0 8px 25px rgba(0, 0, 0, 0.3);
}

.about-me-page .globe-glass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  user-select: none;
  pointer-events: none;
}

.about-me-page .globe-snow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}

.about-me-page .flake {
  position: absolute;
  top: -30px;
  width: 14px;
  height: 14px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/2/2f/Snow_flake_icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.85;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Snowflake fall animation */
@keyframes fall {
  to {
    transform: translateY(280px);
    opacity: 0;
  }
}

/* Flake positions & timing */
.about-me-page .flake:nth-child(1) { left: 12%; animation-duration: 5s; animation-delay: 0s; }
.about-me-page .flake:nth-child(2) { left: 28%; animation-duration: 6s; animation-delay: 0.7s; }
.about-me-page .flake:nth-child(3) { left: 42%; animation-duration: 5.5s; animation-delay: 1.1s; }
.about-me-page .flake:nth-child(4) { left: 58%; animation-duration: 6.2s; animation-delay: 1.6s; }
.about-me-page .flake:nth-child(5) { left: 72%; animation-duration: 5.3s; animation-delay: 0.8s; }
.about-me-page .flake:nth-child(6) { left: 85%; animation-duration: 6.5s; animation-delay: 1.4s; }
.about-me-page .flake:nth-child(7) { left: 22%; animation-duration: 5.8s; animation-delay: 1.0s; }
.about-me-page .flake:nth-child(8) { left: 35%; animation-duration: 6.1s; animation-delay: 1.3s; }

/* Figcaption styling */
.about-me-page figcaption {
  margin-top: 12px;
  font-style: italic;
  font-size: 1rem;
  color: #666;
  text-align: center;
}

/* Frosted Glass container */
.frosted-glass {
  background: rgba(255 255 255 / 0.6);
  backdrop-filter: saturate(180%) blur(10px);
  border-radius: 15px;
  padding: 25px;
}

/* Responsive: stack content vertically on small screens */
@media (max-width: 720px) {
  .about-me-page .about-me-container {
    flex-direction: column;
    padding: 20px 10px;
  }

  .about-me-page .about-me-photo {
    max-width: 100%;
  }
}
nav ul {
      list-style: none;
      padding: 0;
      margin: 10px 0 0 0;
      display: flex;
      justify-content: center;
      gap: 20px;
    }

    nav ul li a {
      color: white;
      text-decoration: none;
      font-weight: bold;
    }

    main.container {
      max-width: 1080px;
      margin: 40px auto;
      padding: 0 15px;
    }

    h2 {
      text-align: center;
      color: #1565c0;
      margin-bottom: 30px;
      font-weight: 700;
      font-size: 2rem;
    }

    .masonry-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 20px;
    }

    .gallery-item {
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgb(63 135 166 / 0.4);
      overflow: hidden;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      cursor: pointer;
      user-select: none;
    }

    .gallery-item:hover,
    .gallery-item:focus {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgb(63 135 166 / 0.7);
      outline: none;
    }

    .gallery-item img {
      width: 100%;
      height: auto;
      display: block;
      border-bottom: 3px solid #3f87a6;
      border-radius: 12px 12px 0 0;
      object-fit: cover;
      aspect-ratio: 4 / 3;
    }

    .gallery-item figcaption {
      padding: 12px 15px;
      font-size: 1rem;
      font-weight: 600;
      color: #1565c0;
      text-align: center;
      background: #e6f0fa;
      border-radius: 0 0 12px 12px;
      user-select: none;
    }

    /* Responsive */
    @media (max-width: 480px) {
      .masonry-grid {
        grid-template-columns: 1fr;
        padding: 0 5px;
      }
    }

    /* Interactive Page Styles */
.interactive-page {
  background: linear-gradient(135deg, #e0f7ff 0%, #ccefff 100%);
  color: #1565c0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.interactive-page header {
  background-color: #3f87a6;
  color: white;
}

.interactive-page header h1 {
  font-family: 'Pacifico', cursive;
  font-weight: normal;
}

.interactive-page nav ul li a {
  font-weight: bold;
  color: white;
}

.interactive-page .logo-section img {
  width: 130px;
  margin: 0 auto 30px auto;
  display: block;
}

.interactive-page .interactive-content {
  max-width: 700px;
  margin: 0 auto 40px auto;
  background: rgba(255 255 255 / 0.7);
  border-radius: 15px;
  padding: 30px 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  font-size: 1.1rem;
  text-align: center;
  color: #1a1a1a;
}

.interactive-page .interactive-content h2 {
  font-family: 'Pacifico', cursive;
  color: #1565c0;
  margin-bottom: 20px;
  font-weight: 700;
}

.interactive-page .btn {
  background-color: #3f87a6;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.interactive-page .btn:hover {
  background-color: #1565c0;
}

.interactive-page input[type="text"] {
  padding: 8px 12px;
  border: 2px solid #3f87a6;
  border-radius: 10px;
  margin-top: 8px;
  font-size: 1rem;
  width: 60%;
  max-width: 250px;
  outline-color: #1565c0;
}

.interactive-page label {
  color: #1565c0;
  font-weight: 600;
}

.interactive-page .interactive-message {
  margin-top: 15px;
  font-weight: 600;
  color: #3f87a6;
  min-height: 1.5em;
}

.interactive-page footer {
  background-color: #3f87a6;
  color: white;
  text-align: center;
  padding: 20px 0;
}

.interactive-page footer a {
  color: white;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 720px) {
  .interactive-page .interactive-content {
    padding: 20px 15px;
  }
  .interactive-page input[type="text"] {
    width: 100%;
    max-width: 100%;
  }
}
#penguinEffect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  pointer-events: none;
  opacity: 0.3; /* lower opacity so it doesn't obscure content */
  z-index: 0; /* behind all content */
  display: none;
}

