/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Carousel Section */
.carousel-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    max-width: 600px;
    z-index: 2;
}

.carousel-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.carousel-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    transform: translateY(-50%);
}

.carousel-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.carousel-nav button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* About Us Section */
.about-us-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-us-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-us-content h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
}

.about-us-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #3498db;
}

.about-us-content p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-us-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.about-us-image {
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #3498db;
    font-size: 6rem;
}

/* Main Content Area - Updated Layout */
.main-content {
    padding: 80px 0;
    position: relative;
}

/*
.content-wrapper {
    grid-template-columns: 1fr 350px;
    gap: 40px;
}*/

/* Services Section */
.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #3498db;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.service-item.reverse {
    direction: rtl;
}

.service-item.reverse .service-content {
    direction: ltr;
}

.service-image {
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #3498db;
    font-size: 6rem;
}

.service-content h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.service-content p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Service Logos */
.service-logos {
    margin-top: 100px;
    text-align: center;
}

.service-logos h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.logos-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
}

.cartoon-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.cartoon-logo:hover {
    transform: translateY(-10px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.logo-item p {
    font-weight: 600;
    color: #2c3e50;
}

/* Home Page Horizontal Contact Form */
/* Home Page Contact Form */
.mecf-wrapper {
  padding: 60px 20px;
  background: #f6f9fc;
}

.mecf-container {
  max-width: 1100px;
  margin: auto;
  background: white;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.mecf-left {
  padding: 40px;
  background: linear-gradient(135deg,#0b5ed7,#0dcaf0);
  color: white;
  text-align: center;
}

.mecf-left p {
    align-items: center;
}

.mecf-image {
  max-width: 100%;
  height: auto;
  margin-top: 35px;
}

.mecf-right {
  padding: 40px;
}

.mecf-title {
  margin-bottom: 25px;
}

.mecf-field input,
.mecf-field textarea,
#mecf-mobile {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  margin: 5px;
}

.mecf-field textarea {
  min-height: 100px;
}

.mecf-phone-row {
  display: flex;
  gap: 10px;
}

.mecf-country-box {
  position: relative;
  min-width: 120px;
  margin: 5px;
}

.mecf-selected {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  background: white;
  white-space: nowrap;
}

.mecf-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  width: 220px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 999;
}

#mecf-search {
  width: 100%;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #ccc;
}

#mecf-country-list {
  max-height: 180px;
  overflow-y: auto;
}

#mecf-country-list li {
  padding: 8px 10px;
  cursor: pointer;
}

#mecf-country-list li:hover {
  background: #f0f0f0;
}

.mecf-error {
  color: red;
  font-size: 13px;
}

.mecf-success {
  color: #0b5ed7;
  font-weight: 600;
  margin-top: 15px;
}

.mecf-btn {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg,#0b5ed7,#0dcaf0);
  color: white;
  font-size: 16px;
}

/*New style*/
.mecf-selected{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.mecf-arrow{
  font-size:12px;
  margin-left:8px;
  pointer-events:none;
}

/* ================= RESPONSIVE IMPROVEMENTS ================= */

/* Large Tablets */
@media (max-width: 1024px) {

    .carousel-content h2 {
        font-size: 2.3rem;
    }

    .about-us-container {
        gap: 40px;
    }

    .service-item {
        gap: 30px;
    }

}

/* Tablets */
@media (max-width: 768px) {

    /* Carousel */
    .carousel-section {
        height: 450px;
    }

    .carousel-content {
        left: 5%;
        right: 5%;
        max-width: 100%;
    }

    .carousel-content h2 {
        font-size: 1.8rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    /* About Section */
    .about-us-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-us-image {
        height: 300px;
        margin-top: 30px;
    }

    .about-us-stats {
        grid-template-columns: 1fr;
    }

    /* Insert image between heading and paragraph visually */
    .about-us-content h2 {
        order: 0;
    }
 
    .about-us-image {
        order: 1;
    }

    .about-us-content p {
        order: 2;
    }

    .about-us-content h2 {
        text-align: center;
    }

    .about-us-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Services */
    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        text-align: center;
    }

    .service-image {
        height: 250px;
        order: 1;
    }

    .service-content {
        order: 2;
    }

    /* Logos */
    .logos-container {
        justify-content: center;
    }

    /* Contact Form */
    .mecf-container {
        grid-template-columns: 1fr;
    }

    .mecf-left {
        padding: 30px;
    }

    .mecf-right {
        padding: 30px;
    }
    
    /*About Us Section*/
    .about-us-image,
    .service-image {
        margin-left: auto;
        margin-right: auto;
        display: flex;
        justify-content: center;
    }

    .about-image-placeholder,
    .image-placeholder {
        width: 250px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Justify text only on mobile */
    .about-us-content p,
    .service-content p {
        text-align: justify;
    }

}

/* Small Mobiles */
@media (max-width: 480px) {

    .carousel-section {
        height: 380px;
    }

    .carousel-content h2 {
        font-size: 1.5rem;
    }

    .carousel-content p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    @media (max-width: 480px) {

    .about-us-image {
        height: 200px;
        max-width: 260px;
    }

    .about-image-placeholder {
        font-size: 4rem;
    }

}
}

/* ================= MOBILE MENU LOGO ALIGN FIX ================= */

@media (max-width: 768px) {

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 18px;
    }

    .mobile-nav-header .logo {
        margin-left: -5px;   /* Adjust this value if needed */
    }

    .mobile-logo {
        max-height: 38px;
    }

}