/* Using CSS Custom Properties (variables) for colors and fonts */
:root {
  --primary-bg: #1e1e2f;
  --secondary-bg: #2f2f45;
  --hover-bg: #cc4141;
  --text-color: #fff;
  --main-font: Arial, sans-serif;
}

/* A common reset for more predictable box model sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--main-font);
  background-color: #ddd7cd; /* Added a default background for visibility */
}

.upnav {
    display:flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(82, 81, 81);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 40px;

}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-bg);
  padding: 10px 20px;
  flex-wrap: wrap;
}

.logo img {
  height: 60px;
  object-fit: contain;
}


.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0; /* Resetting default margin for ul */
  padding: 0; /* Resetting default padding for ul */
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links li a {
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 12px;
  display: block; /* Making the whole area clickable */
  transition: background 0.3s;
  border-radius: 4px;
}

.nav-links li a:hover {
  background: var(--hover-bg);
}

.dropdown {
  position: relative; /* Needed for absolute positioning of child */
}

.dropdown-content {
  display: none;
  position: absolute;
  background: var(--secondary-bg);
  margin-top: 8px;
  list-style: none;
  padding: 0;
  min-width: 160px; /* Give dropdown a minimum width */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Add shadow for depth */
  z-index: 1; /* Ensure it's on top of other content */
  border-radius: 4px; /* Consistent rounding */
}

.dropdown-content li a:hover {
    background: var(--hover-bg);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.toggle {
  color: var(--text-color);
  font-size: 1.5em;
  cursor: pointer;
  display: none;
}

.carousel {
  position: relative;
  width: 95%;
  height: 850px;
  margin: auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  width: 100%;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.txt_pos {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.animated-text {
            font-size: 5rem; /* Responsive font size */
            font-weight: 700;
            color: white;
            text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
        }

        /* Each word is wrapped in a line for animation control */
        .line {
            display: block;
            text-align: center;
        }

        /* Individual letters are wrapped in spans */
        .line span {
            display: inline-block;
            /* Initial state of the letter: hidden and moved down */
            transform: translateY(100%);
            opacity: 0;
            /* Animation properties */
            animation: revealLetter 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }

          /* The animation keyframes */
        @keyframes revealLetter {
            from {
                transform: translateY(100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

/* Info Section Styling */
.txt_head_info {
  text-align: center;
  padding: 50px 20px;
  margin: 40px 0;
  background-color: #ffffff;
}

.txt_head_info h1 {
  font-size: 2.5rem;
  font-weight: 700; /* Bold */
  margin-bottom: 20px;
  color: #333;
}

.txt_head_info p {
  font-size: 1.5rem; /* Readable paragraph size */
  line-height: 1.7;
  color: #666;
  max-width: 800px; /* Constrain line length for readability */
  margin-left: auto;
  margin-right: auto;
}

/* Slider Container */
.slider-container {
    width: 90%;
    max-width: 900px; /* Increased max-width for two items */
    margin: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background-color: #ffffff;
}

/* Wrapper for all slides */
.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* --- MODIFIED --- */
/* Individual Slide Styles */
.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 3rem 2rem;
    /* Use flexbox to arrange items side-by-side */
    display: flex;
    justify-content: space-around;
    align-items: flex-start; /* Aligns items at the top */
    gap: 2rem; /* Space between the two items */
}

/* --- NEW --- */
/* Container for each feature within a slide */
.slide-item {
    flex: 1; /* Each item will take up equal space */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.slide-graphic {
    font-size: 3.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.slide-heading {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: #1c1e21;
    height: 3em; /* Give a fixed height to align headings */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #606770;
    max-width: 300px;
}

/* Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, color 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background-color: #007bff;
    color: #fff;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #007bff;
}

.gallery-container {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  overflow: hidden;
  position: relative;
}

.slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.slider img,
.slider video {
  width: 300px;
  height: 200px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
}

button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.5rem;
}

button:first-of-type {
  left: 5px;
}

button:last-of-type {
  right: 5px;
}

 /* Style for the background image */
        .background-container {
            background-image: url('https://images.unsplash.com/photo-1585422228291-118510d8a14a?q=80&w=2070&auto=format&fit=crop');
            background-size: cover;
            background-position: center;
        }
        /* Custom focus styles for better accessibility and design */
        .form-input:focus, .form-select:focus, .form-textarea:focus {
            outline: none;
            border-color: #3b82f6; /* blue-500 */
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
        }

#submitButton {
  position: relative;
  display: inline-block;
}


@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    order: 1; /* Make sure nav links appear after logo/toggle */
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .toggle {
    display: block;
  }

  .dropdown-content {
    position: static;
    box-shadow: none; /* Remove shadow in mobile view */
    background: transparent; /* Blend with the mobile nav */
    border-radius: 0;
    min-width: auto;
  }

  .dropdown-content li a {
    padding-left: 20px; /* Indent dropdown links on mobile */
  }

  .animated-text {
                font-size: 3rem;
            }

  .txt_head_info {
    padding: 40px 15px;
  }

  .txt_head_info h1 {
    font-size: 1.8rem;
  }

  .slide {
        /* Stack the items vertically on smaller screens */
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 2.5rem; /* Increase gap for vertical stacking */
    }
    .slide-heading {
        font-size: 1.4rem;
        height: auto; /* Reset fixed height */
    }
    .slide-description {
        font-size: 0.9rem;
    }
    .slider-btn {

    form {
      padding: 1rem; /* Reduce padding on smaller screens */
    }

    input,
    textarea {
      padding: 0.7rem; /* Slightly smaller inputs */
      font-size: 0.9rem;
    }

    form button {
      padding: 0.7rem;
      font-size: 0.9rem;
    }
  }
        
}

