:root {
    --black: #000;
    --primary-color: #122232;
    --secondry-color: #87CEEB;
    --white: #fff;
}



/* ===================================================================
   FULL NAVBAR CSS for MAAS INTERIORS (with Mega Menu)
   =================================================================== */

/* Note: Intha code work aaga, unga root la color variables irukkanum.
:root {
    --primary-color: #00bfff;
    --secondary-color: #f7b32b;
    --bg-color: #2c2c2c;
    --card-bg: #3a3a3a;
    --text-color: #f5f5f5;
    --light-text: #ffffff;
    --navbar-bg: #252525;
} */

/* ================== Header and Nav Styling ================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--navbar-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-monogram {
    background: var(--primary-color);
    color: var(--navbar-bg);
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    margin-right: 10px;
}

.company-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--light-text);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.close-btn,
.menu-toggle {
    display: none;
    color: var(--light-text);
}

.arrow {
    font-size: 0.7em;
    vertical-align: middle;
    transition: transform 0.3s;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.enquiry-button {
    background-color: var(--secondary-color);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enquiry-button:hover {
    background-color: #e0a225;
    transform: scale(1.05);
}

/* ================== MEGA MENU STYLING ================== */
.dropdown {
    position: static;
    /* Full-width mega menu ku idhu mukkiyam */
}

.mega-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 80px;
    /* Navbar height */
    left: 0;
    width: 100%;
    background-color: var(--navbar-bg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 30px 5%;
    transform: translateY(-20px);
    /* Animation effect */
    transition: all 0.3s ease-in-out;
}

.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.mega-menu-col h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}

.mega-menu-col ul {
    list-style: none;
}

.mega-menu-col a {
    display: block;
    padding: 10px 12px;
    color: var(--text-color);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mega-menu-col a:hover {
    background-color: var(--primary-color);
    color: var(--navbar-bg);
    /* Hover effect */
}

/* ================== RESPONSIVE STYLING for NAVBAR ================== */
@media (max-width: 992px) {
    .dropdown {
        position: relative;
        /* Mobile ku normal position */
    }

    .mega-menu {
        display: none;
        /* Desktop mega menu ah mobile la marachi vekkanum */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--navbar-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        transition: right 0.4s ease-in-out;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px 25px;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        background: none;
        border: none;
        cursor: pointer;
    }

    .close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        color: var(--light-text);
        background: none;
        border: none;
        cursor: pointer;
    }

    .right-side-icons .enquiry-button {
        display: none;
    }

    /* Mobile la dropdown ku oru puthu setup */
    .dropdown .arrow {
        position: absolute;
        right: 25px;
        top: 15px;
    }

    .dropdown.open .arrow {
        transform: rotate(180deg);
    }

    /* Mobile la mega menu content ah kaatradhukku */
    .dropdown .mega-menu-mobile-wrapper {
        display: none;
        background-color: #1c1c1c;
        /* konjam vera color */
        padding-left: 20px;
    }

    .dropdown.open .mega-menu-mobile-wrapper {
        display: block;
    }
}

/* ================== SOLUTIONS PAGE STYLING (WHITE & SKY BLUE THEME) ================== */
.solutions-container {
    padding: 60px 5%;
    /* max-width: 1200px; */
    margin: 0 auto;
    background-color: #444;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px auto;
    color: #cccccc;
    /* Dimmer text for intro */
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--secondry-color);
    /* Side border for extra style */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    /* Card mela lift aagura effect */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.service-item.reverse {
    border-left: none;
    border-right: 5px solid var(--secondry-color);
    /* Reverse card ku right la border */
}

.service-item.reverse img {
    order: 2;
    /* Move image to the right */
}

.service-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.service-content h2 {
    color: var(--secondry-color);
    /* Sky Blue for service title */
    font-size: 2rem;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--white);
    line-height: 1.7;
}

/* ================== RESPONSIVE DESIGN (MOBILE & TABLET VIEW) ================== */
@media (max-width: 992px) {

    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr;
        /* Single column layout for tablets */
        gap: 30px;
    }

    .service-item.reverse img {
        order: 0;
        /* Reset image order for single column */
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 70%;
        height: 100vh;
        background-color: var(--navbar-bg);
        /* Mobile menu background */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
        /* Slide in from the right */
    }

    .nav-links a {
        color: var(--light-text);
        font-size: 1.2rem;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary-color);
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        background: none;
        border: none;
        cursor: pointer;
    }

    .close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        color: var(--light-text);
        background: none;
        border: none;
        cursor: pointer;
    }

    .right-side-icons .enquiry-button {
        display: none;
        /* Hide enquiry button on mobile header */
    }

    .solutions-container h1 {
        font-size: 2rem;
    }

    .service-item {
        padding: 20px;
    }

    .service-content h2 {
        font-size: 1.5rem;
    }
}

.benefits-title {
  position: relative;
  display: inline-block;
  font-weight: 600;
  padding-bottom: 5px;
  cursor: default;
  color: var(--secondry-color);
}

.benefits-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background-color: #fff; /* Change color if needed */
  width: 100%;
  transform-origin: left;
  animation: borderMove 2s linear infinite alternate;
}

@keyframes borderMove {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

.service-content ul li{
    color: var(--white);
}

.services-title-wrapper {
  text-align: center;   /* center all inside */
  color: var(--secondry-color) !important;
}

.services-heading {
  display: inline-block;
  position: relative;
  font-size: 2rem;
  padding-bottom: 8px;
  color: var(--secondary-color);
  overflow: hidden;
  width: 60%;
}

/* animated border */
.services-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: #fff;
  transform: translateX(-50%);
  animation: borderLoop 5s ease-out infinite;
}

@keyframes borderLoop {
  0%   { width: 0; }
  50%  { width: 100%; }
  100% { width: 0; }
}
