/* RESET & BASICS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
  transition: all 0.3s ease;
  scroll-behavior: smooth;
}

section {
  padding: 50px 20px;
  text-align: center;
}

h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

video, img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ----------------- */
/* NAVBAR - Enhanced */
/* ----------------- */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #c94f7c;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #c94f7c;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    padding: 20px;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-bottom-left-radius: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin-bottom: 15px;
  }
}

/* -------------------- */
/* TOGGLE BUTTON (Theme) */
/* -------------------- */
#theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  border: none;
  background-color: #333;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
}

/* -------------------- */
/* LOADER STYLES */
/* -------------------- */
/* Simple CSS Spinner Loader */
.loader-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.6s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #c94f7c;
  border-top: 6px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* -------------------- */
/* RIPPLE BUTTON */
/* -------------------- */
.ripple-button {
  padding: 15px 30px;
  background-color: #c94f7c;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.ripple-button:hover {
  transform: scale(1.05);
}

.ripple-button::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(255, 255, 255, 0.6);
}

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

.ripple-button:active::after {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.6s linear;
}

/* -------------------- */
/* DARK MODE */
/* -------------------- */
body.dark {
  background-color: #111;
  color: #eee;
}

body.dark .navbar {
  background: rgba(20, 20, 20, 0.7);
}

body.dark .nav-links li a,
body.dark .menu-toggle,
body.dark .logo {
  color: #eee;
}

body.dark #theme-toggle {
  background-color: #eee;
  color: #111;
}

/* -------------------- */
/* FOOTER */
/* -------------------- */
footer {
  padding: 20px;
  background: #f0f0f0;
  text-align: center;
}

body.dark footer {
  background: #1a1a1a;
}

/* -------------------- */
/* RESPONSIVENESS */
/* -------------------- */
@media screen and (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }

  #theme-toggle {
    font-size: 0.9rem;
    padding: 8px 14px;
  }
}

/* -------------------- */
/* SCROLL REVEAL EFFECT */
/* -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- */
/* BACK TO TOP BUTTON */
/* -------------------- */
#back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  padding: 12px 18px;
  font-size: 14px;
  background-color: #c94f7c;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

#back-to-top:hover {
  background-color: #a33a64;
}
