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

:root {
    /* Colors */
    --primary: #0A2463;
    --secondary: #1565C0;
    --accent: #F2B01E; /* Binmile Gold/Yellow */
    --accent-hover: #D99D1A;
    --white: #FFFFFF;
    --light-bg: #F8F9FF;
    --text-dark: #1A1A2E;
    --text-muted: #4B5563;
    --footer-bg: #0A1628;
    --nav-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --card-hover: 0 20px 60px rgba(0, 0, 0, 0.1);
    
    /* Spacing (8px grid) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 54px;
    --section-padding: 96px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: 56px; }
h2 { font-size: 42px; line-height: 1.3; }
h3 { font-size: 28px; line-height: 1.4; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Layout Containers */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--section-padding) 0;
}

.bg-light { background-color: var(--light-bg); }
.bg-primary { background-color: #2987c5; color: var(--white); }
.bg-dark { background-color: var(--footer-bg); color: var(--white); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
    font-size: 16px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #2987c5;
    color: var(--white);
}

.btn-primary:hover {
    background-color: #135b8b;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* Navbar Styles (Floating Pill) */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 1000;
    background-color: var(--white);
    border-radius: 50px;
    padding: 10px 30px;
    transition: var(--transition);
    box-shadow: var(--nav-shadow);
}

.header.sticky {
    top: 0;
    width: 100%;
    border-radius: 0px 0px 15px 15px;
    padding: 12px 0;
}

.header.sticky .container {
    max-width: 1240px;
}

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

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
}

.footer-logo img {
    height: 60px;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    text-transform: capitalize;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary) !important;
}

.contact-btn {
    background-color: #2987c5;
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.contact-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

/* Dropdown / Mega Menu */
.dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 900px;
    background: var(--white);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

/* Invisible bridge to prevent hover gap issues */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Desktop: dropdown opens only on CLICK (via JS adding .active class) */
@media (min-width: 769px) {
    .dropdown.active .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(10px);
        pointer-events: auto;
    }
}

.mega-item {
    padding: var(--space-sm);
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mega-item:hover {
    background-color: var(--light-bg);
}

.mega-item i {
    font-size: 20px;
    color: var(--secondary);
    margin-top: 4px;
}

.mega-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.mega-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/*.mega-item.featured-item {
    background: rgba(242, 176, 30, 0.05); 
    border: 1px solid rgba(242, 176, 30, 0.2);
}
*/
/*.mega-item.featured-item:hover {
    background: rgba(242, 176, 30, 0.1);
}*/

/* Hero Section Redesign */
.hero {
    height: 100vh;
    min-height: 800px;
    background: url('img/network.gif') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 18, 48, 0.95) 0%, rgba(6, 18, 48, 0.6) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: var(--space-md);
    line-height: 1.1;
    color: #fff;
}

.hero p {
    font-size: 20px;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    max-width: 600px;
}

.hero-pills {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-pill {
    padding: 8px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.hero-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.hero-btns {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: 60px;
}

.stat-item h3 {
    font-size: 36px;
    margin-bottom: 5px;
    color: var(--accent);
}

.stat-item p {
    font-size: 14px;
    opacity: 0.8;
}

/* Services Section Redesign */
.services-section {
    background-color: #F9FAFB;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: 16px;
    border: 1px solid #F1F5F9;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover);
    border-color: rgba(21, 101, 192, 0.2);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--light-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: #2987c5;
    color: var(--white);
}

.service-icon i {
    font-size: 28px;
    color: #2987c5;
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary);
}

.service-card p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.learn-more i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.service-card:hover .learn-more i {
    transform: translateX(5px);
}

/* Why Choose Us */
.feature-list {
    margin-top: var(--space-xl);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: var(--space-md);
}

.feature-item i {
    color: #22C55E;
    font-size: 20px;
    margin-top: 4px;
}

/* Industry Tiles */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.industry-tile {
    height: 300px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.industry-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.industry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 36, 99, 0.9), transparent);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
}

