/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #000000;
  background-color: #f7e56f;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: #10a4e8;
}

a:hover {
  color: #f7e56f;
}

/* Navigation Bar */
header {
  width: 100%;
  background-color: #000000; /* Set background on header to span full width */
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap; /* Prevent wrapping to maintain layout */
  max-width: 1200px; /* Set max-width for content */
  padding: 15px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.logo img {
  width: 100px;
  height: auto;
}

.logo-title-container {
  flex: 0 1 50%; /* Allow the title container to take up to 50% of the space */
  display: flex;
  justify-content: center;
  margin-left: 20px;
}

.logo-title {
  font-family: 'Phosphate_Solid', sans-serif;
  font-size: 2rem;
  color: white;
  -webkit-text-stroke: 0.2px #f7e56f;
  text-transform: uppercase;
  text-align: center;
  white-space: normal; /* Allow the text to wrap */
  word-wrap: break-word; /* Break long words if necessary */
  max-width: 100%; /* Ensure the title doesn't exceed its container */
}

@media (max-width: 1024px) {
  .logo-title {
    font-size: 1.8rem;
  }

  .nav-links li a {
    font-size: 0.95rem; /* Slightly smaller font size */
    padding: 7px 10px; /* Further reduce padding */
  }
}

@media (max-width: 767px) {
  .logo-title {
    font-size: 1.5rem;
    white-space: normal;
    max-width: 100%;
    text-align: center;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hamburger-menu {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    margin-top: 10px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #000000;
    margin-top: 10px;
    gap: 0px; /* Remove gap to prevent overflow */
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    padding: 15px;
    width: 100%;
    text-align: center;
    font-size: 1rem; /* Maintain readability */
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: #000000;
    max-width: 100%; /* Prevent dropdown from exceeding container width */
    box-sizing: border-box;
  }

  .dropdown-content li a:hover {
    background-color: #10a4e8;
  }
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none; /* Hidden on larger screens */
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none; /* Hidden by default */
  font-size: 2rem;
  cursor: pointer;
  color: #ffffff;
}

@media (max-width: 767px) {
  .hamburger-menu {
    display: flex; /* Show on smaller screens */
  }

  .hamburger {
    display: block; /* Show hamburger icon */
  }
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  flex: 0 1 auto; /* Prevent nav-links from growing excessively */
  overflow: hidden; /* Hide any potential overflow */
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: #ffffff;
  padding: 8px 12px; /* Reduced padding for better fit */
  font-size: 1rem; /* Slightly smaller font size */
  transition: color 0.3s ease;
  white-space: nowrap; /* Prevent link text from wrapping */
}

.nav-links.active {
  /* Additional styles if needed when active */
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #000000;
    gap: 0px;
  }

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

  .nav-links li a {
    padding: 15px;
    width: 100%;
    text-align: center;
  }
}

/* Dropdown Styles */
.dropdown-content {
  display: none;
  position: absolute;
  background: #000000;
  min-width: 180px;
  max-width: 100%; /* Prevent dropdown from exceeding container width */
  top: 100%;
  right: 0;
  z-index: 1001;
  border-radius: 5px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-content,
.dropdown .dropdown-content.show {
  display: block;
}

.dropdown-content li a {
  color: #ffffff;
  padding: 10px;
  text-align: center;
}

.dropdown-content li a:hover {
  background-color: #10a4e8;
}

/* Prevent Horizontal Overflow */
body {
  overflow-x: hidden; /* Prevents horizontal scroll */
}

/* Service Section */
.service-section {
  padding: 40px 20px; /* Added horizontal padding for better spacing on small screens */
  background-image: url('images/media-bg.jpg');
  background-size: cover;
  background-position: center;
  margin: 0 .05In;
  max-width: 1200px;
  width: 100%; /* Ensure it takes full width */
  min-height: 1In* Minimum height as per user request */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Section Titles */
.row-title, .row-subtitle {
  text-align: center;
  margin-bottom: 3px;
  z-index: 1; /* Ensure they are above the slider */
}

.section-header {
  font-size: 4rem;
  color: #950271;
  margin: 0;
}

.section-subtitle {
  font-size: 1.8rem;
  color: #333333;
  margin: 0;
}

/* Centralized 3D Slider */
.row-slider {
  display: flex;
  align-items: center; /* Vertically center the slider and arrows */
  justify-content: center;
  position: relative;
  width: 100%;
  height: 300/* Set height to accommodate slider items */
}

.card-slider-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0 40px; /* Space between arrows and slider */
  width: 100%; /* Ensure it takes full width */
  perspective: 1000px;
  height: 300px; /* Set height to match row-slider */
  overflow: visible; /* Allow flanking cards to be visible */
}

.slider-item {
  position: absolute;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform-origin: center center;
  width: 300px;
}

.slider-item.active {
  transform: translateX(0) scale(1.2); /* Enlarge active card */
  opacity: 1;
  z-index: 10;
}

.slider-item.prev {
  transform: translateX(-250px) scale(1.0); /* Move previous card to left */
  z-index: 5;
  opacity: 0.5;
}

.slider-item.prev-2 {
  transform: translateX(-500px) scale(0.8); /* Move second prev card further left */
  z-index: 2;
  opacity: 0.3;
}

.slider-item.next {
  transform: translateX(250px) scale(1.0); /* Move next card to right */
  z-index: 5;
  opacity: 0.5;
}

.slider-item.next-2 {
  transform: translateX(500px) scale(0.8); /* Move second next card further right */
  z-index: 2;
  opacity: 0.3;
}

/* Styling for Product Cards */
.product-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
}

.product-card img {
  max-width: 65%;
  height: auto;
  border-radius: 10px;
}

.product-card h3 {
  font-size: 1.4rem;
  color: #950271;
  margin: 10px 0;
}

.product-card p {
  font-size: 1rem;
  color: #000;
}

.learn-more-btn {
  background-color: #950271;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.learn-more-btn:hover {
  background-color: #10a4e8;
}

/* Make the left and right arrows larger */
.slider-arrow {
  font-size: 3rem;
  color: #950271;
  cursor: pointer;
  z-index: 20;
  padding: 10px;
}

.slider-arrow.left {
  margin-right: 20px;
}

.slider-arrow.right {
  margin-left: 20px;
}

/* Ensure space around arrows */
.row-slider {
  display: flex;
  align-items: center; /* Vertically center the slider and arrows */
  justify-content: center;
  position: relative;
  width: 100%;
  height: 300px; /* Set height to accommodate slider items */
  padding: 10px 0; /* Add padding to avoid overlap with arrows */
}


/* Footer */
footer {
  background-color: #000000;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto; /* Pushes footer to the bottom */
}

footer a {
  color: #f7e56f;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

/* Section Titles */
h2.section-title {
  color: #950271;
  text-align: center;
  margin: 30px 0;
  font-size: 2rem;
}

/* Responsive Adjustments for Slider */
@media (max-width: 1200px) {
  .card-slider-container {
    width: 100%; /* Ensure it takes full width */
  }

  .slider-item {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .card-slider-container {
    width: 100%; /* Ensure it takes full width */
  }

  .slider-item {
    width: 200px;
  }

  /* Adjust slider-item positions for smaller screens */
  .slider-item.prev-2,
  .slider-item.next-2 {
    display: none; /* Hide second previous and next items on small screens */
  }

  /* Reduce margins for arrows */
  .slider-arrow.left {
    margin-right: 5px;
  }

  .slider-arrow.right {
    margin-left: 5px;
  }
}

/* Ensure Consistent Box Sizing Across Elements */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Hero Section (if applicable) */
.hero {
  background-color: #f7e56f;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  max-width: 100%; /* Prevent overflow */
  z-index: 1; /* Ensure hero background stays below floating cards */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/media explosion.png');
  background-size: cover;
  background-position: center;
  opacity: 0.3; /* Opacity for the background image, not affecting floating cards */
  z-index: 0; /* Background stays behind everything */
}

.hero-content {
  position: relative;
  z-index: 2; /* Ensure hero content is on top of the hero background */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #950271;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.hero-buttons {
  margin-bottom: 40px;
}

.btn {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.3s ease-in-out;
}

.btn-primary {
  background-color: #10a4e8;
  color: #ffffff;
}

.btn-secondary {
  background-color: #950271;
  color: #ffffff;
}

.btn-primary:hover,
.btn-secondary:hover {
  background-color: #f7e56f;
  color: #000;
}

/* Floating Cards */
.hero-row-2 {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 100%;
  z-index: 3; /* Ensure floating cards are above hero background and content */
  position: relative;
}

.floating-card {
  width: 25%;
  background-color: #ffffff !important; /* Ensure solid white with no transparency */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1); /* Slight shadow */
  transition: transform 0.3s ease-in-out;
  z-index: 4; /* Ensure individual cards are on top of everything */
}

.floating-card img {
  width: 100%;
}

.card-content {
  padding: 20px;
  background-color: #ffffff !important; /* Ensure solid white content area */
}

.floating-card:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

@media (max-width: 767px) {
  .hero-row-2 {
    display: block;
    width: 100%;
    margin: 0 auto;
  }

  .floating-card {
    width: calc(100% - 40px);
    margin: 20px auto;
    box-shadow: none;
  }
}

/* Service Cards with Animation */
#services {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 50px 0;
  background-color: #f0f0f0;
}

.service-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  width: 30%;
  margin: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  color: #950271;
}

.service-card p {
  color: #000000;
}

/* About Us Section */
#about {
  background-color: #ffffff;
  padding: 50px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 800px;
}

