/* ADDED: A robust box-sizing reset to prevent padding from causing overflow */
* {
    box-sizing: border-box;
}

/* --- General Styling --- */
body {
    font-family: 'Montserrat', sans-serif;
    /* CHANGED: Set margin to 0 for consistency and to prevent overflow */
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    scroll-behavior: smooth;
    /* ADDED: Hide horizontal overflow on the body as a safeguard */
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 400;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.main-nav {
    margin-left: 20px;
    flex-grow: 1;
    
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-right: 20px;
}

.main-nav a {
    font-weight: 700;
    color: #555;
    padding: 10px 0;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #007bff;
    transition: width 0.3s ease-out;
}
.main-nav a:hover {
    color: #007bff;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info, .language-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9em;
}
.contact-info {
    padding-right: 1rem;
}

.contact-info a {
    color: #333;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.contact-info i {
    margin-right: 5px;
    color: #007bff;
}

.language-switcher {
    order: 2;
}

.language-switcher a:first-child {
    order: 2;
}

.language-switcher span {
    width: 25px;
    height: 25px;
    border-radius: 30%;
    transition: transform 0.3s ease;
}

.language-switcher span:hover {
    transform: scale(1.2);
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001; /* Ensure it's above the mobile menu */
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.4s ease-in-out;
}

.hamburger-menu.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: fixed;
    top: 70px;
    left: 0;
    /* CHANGED: Switched from 100vw to 100% to prevent overflow */
    width: 100%;
    min-height: 50vh;
    z-index: 999;
    padding-top: 20px;

    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    text-align: center;
    align-items: center;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-nav a {
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
    width: 80%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.mobile-nav a:hover {
    color: #007bff;
}

.mobile-nav a i {
    margin-right: 10px;
    color: #007bff;
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #007bff;
    transition: width 0.3s ease-out;
}

.mobile-nav a:hover::after {
    width: 100%;
}
.mobile-contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.mobile-language-switcher {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}
/* --- Video Background and Overlay --- */
#myVideo {
  position: fixed;
  top: 50%;
  left: 50%;
  /* CHANGED: Switched from 100vw to 100% */
  min-width: 100%;
  min-height: 90vh;

  transform: translate(-50%, -50%); /* Centers the video */
  z-index: -2; /* Puts the video behind the overlay and content */
}

/* This is the dark overlay */
.overlay-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7); /* Black with 50% opacity */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: -1; /* Puts the overlay behind the content but in front of the video */
  padding: 20px;
  text-align: center;
}

/* --- Responsive Layout (General) --- */
@media (max-width: 1024px) {
    .main-nav, .contact-info, .language-switcher, .header-search {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-search {
        display: flex;
        margin-left: auto;
        margin-right: auto;
        width: 80%;
        margin-top: 20px;
    }

    .mobile-language-switcher {
        display: flex;
        flex-direction: row;
    }

    .domains-section,
    .footer-content {
        margin: auto;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-content, .footer-content > * {
        text-align: center;
    }
    .footer-links ul {
        display: inline-block;
        text-align: left;
    }
    
    .certificates-container .certificate {
        display: block;
        margin: 20px auto;
    }
}


/* --- Homepage specific styles --- */
.slider-section {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden !important;
}
.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out, opacity 0.8s ease-in-out;
    overflow: hidden;
}
.slider-item.active {
    opacity: 1;
    transform: translateX(0);
}
.slider-item.slide-out-left {
    transform: translateX(-100%);
}
.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-text {
    position: absolute;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    width: 50%;
    height: 100%;
    object-fit: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.slider-text p {
    margin: 0;
    padding: 0 60px;
    text-align: justify;
}
.prev-arrow, .next-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
}
.prev-arrow { left: 10px; }
.next-arrow { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    display: flex;
    gap: 10px;
}
.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}
.dot.active {
    background-color: #fff;
}
@media (max-width: 768px) {
    .slider-text {
        width: 100%;
        left: 50%;
        font-size: 14px;
    }
    .slider-text p {
        width: 80%;
        padding: 0 20px; /* Reduces padding on small screens */
    }
}

