/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  scroll-behavior: smooth;
}

/* Background */
body {
  background: linear-gradient(
    135deg,
    #e5d4f9,  /* soft purple instead of white */
    #f8fbfd,  /* light blue/white */
    #d7f8ec,  /* mint green */
    #e6dffc   /* lavender */
  );
  background-size: 400% 400%; /* for scroll movement */
  background-attachment: fixed;
  color: #222;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-position 0.2s linear;
}

/* iOS Glass Header */
header {
  position: fixed;
  top: 20px; /* slightly below top for floating look */
  left: 50%;
  transform: translateX(-50%);
  height: 60px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 36px; /* pill shape */
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  z-index: 999;
  transition: all 0.3s ease;

  width: 90%;         /* responsive width */
  max-width: 600px;   /* prevent stretching on large screens */
}

header.scrolled {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Navigation Tabs */
nav {
  display: flex;
  gap: 1rem;
  justify-content: space-around; /* evenly space links */
  width: 100%;
}

nav a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #222;
  padding: 8px 16px;
  border-radius: 24px;
  transition: background 0.3s ease, 
              box-shadow 0.3s ease, 
              transform 0.25s ease,
              color 0.3s ease; /* smooth color fade */
  white-space: nowrap;
}

/* Active tab (selected) stays flat */
nav a.active {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: none; /* no lift */
  color: #111; /* slightly darker text for clarity */
}

/* Hover effect only applies if NOT active */
nav a:hover:not(.active) {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px); /* raise on hover */
}

/* Adjust spacing + text size on very small screens */
@media (max-width: 400px) {
  nav {
    gap: 0.5rem;
  }
  nav a {
    padding: 6px 8px;
    font-size: 13px; /* smaller for mobile */
  }
}

/* Title Section */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #111;
}

.hero p {
  font-size: 1.25rem;
  margin-top: 1rem;
  color: #444;
}

/* Default section */
.section {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 4rem auto;
  text-align: center;

  /* Glass card frame */
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* Phones */
@media (max-width: 600px) {
  .section {
    padding: 3rem 1.5rem;
    margin: 3rem 1rem;
  }
}

/* Very small phones */
@media (max-width: 400px) {
  .section {
    padding: 2rem 1rem;
    margin: 2rem 0.5rem;
  }
}

/* Tablets (portrait iPad, iPad mini, etc.) */
@media (min-width: 601px) and (max-width: 1024px) {
  .section {
    margin: 4rem 2rem; /* add consistent side gap */
  }
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.section a {
  color: #007aff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.section a:hover {
  text-decoration: underline;
  color: #0051c7;
}

/* Extra breathing room for non-home pages */
main.inner-page .section:first-of-type {
  margin-top: 7rem;
}

/* Grid layout for social links */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

/* Base style for all social links */
.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 500;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.3s ease;
}

/* Active links (highlighted) */
.social-link.active {
  background: rgba(255, 255, 255, 0.7);
  color: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.social-link.active:hover {
  transform: translateY(-3px);
}

/* Inactive links (dimmed) */
.social-link.inactive {
  background: rgba(255, 255, 255, 0.3);
  color: #666;
  opacity: 0.6;
}
.social-link.inactive:hover {
  transform: translateY(-3px);
}

/* Photo Gallery */
.section img,
#gallery img {
  display: block;
  max-width: 100%;   /* keeps inside container */
  height: auto;
  margin: 10px auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
