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

body{
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #c2f5ff 0%, #f8dbff 50%, #e9d1ff 100%);  background-size: 400% 400%;        
  animation: liquidGradient 8s ease-in-out infinite;
  min-height: 100vh;
  color: #333333;
  line-height: 1.6;        
  position: relative;  
  overflow-x: hidden;   
}

/*added bubbles*/
body::before{
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(194, 245, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}
  
@keyframes liquidGradient{
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/*navigation bar content*/
nav{
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a{
  text-decoration: none;
  color: #18003d;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

nav a::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
    
nav a:hover::before{
  left: 100%;
}

nav a:hover{
  background: rgba(239, 205, 254, 0.3);
  color: #18003d;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

/*Home page content*/   
main{               
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.modern-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: #764ba2;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease-out;
}

.carousel-container {
  margin-bottom: 4rem;
}

.carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.carousel-slide {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}  

.slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.slide-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 800px;
}

.slide-content img{
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.slide-text h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slide-text p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  border-color: white;
}

.main_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.game {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.game::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.game:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.main-button {
  display: inline-block;
  background: linear-gradient(45deg, rgba(239, 205, 254, 0.8), rgba(210, 158, 255, 0.8));
  backdrop-filter: blur(20px);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.main-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.main-button:hover::before {
  left: 100%;
}

.main-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(136, 75, 210, 0.3);
}

.game p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}


/*Flashcard page content*/
.flashcards {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

.flashcard-container {
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.flashcard-container h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.card-counter {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.flashcard {
  width: 100%;
  height: 300px;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2rem;
  perspective: 1000px;
}

.flashcard::before,
.flashcard::after {
  content: '';
  position: absolute;
  width: 98%;
  height: 98%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: -1;
}

.flashcard::before {
  top: 4px;
  left: 1%;
  transform: rotate(-1deg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flashcard::after {
  top: 8px;
  left: 1%;
  transform: rotate(1.5deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.flashcard:hover {
  transform: translateY(-5px);
}

.flashcard:hover::before {
  transform: rotate(-1deg) translateY(2px);
}

.flashcard:hover::after {
  transform: rotate(1.5deg) translateY(4px);
}

.flashcard.flipped:hover {
  transform: rotateY(180deg) translateY(-5px);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.card-front {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.card-back {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  transform: rotateY(180deg);
}

.card-front h3 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.card-back p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
}

.flip-hint {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 1rem;
}

.card-controls{
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.control-btn{
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.control-btn::before{
  content:'';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s ease;
}

.control-btn:hover::before{
  left: 100%;
}

.control-btn:hover{
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}

.back-home{
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.back-home:hover{
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.modern-footer{
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}  

.bubble{
  position: absolute;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 70%, transparent 100%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  filter: blur(1px);
}

@keyframes float{
  0%, 100%{   
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }    
  10%, 90%{
    opacity: 1;
  }
  50%{
    transform: translateY(-100px) rotate(180deg);
  }   
}   
          
/*Animation*/        
@keyframes fadeInUp{
  from{
    opacity: 0;
    transform: translateY(30px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }  
}
  


   
