/* Load custom fonts */
@font-face {
  font-family: 'League Spartan Variable';
  src: url('LeagueSpartanVariable.woff2') format('woff2-variations');
  font-weight: 200 900;
}

/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  scroll-behavior: smooth; /* Enables smooth scrolling */
  font-family: 'League Spartan Variable', Arial, sans-serif;
  height: 100%;
}

header {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 24px;
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

/* Style for each section */
section {
  padding: 100px 20px;
  height: 100vh; /* Full screen height for each section */
  display: flex;
  flex-direction: column; /* Stack items vertically */
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center text */
}

.hero {
  background: 
    linear-gradient(to bottom, rgba(153, 61, 195, 0), rgba(153, 61, 195, 1)), /* Gradient blending into product section */
    url('background1.jpg') no-repeat center center/cover;
  background-blend-mode: overlay; /* Blend the gradient with the image */
  color: white;
}

.products, .about, .contact {
  color: #FFFFFF;
}

.products {
  background: linear-gradient(to bottom, #993dc3, #a95ccc); /* Gradient from products to about */
}

.about {
  background: linear-gradient(to bottom, #a95ccc, #ba7bd7); /* Gradient from about to contact */
}

.contact {
  background-color: #ba7bd7; /* Solid background for contact section */
}

/* Headings and paragraphs styles */
section h1 {
  font-size: 48px;
  margin-bottom: 20px; /* Space below heading */
}

section p {
  font-size: 24px;
  margin-top: 10px;
  width: 80%; /* Limit width for better readability */
  max-width: 800px; /* Max width to avoid excessive stretching */
}

/* For hover effect on nav links */
nav ul li a:hover {
  color: #8f4baa; /* Change link color on hover */
}

/* Style for the down scroll button */
.scroll-btn {
  width: 80px;
  height: 80px;
  background-color: transparent; /* Transparent background */
  border: none; /* No border */
  cursor: pointer;
  position: absolute; /* Positioning relative to the section */
  bottom: 30px; /* Lower the button further down */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  transition: transform 0.3s ease; /* Smooth transition on hover */
}

.scroll-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures the image fits within the button */
  border-radius: 50%; /* Make the image/button round */
}

.scroll-btn:hover {
  transform: translateX(-50%) scale(1.1); /* Slightly increase the button size on hover */
}

/* Style for the up scroll button (back to top) */
.scroll-up-btn {
  width: 60px;
  height: 60px;
  background-color: transparent; /* Transparent background */
  border: none; /* No border */
  cursor: pointer;
  position: fixed; /* Fixed position at the bottom of the page */
  bottom: 10px; /* Place near the bottom of the screen */
  right: 20px; /* Align to the right side of the screen */
  z-index: 1001; /* Ensure the button stays above other elements */
}

.scroll-up-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures the image fits within the button */
  border-radius: 50%; /* Make the image/button round */
}

.scroll-up-btn:hover {
  transform: scale(1.1); /* Slightly increase the button size on hover */
}

/* Ensure the sections are positioned relatively for absolute positioning of the buttons */
.hero, .products, .about, .contact {
  position: relative; /* Make sure the button is positioned within each section */
}

/* Footer Styles */
.section-footer {
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  color: white;
  text-align: center;
  padding: 20px;
  width: 100%;
  position: absolute; /* Ensures the footer stays within the section */
  bottom: 0; /* Align the footer to the bottom of the Contact Us section */
  left: 0;
}

.contact {
  position: relative; /* Ensure the footer is positioned relative to this section */
  min-height: 100vh; /* This ensures the section takes the full height of the viewport */
}

.section-footer .footer-content {
  display: flex;
  justify-content: flex;
  align-items: center;
  gap: 15px;
}

.section-footer p {
  margin: 0;
  font-size: 18px;
}

.section-footer .footer-btn {
  background-color: #993dc3;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.section-footer .footer-btn:hover {
  background-color: #ba7bd7; /* Change background on hover */
}
