/* Container styles */
.container {
  background: rgba(255, 255, 255, 0.95);
  padding: 35px 45px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  text-align: center;
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: 0; /* Hoặc bạn có thể thay bằng giá trị khác để căn vào bên trái */
  margin-right: auto;
}
.home-container, .login-container, .register-container, .logout-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 35px 45px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  text-align: center;
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover, .home-container:hover, .login-container:hover, .register-container:hover, .logout-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Form styles */


.form-group {
  margin-bottom: 22px;
  text-align: left;
}

label {
  display: inline-block;
  
  font-size: 15px;
  color: #444;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e6e6e6;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
}

input:focus {
  border-color: #2575fc;
  outline: none;
  box-shadow: 0 0 10px rgba(37, 117, 252, 0.2);
  background-color: #fff;
}


/* Additional styles for logout */
.logout-container a.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 25px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.logout-container a.btn:hover {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
}

/* Responsive styles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px;
  }
  
  header nav {
    margin-top: 15px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  header nav a {
    padding: 10px 15px;
    text-align: center;
  }
  
  .container, .home-container, .login-container, .register-container, .logout-container {
    padding: 25px 20px;
    max-width: 50;
  }
  
  .navigation {
    flex-direction: column;
  }
  
  .navigation a.btn {
    max-width: 100%;
  }
}

/* Mobile Navigation Menu (Hamburger) if needed */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #2575fc;
  cursor: pointer;
}

@media (max-width: 576px) {
  .nav-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
  }
  
  header nav {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  header nav.active {
    max-height: 300px;
  }
  
  header nav a {
    width: 100%;
  }
  
  .login-container, .register-container, .logout-container {
    padding: 30px 20px;
  }
  
  .login-container h1, .register-container h1, .logout-container h1 {
    font-size: 28px;
  }
  
  .login-container input, .register-container input {
    padding: 14px 16px;
  }
  
  .login-container button, .register-container button,
  .logout-container a.btn {
    padding: 14px;
    font-size: 16px;
  }
}

/* Message alerts */
.alert {
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 20px;
  color: #fff;
  font-weight: 500;
  animation: slideIn 0.5s ease forwards;
}

.alert-success {
  background: linear-gradient(135deg, #20bf55, #01baef);
  box-shadow: 0 4px 10px rgba(32, 191, 85, 0.3);
}

.alert-error {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  box-shadow: 0 4px 10px rgba(255, 65, 108, 0.3);
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Enhanced Login, Register, and Logout Container Styles */
.login-container, .register-container, .logout-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 480px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.login-container::before, .register-container::before, .logout-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    rgba(106, 17, 203, 0.03) 0%, 
    rgba(37, 117, 252, 0.03) 25%, 
    rgba(106, 17, 203, 0.03) 50%, 
    rgba(37, 117, 252, 0.03) 75%, 
    rgba(106, 17, 203, 0.03) 100%);
  z-index: -1;
  transform: rotate(30deg);
  animation: gradientShift 10s linear infinite;
}

@keyframes gradientShift {
  0% {
    transform: rotate(30deg) translateY(0);
  }
  50% {
    transform: rotate(30deg) translateY(-15px);
  }
  100% {
    transform: rotate(30deg) translateY(0);
  }
}

.login-container:hover, .register-container:hover, .logout-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.login-container h1, .register-container h1, .logout-container h1 {
  font-size: 32px;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.login-container h1:after, .register-container h1:after, .logout-container h1:after {
  content: '';
  position: absolute;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  bottom: -10px;
  left: 20%;
  border-radius: 2px;
}

/* Form styles enhancement */
.login-container form, .register-container form {
  margin-top: 30px;
}

.login-container .form-group, .register-container .form-group {
  margin-bottom: 25px;
  position: relative;
}

.login-container label, .register-container label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  color: #444;
  font-weight: 600;
  text-align: left;
  transition: all 0.3s ease;
}

