:root {
  --text: #f6e6f2;
  --background: #180814;
  --primary: #db96ca;
  --secondary: #75283f;
  --accent: #c86177;
  --white: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.2);
  --box1:#22111D;
  --box2:#2A0E1D;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text);
  scroll-behavior: smooth;
  height: 100%; /* Ensure the body takes up the full height */
  overflow-x: hidden; /* Prevent horizontal scrollbars */
  position: relative; /* Allows stacking of content over the canvas */
}
/* Make the canvas fill the viewport and sit behind other elements */
#starCanvas {
  position: fixed; /* Fix the canvas to the viewport */
  top: 0;
  left: 0;
  width: 100vw; /* Full viewport width */
  height: 100vh; /* Full viewport height */
  z-index: -1; /* Make sure it is behind other content */
  pointer-events: none; /* Prevent mouse events on the canvas */
}
/* Loader Animation Styles */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure loader is on top */
}

.loader-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--primary);
  margin: 0 5px;
  animation: bounce 0.6s infinite alternate;
}

.loader-dot:nth-child(2) {
  animation-delay: 0.2s; /* Delay for the second dot */
}

.loader-dot:nth-child(3) {
  animation-delay: 0.4s; /* Delay for the third dot */
}

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

/* Progress Bar */

#progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px; /* Height of the progress bar */
  background-color: var(--background); /* Background color of the progress bar */
  z-index: 9999; /* Ensure it stays on top */
}

#progress-bar {
  height: 100%;
  width: 0; /* Start with 0 width */
  background-color: var(--accent); /* Color of the progress */
  transition: width 0.25s; /* Smooth transition */
}


/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(24, 8, 20, 0.8); /* Semi-transparent background */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px); /* Add a blur effect */
  z-index: 1000;
}

.logo h1 {
    font-family: 'Pacifico', cursive; /* Use a stylish font */
    font-size: 2.5rem; /* Adjust the size as needed */
    color: var(--accent); /* Change the color */
    text-shadow: 2px 2px 6px rgba(200, 97, 119, 0.5), 
             0 0 25px rgba(200, 97, 119, 0.4), 
             0 0 5px rgba(200, 97, 119, 0.3);/* Add a shadow effect */
    margin: 0; /* Remove default margin */
}


nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s, transform 0.3s;
  position: relative; /* For hover effect */
  
}

nav ul li a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width 0.3s ease;
  position: absolute;
  left: 0;
  bottom: -5px; /* Space between text and underline */
}

nav ul li a:hover {
  color: var(--primary);
  transform: translateY(-3px); /* Lift effect on hover */
}

nav ul li a:hover::after {
  width: 100%; /* Expand underline on hover */
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.line {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  margin: 4px 0;
  transition: all 0.3s;
}

/* Responsive Styles */
@media (max-width: 768px) {
  nav ul {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 70px;
      right: 0;
      background-color: var(--background);
      width: 100%;
      z-index: 999;
  }

  nav ul.show {
      display: flex;
  }

  .hamburger {
      display: flex;
  }
}


/* Landing Page */
.landing-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;  
}


.typed-text {
  transition: color 0.5s ease-in; /* Smooth color transition */
}


.content {
  text-align: center;
  color: var(--white);
}

.content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: -2px;
}

.content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--secondary);
  color: var(--white);
  text-transform: uppercase;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-section .content h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 3rem;
}

.about-info {
    max-width: 700px;
    margin: 0 auto;
}

.about-box {
    background-color: var(--box2); /* Add background color for the box */
    padding: 2rem;
    color:#E9E2E7;
    border-radius: 20px;
    box-shadow: 10px 10px 40px var(--box2);
    opacity: 0; /* Start hidden */
    transform: translateY(50px); /* Start below */
    transition: opacity 1s ease, transform 1s ease; /* Transition for visibility and position */
}

.about-box.in-view {
    opacity: 1; /* Make visible when in view */
    transform: translateY(0); /* Slide up into position */
}
.about-section {
  position: relative; /* Position relative for child elements */
  width: 100%;
  padding:50px;
  height: 100vh; /* Full viewport height */
  background-color: var(--background); /* Background color */
  display: flex;
  justify-content: center;
  align-items: center;
}
.moon-image {
  position: absolute;
  width: 550px; /* Adjust size as needed */
  height: auto; /* Maintain aspect ratio */
  transform: rotate(90deg);
}

#moon {
  opacity: 0;
  top: 100px;
  left:100px;
  display: flex;
  position:absolute;
  transform: rotate(90deg);
  transition: opacity 5s, transform 4s;
}

#moon.in-view {
  opacity: 1;
  transform: rotate(0deg);
}





.timeline-section {
  width: 1536px;
  background-color: var(--background);

  overflow: hidden;
  position: relative; /* Added for absolute positioning of the dot */
}

.timeline-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom    :200px;
}

.timeline-item {
  position: relative;
  width: 500px;
  margin-top: 150px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-in-out;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: #c86177; /* Accent color for timeline line */
  transform: translateX(-50%);
  z-index: -1;
}

.timeline-item:nth-child(odd) .timeline-content {
  left: -110px;
  transform: translateX(-30%);
}

.timeline-item:nth-child(even) .timeline-content {
  right: -110px;
  transform: translateX(30%);
}

.timeline-content {
  background-color: var(--box2);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 1px 4px 20px var(--box2);
  position: relative;
  transition: all 0.6s ease-in-out;
}

.timeline-content h2 {
  margin: 0 0 10px;
  color: var(--accent); /* Accent color for headings */
}

.timeline-content p {
  margin: 0;
  color: #555;
}

/* When in-view, make the item visible */
.timeline-item.in-view {
  opacity: 1;
  transform: translateY(0);
}



/* Ensure sections have transparent backgrounds */
.about-section,
.contact-section,
.timeline-section { /* Add your timeline section if it's not already styled */
    z-index: 1;
    background-color: var(--background)
    position: relative; /* Ensure they stack correctly */
}




/* Contact Section */
.contact-section {
  background-color: var(--box2);
  padding: 40px;
  border-radius: 10px;
  width: 80%;
  margin: 0 auto;
  margin-top:200px;
  margin-bottom: 90px;
  box-shadow: 0px 10px 20px rgba(42, 14, 29, 0.4), 0px 6px 6px rgba(0, 0, 0, 0.1);

  max-width: 1200px;
}

/* Flexbox container for contact section */
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px; /* Space between form and social links */
}

/* Social Links Section */
.social-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.social-links h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--secondary);
}

.social-link {
  margin: 10px 0;
  font-size: 2.5em; /* Adjust the icon size */
  color: #333;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
  transform: scale(1.2);
  color: #007bff; /* Change the color on hover */
}

/* Contact Form Section */
.contact-form-container {
  flex: 2;
}

.contact-form-container h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color:var(--secondary);
}

.contact-form-container .form-group {
  margin-bottom: 15px;
  
}

.contact-form-container input,
.contact-form-container textarea {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border: 1px solid var(--box2);
  border-radius: 4px;
  font-size: 1.2em;
  background-color: var(--background);
  color:var(--text);
}

.contact-form-container button {
  padding: 12px 25px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2em;
}

.contact-form-container button:hover {
  background-color: rgba(200,97,119,0.5);
}

#form-message {
  margin-top: 15px;
  font-size: 1.1em;
  text-align: center;
}



.timeline-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.in-view {
  opacity: 1;
  transform: translateY(0);
}





/* Animations */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
  @keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
  }