/* Redesigned experiences.css for Secured Studios - Ocean Themed + Hover Tilt + Bubble BG */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background: radial-gradient(circle at top, #001d3d, #000814);
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

/* Bubbles Background */
body::before {
  content: '';
  position: fixed;
  width: 100%;
  height: 100%;
  background: url('ocean.gif') center/cover no-repeat;
  opacity: 0.04;
  z-index: 0;
  animation: floatBubble 40s linear infinite;
}

@keyframes floatBubble {
  0% { background-position-y: 0; }
  100% { background-position-y: 1000px; }
}

/* Loader */
.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(to bottom, #001220, #000814);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-content-wrapper {
  text-align: center;
  animation: fadeIn 1.2s ease-in-out;
}

.loader-logo {
  font-size: 4rem;
  font-weight: 700;
  color: #00d4ff;
  letter-spacing: 2px;
}

.loader-logo span {
  color: #ffffff;
}

.loader-bar {
  width: 220px;
  height: 6px;
  background: #003366;
  border-radius: 4px;
  margin: 20px auto;
  overflow: hidden;
}

.loader-progress {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #005eff);
  animation: progressLoad 2.2s ease forwards;
}

.loader-text {
  font-size: 0.9rem;
  color: #aad0ff;
  margin-top: 10px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(0, 8, 20, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #00d4ff;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 16px;
  transition: 0.3s ease;
}

nav ul li a:hover {
  background-color: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
}

.btn {
  background: #00d4ff;
  color: #000;
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #00b5e2;
  transform: scale(1.05);
}

/* Section */
.experiences-section {
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.experiences-section h2 {
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.game-card {
  background: rgba(0, 55, 100, 0.12);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  transform-style: preserve-3d;
}

.game-card:hover {
  transform: translateY(-8px) rotateY(3deg);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.35);
}

.game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.info {
  padding: 20px;
  flex-grow: 1;
  transform-style: preserve-3d;
}

.info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.info p {
  font-size: 0.85rem;
  color: #aad2ff;
  margin-top: 5px;
  transform: rotateX(6deg);
  transform-origin: bottom;
}

.info span {
  color: #00d4ff;
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: block;
}

.play-btn {
  margin-top: 12px;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #001220;
  background: #00d4ff;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.play-btn:hover {
  background: white;
  color: #005eff;
  transform: scale(1.05);
}

/* Floating New Badge */
.new-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #00d4ff, #005eff);
  color: #000814;
  font-size: 0.65rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
  animation: floatBadge 2.5s ease-in-out infinite alternate;
}

@keyframes floatBadge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

/* Animations */
@keyframes progressLoad {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 20px 0;
  }

  .experiences-section h2 {
    font-size: 2rem;
  }
}

.game-card-fade-in p {
  margin-top: 100px;
}