/* === START: DRAGER STYLES === */
.drager-section-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    background-color: #f8f9fa;
    align-items: center;
    justify-content: center;
}
.drager-section-desktop .drager-content {
    max-width: 643px;
    justify-self: end;
}
.drager-section-desktop .drager-content h2 {
    display: flex;
    align-items: center;
    font-size: 2rem;
    gap: 12px;
}
.drager-section-desktop .drager-content h2 img {
    max-width: 120px;
    height: auto;
}
.drager-section-desktop .drager-slide-text {
    margin-top: 20px;
    color: #555;
    font-style: italic;
    min-height: 60px;
    transition: opacity 0.4s ease-in-out;
}
.drager-section-desktop .drager-arrows button {
    background: none; border: 1px solid #ccc; color: #555;
    padding: 8px 15px; margin-right: 10px; cursor: pointer; transition: all 0.3s;
}
.drager-section-desktop .drager-arrows button:hover {
    background-color: #ddd; border-color: #bbb;
}
.drager-section-desktop .drager-slideshow-container {
    position: relative; width: 40vw; max-width: 643px;
    aspect-ratio: 4 / 3; overflow: hidden;
}
.drager-section-mobile {
    display: none; padding: 40px 20px; background-color: #f8f9fa;
}
.drager-section-mobile h2 {
    display: flex; align-items: center; font-size: 1rem; gap: 12px;
}
.drager-section-mobile h2 img { max-width: 60px; }
.drager-section-mobile p { text-align: justify; font-size: 0.8rem; }
.drager-section-mobile .drager-slide-text {
    margin-top: 20px; color: #555; font-style: italic; min-height: 40px;
    transition: opacity 0.4s ease-in-out; text-align: center; font-size: 1rem;
}
.drager-section-mobile .drager-arrows {
    margin-top: 20px; text-align: center;
}
.drager-section-mobile .drager-arrows button {
    background: none; border: 1px solid #ccc; color: #555;
    padding: 8px 15px; margin: 0 5px; cursor: pointer;
}
.drager-section-mobile .drager-slideshow-container {
    position: relative; width: 100%; max-width: 643px;
    aspect-ratio: 4 / 3; overflow: hidden; margin-top: 20px;
}
.drager-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.8s ease-in-out; z-index: 1;
}
.drager-slide.active {
    opacity: 1; z-index: 2;
}
.drager-slide img {
    width: 100%; height: 100%; object-fit: cover;
}
.drager-dots-container {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; gap: 12px;
}
.drager-dots-container .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6); cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.2);
}
.drager-dots-container .dot.active {
    background-color: #fff;
}
/* === END: DRAGER STYLES === */