.login-container input, .register-container input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e6e6e6;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.login-container input:focus, .register-container input:focus {
  border-color: #2575fc;
  outline: none;
  box-shadow: 0 5px 15px rgba(37, 117, 252, 0.15);
  background-color: #fff;
  transform: translateY(-2px);
}

.login-container input::placeholder, .register-container input::placeholder {
  color: #aaa;
  opacity: 0.7;
}

/* Button styles enhancement */
.login-container button, .register-container button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(106, 17, 203, 0.3);
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.login-container button:hover, .register-container button:hover {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(106, 17, 203, 0.4);
}

.login-container button:active, .register-container button:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(106, 17, 203, 0.3);
}

.login-container button::before, .register-container button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0), 
    rgba(255, 255, 255, 0.2), 
    rgba(255, 255, 255, 0));
  transition: all 0.8s ease;
}

.login-container button:hover::before, .register-container button:hover::before {
  left: 100%;
}

/* Logout specific */
.logout-container {
  text-align: center;
  padding: 45px;
}

.logout-container p {
  font-size: 18px;
  margin: 25px 0;
  color: #444;
  line-height: 1.8;
}

.logout-container a.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 16px 30px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  border-radius: 15px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(106, 17, 203, 0.3);
  position: relative;
  overflow: hidden;
}

.logout-container a.btn:hover {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(106, 17, 203, 0.4);
}

.logout-container a.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0), 
    rgba(255, 255, 255, 0.2), 
    rgba(255, 255, 255, 0));
  transition: all 0.8s ease;
}

.logout-container a.btn:hover::before {
  left: 100%;
}

/* Login/register link styles */
.login-register-links {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 16px;
}

.login-register-links a {
  color: #2575fc;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 3px;
}

.login-register-links a:hover {
  color: #6a11cb;
}

.login-register-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  transition: width 0.3s ease;
}

.login-register-links a:hover::after {
  width: 100%;
}

/* New Enhanced Home Page Styles */
.hero-section {
  padding: 20px 0;
  position: relative;
  overflow: visible;
}


@keyframes floatBubble {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
  100% { transform: translate(10px, -10px) rotate(0deg); }
}

.highlight {
  color: #2575fc;
  position: relative;
  display: inline-block;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Animated title entrance */
.hero-section h1 {
  animation: slideInDown 1s ease-out forwards;
  opacity: 0;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle {
  font-size: 20px;
  color: #666;
  margin: 15px 0 30px;
  font-weight: 400;
  animation: fadeIn 1s ease-out 0.3s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.feature-highlights {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  gap: 20px;
  flex-wrap: wrap;
}

/* Feature card animations */
.feature {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 25px 20px;
  flex: 1;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.feature:nth-child(1) { animation-delay: 0.5s; }
.feature:nth-child(2) { animation-delay: 0.7s; }
.feature:nth-child(3) { animation-delay: 0.9s; }

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
}

.feature i {
  font-size: 32px;
  margin-bottom: 15px;
  color: #6a11cb;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: wiggle 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  92% { transform: rotate(0); }
  94% { transform: rotate(10deg); }
  96% { transform: rotate(-10deg); }
  98% { transform: rotate(5deg); }
}

.feature:hover i {
  animation: spin 0.7s ease-out;
}

@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.feature:hover h3 {
  transform: scale(1.1);
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature h3::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 50%;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  transition: all 0.4s ease;
  transform: translateX(-50%);
  border-radius: 3px;
}

.feature:hover h3::after {
  width: 80%;
}

.feature p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.feature:hover p {
  color: #333;
}

.navigation {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 1.1s forwards;
  opacity: 0;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
}

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

.btn i {
  margin-right: 8px;
  transition: all 0.3s ease;
}

.btn:hover i {
  transform: translateX(-3px) rotate(-10deg);
}

.btn-primary {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
  box-shadow: 0 8px 15px rgba(106, 17, 203, 0.2);
}

.btn-secondary {
  background: linear-gradient(135deg, #FC466B, #3F5EFB);
  color: white;
  box-shadow: 0 8px 15px rgba(252, 70, 107, 0.2);
}

.btn-info {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: white;
  box-shadow: 0 8px 15px rgba(17, 153, 142, 0.2);
}

.btn-primary:hover, .btn-secondary:hover, .btn-info:hover {
  transform: translateY(-7px) scale(1.05);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Animation for the entire home container */
.home-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 0;
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Background Shapes */
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  z-index: -1;
  opacity: 0.6;
}

.shape-1 {
  width: 250px;
  height: 250px;
  top: -50px;
  right: 10%;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.2), rgba(37, 117, 252, 0.2));
  animation: floatShape 20s infinite alternate ease-in-out;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 30%;
  left: -80px;
  background: linear-gradient(135deg, rgba(252, 70, 107, 0.2), rgba(63, 94, 251, 0.2));
  animation: floatShape 25s infinite alternate-reverse ease-in-out;
}

.shape-3 {
  width: 180px;
  height: 180px;
  top: 40%;
  right: -60px;
  background: linear-gradient(135deg, rgba(17, 153, 142, 0.2), rgba(56, 239, 125, 0.2));
  animation: floatShape 22s infinite alternate ease-in-out 2s;
}

.shape-4 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  right: 20%;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.15), rgba(37, 117, 252, 0.15));
  animation: floatShape 28s infinite alternate-reverse ease-in-out 1s;
}