#about p {
  font-size: 1.2rem;
  color: #000000;
}

/* Contact Section */
#contact {
  background-color: #ffffff;
  padding: 50px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

#contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact input, #contact textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #950271;
  border-radius: 5px;
}

#contact input[type="submit"] {
  background-color: #950271;
  color: #ffffff;
  border: none;
  cursor: pointer;
  padding: 15px 30px;
  transition: background-color 0.3s;
}

#contact input[type="submit"]:hover {
  background-color: #10a4e8;
}

/* Footer */
footer {
  background-color: #000000;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto; /* Pushes footer to the bottom */
}

footer a {
  color: #f7e56f;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

/* Section Titles */
h2.section-title {
  color: #950271;
  text-align: center;
  margin: 30px 0;
  font-size: 2rem;
}

/* Responsive Adjustments for Slider */
@media (max-width: 1200px) {
  .card-slider-container {
    width: 100%; /* Ensure it takes full width */
  }

  .slider-item {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .card-slider-container {
    width: 100%; /* Ensure it takes full width */
  }

  .slider-item {
    width: 200px;
  }

  /* Adjust slider-item positions for smaller screens */
  .slider-item.prev-2,
  .slider-item.next-2 {
    display: none; /* Hide second previous and next items on small screens */
  }

  /* Reduce margins for arrows */
  .slider-arrow.left {
    margin-right: 5px;
  }

  .slider-arrow.right {
    margin-left: 5px;
  }
}
