@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

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

body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  padding: 2rem 1rem;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Light Mode (Default) */
body.light-mode {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  color: #fff;
}

/* Dark Mode */
body.dark-mode {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-attachment: fixed;
  color: #e0e0e0;
}

/* Decorative Background Elements */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  filter: blur(40px);
  animation: float 15s ease-in-out infinite;
}

.circle-1 {
  width: 400px;
  height: 400px;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.circle-2 {
  width: 300px;
  height: 300px;
  bottom: 15%;
  left: 5%;
  animation-delay: 3s;
}

.circle-3 {
  width: 250px;
  height: 250px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 6s;
}

/* Floating background shapes */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: float 12s ease-in-out infinite;
  z-index: 0;
}

body::before {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
}

body::after {
  width: 250px;
  height: 250px;
  bottom: -80px;
  right: -80px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-40px) scale(1.05); }
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 20px;
  left: 30px;
  right: 30px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.site-header:hover {
  transform: translateY(-2px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.site-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: rotate(5deg) scale(1.1);
}

.site-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Menu Button for Homepage */
.menu-btn {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 101;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.menu-btn:active {
  transform: scale(0.95);
}

.menu-btn i {
  font-size: 1.1rem;
  pointer-events: none;
}

/* Navigation Menu for Homepage */
.nav-links {
  display: none !important;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  min-width: 280px;
  max-height: 80vh;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.25rem;
  font-family: "Inter", sans-serif;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-links.show {
  display: flex !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Ensure nav-links never display inline on homepage */
.site-header .nav-links {
  display: none !important;
}

.site-header .nav-links.show {
  display: flex !important;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.nav-links a i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
  font-weight: 700;
  border-left: 3px solid #fff;
}

.nav-links a.active i {
  color: #fff;
}

.nav-category {
  padding: 0.75rem 1rem 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  margin-top: 0.5rem;
}

.nav-category:first-child {
  margin-top: 0;
}

/* Theme Toggle for Homepage */
.theme-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 101;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(15deg) scale(1.1);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle i {
  pointer-events: none;
}

/* Homepage Container */
.homepage {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  padding: 3rem 4rem;
  border-radius: 30px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  max-width: 1200px;
  width: 100%;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
  transform: translateY(40px);
  position: relative;
  z-index: 1;
  margin-top: 80px;
}

/* Hero Section */
.hero-section {
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  z-index: 1;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  object-fit: cover;
  max-height: 500px;
}

.hero-img:hover {
  transform: scale(1.05) rotate(1deg);
}

.main-title {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)); }
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: #f0f0f0;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Button */
.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  padding: 1.2rem 3rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 118, 163, 0.4);
  position: relative;
  overflow: hidden;
}

.start-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.start-btn:hover::before {
  width: 300px;
  height: 300px;
}

.start-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 118, 163, 0.6);
}

.start-btn i {
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.start-btn:hover i {
  transform: translateY(-4px) rotate(-15deg);
}

.start-btn span {
  position: relative;
  z-index: 1;
}

/* Features Section */
.features-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.features-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0;
  border-radius: 20px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.1);
}

.feature-card-content {
  padding: 2rem;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: -35px auto 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.feature-card h3,
.feature-card p {
  padding: 0 2rem;
  text-align: center;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  padding-bottom: 2rem;
}

.feature-card:hover .feature-icon {
  transform: rotate(360deg) scale(1.2);
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  box-shadow: 0 12px 30px rgba(255, 118, 163, 0.5);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 600;
}

.feature-card p {
  color: #f0f0f0;
  line-height: 1.6;
  font-size: 1rem;
}

/* Stats Section */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.stat-item:nth-child(1) { animation-delay: 0.5s; }
.stat-item:nth-child(2) { animation-delay: 0.6s; }
.stat-item:nth-child(3) { animation-delay: 0.7s; }

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  color: #f0f0f0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: rippleAnimation 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .site-header {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
  }

  .header-right {
    margin-left: auto;
  }

  .nav-links {
    right: 0;
    left: 0;
    min-width: auto;
    border-radius: 0 0 16px 16px;
    top: 100%;
  }

  .menu-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .menu-btn span {
    display: none;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .homepage {
    padding: 2rem 1.5rem;
    margin-top: 70px;
    border-radius: 20px;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .start-btn {
    font-size: 1rem;
    padding: 1rem 2rem;
  }

  .features-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-section {
    gap: 2rem;
    flex-direction: column;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .hero-img {
    max-height: 300px;
  }

  .feature-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

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

  .feature-card {
    padding: 1.5rem;
  }

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

/* Footer Styles */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  width: 100%;
  max-width: 1200px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.light-mode .footer-content {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .footer-content {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}

body.dark-mode .footer-content p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

body.light-mode .footer-links a {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

body.dark-mode .footer-links a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Dark Mode Specific Styles */
body.dark-mode .site-header {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .menu-btn {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-links {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .homepage {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .feature-card {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .feature-card:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .decoration-circle {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

body.dark-mode::before,
body.dark-mode::after {
  background: rgba(255, 255, 255, 0.03);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-links {
    gap: 1rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  .footer-content {
    padding: 1.5rem;
  }
}
