:root {
  --primary-color: #6a1b9a; /* Deep Purple */
  --secondary-color: #9c27b0; /* Purple */
  --accent-color: #e1bee7; /* Light Purple */
  --text-color: #333;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.8);
  --shadow: 0 8px 32px 0 rgba(74, 20, 140, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Samsung Sans Medium', "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5fafd; /* Light Blue-White */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Underwater Background --- */
.underwater-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #e1f5fe 50%, #b3e5fc 100%); /* White to Light Blue */
}

.water {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 0%, rgba(3, 169, 244, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(3, 169, 244, 0.1) 100%);
  z-index: 0;
}

/* Light Rays */
.light-rays {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(3, 169, 244, 0.1) 0%,
    rgba(3, 169, 244, 0.1) 1px,
    transparent 1px,
    transparent 40px
  );
  animation: rayMove 15s linear infinite;
  opacity: 0.8;
  z-index: 1;
  transform-origin: top center;
}

@keyframes rayMove {
  0% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50% { opacity: 0.7; }
  100% { transform: rotate(45deg) translateY(50px); opacity: 0.4; }
}

/* Bubbles */
.bubbles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.bubbles span {
  position: absolute;
  bottom: -20px;
  background: rgba(3, 169, 244, 0.15);
  border: 1px solid rgba(3, 169, 244, 0.3);
  border-radius: 50%;
  animation: rise 15s infinite ease-in;
  box-shadow: 0 0 10px rgba(3, 169, 244, 0.1);
}

.bubbles span:nth-child(1) { left: 10%; width: 20px; height: 20px; animation-duration: 8s; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 20%; width: 35px; height: 35px; animation-duration: 12s; animation-delay: 2s; }
.bubbles span:nth-child(3) { left: 35%; width: 15px; height: 15px; animation-duration: 10s; animation-delay: 4s; }
.bubbles span:nth-child(4) { left: 50%; width: 25px; height: 25px; animation-duration: 14s; animation-delay: 1s; }
.bubbles span:nth-child(5) { left: 65%; width: 30px; height: 30px; animation-duration: 16s; animation-delay: 3s; }
.bubbles span:nth-child(6) { left: 80%; width: 10px; height: 10px; animation-duration: 9s; animation-delay: 5s; }
.bubbles span:nth-child(7) { left: 90%; width: 40px; height: 40px; animation-duration: 18s; animation-delay: 2s; }
.bubbles span:nth-child(8) { left: 25%; width: 12px; height: 12px; animation-duration: 11s; animation-delay: 6s; }
.bubbles span:nth-child(9) { left: 55%; width: 18px; height: 18px; animation-duration: 13s; animation-delay: 4s; }
.bubbles span:nth-child(10) { left: 75%; width: 22px; height: 22px; animation-duration: 15s; animation-delay: 1s; }

@keyframes rise {
  0% { bottom: -20px; transform: translateX(0); opacity: 0; }
  20% { opacity: 0.6; }
  50% { transform: translateX(20px); }
  80% { opacity: 0.4; }
  100% { bottom: 110%; transform: translateX(-20px); opacity: 0; }
}

/* Sharks */
.sharks-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.shark {
  position: absolute;
  width: 120px;
  height: 40px;
  opacity: 0.8;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));
}

.shark-1 {
  top: 20%;
  left: -150px;
  animation: swimRight 35s linear infinite;
  transform: scale(0.8);
}

.shark-2 {
  top: 70%;
  right: -150px;
  animation: swimLeft 45s linear infinite;
  transform: scale(0.6) scaleX(-1); /* Flip horizontally */
}

/* CSS Shark Shape */
.shark-body {
  width: 100%;
  height: 100%;
  background: #4a5568;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
}

.shark-body::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  width: 15px;
  height: 2px;
  background: #2d3748;
  box-shadow: 0 4px 0 #2d3748, 0 8px 0 #2d3748;
}

