/* ==========================================================================
   MS Solutions Main Stylesheet
   Replicating WebinTez Aesthetics & Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --theme-color1: #01D8E1;
    --theme-teal: #1abbc7;
    --theme-dark: #18191c;
    --theme-dark-blue: #0d1b3e;
    --theme-primary-blue: #1e3a8a;
    --theme-light-bg: #f8fbff;
    --theme-border: #eef2f6;
    --text-main: #2c3e50;
    --text-muted: #64748b;
    --font-primary: 'Lexend', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-main);
    background-color: #ffffff;
    padding-top: 110px; /* Accounts for fixed topbar + header */
    line-height: 1.6;
    overflow-x: hidden;
}

@media (max-width: 991px) {
    body {
        padding-top: 60px;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--theme-teal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Adjustments */
.auto-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    background: #ffffff;
}

/* Topbar */
.header-top {
    background-color: #000000;
    color: #ffffff;
    font-size: 13px;
    padding: 8px 0;
}

.header-top .inner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top .list-style-one {
    display: flex;
    gap: 20px;
    list-style: none;
}

.header-top .list-style-one li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-top .list-style-one i {
    color: var(--theme-teal);
}

.header-top .top-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-top .useful-links {
    display: flex;
    gap: 15px;
    list-style: none;
}

.header-top .social-icon-one {
    display: flex;
    gap: 12px;
    list-style: none;
}

.header-top .social-icon-one a {
    color: #ffffff;
    font-size: 13px;
}

.header-top .social-icon-one a:hover {
    color: var(--theme-teal);
}

/* Main Header Lower */
.header-lower {
    background: #ffffff;
}

.header-lower .main-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-box {
    display: flex;
    align-items: center;
}

.logo-box img {
    height: 48px;
    width: auto;
}

/* Desktop Menu */
.nav-outer {
    display: flex;
    align-items: center;
}

.main-menu .navigation {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.main-menu .navigation > li {
    position: relative;
}

.main-menu .navigation > li > a {
    font-size: 16px;
    font-weight: 500;
    color: var(--theme-dark);
    padding: 20px 0;
    display: block;
}

.main-menu .navigation > li:hover > a,
.main-menu .navigation > li.current > a {
    color: var(--theme-teal);
}

/* Dropdown */
.main-menu .navigation li.dropdown {
    position: relative;
}

.main-menu .navigation li.dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 12px;
}

.main-menu .navigation li ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 100;
}

.main-menu .navigation li:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .navigation li ul li a {
    padding: 10px 20px;
    display: block;
    font-size: 14px;
    color: var(--theme-dark);
}

.main-menu .navigation li ul li a:hover {
    background: var(--theme-light-bg);
    color: var(--theme-teal);
}

/* Header Outer Right Box */
.outer-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--theme-dark);
    font-weight: 600;
}

.info-btn i {
    font-size: 26px;
    color: var(--theme-teal);
}

.info-btn .info-text small {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--theme-teal);
    letter-spacing: 0.5px;
}

.mobile-nav-toggler {
    display: none;
    font-size: 24px;
    color: var(--theme-teal);
    cursor: pointer;
}

@media (max-width: 991px) {
    .header-top {
        display: none;
    }
    .main-menu {
        display: none;
    }
    .mobile-nav-toggler {
        display: block;
    }
    .header-lower .main-box {
        height: 60px;
    }
}

/* Mobile Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    overflow-y: auto;
    padding: 20px;
}

.mobile-menu.active {
    right: 0;
}

.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu .upper-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef2f6;
}

.mobile-menu .close-btn {
    font-size: 22px;
    color: var(--theme-dark);
    cursor: pointer;
}

.mobile-menu .navigation {
    list-style: none;
    margin-bottom: 30px;
}

.mobile-menu .navigation li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu .navigation li a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--theme-dark);
}

.mobile-menu .contact-info-box {
    margin-bottom: 15px;
}

.mobile-menu .contact-info-box .title {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--theme-teal);
}

.mobile-menu .contact-info-box a {
    font-weight: 600;
    color: var(--theme-dark);
}

/* ==========================================================================
   Hero Slider Section
   ========================================================================== */

.hero-slider-section {
    position: relative;
    background: linear-gradient(135deg, #0d1b3e 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content .sub-title {
    display: inline-block;
    background: rgba(1, 216, 225, 0.15);
    color: var(--theme-color1);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(1, 216, 225, 0.3);
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
}

.btn-group-hero {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-style-one {
    background: linear-gradient(135deg, #01D8E1 0%, #0288D1 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(1, 216, 225, 0.3);
}

.btn-style-one:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(1, 216, 225, 0.4);
}

.btn-style-outline {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-style-outline:hover {
    background: #ffffff;
    color: var(--theme-dark) !important;
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 34px;
    }
    .hero-content p {
        font-size: 15px;
    }
    .hero-slider-section {
        padding: 50px 0;
    }
}

/* ==========================================================================
   5 Core Feature Cards Section
   ========================================================================== */

.services-section-home3 {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding-bottom: 40px;
}

.service-block-new-3 {
    margin-bottom: 20px;
}

.service-block-new-3 .inner-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    height: 100%;
}

.service-block-new-3 .inner-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(1, 216, 225, 0.15);
    border-color: var(--theme-color1);
}

.service-block-new-3 .icon {
    font-size: 42px;
    color: var(--theme-teal);
    margin-bottom: 15px;
    display: inline-block;
}

.service-block-new-3 .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--theme-dark);
}

