@import url("https://fonts.googleapis.com/css?family=Muli&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  line-height: 1.6;
  scroll-behavior: smooth;
  background-color: #0d0d0d;
  color: #fff;
  font-family: 'Nunito', sans-serif;
}

/* General Styling for Navbar */
nav {
  position: fixed;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  top: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 20px;
  margin: 0;         /* Remove any margins */
  padding: 0;        /* Remove any padding */
}

.logo-img {
  width: 100%;         /* Let the logo fill the available space */
  max-width: 110px;     /* Set a reasonable max width for larger screens */
  height: small;         /* Maintain the aspect ratio */
  display: block;    /* Ensure the image is treated as a block element */
  margin: 0;         /* Remove any default margins on the image */
}

/* For smaller screens, adjust logo size */
@media (max-width: 768px) {
  .logo-img {
    max-width: 100px;  /* Reduce logo size on smaller screens */
  }
}

/* For very small screens (like mobile) */
@media (max-width: 480px) {
  .logo-img {
    max-width: 80px;   /* Further reduce size for mobile */
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin-right: 20px;
}
.nav-links li {
  display: inline;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}
.nav-links a:hover,
.nav-links a.active {
  border-bottom: 2px solid white;
}

/* Hamburger Menu for Mobile */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  margin-right: 20px;
}

.hamburger .line {
  width: 30px;
  height: 3px;
  background: white;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: left 0.5s ease;
  z-index: 999;
}

.mobile-nav-overlay.show {
  left: 0;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
}

.mobile-nav-links li {
  margin: 20px 0;
}

.mobile-nav-links a {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
}

.mobile-nav-links a.active {
  color: #ff9800; /* Highlight the active link */
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide regular links on mobile */
  }

  .hamburger {
    display: flex; /* Show hamburger icon on mobile */
  }
}

/* Active Link Highlight */
.nav-links a.active,
.mobile-nav-links a.active {
  color: #ff9800; /* Change color for the active section */
  font-weight: bold;
}

/* Scroll to Top Button */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #fff;
  color: #333;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 9999;
}
#scrollTopBtn:hover {
  background: #555;
  color: #fff;
}


/* Landing Page */
.back-video {
  position: absolute;
  margin-top: -50px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

#landing {
  height: 100vh;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  position: relative; /* Make sure the content is positioned relative to the section */
}

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

.landing-content h1 {
  font-size: 4rem;
  color: white;
  animation: fadeIn 1s ease-in-out;
  text-align: center; /* Center text inside the div */
}
/* Redirect Page */
#redirect {
  padding: 100px;
  text-align: center;
  background: black;
  position: relative;
  z-index: 1; /* Your custom starry background will be below this */
}

#redirect h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 40px;
}

#redirect p {
  font-size: 1.2rem;
  color: #cccccc;
  margin-bottom: 30px;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

button {
  padding: 10px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  background-color: #333; /* Dark button */
  color: #fff; /* Light text on button */
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #555; /* Slightly lighter background on hover */
}

#cta-btn-3d,
#cta-btn-static {
  padding: 15px 30px;
}

/* Description Page */
#description {
  padding: 100px;
  text-align: left;
  background-color: #111;
}

#description h1,
#description h2 {
  margin-bottom: 20px;
  color: #fff;
}

/* About Us */
#about {
  padding: 100px;
  text-align: center;
  background-color: #222;
}

/* Main carousel container */
.carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Main container that holds the panels */
.container {
  display: flex;
  width: 90vw;
  flex-direction: row; /* Default is horizontal layout */
}

/* Individual panels */
.panel {
  height: 80vh;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  flex: 0.5;
  margin: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center text */
  transition: flex 700ms ease-in;
  padding: 20px; /* Add some padding for better text layout */
}

/* Title and paragraph within each panel */
.panel h3 {
  font-size: 24px;
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in 0.4s;
}

.panel p {
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease-in 0.4s;
}

/* Active panel expands */
.panel.active {
  flex: 5;
}

.panel.active h3,
.panel.active p {
  opacity: 1;
}

/* Media query for tablets and mobiles */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    width: 100vw;
    padding: 0; /* Ensure no extra padding pushes panels out */
    overflow-x: hidden; /* Prevent horizontal overflow */
  }

  .panel {
    width: 100%; /* Ensure full width, no overflow */
    max-width: 100vw; /* Prevent the panel from expanding beyond viewport width */
    height: auto; /* Auto height for content stacking */
    margin: 20px 0; /* Add vertical margin between stacked panels */
    padding: 20px; /* Maintain padding for better layout */
    box-sizing: border-box; /* Ensure padding doesn't add to the width */
    transition: flex 700ms ease-in; /* Smooth transition for flex expansion */
  }

  .panel.active {
    flex: 2; /* Allow the panel to expand when active */
    height: auto; /* Maintain auto height for expanded panel */
  }
}

@media (max-width: 480px) {
  .container {
    width: 100vw;
    overflow-x: hidden; /* Prevent horizontal overflow */
  }

  .panel {
    width: 100%; /* Full width for mobile */
    height: auto;
    margin: 20px 0;
    transition: flex 700ms ease-in; /* Smooth flex transition */
  }

  .panel.active {
    flex: 2; /* Expand active panel on mobile as well */
  }

  /* Optionally hide extra panels on mobile */
  .panel:nth-of-type(4),
  .panel:nth-of-type(5) {
    display: none; /* Hide panels beyond the first three on mobile */
  }
}

/* Profile Cards Carousel */
.profile-cards {
  display: flex;
  overflow: hidden; /* Hide overflow content */
  scroll-snap-type: x mandatory; /* Enable snapping behavior */
  scroll-behavior: smooth;
  width: 100%; /* Full width of the carousel */
  justify-content: space-between;
}

.profile-card {
  flex: 0 0 33.33%; /* Default is 3 profiles visible */
  margin: 0 1.5%; /* Add some margin between profiles */
  scroll-snap-align: center;
  text-align: center;
  max-width: 250px;
}

@media (min-width: 1900px) {
  .profile-card {
    flex: 0 0 22%; /* Display 4 profiles for large screens */
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .profile-card {
    flex: 0 0 48%; /* Display 2 profiles for tablet screens */
  }
}

@media (max-width: 768px) {
  .profile-card {
    flex: 0 0 98%; /* Display 1 profile for mobile devices */
  }
}

.profile-card img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 50%;
}

.icon {
  width: 24px; 
  height: 24px; 
}


/* Carousel Controls */
.carousel-control {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.carousel-control:hover {
  color: #555;
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px;
  position: relative;
  bottom: 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