.industry-tile:hover img {
    transform: scale(1.1);
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    position: relative;
}

.process-grid::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #eee;
    z-index: -1;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid #2987c5;
    color: #2987c5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto var(--space-md);
    transition: var(--transition);
}

.process-step:hover .step-number {
    background: #2987c5;
    color: #fff;
}

/* Testimonials */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-xl);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-text {
    font-style: italic;
    font-size: 18px;
    margin-bottom: var(--space-lg);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-details h4 {
    margin-bottom: 0;
    font-size: 18px;
}

.client-details p {
    font-size: 14px;
    opacity: 0.7;
}

/* Industries Image Grid */
.industry-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .industry-image-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Binmile Industry Grid */
.bin-industry-container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.bin-industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 60px;
}
.bin-industry-card {
    background: transparent;
    text-align: center;
    padding: 50px 20px;
    transition: transform 0.3s ease;
    border-right: 2px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
}
.bin-industry-card:hover {
    transform: translateY(-5px);
}
.bin-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bin-icon-wrapper i {
    font-size: 45px;
    color: #0A2463; /* Bornexa dark navy */
}
.bin-industry-card h3 {
    font-size: 18px;
    color: #0A2463;
    margin-bottom: 12px;
    font-weight: 700;
}
.bin-industry-card p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

/* Desktop Border Removals */
.bin-industry-card:nth-child(4n) {
    border-right: none;
}
.bin-industry-card:nth-last-child(-n+4) {
    border-bottom: none;
}

@media (max-width: 991px) {
    .bin-industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bin-industry-card {
        border-right: 1px solid #e5e7eb !important;
        border-bottom: 1px solid #e5e7eb !important;
        padding: 40px 15px;
    }
    /* Tablet Border Removals */
    .bin-industry-card:nth-child(2n) {
        border-right: none !important;
    }
    .bin-industry-card:nth-last-child(-n+2) {
        border-bottom: none !important;
    }
}
@media (max-width: 576px) {
    .bin-industry-grid {
        grid-template-columns: 1fr;
    }
    .bin-industry-card {
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        padding: 30px 10px;
    }
    /* Mobile Border Removals */
    .bin-industry-card:last-child {
        border-bottom: none !important;
    }
}

/* Enquiry Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 15, 45, 0.85); /* Deep navy base */
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none; /* Flex when active */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary);
}

.modal-header p {
    font-size: 14px;
    margin-bottom: 25px;
    color: var(--text-muted);
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;
}
.modal-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.modal-submit:hover {
    background: var(--secondary);
}

/* Allow text color inside forms */
.form-control { color: var(--text-dark); }

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
    }
}

/* Footer */
footer {
    padding-top: var(--section-padding);
    background-color: var(--footer-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xxl);
    padding-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-size: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: var(--space-lg);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background: var(--accent);
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--white);
}

.header.sticky .menu-toggle {
    color: var(--text-dark);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero h1 { font-size: 56px; }
    h2 { font-size: 36px; }
    .mega-menu { width: 90vw; left: 5vw; transform: translateY(20px); }
    .footer-grid { gap: var(--space-xl); }
}