.shark-tail {
  position: absolute;
  top: 5px;
  right: -20px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 30px solid #4a5568;
  transform-origin: left center;
  animation: tailWag 1s ease-in-out infinite alternate;
}

.shark-fin {
  position: absolute;
  top: -15px;
  left: 40px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 25px solid #4a5568;
  transform: skewX(-20deg);
}

@keyframes swimRight {
  0% { left: -150px; transform: scale(0.8) translateY(0); }
  25% { transform: scale(0.8) translateY(20px); }
  50% { transform: scale(0.8) translateY(0); }
  75% { transform: scale(0.8) translateY(-20px); }
  100% { left: 110%; transform: scale(0.8) translateY(0); }
}

@keyframes swimLeft {
  0% { right: -150px; transform: scale(0.6) scaleX(-1) translateY(0); }
  25% { transform: scale(0.6) scaleX(-1) translateY(-15px); }
  50% { transform: scale(0.6) scaleX(-1) translateY(0); }
  75% { transform: scale(0.6) scaleX(-1) translateY(15px); }
  100% { right: 110%; transform: scale(0.6) scaleX(-1) translateY(0); }
}

@keyframes tailWag {
  0% { transform: rotate(10deg); }
  100% { transform: rotate(-10deg); }
}

/* --- Diver --- */
.diver-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.diver {
  position: absolute;
  top: 45%;
  left: -200px;
  width: 100px;
  height: 30px;
  animation: swimDiver 50s linear infinite;
  animation-delay: 5s; /* Staggered start */
  transform-origin: center;
  opacity: 0.9;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.4));
}

.diver-body {
  position: relative;
  width: 60px;
  height: 25px;
  background: #333; /* Dark suit */
  border-radius: 20px;
  left: 20px;
  z-index: 2;
}

.diver-head {
  position: absolute;
  right: -10px;
  top: 2px;
  width: 22px;
  height: 22px;
  background: #333;
  border-radius: 50%;
  z-index: 2;
}

.diver-mask {
  position: absolute;
  right: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  background: #81d4fa; /* Cyan glass */
  border-radius: 50%;
  border: 1px solid #555;
  box-shadow: inset 2px 2px 2px rgba(255,255,255,0.4);
}

.diver-tank {
  position: absolute;
  top: -8px;
  left: 10px;
  width: 30px;
  height: 12px;
  background: #757575; /* Silver tank */
  border-radius: 5px;
  z-index: 1;
}

.diver-arm {
  position: absolute;
  top: 15px;
  left: 25px;
  width: 25px;
  height: 8px;
  background: #333;
  border-radius: 5px;
  transform: rotate(15deg);
  z-index: 3;
}

.diver-legs {
  position: absolute;
  left: 5px;
  top: 8px;
  z-index: 1;
}

.diver-leg {
  position: absolute;
  width: 20px;
  height: 8px;
  background: #333;
  border-radius: 2px;
  transform-origin: right center;
}

.leg-left {
  top: -2px;
  transform: rotate(10deg);
  animation: kickLeft 1.5s infinite alternate;
}

.leg-right {
  top: 5px;
  transform: rotate(-10deg);
  animation: kickRight 1.5s infinite alternate;
}

.fin {
  position: absolute;
  left: -20px;
  top: -5px;
  width: 0;
  height: 0;
  border-right: 25px solid #212121; /* Darker fin */
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  transform: skewY(10deg);
}

/* Bubble Trail for Diver */
.diver-bubbles-trail {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
}

.diver-bubbles-trail span {
  position: absolute;
  background: rgba(3, 169, 244, 0.3);
  border: 1px solid rgba(3, 169, 244, 0.5);
  border-radius: 50%;
  animation: diverBubble 2s linear infinite;
  opacity: 0;
}

