/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: #f0f0f0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Responsive Navbar */
.navbar {
    background-color: #333;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .navbar h1 {
    color: #fff;
    font-size: 1.8rem;
  }
  
  .nav-links {
    padding: 0; 
    margin: 0; 
    display: flex;
    gap: 10px;
  }
  .hammy{
    color: white;
    font-size: 18px;
    display: none;
  }
  
  .nav-links a {
    text-decoration: none; 
    color: white;
    padding: 10px 14px; 
    border-radius: 5px;
    transition: background-color 0.3s ease; 
  }
  
  .nav-links a:hover {
    background-color: #3d6997; 
  }
  
  .nav-links a.active-link {
    font-weight: bold; 
    color: #fff; 
    background-color: #007bff;
  }
  
  
  @media (max-width: 768px) {
  
    .navbar{
      justify-content: unset;
    }
   
    .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      background-color: #007bff;
      width: 100%;
      top: 60px;
      left: 0;
      overflow: hidden; 
      max-height: 0;
      transition: max-height 0.3s ease; 
    }
  
    .nav-links.active {
      display: flex;
      align-items: start;
      max-height: 300px;
      z-index: 200;
    }
  
    .hammy {
        display: block;
        position: absolute;
        right: 20px; 
        top: 26px;
    }
  
  }

/* Hero Section */
.hero-contact {
    background: conic-gradient(at top, #eede0479, #18191af6, #fa3504);
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-contact h1 {
    font-size: 3rem;
    animation: fadeIn 2s ease forwards;
}

.hero-contact p {
    padding-inline: 2rem;
    font-size: 1.2rem;
    margin-top: 10px;
    animation: fadeIn 2s ease forwards 0.5s;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contact Info Section */
.contact-info {
    background: #ffffff;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Modified to ensure responsiveness */
    gap: 2rem;
    margin-top: 2rem;
}

.info-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap; /* Ensure items wrap */
}

.info-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item i {
    font-size: 2rem;
    color: #0a2e5c;
    margin-bottom: 10px;
}

.info-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.info-item p {
    font-size: 1rem;
    color: #666;
}

.info-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Contact Form Section Styling */
/* Container for the contact form section */
.contact-form-section {
    max-width: 500px;
    /* margin: 20px auto; */
    padding: 20px; 
    border: 1px solid #ccc; /* Border around the section */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    background-color: #ffffff; /* White background for the form */
}

/* Heading style */
.contact-form-section h2 {
    text-align: center; /* Center the heading */
    color: #333; /* Dark gray color for the heading */
    margin-bottom: 16px; 
}

/* Form group style */
.form-group {
    margin-bottom: 14px; 
}

/* Label style */
.form-group label {
    display: block; /* Block display for full width */
    margin-bottom: 5px; /* Space below the label */
    font-weight: bold; /* Bold font for labels */
    color: #555; /* Medium gray color for labels */
}

/* Input and textarea styles */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%; /* Full width of the container */
    padding: 10px; /* Inner padding */
    border: 1px solid #ccc; /* Border for inputs */
    border-radius: 5px; /* Rounded corners */
    box-sizing: border-box; /* Include padding in width */
    font-size: 16px; /* Font size for input */
}

/* Textarea specific style */
.form-group textarea {
    resize: none; 
}

/* Button styles */
.submit-btn {
    width: 100%; /* Full width button */
    padding: 10px; /* Padding for button */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    background-color: #4CAF50; /* Green background */
    color: #ffffff; /* White text */
    font-size: 16px; /* Font size for button text */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Transition for hover effect */
}

/* Button hover effect */
.submit-btn:hover {
    background-color: #45a049; /* Darker green on hover */
}

/* Responsive design */
@media (max-width: 600px) {
    .contact-form-section {
        padding: 15px; /* Reduce padding on small screens */
    }
}

/* Map Section */



/* Footer */
footer {
    background-color: #0a2e5c;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

footer p {
    font-size: 1rem;
    animation: fadeIn 2s ease-in;
}

/* Responsiveness */

/* Responsive Styles for UL and LI between 800px and 480px */
@media (max-width: 800px) and (min-width: 480px) {
    nav {
        overflow: hidden; /* Prevent horizontal scroll */
    }

    nav ul {
        display: flex; /* Use flex to keep items in a row */
        flex-wrap: nowrap; /* Prevent wrapping to the next line */
        justify-content: space-around; /* Distribute space evenly */
        padding: 0; /* Remove padding */
        margin: 0; /* Remove margin */
        max-width: 100%; /* Ensure ul does not exceed navbar width */
        box-sizing: border-box; /* Include padding and border in width calculations */
    }

    nav ul li {
        flex: 1; /* Allow items to grow and shrink equally */
        margin: 0; /* Remove margin between items */
    }

    nav ul li a {
        display: block; /* Make the link fill the list item */
        text-align: center; /* Center text in the link */
        padding: 10px; /* Add padding for clickable area */
        font-size: 16px; /* Adjust font size for readability */
        white-space: nowrap; /* Prevent text from wrapping */
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .hero-contact h1 {
        font-size: 2.5rem;
    }

    .hero-contact p {
        font-size: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr; /* Stack items */
    }

   
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    header nav {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav .logo a {
        font-size: 1.5rem;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    nav ul li {
        margin: 0;
        padding: 0.5rem 0;
        width: 100%;
    }

    nav ul li a {
        width: 100%;
        padding: 1rem;
        font-size: 1.2rem;
        text-align: left;
    }

    .hero-contact h1 {
        font-size: 2rem;
    }

    .hero-contact p {
        font-size: 0.9rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 250px;

    }

    footer p {
        font-size: 0.8rem;
    }
}
/* Extra Small Screens (300px and below) */
@media (max-width: 300px) {
    .info-item {
        padding: 0.8rem; /* Reduce padding for smaller screens */
        margin: 0.5rem 0;
    }

    .info-item h3 {
        font-size: 1.2rem;
    }

    .info-item p {
        font-size: 0.8rem;
    }

    .map-container {
        height: 200px; /* Reduce map height for small screens */
    }

    nav ul li a {
        font-size: 1rem; /* Reduce navbar link font size */
    }
}


/* CSS for the loading spinner  if you dont want alert */
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #ffffff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



.contact-map-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: space-evenly; 
    padding-inline: 1rem;
    margin-top: 1rem;
}

.contact-form-section,
.map-section {
    flex: 1; 
    min-width: 300px; 
    padding: 20px; 
    box-sizing: border-box; 
}

.map-container {
    display: flex;
    justify-content: center;
    overflow: hidden;
}
/* Container for the map section */
.map-section {
    max-width: 550px;
    /* margin: 20px auto;  */
    padding: 18px; 
    border: 1px solid #ccc; /* Border around the section */
    border-radius: 10px; /* Rounded corners */
    background-color: #ffffff; /* White background for the section */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Heading style */
.map-section h2 {
    text-align: center; /* Center the heading */
    color: #333; /* Dark gray color for the heading */
    margin-bottom: 10px; /* Space below the heading */
}

/* Map container style */
.map-container {
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center the map iframe */
}

/* Iframe style */
.map-container iframe {
    width: 100%;
    height: 360px;
    border: 0; /* Remove default border */
    border-radius: 5px; /* Rounded corners for the iframe */
}

/* Responsive design */
@media (max-width: 600px) {
    .map-section {
        padding: 15px; /* Reduce padding on small screens */
        margin-bottom: 1rem;

    }

    .map-container iframe {
        height: 300px; /* Reduce height of iframe on small screens */
    }
}