.shape-5 {
  width: 150px;
  height: 150px;
  top: 20%;
  left: 15%;
  background: linear-gradient(135deg, rgba(255, 177, 66, 0.2), rgba(255, 122, 66, 0.2));
  animation: floatShape 18s infinite alternate ease-in-out 3s;
}

.shape-6 {
  width: 220px;
  height: 220px;
  bottom: -50px;
  left: 30%;
  background: linear-gradient(135deg, rgba(125, 95, 255, 0.15), rgba(75, 135, 255, 0.15));
  animation: floatShape 24s infinite alternate-reverse ease-in-out 2s;
}

@keyframes floatShape {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -20px) rotate(5deg); }
  50% { transform: translate(-15px, 25px) rotate(-8deg); }
  75% { transform: translate(15px, 10px) rotate(3deg); }
  100% { transform: translate(-20px, -15px) rotate(-5deg); }
}

/* Hero Banner */
.hero-banner {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-text-container {
  flex: 1;
  min-width: 300px;
  text-align: left;
  padding: 20px;
  z-index: 2;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  height: 500px;
  position: relative;
  z-index: 1;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.animated-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #333;
  animation: slideInLeft 10s ease-out forwards;
  opacity: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.glow-text {
  position: relative;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: textGlow 3s infinite alternate;
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(106, 17, 203, 0.3); }
  50% { text-shadow: 0 0 20px rgba(37, 117, 252, 0.5); }
}

.hero-banner .subtitle {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.6;
  animation: fadeIn 1s ease-out 0.5s forwards;
  opacity: 0;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  animation: fadeIn 1s ease-out 1s forwards;
  opacity: 0;
  flex-wrap: wrap;
}

.btn-large {
  padding: 15px 35px;
  font-size: 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 180px;
}

.btn-outline {
  background: transparent;
  color: #2575fc;
  border: 2px solid #2575fc;
  padding: 13px 33px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(37, 117, 252, 0.1);
  color: #6a11cb;
  border-color: #6a11cb;
  transform: translateY(-5px);
}

/* Floating Elements */
.floating-element {
  position: absolute;
  transition: all 0.5s ease;
}

.vocab-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.vocab-word {
  font-size: 1.2rem;
  font-weight: 600;
  color: #6a11cb;
}

.card-1 {
  top: 20%;
  left: 10%;
  width: 140px;
  height: 70px;
  animation: float 6s infinite ease-in-out;
  transform: rotate(-5deg);
}

.card-2 {
  top: 45%;
  right: 5%;
  width: 160px;
  height: 70px;
  animation: float 8s infinite ease-in-out 1s;
  transform: rotate(5deg);
}

.card-3 {
  bottom: 25%;
  left: 10%;
  width: 140px;
  height: 70px;
  animation: float 7s infinite ease-in-out 0.5s;
  transform: rotate(-3deg);
}

.card-4 {
  top: 10%;
  right: 10%;
  width: 140px;
  height: 70px;
  animation: float 7s infinite ease-in-out 0.5s;
  transform: rotate(-3deg);
}

.card-5 {
  top: 70%;
  right: 10%;
  width: 140px;
  height: 70px;
  animation: float 7s infinite ease-in-out 0.5s;
  transform: rotate(-3deg);
}


.floating-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.8;
  z-index: 10;
}