.diver-bubbles-trail span:nth-child(1) { width: 6px; height: 6px; animation-delay: 0s; right: 20px; top: -5px; }
.diver-bubbles-trail span:nth-child(2) { width: 4px; height: 4px; animation-delay: 0.5s; right: 25px; top: -8px; }
.diver-bubbles-trail span:nth-child(3) { width: 8px; height: 8px; animation-delay: 1s; right: 18px; top: -10px; }

@keyframes swimDiver {
  0% { left: -200px; transform: translateY(0) rotate(5deg); }
  25% { transform: translateY(-30px) rotate(0deg); }
  50% { transform: translateY(0) rotate(-5deg); }
  75% { transform: translateY(30px) rotate(0deg); }
  100% { left: 110%; transform: translateY(0) rotate(5deg); }
}

@keyframes kickLeft {
  0% { transform: rotate(20deg); }
  100% { transform: rotate(-20deg); }
}

@keyframes kickRight {
  0% { transform: rotate(-20deg); }
  100% { transform: rotate(20deg); }
}

@keyframes diverBubble {
  0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  100% { transform: translate(-50px, -50px) scale(0); opacity: 0; }
}

/* --- Main Content Styling Adjustments --- */
.main-container {
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10; /* Above water */
}

.logo-container {
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease-out;
}

.logo-container img {
  max-width: 120px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.header-content {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeIn 1.5s ease-out;
}

h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #4a148c; /* Deep Purple */
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  text-shadow: none;
}

.subtitle {
  font-size: 1.2rem;
  color: #6a1b9a; /* Purple */
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: none;
}

.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInUp 1s ease-out 0.5s backwards;
  perspective: 1000px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Left align content for neatness */
  width: 100%; /* Take full width of container/max-width */
  max-width: 380px; /* Consistent uniform width */
  padding: 1.2rem 2rem; /* Comfortable touch target */
  background: rgba(255, 255, 255, 0.7); /* Clearer on white */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #4a148c; /* Purple text */
  text-decoration: none;
  font-weight: 600; /* Medium/SemiBold */
  font-size: 1.1rem;
  border-radius: 50px; /* Pill shape */
  box-shadow: 
    0 10px 25px rgba(74, 20, 140, 0.1), /* Soft purple shadow */
    inset 0 0 0 1px rgba(255, 255, 255, 0.9); /* White border */
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid transparent; /* Handled by inset shadow */
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  margin: 0 auto; /* Center in flex column if needed */
}

.link-card i {
  font-size: 1.4rem;
  margin-right: 1.2rem;
  width: 32px; /* Fixed width for perfect vertical alignment */
  display: flex;
  justify-content: center;
  transition: transform 0.4s ease;
  z-index: 2;
  color: #7b1fa2; /* Purple Icon */
}

.link-card span {
  z-index: 2;
  position: relative;
}

/* Liquid Fill Effect (Hover) */
.link-card::before {
  content: "";
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 1;
}

.link-card:hover::before {
  width: 400%;
  height: 400%;
}

.link-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 
    0 20px 40px rgba(74, 20, 140, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  color: var(--white);
  border-color: transparent;
}

.link-card:hover i {
  transform: scale(1.2) rotate(-10deg);
  color: #fff;
}

.link-card:active {
  transform: translateY(4px) scale(0.95); /* Deep press */
  box-shadow: 
    0 0 0 rgba(0,0,0,0), /* Remove outer shadow to simulate contact */
    inset 0 4px 8px rgba(0, 0, 0, 0.3); /* Inner shadow for depth */
  border-color: rgba(255, 255, 255, 0.05);
  transition: transform 0.05s ease-out, box-shadow 0.05s ease-out; /* Instant response */
}

/* Ripple Click Effect */
.ripple {
  position: absolute;
  background: rgba(106, 27, 154, 0.3); /* Purple ripple */
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleAnim 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 3;
}

@keyframes rippleAnim {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  .main-container {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .link-card {
    padding: 1.2rem;
    font-size: 1rem;
  }
  
  .link-card i {
    font-size: 1.2rem;
    margin-right: 1rem;
  }
}
