/* Base section styling (applies to both light and dark) */
section, header, footer {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
  border-radius: 10px;
  margin-top: 1.5rem;
  transition: background-color 0.4s, color 0.4s;
}

/* Light Mode */
body.light-mode section,
body.light-mode header,
body.light-mode footer {
  background-color: #ffffff;
  color: #111;
}

/* Dark Mode */
body.dark-mode section,
body.dark-mode header,
body.dark-mode footer {
  background-color: #1e1e1e; /* Not too dark, just right */
  color: #f1f1f1;
}

body.dark-mode h2,
body.dark-mode h3,
body.dark-mode p,
body.dark-mode li {
  color: #e0e0e0;
}


/* Apply background image to a full-page container instead of the body */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  position: relative;
}

/* Full-page background image */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: url("../assets/cloud_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5; /* Adjust this for visibility — lower = darker image */
  z-index: -1;  /* Keeps it behind the content */
}

/* Text and sections styling */
/* Shared Section Styles */
section, header, footer {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
  border-radius: 12px;
  margin-top: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.4s, color 0.4s;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ✅ Light Mode: Frosted Glass White */
body.light-mode section,
body.light-mode header,
body.light-mode footer {
  background-color: rgba(255, 255, 255, 0.65); /* Soft translucent white */
  color: #111;
}

/* ✅ Dark Mode: Glassy Black */
body.dark-mode section,
body.dark-mode header,
body.dark-mode footer {
  background-color: rgba(0, 0, 0, 0.55); /* Translucent dark */
  color: #f1f1f1;
}


/* Group buttons in a row */
#contact {
  text-align: center;
}

.contact-button {
  display: inline-block;
  margin: 10px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  border-radius: 30px;
  background: linear-gradient(135deg, #6e8efb, #a777e3); /* Stylish gradient */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #a777e3, #6e8efb); /* Reverse gradient */
}

/* Navbar style */
/* Navbar styling (already present, now with mobile tweaks) */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  text-align: center;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

#navbar a {
  color: #ccc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

#navbar a.active {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Add spacing to body so content isn't hidden behind navbar */
body {
  padding-top: 80px;
}

/* Optional mobile styles (optional but helpful) */
@media (max-width: 600px) {
  #navbar {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }
}

/* Scroll to top button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1001;
  width: 60px;
  height: 60px;
  font-size: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none; /* prevent clicking when hidden */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(20px); /* slide up on show */
  transition: all 0.4s ease-in-out;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0); /* reset slide */
}

#scrollTopBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #a777e3, #6e8efb);
}

/* Dark Mode Toggle Button */
#darkModeToggle {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1002;
  background: #222;
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s, transform 0.2s;
}

#darkModeToggle:hover {
  background: #444;
  transform: rotate(20deg);
}

body.dark-mode #navbar {
  background-color: rgba(0, 0, 0, 0.9);
}

body.dark-mode .contact-button {
  background: linear-gradient(135deg, #9d4edd, #5a189a);
}

body.dark-mode .contact-button:hover {
  background: linear-gradient(135deg, #7b2cbf, #3c096c);
}

body {
  font-family: 'Montserrat', sans-serif;
}

#hero {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
}

#hero h1 {
  font-size: 2rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1.6;
}

.animate-word {
  opacity: 0;
  transform: translateY(-40px);
  animation: dropIn 0.6s forwards;
}

.animate-word.name {
  color: #6e8efb; /* Your name highlight */
}

@keyframes dropIn {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  80% {
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay for each word/phrase */
.animate-word:nth-child(1)  { animation-delay: 0.1s; }
.animate-word:nth-child(2)  { animation-delay: 0.3s; }
.animate-word:nth-child(3)  { animation-delay: 0.5s; }
.animate-word:nth-child(4)  { animation-delay: 0.7s; }
.animate-word:nth-child(5)  { animation-delay: 0.9s; }
.animate-word:nth-child(6)  { animation-delay: 1.1s; }
.animate-word:nth-child(7)  { animation-delay: 1.3s; }
.animate-word:nth-child(8)  { animation-delay: 1.5s; }
.animate-word:nth-child(9)  { animation-delay: 1.7s; }
.animate-word:nth-child(10) { animation-delay: 1.9s; }
.animate-word:nth-child(11) { animation-delay: 2.1s; }

@media (max-width: 600px) {
  #hero h1 {
    font-size: 1.4rem;
  }
}

#next-page-cta {
  text-align: center;
  margin: 4rem auto;
  padding: 3rem 1rem;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s;
}

body.dark-mode #next-page-cta {
  background: rgba(0, 0, 0, 0.6);
  color: #f1f1f1;
}

#next-page-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#next-page-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background 0.3s, transform 0.2s;
}

.cta-button:hover {
  background: linear-gradient(135deg, #a777e3, #6e8efb);
  transform: scale(1.05);
}


/* Global default — no sticky on mobile */
.navbar {
  position: sticky;
}