.circle-1 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  top: 15%;
  right: 20%;
  animation: float 10s infinite ease-in-out;
}

.circle-2 {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FC466B, #3F5EFB);
  bottom: 30%;
  right: 50%;
  animation: float 8s infinite ease-in-out 2s;
}

.circle-3 {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #11998e, #38ef7d);
  bottom: 15%;
  left: 10%;
  animation: float 12s infinite ease-in-out 1s;
}

.circle-4 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #11998e, #38ef7d);
  bottom: 15%;
  right: 10%;
  animation: float 20s infinite ease-in-out 1s;
}

.circle-5 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  bottom: 20%;
  right: 15%;
  animation: float 25s infinite ease-in-out 1s;
}

.book-icon {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(106, 17, 203, 0.8);
  animation: rotateSlow 15s infinite linear, float 8s infinite ease-in-out;
  z-index: 3;
}

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

@keyframes rotateSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Section Styles */
section {
  padding: 100px 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-heading {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-heading h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.heading-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  margin: 0 auto;
  border-radius: 2px;
}

/* Stats Section */
.stats-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.05), rgba(37, 117, 252, 0.05));
    border-radius: 20px;
    margin: 50px auto;
  
}

.stats-counter {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
}

.counter-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
  transition: all 0.3s ease;
}

.counter-item:hover {
  transform: translateY(-10px);
}

.counter-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
}

.counter-icon::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

.counter-icon i {
  font-size: 30px;
  color: white;
}

.counter-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  position: relative;
}

.counter-label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Features Section */
.features-section {
  padding: 100px 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 100%;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(106, 17, 203, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.02), rgba(37, 117, 252, 0.02));
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(106, 17, 203, 0.2);
}

.feature-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.5s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(10deg);
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.2), rgba(37, 117, 252, 0.2));
}

.feature-icon i {
  font-size: 40px;
  color: #6a11cb;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.5s ease;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
  transition: all 0.3s ease;
}

.feature-card:hover h3 {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-hover-content {
  height: 0;
  overflow: hidden;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.feature-card:hover .feature-hover-content {
  height: 40px;
  opacity: 1;
}

.feature-tag {
  display: inline-block;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
  color: #6a11cb;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card:hover .feature-tag {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover .feature-tag:nth-child(1) { transition-delay: 0.1s; }
.feature-card:hover .feature-tag:nth-child(2) { transition-delay: 0.2s; }
.feature-card:hover .feature-tag:nth-child(3) { transition-delay: 0.3s; }

.feature-tag:hover {
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.2), rgba(37, 117, 252, 0.2));
  transform: translateY(-3px) scale(1.05);
}

/* Showcase Section */
.showcase-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.05), rgba(37, 117, 252, 0.05));
  border-radius: 20px;
  margin: 50px auto;
}

