/* ============================================
   SACTM Alumni Homepage Styles
   ============================================ */

/* Enhanced Hero Styles */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #000;
}

.min-vh-85 {
  min-height: 85vh;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(30, 60, 114, 0.85) 50%,
    rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.z-index-10 {
  z-index: 10;
}

.text-gradient {
  /* Fallback for browsers that don't support text gradients */
  color: #ffd700;
  /* Gradient for supported browsers */
  background: linear-gradient(135deg, #fff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Add outline for better readability */
  -webkit-text-stroke: 1px rgba(0,0,0,0.2);
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

/* Support check for text gradients */
@supports not (-webkit-background-clip: text) {
  .text-gradient {
    color: #ffd700 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  }
}

/* Ensure hero title is readable */
.hero-title {
  color: #ffffff;
  text-shadow: 2px 4px 8px rgba(0,0,0,0.5);
}

/* Make sure non-gradient text in hero is white */
.hero-section h1,
.hero-section h2,
.hero-section h3 {
  color: #ffffff;
}

.hero-subtitle {
  color: #ffffff;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.5);
}

.hero-badge {
  display: inline-block;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.hover-lift {
  transition: all 0.3s ease;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Particles Effect */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.particles::before,
.particles::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: particle-float 20s infinite linear;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* Stats Bar */
.stats-bar {
  border-top: 3px solid var(--accent-color);
  border-bottom: 3px solid var(--accent-color);
}

.counter {
  font-size: 1.5rem;
}

/* Advanced Feature Cards */
.feature-card-advanced {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.05);
}

.feature-card-advanced:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.feature-bg-icon {
  position: absolute;
  top: -20px;
  right: -20px;
  transform: rotate(-15deg);
}

.feature-icon-wrapper {
  position: relative;
  z-index: 2;
}

.feature-icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(30, 60, 114, 0.3);
}

/* Photo Marquee */
.photo-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
}

.photo-item {
  flex-shrink: 0;
  margin: 0 1rem;
}

.photo-item img {
  height: 250px;
  width: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-item img:hover {
  transform: scale(1.05);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Testimonials */
.testimonials-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.testimonial-card {
  max-width: 700px;
  padding: 3rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 20px;
  left: 30px;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.8;
  color: #495057;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Interactive Map */
.map-container {
  position: relative;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-pin {
  position: absolute;
  cursor: pointer;
  animation: pin-bounce 2s ease-in-out infinite;
}

.pin-pulse {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.3);
  animation: pulse 2s ease-out infinite;
  top: -5px;
  left: -8px;
}

@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

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

.stat-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--primary-color), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 3rem 0;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-date {
  flex: 1;
  text-align: right;
  padding-right: 3rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-date {
  text-align: left;
  padding-left: 3rem;
  padding-right: 0;
}

.timeline-content {
  flex: 1;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Advanced CTA Section */
.cta-section-advanced {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
}

/* Ensure CTA text is readable */
.cta-section-advanced h1,
.cta-section-advanced h2,
.cta-section-advanced h3,
.cta-section-advanced .display-1,
.cta-section-advanced .display-2,
.cta-section-advanced .display-3 {
  color: #ffffff !important;
  text-shadow: 2px 3px 6px rgba(0,0,0,0.3);
}

.cta-section-advanced p {
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.cta-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-stats {
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 2rem 0;
}

/* Floating Action Button */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.fab {
  width: 60px;
  height: 60px;
  border: none;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.fab:hover {
  transform: scale(1.1);
}

.fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.fab-container.active .fab-menu {
  opacity: 1;
  pointer-events: all;
}

.fab-container.active .fab {
  transform: rotate(45deg);
}

.fab-item {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.fab-container.active .fab-item {
  transform: scale(1);
}

.fab-container.active .fab-item:nth-child(1) {
  transition-delay: 0.1s;
}

.fab-container.active .fab-item:nth-child(2) {
  transition-delay: 0.2s;
}

.fab-container.active .fab-item:nth-child(3) {
  transition-delay: 0.3s;
}

/* Reveal on Scroll Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .display-1 {
    font-size: 3rem;
  }
  
  .display-2 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: column !important;
    margin-left: 50px;
  }
  
  .timeline-date {
    text-align: left !important;
    padding: 0 !important;
    margin-bottom: 1rem;
  }
  
  .timeline-content::before {
    left: -40px !important;
    top: 20px !important;
  }
  
  .cta-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .stats-bar .row > div {
    margin-bottom: 0.5rem;
  }
  
  .fab-container {
    bottom: 20px;
    right: 20px;
  }
  
  .photo-item img {
    height: 180px;
  }
}