/* === START: ABOUT SECTION STYLES === */
.about-section-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    background-color: #fff;
    align-items: center;
    justify-content: center;
}
.about-section-desktop .about-content {
    max-width: 643px;
    justify-self: start;
}
.about-section-desktop .about-slideshow-container {
    position: relative; width: 40vw; max-width: 643px;
    aspect-ratio: 4 / 3; overflow: hidden; justify-self: end;
}
.about-section-mobile {
    display: none; padding: 40px 20px; background-color: #fff;
}
.about-section-mobile h2 {
    display: flex; align-items: center; font-size: 1rem; gap: 12px;
}
.about-section-mobile p {
    font-size: 0.8rem; text-align: justify;
}
.about-section-mobile .about-arrows {
    margin-top: 12px; text-align: center;
}
.about-section-mobile .about-slideshow-container {
    position: relative; width: 100%; max-width: 643px;
    aspect-ratio: 4 / 3; overflow: hidden; margin-top: 20px;
}
.about-slide-text, .team-slide-text {
    margin-top: 20px; color: #555; font-style: italic;
    min-height: 60px; transition: opacity 0.4s ease-in-out;
}
.about-arrows, .team-arrows {
    margin-top: 20px;
}
.about-arrows button, .team-arrows button {
    background: none; border: 1px solid #ccc; color: #555;
    padding: 8px 15px; margin-right: 10px; cursor: pointer; transition: all 0.3s;
}
.about-arrows button:hover, .team-arrows button:hover {
    background-color: #ddd; border-color: #bbb;
}
.about-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.8s ease-in-out; z-index: 1;
}
.about-slide.active { opacity: 1; z-index: 2; }
.about-slide img { width: 100%; height: 100%; object-fit: cover; }
.about-dots-container {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; gap: 12px;
}
.about-dots-container .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6); cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.2);
}
.about-dots-container .dot.active { background-color: #fff; }
/* === END: ABOUT SECTION STYLES === */


/* === START: TEAM SECTION STYLES === */
.team-section-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    background-color: #f8f9fa;
    align-items: center;
    justify-content: center;
}
.team-section-desktop .team-content { max-width: 643px; justify-self: start; }
.team-section-desktop .team-slideshow-container {
    position: relative; width: 40vw; max-width: 643px;
    aspect-ratio: 4 / 3; overflow: hidden; justify-self: end;
}
.team-section-mobile {
    display: none; padding: 40px 20px; background-color: #f8f9fa;
}
.team-section-mobile h2 {
    display: flex; align-items: center; font-size: 1rem; gap: 12px;
}
.team-section-mobile p {
    font-size: 0.8rem; text-align: justify;
}
.team-section-mobile .team-slideshow-container {
    position: relative; width: 100%; max-width: 643px;
    aspect-ratio: 4 / 3; overflow: hidden; margin-top: 20px;
}
.team-member-info { min-height: 120px; }
.team-member-name {
    font-size: 1.5rem !important; font-weight: 600; color: #333;
    margin: 0 0 10px 0; transition: opacity 0.4s ease-in-out;
}
.team-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.8s ease-in-out; z-index: 1;
}
.team-slide.active { opacity: 1; z-index: 2; }
.team-slide img { width: 100%; height: 100%; object-fit: cover; }
.team-dots-container {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; gap: 12px;
}
.team-dots-container .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6); cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.2);
}
.team-dots-container .dot.active { background-color: #fff; }
/* === END: TEAM SECTION STYLES === */


.domains-section {
    display: flex;
    margin: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 50px 0;
    text-align: center;
    max-width: 1366px;
}
.domain-card {
    margin: auto;
    flex: 1;
    min-width: 300px;
    max-width: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.domain-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.domain-card img {
    width: 100%;
    margin: auto;
}

.certificates-container {
    margin-top: 50px;
    text-align: center;
    padding: 50px 20px;
}
.certificate {
    display: inline-block;
    margin: 10px;
    transition: transform 0.3s;
}
.certificate:hover {
    transform: scale(1.05);
}
.certificate img {
    width: 200px;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-section {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}
.request-form {
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.request-form input, .request-form select, .request-form textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px;
    font-size: 0.9em;
    text-align: center;
}
.footer-content {
    display: flex;
    max-width: 1200px;
    justify-self: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: center;
}
.google-map, .footer-links {
    margin: auto;
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links li a {
    color: #fff;
    display: block;
    padding: 5px 0;
}
.footer-links a i {
    margin-right: 8px;
    color: #007bff;
}
.footer-images {
    margin-top: 20px;
}
.footer-images img {
    max-width: 120px;
    margin: 0 10px;
}
.created-by {
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 20px;
}
.created-by a {
    color: #007bff;
}
.created-by img {
    width: 80px;
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Products Page styles --- */
.products-per-page-selector {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.products-per-page-selector select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.products-page-content {
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
}

#products-main-title, .intro-text {
    text-align: start;
}

.products-section-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.domain-category-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.domain-category-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.domain-category-button.active {
    border-color: #007bff;
    background-color: #e9f5ff;
}

.domain-category-button .button-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.domain-category-button i {
    font-size: 1.5rem;
    color: #007bff;
}

.domain-category-button h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.expand-indicator {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.domain-category-button.active .expand-indicator {
    transform: rotate(180deg);
}

.product-catalog-section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s ease-in-out, opacity 0.5s ease-in-out;
}

.product-catalog-section.visible {
    max-height: 5000px;
    opacity: 1;
    margin-top: 20px;
}

.product-catalog-section #catalog-title {
    display: none;
}

/* Base grid styles */
.product-grid-container {
    overflow: hidden;
    position: relative;
}

.product-grid-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    flex-shrink: 0;
    flex-basis: 100%;
}

/* Tablet view: min 3 columns, max 15 products/page */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile view: exactly 2 columns, max 10 products/page */
@media (max-width: 768px) {
    .products-per-page-selector {
        justify-content: center;
    }
    .product-grid-track {
        transform: translateX(0) !important;
        transition: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        flex-basis: auto;
    }
    
    .pagination-controls {
        flex-direction: row;
        gap: 10px;
        margin-top: 30px;
        display: flex;
    }

    .product-actions {
        flex-direction: column;
        gap: 10px;
    }

    .product-actions .request-button {
        width: 100%;
    }
    .product-actions .download-link {
        width: 100%;
        padding: 5px 0;
    }
    
    .pagination-controls .page-button {
        width: 100%;
    }
    
    .page-numbers {
        margin: 10px 0;
        display: flex;
        flex-direction: row;
    }

    .product-catalog-section.visible {
        max-height: none;
        overflow: visible;
    }
    .google-map {
        max-width: 200px;
    }
}

/* General product card styling */
.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card h4 {
    font-size: 1rem;
    margin: 0 0 10px 0;
    color: #007bff;
}

.product-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: auto;
}
.download-link {
    display: inline-flex;
    align-items: center;
    background-color: #343a40;
    color: #fff;
    padding: 5px 5px;
    border-radius: 5px;
    font-size: 0.85rem;
    justify-content: center;
}
.download-link i {
    padding-right: 4px;
}
.request-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.page-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}
.page-button:hover {
    background-color: #0056b3;
}
.page-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.page-numbers .page-dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 5px;
    transition: background-color 0.3s;
    display: inline-block;
}
.page-numbers .page-dot.active {
    background-color: #007bff;
}