.word-showcase {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.word-card {
  width: 280px;
  height: 180px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.word-card:hover {
  transform: rotateY(180deg);
}

.word-card-front, .word-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.word-card-front {
  background: white;
  border: 1px solid rgba(106, 17, 203, 0.1);
}

.word-card-back {
  background: linear-gradient(135deg, #81b591, #63a17c);
  color: white;
  transform: rotateY(180deg);
}

.word-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.word-pronunciation {
  font-size: 1rem;
  color: #666;
  font-style: italic;
}

.word-definition {
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.word-example {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.9;
}

/* Testimonial Section */
.testimonial-section {
  padding: 100px 20px;
}

.testimonial-carousel {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 450px;
  position: relative;
  transition: all 0.5s ease;
  border: 1px solid rgba(106, 17, 203, 0.05);
}

.testimonial:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(106, 17, 203, 0.2);
}

.quote-mark {
  position: absolute;
  top: -20px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(106, 17, 203, 0.3);
}

.quote-mark i {
  color: white;
  font-size: 20px;
}

.testimonial p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  font-style: italic;
  margin-bottom: 25px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #FC466B, #3F5EFB);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  margin-right: 15px;
  font-size: 16px;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(252, 70, 107, 0.3);
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 700;
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 3px;
}

.author-title {
  font-size: 0.9rem;
  color: #666;
}

/* Call to Action Section */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #023178, #2575fc);
  border-radius: 20px;
  margin: 50px auto;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: repeat;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-content p {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 40px;
  opacity: 0.9;
  color: rgb(255, 254, 254);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: white;
}

/* Scroll Indicator */
.scroll-indicator {
  margin-top: 60px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  animation: fadeInUp 1s ease-out 2s forwards, bounceUpDown 2.5s infinite;
  opacity: 0;
}

.scroll-indicator:hover {
  opacity: 1;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid #0a0a0a;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  margin: 0 auto 8px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 10px;
  background: #060606;
  border-radius: 2px;
  position: absolute;
  top: 10px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

.scroll-indicator p {
  font-size: 1rem;
  font-weight: 600;
  color: #121212;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
    gap: 20px;
}

  .hero-text-container {
    order: 2;
    text-align: center;
  }
  
  .hero-image {
    order: 1;
  margin-bottom: 40px;
    height: 400px;
    max-height: 400px;
    min-width: auto;
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  
  .hero-image-container {
    width: 100%;
    height: 100%;
    overflow: visible;
    position: relative;
  }
  
  /* Control floating elements in hero image */
  .hero-image .floating-element {
    position: absolute;
    transform: scale(0.9);
  }
  
  .hero-image .floating-circle {
    opacity: 0.6;
  }
  
  .animated-title {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .section-heading h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 20px;
  }
  
  .hero-image {
    height: 350px;
    max-height: 350px;
  }
  
  .hero-image-container {
    transform: scale(0.95);
  }
  
  /* Adjust floating elements for medium screens */
  .hero-image .vocab-card {
    transform: scale(0.85);
  }
  
  .hero-image .floating-circle {
    transform: scale(0.85);
  }
  
  /* Adjust positions for better visibility */
  .hero-image .card-1 {
    top: 15%;
    left: 8%;
  }
  
  .hero-image .card-2 {
    top: 40%;
    right: 8%;
  }
  
  .hero-image .card-3 {
    bottom: 20%;
    left: 18%;
  }
  
  .stats-counter {
    gap: 20px;
  }
  
  .counter-icon {
    width: 70px;
    height: 70px;
  }
  
  .counter-number {
    font-size: 2.5rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .word-showcase, .testimonial-carousel {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .animated-title {
    font-size: 2rem;
  }
  
  .hero-banner .subtitle {
    font-size: 1.2rem;
  }
  
  .hero-image {
    height: 300px;
    max-height: 300px;
    margin-bottom: 20px;
    position: relative;
    overflow: visible;
  }
  
  .hero-image-container {
    transform: scale(0.85);
}

  /* Adjust floating elements for small screens */
  .hero-image .vocab-card {
    transform: scale(0.8);
    padding: 15px;
  }
  
  .hero-image .vocab-word {
    font-size: 1rem;
}

  .hero-image .card-1 {
    top: 10%;
    left: 5%;
}

  .hero-image .card-2 {
    top: 40%;
    right: 5%;
}

  .hero-image .card-3 {
    bottom: 15%;
    left: 15%;
}

  .hero-image .floating-circle {
    transform: scale(0.7);
}

  .hero-image .circle-4,
  .hero-image .circle-5 {
    opacity: 0.5;
    transform: scale(0.6);
}

  .counter-number {
    font-size: 2rem;
}

  .word-card {
    width: 100%;
    max-width: 280px;
  }
  
  .testimonial {
    padding: 30px 20px;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .btn-large {
    width: 100%;
  }
}

/* iPhone-specific fixes */
@media (max-width: 480px) {
  .hero-section {
    padding: 15px 0;
  }

.hero-content {
    margin-bottom: 20px;
}

  .hero-image {
    height: 250px;
    max-height: 250px;
    margin-bottom: 10px;
    overflow: visible;
}

  .hero-image-container {
    transform: scale(0.75);
    position: relative;
    width: 100%;
    height: 100%;
}

  .hero-image .vocab-card {
    transform: scale(0.7);
    width: 120px;
    height: auto;
    min-height: 60px;
    padding: 12px;
    z-index: 10;
}

  .hero-image .vocab-word {
    font-size: 0.9rem;
}

  .hero-image .floating-circle {
    transform: scale(0.6);
    opacity: 0.5;
}

  /* Keep the most important elements visible */
  .hero-image .card-1 {
    top: 15%;
    left: 10%;
}

  .hero-image .card-2 {
    top: 45%;
    right: 10%;
}

  .hero-image .card-3 {
    bottom: 20%;
    left: 15%;
}

  .hero-image .circle-1 {
    top: 10%;
    right: 15%;
    width: 60px;
    height: 60px;
}

  .hero-image .circle-2 {
    bottom: 25%;
    right: 45%;
    width: 40px;
    height: 40px;
}

  .hero-image .circle-3 {
    bottom: 10%;
    left: 5%;
    width: 50px;
    height: 50px;
}

  /* Make book icon smaller but still visible */
  .hero-image .book-icon {
    transform: scale(0.7);
    z-index: 5;
  }
  
  .animated-title {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
}

  .hero-cta {
    gap: 15px;
  }
  
  .navbar-brand {
    font-size: 1rem;
    max-width: 160px;
  }
  
  .logo-img {
    width: 30px;
    height: 30px;
    margin-right: 5px;
  }
  
  .brand-text {
    max-width: 120px;
  }
  
  .navbar-toggler {
    padding: 5px 8px;
  }
  
  .navbar-toggler-icon {
    width: 1em;
    height: 1em;
  }
}

/* Extra small iPhone SE / iPhone 5 size */
@media (max-width: 375px) {
  .hero-section {
    padding: 10px 5px;
}

  .hero-content {
    margin-bottom: 10px;
}

  .hero-image {
    height: 220px;
    max-height: 220px;
    overflow: visible;
}

  .hero-image-container {
    transform: scale(0.65);
  width: 100%;
  height: 100%;
    overflow: visible;
  }
  
  .hero-image .vocab-card {
    transform: scale(0.6);
    width: 100px;
    height: 50px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

  .hero-image .vocab-word {
    font-size: 0.8rem;
    font-weight: 700;
}

  /* Position elements for very small screens */
  .hero-image .card-1 {
    top: 20%;
    left: 15%;
}

  .hero-image .card-2 {
    top: 50%;
    right: 15%;
}

  .hero-image .card-3 {
    bottom: 25%;
    left: 20%;
}

  /* Minimize decorative elements */
  .hero-image .circle-2,
  .hero-image .circle-3,
  .hero-image .circle-4,
  .hero-image .circle-5 {
    opacity: 0.3;
    transform: scale(0.5);
  }
  
  .hero-image .circle-1 {
    top: 15%;
    right: 20%;
    width: 50px;
    height: 50px;
    opacity: 0.4;
}

  .hero-image .book-icon {
    transform: scale(0.6);
}

  .animated-title {
    font-size: 1.6rem;
}

  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

  .hero-cta {
    gap: 10px;
  }
  
  .btn-large {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 140px;
}
}

/* iPhone-specific portrait mode */
@media only screen 
  and (device-width: 375px) 
  and (device-height: 812px) 
  and (-webkit-device-pixel-ratio: 3)
  and (orientation: portrait) {
  .hero-image-container {
    transform: scale(0.7);
}

  .hero-image {
    height: 240px;
  }
}

/* iPhone 12/13 Mini */
@media only screen 
  and (device-width: 375px) 
  and (device-height: 812px) 
  and (-webkit-device-pixel-ratio: 3) {
  .hero-image-container {
    transform: scale(0.7);
  }
}

/* iPhone 12/13/14 */
@media only screen 
  and (device-width: 390px) 
  and (device-height: 844px) 
  and (-webkit-device-pixel-ratio: 3) {
  .hero-image-container {
    transform: scale(0.75);
  }
}

/* iPhone 14 Pro Max */
@media only screen 
  and (device-width: 428px) 
  and (device-height: 926px) 
  and (-webkit-device-pixel-ratio: 3) {
  .hero-image-container {
    transform: scale(0.8);
  }
}

/* iPhone Landscape mode - ensure elements are visible */
@media only screen and (max-width: 896px) and (orientation: landscape) {
  .hero-section {
    padding: 10px 0;
}

  .hero-content {
    flex-direction: row;
    align-items: center;
}

  .hero-text-container {
    text-align: left;
    order: 1;
    padding: 10px;
}

  .hero-image {
    height: 250px;
    order: 2;
}

  .hero-image-container {
    transform: scale(0.7);
}

  .animated-title {
    font-size: 1.8rem;
}

  .subtitle {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .hero-cta {
    justify-content: flex-start;
    width: 120%;
    gap: 50px;
}

  .btn-large {
    font-size: 0.85rem;
    min-width: 120px;
  }
}

/* Adjust animations to be lighter on mobile */
@media (max-width: 768px) {
  .floating-element {
    animation-duration: 5s !important;
}

  .book-icon {
    animation: rotateSlow 20s infinite linear, float 6s infinite ease-in-out !important;
}

  @keyframes floatEnhanced {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.03); }
    100% { transform: translateY(0) scale(1); }
  }
}

/* Auth Page Styling */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.auth-background {
  position: absolute;
  max-width: 1200px;
  min-width: 1200px;
  padding: 50px 20px;
  background: transparent;
  border-radius: 12px;
}

.auth-container {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo-icon {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(106, 17, 203, 0.2);
  transition: all 0.3s ease;
}

.logo-icon i {
  font-size: 32px;
  color: white;
  transition: all 0.3s ease;
}

.auth-header h1 {
  font-size: 28px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-header h1 .highlight {
  font-weight: 700;
}

.auth-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.auth-form {
  margin-top: 20px;
}

/* Password toggle button - fixed alignment */
.password-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  height: 100%;
  width: 40px;
  right: 10px;
  top: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  pointer-events: auto;
}

/* Input wrapper with icon - adjusted for icon alignment */
.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #888;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.input-icon-wrapper input {
  padding-left: 50px;
  padding-right: 45px; /* Add space for the eye icon */
  width: 100%;
  outline: none;
  background: transparent;
}

.input-icon-wrapper input:focus ~ .input-icon {
  color: #2575fc;
}

.input-icon-wrapper input:focus {
  border-color: #2575fc;
  outline: none;
  box-shadow: 0 0 10px rgba(37, 117, 252, 0.2);
  background-color: #fff;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  font-size: 14px;
}

.remember-me, .terms-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.remember-me input, .terms-check input {
  width: auto;
  margin-right: 6px;
}

.forgot-password, .terms-link {
  color: #2575fc;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.forgot-password:hover, .terms-link:hover {
  color: #6a11cb;
  text-decoration: underline;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px rgba(106, 17, 203, 0.2);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(106, 17, 203, 0.3);
  background: linear-gradient(135deg, #2575fc, #6a11cb);
}

.btn-submit i {
  margin-left: 8px;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.btn-submit:hover i {
  transform: translateX(4px);
}

.auth-separator {
  display: flex;
  align-items: center;
  margin: 25px 0;
  color: #888;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.auth-separator span {
  padding: 0 15px;
  font-size: 14px;
}

.social-login {
  margin-bottom: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.social-btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.social-btn i {
  margin-right: 10px;
  font-size: 18px;
}

.google-btn i {
  color: #db4437;
}

.auth-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 15px;
  color: #666;
}

.auth-link {
  color: #2575fc;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.auth-link:hover {
  color: #6a11cb;
  text-decoration: underline;
}


/* Floating cards for login/register pages */
.floating-card {
  position: absolute;
  padding: 15px 20px;
  width: 300px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.floating-card i {
  margin-right: 10px;
  font-size: 18px;
  color: #2575fc;
}

.floating-card span {
  font-weight: 600;
  color: #333;
}


@keyframes floatCard {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(15px, -15px) rotate(2deg); }
  100% { transform: translate(-10px, 10px) rotate(-2deg); }
}

/* Password strength indicator */
.password-strength {
  margin-top: 10px;
}

.strength-bar {
  height: 5px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}

.strength-indicator {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.strength-indicator[data-strength="0"] {
  width: 0%;
}

.strength-indicator[data-strength="1"] {
  width: 25%;
  background: #ff4d4d;
}

.strength-indicator[data-strength="2"] {
  width: 50%;
  background: #ffa64d;
}

.strength-indicator[data-strength="3"] {
  width: 75%;
  background: #2ecc71;
}

.strength-indicator[data-strength="4"] {
  width: 100%;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.strength-text {
  font-size: 12px;
  color: #888;
}

/* Form animations */
.form-group, .form-options, .btn-submit, .auth-separator, .social-login {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Success and Error Messages */
.alert {
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  animation: slideIn 0.4s ease;
}

.alert i {
  margin-right: 10px;
  font-size: 18px;
}

.alert-success {
  background: linear-gradient(135deg, rgba(32, 191, 85, 0.15), rgba(1, 186, 239, 0.15));
  color: #148f77;
  border-left: 4px solid #2ecc71;
}

.alert-error {
  background: linear-gradient(135deg, rgba(255, 65, 108, 0.15), rgba(255, 75, 43, 0.15));
  color: #e74c3c;
  border-left: 4px solid #ff416c;
}

/* Input validation styles */
input.valid {
  border-color: #2ecc71;
}

input.invalid {
  border-color: #e74c3c;
}

/* Responsive Auth Page Styles */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
  
  .auth-container {
    padding: 30px;
  }
  
  .logo-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  
  .logo-icon i {
    font-size: 28px;
  }
  
  .auth-header h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 25px 20px;
  }
  
  .form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .forgot-password {
    margin-top: 8px;
    display: block;
  }
  
  .auth-header h1 {
    font-size: 22px;
  }
  
  .logo-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }
  
  .logo-icon i {
    font-size: 24px;
  }
}

@media (max-width: 375px) {
  .auth-container {
    padding: 20px 15px;
    max-width: 100%;
}

  .auth-header h1 {
    font-size: 20px;
}

  .auth-subtitle {
    font-size: 14px;
}

  .logo-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
  }
  
  .logo-icon i {
    font-size: 20px;
  }
  
  .btn-submit, .social-btn {
    font-size: 14px;
    padding: 10px 15px;
}

  .auth-footer {
    font-size: 14px;
  }
}

/* Avatar Selection Styles */
.avatar-selection {
  margin-bottom: 20px;
}

.avatar-label {
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  font-size: 1rem;
}

.avatars-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  justify-content: center;
  max-height: 180px;
  overflow-y: auto;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.avatar-option {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.avatar-option:hover {
  transform: scale(1.05);
}

.avatar-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.avatar-option label {
  display: block;
  cursor: pointer;
  width: 100%;
  position: relative;
}

.avatar-option img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.avatar-option input[type="radio"]:checked + label img {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.avatar-option label::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.avatar-option input[type="radio"]:checked + label::after {
  transform: scale(1);
  content: '✓';
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

@media (max-width: 768px) {
  .avatars-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 576px) {
  .avatars-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

