/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

html, body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Update this existing rule */
header {
    background-color: #f8f8f8;
    color: #333;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000; /* Set a high z-index to stay on top of the hero section */
}


.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    overflow-x: hidden;
}

.logo-img {
    height: 120px;
    width: 120px;
    border-radius: 8px;
    max-width: 100%;
}

/* Navigation Menu */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav ul li a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4CAF50;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.5rem 0;
}

.language-selector label {
    font-size: 0.9rem;
    color: #666;
}

.language-selector select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

/* Hamburger Menu Icon */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1003; /* FIX: Set a higher z-index than the mobile nav */
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* Hamburger animation */
.hamburger-menu.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-menu.open .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section with Slider */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.slider-image {
    display: none; /* Hides all images by default */
    width: 100%;
    height: auto;
}

.slider-image.active {
    display: block; /* Shows only the active image */
}

/* Slider Navigation Buttons */
.slider-nav-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.8);
}

.prev-btn {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.slider-nav-btn:hover {
    background-color: rgba(0,0,0,0.6);
}

/* Slider Dots */
.slider-dots {
    text-align: center;
    padding: 20px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #717171;
}

/* You may need to adjust the position of the header and other elements */
/* to accommodate the hero section */

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(0,0,0,0.2);
}

.dot.active {
    background-color: #4CAF50;
    transform: scale(1.2);
    border: 1px solid #4CAF50;
}

main {
    flex: 1;
    padding: 2rem 0;
}

section {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

h1, h2, h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); color: #4CAF50; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); color: #4CAF50; }

p { margin-bottom: 1rem; text-align: justify; font-size: clamp(0.9rem, 2.5vw, 1rem); }

ul { list-style: disc; margin-left: 20px; margin-bottom: 1rem; }
ul li { margin-bottom: 0.5rem; }

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: 100%;
    align-self: stretch;
}

.form-group input[type="submit"]:hover {
    background-color: #45a049;
}

footer {
    background-color: #f8f8f8;
    color: #555;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
    }

    .logo-img {
        margin: 0;
    }

    .hamburger-menu {
        display: flex;
        position: static;
    }

    nav#main-nav {
        display: flex;
        flex-direction: column;
        width: 50%;
        background-color: #f8f8f8;
        position: fixed;
        top: 0;
        right: -100%;
        height: 60vh;
        box-shadow: -4px 0 10px rgba(0,0,0,0.05);
        padding-top: 5rem;
        z-index: 1002;
        opacity: 0.85;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
    }

    nav#main-nav.active {
        right: 0;
    }

    nav ul { flex-direction: column; gap: 0; width: 100%; }
    nav ul li a {
        padding: 0.8rem 1rem;
        display: block;
        border-bottom: 1px solid #eee;
    }
    nav ul li:last-child a { border-bottom: none; }

    .desktop-language-selector { display: none; }
    .mobile-language-selector {
        display: flex;
        justify-content: center;
        padding: 1rem 0;
        border-top: 1px solid #eee;
        margin-top: 1rem;
    }
}

@media (min-width: 769px) {
    .hamburger-menu { display: none; }
    nav#main-nav {
        display: flex;
        flex-direction: row;
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        z-index: auto;
    }
    nav ul { flex-direction: row; gap: 1.5rem; }
    nav ul li a { border-bottom: none; padding: 0.5rem 0; }
    .desktop-language-selector { display: flex; }
    .mobile-language-selector { display: none; }
}


/* Strong global reset against horizontal scroll */
* {
  box-sizing: border-box;
  max-width: 100%;
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
}

.container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: hidden !important;
}

.slider-container,
.slider-image {
  max-width: 100% !important;
  overflow-x: hidden !important;
  display: block;
}

nav#main-nav {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

section {
  max-width: 100% !important;
  overflow-x: hidden !important;
}