/* --- Search Bar Styling --- */
.header-search {
    display: flex;
    align-items: center;
    margin: auto;
    padding-right: 2rem;

}
.header-search .search-bar {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    width: 200px;
    transition: width 0.3s;
}
.header-search .search-bar:focus {
    outline: none;
    border-color: #007bff;
    width: 250px;
}
.header-search .search-button {
    background: none;
    border: none;
    margin-left: -35px;
    padding: 5px;
    cursor: pointer;
    color: #555;
}
.mobile-search {
    display: none;
    align-items: center;
    width: 100%;
}
.mobile-search .search-bar {
    flex-grow: 1;
    padding: 10px;
    border-radius: 20px;
}

/* --- New Contact Page Styles --- */
.contact-page-content {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
}

.contact-info-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-detail {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
}

.contact-detail i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 15px;
}

.contact-detail h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.contact-detail p {
    color: #666;
}

.contact-form-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form .form-group {
    display: flex;
    gap: 15px;
}

#contact-form .form-group input {
    flex: 1;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

#contact-form textarea {
    resize: vertical;
}

.submit-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #0056b3;
}

.form-message-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none;
}
.form-message-container.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-message-container.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.map-section {
    text-align: center;
}

.google-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh; /* Set a maximum height relative to the viewport height */
    overflow-y: auto; /* Add vertical scrolling if content overflows */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease-in-out;
}

.modal.visible .modal-content {
    transform: scale(1) translateY(0);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 15px;
    transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: #333;
}

/* Custom Alert/Modal styles */
.custom-alert-modal {
    position: fixed;
    z-index: 1003;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.custom-alert-modal.visible {
    opacity: 1;
    pointer-events: auto;
}
.custom-alert-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}
.custom-alert-modal.visible .custom-alert-content {
    transform: scale(1);
}
.custom-alert-content .custom-alert-close {
    color: #aaa;
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.custom-alert-content .custom-alert-close:hover,
.custom-alert-close:focus {
    color: #333;
}

.sitemap a {
    font-size: 14px;
}
/* Media Query for switching between desktop and mobile versions */
@media (max-width: 1024px) {
    #drager-desktop,
    #about-desktop,
    #team-desktop {
        display: none;
    }

    #drager-mobile,
    #about-mobile,
    #team-mobile {
        display: block;
        margin: auto;
    }
}