/* Modern Globe Styling */
.globe-container {
  position: relative;
  height: 70vh;
  margin: 5rem 0;
  perspective: 1000px;
}

.globe {
  width: 600px;
  height: 600px;
  margin: 0 auto;
  background: url('world-map-vector.svg') no-repeat center/contain;
  position: relative;
  border-radius: 50%;
  box-shadow: 
    0 0 60px rgba(201, 155, 50, 0.3),
    inset 0 0 100px rgba(0, 0, 0, 0.8);
  transform-style: preserve-3d;
  animation: rotateGlobe 60s infinite linear;
}

@keyframes rotateGlobe {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(360deg); }
}

.country-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.country-marker::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(201, 155, 50, 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* University Grid - Holographic Effect */
.university-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.university-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 155, 50, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.university-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(201, 155, 50, 0) 0%,
    rgba(201, 155, 50, 0.1) 50%,
    rgba(201, 155, 50, 0) 100%
  );
  transform: rotate(30deg);
  transition: all 0.6s ease;
}

.university-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.university-card:hover::before {
  animation: shine 1.5s;
}

@keyframes shine {
  0% { transform: rotate(30deg) translate(-30%, -30%); }
  100% { transform: rotate(30deg) translate(30%, 30%); }
}

/* 3D Testimonial Carousel */
.testimonial-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1000px;
}

.carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  position: relative;
  transform-style: preserve-3d;
}

.testimonial-card {
  position: absolute;
  width: 300px;
  background: var(--off-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  transform-origin: center center;
  backface-visibility: hidden;
}

/* Visa Alert Cards - Animated */
.alert-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--gold);
}

.flag {
  width: 40px;
  height: 25px;
  background-size: cover;
  margin-bottom: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.visa-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--maroon);
  font-weight: bold;
  position: relative;
}

.visa-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.visa-link:hover::after {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .globe {
    width: 300px;
    height: 300px;
  }
  
  .university-grid {
    grid-template-columns: 1fr;
  }
}