:root {
  /* We use multiple shades of teal/green for the movement */
  --bg-color-1: #00c0c6; 
  --bg-color-2: #08383a;
  --bg-color-3: #0083fd;
  --text-color: #FDFFB0;
  --card-bg: rgba(0, 0, 0, 0.3);
  --font-main: 'Playfair', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  /* Animated Gradient Background */
  background: linear-gradient(135deg, var(--bg-color-1), var(--bg-color-2), var(--bg-color-3));
  background-size: 400% 400%;
  animation: gradientBG 5s ease infinite;
  
  color: var(--text-color);
  font-family: var(--font-main);
  display: flex;
  justify-content: center;
  overflow-y: auto; 
  overflow-x: hidden;
  padding-bottom: 3rem;
  min-height: 100vh;
}

/* Background Movement Animation */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.site-wrapper {
  width: 100%;
  max-width: 530px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
}

/* --- THE REVEAL ANIMATION --- */
.hero-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin-bottom: 40px;
}

.bubble {
  position: absolute;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(253, 255, 176, 0.2);
  animation: float 8s ease-in-out infinite;
}

.reveal-img {
  position: absolute;
  width: 600px; /* Large background image to reveal */
  height: auto;
  top: 50%;
  left: 50%;
  animation: counterFloat 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -15px); }
}

@keyframes counterFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(calc(-50% - 20px), calc(-50% + 15px)); }
}

/* Individual Bubble Positions */
.b1 { width: 80px; height: 80px; top: -10%; left: 10%; animation-delay: 0s; }
.b2 { width: 100px; height: 100px; top: -5%; right: -5%; animation-delay: -2s; }
.b3 { width: 190px; height: 190px; bottom: 5%; left: -20%; animation-delay: -4s; }
.b4 { width: 120px; height: 120px; bottom: -10%; right: 5%; animation-delay: -6s; }
.b5 { width: 60px; height: 60px; top: 40%; right: -15%; animation-delay: -8s; }
.b6 { width: 75px; height: 75px; top: -5%; left: 45%; animation-delay: -10s; }
.b7 { width: 65px; height: 65px; bottom: 10%; right: 40%; animation-delay: -12s; }

/* PROFILE STYLING */
.profile-main {
  position: absolute;
  width: 320px;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  overflow: hidden;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morphMain 8s ease-in-out infinite;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.profile-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes morphMain {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 40% 60% 70% 30% / 50% 70% 30% 50%; }
}

/* --- TEXT & SOCIALS --- */
.content-header { text-align: center; }
h1 { font-size: 2.1rem; font-weight: 400; margin: 0; }
.tagline { font-size: 0.7rem; opacity: 0.8; margin-top: 10px; max-width: 450px; text-transform: uppercase; }

.social-row {
  display: flex;
  gap: 25px;
  margin: 25px 0;
  font-size: 1.4rem;
}

.social-row a { color: inherit; text-decoration: none; }

/* --- GRID & CARDS --- */
.links-grid { 
  width: 100%; 
}

.video-card {
  width: 100%;
  aspect-ratio: 16/9;
  /* border-radius: 12px; */
  border: none;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--card-bg); 
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-card iframe { 
  width: 100%; 
  height: 100%; 
  display: block;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Maintains 2 columns */
  gap: 12px; /* Slightly tighter gap for mobile */
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover { 
  transform: translateY(-5px); 
}

.card img {
  width: 100%;
  height: 180px;
  aspect-ratio: 2 / 1; /* Ensures images are always square */
  object-fit: cover;
  display: block;
}

.card span {
  display: block;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.3;
  flex-grow: 1; /* Ensures text area expands evenly */
}

/* --- MOBILE RESPONSIVENESS --- */

@media (max-width: 480px) {
  .site-wrapper {
    padding: 40px 15px; /* Less padding on small screens */
  }

  .hero-container {
    width: 250px; /* Scale down the animation slightly for small phones */
    height: 250px;
  }

  .profile-main {
    width: 260px;
    height: 260px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .grid-container {
    gap: 10px; /* Tighter spacing for the grid */
  }

  .card img {
  width: 100%;
  height: 130px;
  aspect-ratio: 2 / 1; /* Ensures images are always square */
  object-fit: cover;
  display: block;
}

  .card span {
    padding: 8px;
    font-size: 0.7rem; /* Slightly smaller text for better fit */
  }
}

/* This handles the last card to make it look balanced if it's the only one in its row */
.full-width { 
    grid-column: span 1; /* Stays as 1 column to keep the 'square' look on mobile */
}