@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&family=Inter:wght@300;400;600&display=swap');

:root {
  --bg-dark: #020c1b;
  --bg-light: #0a192f;
  --card-bg: rgba(10, 25, 47, 0.7);
  --card-border: rgba(100, 255, 218, 0.2);
  --primary: #64ffda;
  /* Sea foam green / Aqua */
  --secondary: #00b4d8;
  /* Ocean blue */
  --text: #e6f1ff;
  --text-muted: #8892b0;
}

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

body {
  background: radial-gradient(circle at top center, var(--bg-light), var(--bg-dark));
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 3D ANIME.JS BACKGROUND */
#anime-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.anime-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(100, 255, 218, 0.3), rgba(0, 180, 216, 0.1));
  box-shadow: inset 0 0 15px rgba(100, 255, 218, 0.2), 0 0 20px rgba(0, 180, 216, 0.2);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.anime-fish {
  position: absolute;
  font-size: 2.5rem;
  will-change: transform;
  filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.4));
}

.anime-kelp {
  position: absolute;
  bottom: -20px;
  font-size: 3.5rem;
  transform-origin: bottom center;
  will-change: transform;
  filter: drop-shadow(0 0 10px rgba(0, 180, 216, 0.3));
}

/* NAVIGATION */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(2, 12, 27, 0.85);
  /* Deep ocean nav */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary);
}

.logo-container {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo {
  height: 40px;
  width: auto;
  border-radius: 50%;
}

.logo-text {
  margin: 0;
  margin-left: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #64ffda, #00b4d8, #48cae4, #ade8f4, #0077b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #64ffda;
  /* Fallback for browsers not supporting background-clip: text */
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2),
    3px 3px 5px rgba(100, 255, 218, 0.3);
  letter-spacing: 1px;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.logo-text:hover {
  transform: scale(1.05);
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(100, 255, 218, 0.5);
}

/* DESKTOP NAV LINKS */
.nav-links {
  display: flex;
  gap: 25px;
}

/* HAMBURGER ICON (Hidden on Desktop) */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.hamburger .bar {
  width: 30px;
  height: 3px;
  background-color: var(--text);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* HERO SECTION */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 8%;
}

.hero-text {
  max-width: 500px;
  flex: 1;
}

.hero-slider {
  position: relative;
  flex: 1;
  max-width: 500px;
  height: 300px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-content h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.slide-fish {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
  border: 4px solid var(--primary);
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.5);
  filter: brightness(0.9) contrast(1.1);
}

#three-container {
  flex: 1;
  height: 500px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CARDS */
.section {
  padding: 80px 8%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
  border: 1px solid var(--card-border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 40px -10px rgba(2, 12, 27, 0.9);
  border-color: rgba(100, 255, 218, 0.5);
}

/* CONTACT FORM */
form input,
form textarea,
form select {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  background: rgba(2, 12, 27, 0.7);
  border: 1px solid var(--card-border);
  color: var(--text);
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  transition: border-color 0.3s, outline 0.3s;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
}

button {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border: none;
  padding: 12px 20px;
  color: black;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

  /* Mobile Nav Container */
  nav {
    padding: 15px 5%;
  }

  /* Hamburger Toggle */
  .hamburger {
    display: flex;
  }

  /* 3D Hamburger Active State */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--primary);
  }

  /* Mobile Fullscreen Menu */
  .nav-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 12, 27, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    perspective: 1000px;
    transform: rotateX(-15deg) translateY(-20px);
    transform-origin: top center;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: rotateX(0deg) translateY(0);
  }

  .nav-links a {
    font-size: 1.8rem;
    font-family: 'Orbitron', sans-serif;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
  }

  .nav-links.active a {
    transform: translateY(0);
    opacity: 1;
  }

  /* Stagger animation delay for links */
  .nav-links a:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links a:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav-links a:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-links a:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-links a:nth-child(5) {
    transition-delay: 0.5s;
  }

  .nav-links a:nth-child(6) {
    transition-delay: 0.6s;
  }

  .logo {
    height: 35px;
  }

  /* Hero Section */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 160px 5% 40px;
    height: auto;
    min-height: auto;
  }

  .hero-slider {
    margin-bottom: 10px;
    height: 200px;
    /* fixed height for absolute positioned slides */
    width: 100%;
    max-width: 100%;
  }

  .slide-content h1 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .slide-content p {
    font-size: 0.95rem;
  }

  .slide-fish {
    width: 150px;
    height: 150px;
    right: -20px;
    opacity: 0.4;
    /* Fade out more on mobile to not overwhelm text */
  }

  #three-container {
    height: 280px;
    width: 100%;
  }

  /* Sections & Grids */
  .section {
    padding: 50px 5%;
  }

  .section h1,
  .section h2 {
    font-size: 1.8rem !important;
  }

  .grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* Stats Grid Override */
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  /* WhatsApp Button */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .slide-content h1 {
    font-size: 1.5rem;
  }
}

/* FOOTER */
.site-footer {
  background: rgba(2, 12, 27, 0.95);
  border-top: 1px solid rgba(100, 255, 218, 0.15);
  padding: 60px 5% 20px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  font-family: 'Orbitron', sans-serif;
}

.footer-col a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #6b7280;
  font-size: 0.9rem;
}

/* WHATSAPP FLOAT BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 2000;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  animation: bob 3s ease-in-out infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* 3D CIRCULAR GALLERY */
.gallery-scene {
  width: 100%;
  height: 80vh;
  perspective: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin-top: 20px;
}

.media-ring {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.media-item-3d {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 250px;
  margin-left: -125px;
  margin-top: -125px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(100, 255, 218, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 26, 46, 0.8);
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.media-item-3d img,
.media-item-3d video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-item-3d.focused {
  z-index: 1000;
  border-color: var(--primary);
  box-shadow: 0 0 50px rgba(100, 255, 218, 0.6);
}

@media (max-width: 768px) {
  .media-item-3d {
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
  }

  .gallery-scene {
    height: 60vh;
  }
}