/* Garima School Homepage CSS */

body {
  perspective: 1500px;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom, #f0f4f8, #dce3ea);
  color: #003049;
  cursor: url('../assets/custom-cursor.png'), auto;
  overflow-x: hidden;
  position: relative;
  transform-style: preserve-3d;
}

/* Floating 3D Layer Background */
body::after {
  content: '';
  position: fixed;
  top: 10%;
  left: 10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0,48,73,0.1), transparent);
  border-radius: 50%;
  animation: floatLayer 12s ease-in-out infinite;
  z-index: 0;
  filter: blur(50px);
}

@keyframes floatLayer {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(50px, 80px, 100px); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Animated background blob */
body::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at center, #669BBC, transparent 70%);
  border-radius: 50%;
  animation: blobMove 15s ease-in-out infinite;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.3;
  transform: rotateX(20deg) rotateY(20deg) scale3d(1, 1, 1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

@keyframes blobMove {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(300px, 200px);
  }
}

header {
  background: linear-gradient(135deg, #003049, #669BBC);
  color: white;
  padding: 100px 2rem 80px;
  position: relative;
  text-align: center;
  overflow: hidden;
  border-bottom-left-radius: 100px;
  border-bottom-right-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
}

header img[alt="Garima Logo"] {
  position: absolute;
  top: 20px;
  left: 30px;
  width: 110px;
  height: auto;
  z-index: 5;
}

nav {
  position: absolute;
  top: 30px;
  right: 40px;
  display: flex;
  gap: 25px;
  z-index: 5;
}

nav img {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

nav img:hover {
  transform: scale(1.2) rotate(10deg);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 4rem;
  position: relative;
  z-index: 2;
}

.venture-card {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.venture-card:hover {
  transform: rotateX(6deg) rotateY(-6deg) scale(1.04);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.logo-hover {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%) scale(0.8) rotate(0deg);
  transition: all 0.6s ease-in-out;
  height: 180px;
  transform-origin: center;
  backface-visibility: hidden;
  z-index: 3;
}

.school-name {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  opacity: 0;
  transition: all 0.6s ease;
  z-index: 3;
}

.venture-card:hover .logo-hover {
  bottom: 50px !important;
  transform: translateX(-50%) scale(1.05) rotate(720deg) !important;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.venture-card:hover .school-name {
  bottom: 20px;
  opacity: 1;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #003049;
  color: white;
  z-index: 4;
}