@media (max-width: 991px) {
    .hero h1 { font-size: 48px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
    .process-grid::after { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    
    .header {
        top: 0;
        width: 100%;
        padding: 10px 20px;
        border-radius: 0;
        background: var(--white);
        box-shadow: var(--nav-shadow);
        position: fixed; /* Always fixed on mobile to handle absolute dropdown properly */
    }
    
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .logo { font-size: 20px; padding: 5px 0; }
    
    .contact-btn { 
        display: inline-block !important; 
        padding: 8px 16px; 
        font-size: 13px; 
        border-radius: 20px; 
        /*margin-left: auto;*/
        margin-right: 15px;
    }
    
    .menu-toggle { color: var(--text-dark); display: block; font-size: 24px; }
    
    .hero { height: auto; padding: 140px 0 80px; text-align: center; }
    .hero h1 { font-size: 36px; line-height: 1.2; text-align: center; }
    .hero p { font-size: 16px; text-align: center; margin: 0 auto 30px; }
    .hero-pills { justify-content: center; transform: scale(0.9); margin-bottom: 30px; }
    .hero-btns { justify-content: center; flex-direction: column; gap: 15px; }
    .btn { width: 100%; }
    
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(11, 19, 42, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 40px 20px;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        align-items: stretch; /* KEY FIX: stretch makes ALL children fill full width */
        gap: 0;
    }
    .nav-menu.active { 
        right: 0;
    }
    
    .nav-link { 
        color: var(--white) !important; 
        font-size: 16px; 
        font-weight: 600;
        width: 100%; 
        padding: 16px 0; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-link i {
        color: var(--accent);
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    /* KEY FIX: dropdown must be full width so mega-menu doesn't overflow left */
    .dropdown {
        width: 100%;
        position: relative;
    }

    .dropdown.active .nav-link i {
        transform: rotate(180deg);
    }
    
    .mobile-menu-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .mobile-menu-header .logo {
        color: var(--white);
        font-size: 20px;
    }

    .mobile-menu-details {
        margin-top: auto;
        padding-top: 40px;
        width: 100%;
    }

    .mm-detail-item {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        color: rgba(255,255,255,0.7);
        font-size: 14px;
        line-height: 1.4;
    }

    .mm-detail-item i {
        color: var(--accent);
        font-size: 18px;
        width: 20px;
    }

    .mm-socials {
        display: flex;
        gap: 20px;
        margin-top: 30px;
    }

    .mm-social-link {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255,255,255,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        transition: all 0.3s;
    }

    .mm-social-link:hover {
        background: var(--accent);
        color: var(--primary);
        transform: translateY(-3px);
    }
    
    .mobile-close-btn {
        display: none;
    }
    
    .mega-menu {
        position: static !important;  /* Override absolute positioning from desktop */
        left: auto !important;        /* Cancel desktop left: 50% */
        transform: none !important;   /* Cancel desktop translateX(-50%) */
        width: 100% !important;       /* Fill full dropdown width */
        max-width: 100%;
        box-shadow: none;
        padding: 6px 0 12px 0;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: rgba(255,255,255,0.06);
        border-radius: 8px;
        margin: 4px 0 0 0;  /* No left margin */
        border: none;
        overflow: hidden;
    }
    .dropdown.active .mega-menu { display: contents; }
    
    .mega-col {
        display: block;
        width: 100%;
    }

    .mega-item {
        padding: 10px 14px;
        border-bottom: none;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.3s;
        border-radius: 6px;
        width: 100%;
        box-sizing: border-box;
        background: #2886c461;
        margin-bottom: 5px;
    }
    .mega-item:active { background: rgba(255,255,255,0.1); }

    .mega-item i {
        font-size: 15px;
        color: var(--accent);
        width: 22px;
        min-width: 22px;
        text-align: center;
        flex-shrink: 0;
        opacity: 0.85;
    }

    .mega-item div {
        flex: 1;
        min-width: 0; /* Allow text to wrap properly */
    }

    .mega-item h4 { 
        color: rgba(255,255,255,0.85); 
        font-size: 13px; 
        margin-bottom: 0;
        font-weight: 500;
        white-space: normal;
        word-break: break-word;
        line-height: 1.4;
    }
    .mega-item p { display: none; }
    
    .services-grid { grid-template-columns: 1fr; }
    .industry-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* Contact Page Responsive Grids */
.contact-grid-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 991px) {
    .contact-grid-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .contact-grid-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.grid-4-responsive {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .grid-4-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-4-responsive {
        grid-template-columns: 1fr;
    }
}

/* Shared Components Helper Classes */
.text-center { text-align: center; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }

.section-subtitle {
    display: block;
    color: #2987c5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Platform Showcase Section */
.showcase-section {
    background-color: #F0F7FF; /* Light blue-gray background from screenshot */
    padding: var(--section-padding) 0;
}

.showcase-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.platform-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.platform-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.platform-card i {
    font-size: 24px;
    color: var(--secondary);
    padding: 10px;
    background: #F0F7FF;
    border-radius: 8px;
    width: fit-content;
}

.platform-card h4 {
    margin-bottom: 0px;
    font-size: 18px;
    color: var(--primary);
}

.platform-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.mockup-display {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

@media (max-width: 991px) {
    .showcase-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .platform-card-grid {
        justify-content: center;
    }
    
    .platform-card {
        text-align: left;
    }
    
    .mockup-display {
        order: -1;
        margin-bottom: var(--space-xl);
    }
}

@media (max-width: 576px) {
    .platform-card-grid {
        grid-template-columns: 1fr;
    }
}


.service-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Space between tags */
    padding: 20px;
    flex-wrap: wrap; /* Makes it responsive on mobile */
    font-family: 'Georgia', serif; /* Using a serif font to match the image style */
}

.service-tag {
    display: flex;
    align-items: center;
    font-size: 3rem; /* Adjust size as needed */
    font-weight: bold;
}

.bracket {
    color: #dfe8ff; /* Dark blue/teal color for brackets */
    margin: 0 5px;
}

.text-blue {
    color: #2886c4;
}

.text-gold {
    color: #fff; /* Golden/Yellow color */
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .service-tag {
        font-size: 2rem;
    }
    .service-container {
        gap: 15px;
    }
}

/* Default: Hide on desktop */
.mobile-menu-details {
    display: none;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-menu-details {
        display: block;
        margin-top: 20px;
        padding: 15px;
        border-top: 1px solid #eee;
    }

    .mm-detail-item {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
        font-size: 14px;
        color: #fff;
    }

    .mm-detail-item i {
        color: #ff6600; /* brand color */
        font-size: 16px;
    }

    .mm-socials {
        margin-top: 15px;
        display: flex;
        gap: 10px;
    }

    .mm-social-link {
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 50%;
        color: #333;
        transition: 0.3s;
    }

    .mm-social-link:hover {
        background: #ff6600;
        color: #fff;
    }
}

/* Hide by default (desktop) */
.mobile-menu-header {
    display: none;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: #fff; /* ya apka theme color */
    }

    .mobile-menu-header .logo {
        font-size: 20px;
        font-weight: 600;
        color: #fff;
        text-decoration: none;
    }

    .mobile-menu-header .logo span {
        color: #ff6600;
    }

    .menu-close {
        font-size: 24px;
        color: #fff;
        cursor: pointer;
    }
}

/* Powering Innovation Capabilities Grid */
.capabilities-section {
    padding: var(--section-padding) 0;
    background: #fff;
    border-top: 1px solid #f1f1f1;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 60px;
    border-top: 1px solid #f1f1f1;
    border-left: 1px solid #f1f1f1;
}

.capability-card {
    padding: 60px 50px;
    border-right: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.4s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.capability-card:hover {
    background: #fcfcfc;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.capability-icon {
    font-size: 36px;
    margin-bottom: 25px;
    display: inline-block;
}

.capability-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.3;
}

.capability-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
        border-left: none;
        border-top: none;
    }
    .capability-card {
        border-right: none;
        padding: 40px 25px;
    }
}

.industry-tabs {
    background: #f9fafc;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.tabs-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tab-item {
    padding: 10px 18px;
    border-radius: 50px;
    background: #fff;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.3s ease;
    border: 1px solid #eee;
}

/* Hover */
.tab-item:hover {
    background: #fff;
    color: #2987c5;
    border-color: #000;
}

/* Active Tab */
.tab-item.active {
    background: #2987c5;
    color: #fff;
    border-color: #000;
}

/* Mobile */
@media (max-width: 768px) {
    .tabs-wrapper {
        gap: 10px;
        padding: 0 10px;
    }

    .tab-item {
        font-size: 13px;
        padding: 8px 14px;
    }
}