.service-block-new-3 .text {
    font-size: 13px;
    color: var(--text-muted);
}

/* Section Common Titles */
.sec-title {
    margin-bottom: 40px;
}

.sec-title .sub-title {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-teal);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.sec-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--theme-dark);
    line-height: 1.3;
}

@media (max-width: 767px) {
    .sec-title h2 {
        font-size: 26px;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
    padding: 60px 0;
    background: #ffffff;
}

.about-info-box {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.about-info-box .icon {
    font-size: 32px;
    color: var(--theme-teal);
    background: rgba(1, 216, 225, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-info-box .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-info-box .text {
    font-size: 14px;
    color: var(--text-muted);
}

.about-image-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Interactive Services & Tech Stack Tabs
   ========================================================================== */

.interactive-services-section {
    padding: 60px 0;
    background: var(--theme-light-bg);
}

.services-tab-main-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid #eef2f6;
    overflow: hidden;
}

.side-tab-column {
    background: #fafbfc;
    border-right: 1px solid #f0f4f8;
    padding: 15px;
}

.premium-tab-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    border-left: 4px solid transparent;
}

.premium-tab-item:hover {
    background: #f1f5f9;
}

.premium-tab-item.active {
    background: #eef2ff;
    border-left-color: #2563eb;
    color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.premium-tab-item i {
    font-size: 20px;
    color: var(--theme-teal);
}

.tab-content-column {
    padding: 40px;
}

.premium-content-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.premium-content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tech-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.tech-logo {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-weight: 700;
    color: var(--theme-teal);
}

.tech-info .tech-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--theme-dark);
}

.tech-info .tech-subtitle {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

.premium-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff !important;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    margin-top: 25px;
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */

.projects-section-home3 {
    padding: 60px 0;
    background: #ffffff;
}

.project-block-home3 {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 25px;
    display: block;
    text-decoration: none !important;
}

.project-block-home3:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(1, 216, 225, 0.2);
}

.project-block-home3 img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-block-home3:hover img {
    transform: scale(1.06);
}

.project-block-home3 .caption-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 65%, transparent 100%);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.project-block-home3 .caption-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.project-block-home3 .caption-box .visit-btn {
    background: var(--theme-color1);
    color: var(--theme-dark);
    font-weight: 700;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(1, 216, 225, 0.4);
    flex-shrink: 0;
}

.project-block-home3:hover .caption-box .visit-btn {
    background: #ffffff;
    color: var(--theme-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   Galaxy Card Contact Section
   ========================================================================== */

.contact-section {
    padding: 60px 0;
    background: #ffffff;
}

.galaxy-card {
    position: relative;
    background: radial-gradient(ellipse at bottom, #1e3a8a 0%, #0d1b3e 100%) !important;
    border-radius: 24px;
    padding: 40px;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(13, 27, 62, 0.4);
}

.galaxy-card .form-control {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    height: 50px;
    border-radius: 10px;
    padding: 10px 18px;
    margin-bottom: 20px;
}

.galaxy-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.galaxy-card select.form-control option {
    background: #0d1b3e;
    color: #ffffff;
}

.galaxy-card textarea.form-control {
    height: auto;
}

/* Animated Star Particles */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background: transparent;
}

.star-1 {
    width: 1px;
    height: 1px;
    box-shadow: 100px 200px #FFF, 300px 400px #FFF, 500px 100px #FFF, 700px 300px #FFF, 900px 500px #FFF, 200px 600px #FFF;
    animation: animStar 30s linear infinite;
}

.star-2 {
    width: 2px;
    height: 2px;
    box-shadow: 150px 250px #FFF, 350px 450px #FFF, 550px 150px #FFF, 750px 350px #FFF;
    animation: animStar 50s linear infinite;
}

@keyframes animStar {
    from { transform: translateY(0px); }
    to { transform: translateY(-800px); }
}

/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */

.faq-section-home1 {
    padding: 60px 0;
    background: var(--theme-light-bg);
}

.accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 700;
    font-size: 17px;
    color: var(--theme-dark);
    padding: 20px 25px;
    background: #ffffff !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--theme-teal);
}

.accordion-body {
    padding: 0 25px 25px;
    color: var(--text-muted);
    font-size: 15px;
}

/* ==========================================================================
   Serving In Flag Grid Section
   ========================================================================== */

.serving-in-section {
    padding: 50px 0;
    background: #ffffff;
}

.flag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    text-align: center;
}

.flag-block {
    padding: 15px;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.flag-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    background: #ffffff;
}

.flag-block img {
    width: 50px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.flag-block .country-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

/* Client Logos */
.clients-section {
    padding: 40px 0;
    background: #f8fafc;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.clients-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.client-logo-item {
    font-weight: 800;
    font-size: 20px;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.client-logo-item:hover {
    color: var(--theme-teal);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
    background: var(--theme-dark);
    color: #94a3b8;
    padding-top: 60px;
}

.footer-upper {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.footer-info-block {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
}

.footer-info-block i {
    font-size: 28px;
    color: var(--theme-teal);
}

.footer-info-block .title {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--theme-teal);
}

.footer-info-block a {
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
}

.footer-widget h5 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-widget ul li a:hover {
    color: var(--theme-teal);
    padding-left: 5px;
}

.footer-bottom {
    background: #000000;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 40px;
}

/* ==========================================================================
   Floating Widgets (WhatsApp & Scroll Top)
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff !important;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 35px;
    background: var(--theme-dark);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--theme-teal);
}
