﻿:root {
    --primary-color: #0b7bae;
    --secondary-color: #0c8ec2;
    --dark-color: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-muted: #6c757d;
}

/* Offsets anchor links so they don't hide behind fixed header */
html {
    scroll-padding-top: 100px; /* Adjust this value based on your navbar height */
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   1. CORE NAVBAR STYLES (Mobile & Desktop)
   ========================================= */
.navbar {
    padding: 20px 0;
    transition: all 0.4s ease-in-out;
    background: transparent;
}

/* Brand/Logo Styles */
.navbar-brand {
    background: #ffffff;
    padding: 5px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    margin-right: 15px;
}

    .navbar-brand img {
        transition: transform 0.3s ease;
    }

/* Nav Links Default */
.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-left: 15px;
    position: relative;
    transition: color 0.3s;
}

    /* Hover Highlight (Underline) */
    .nav-link:not(.nav-btn-pill):not(.dropdown-toggle)::after {
        content: '';
        display: block;
        width: 0;
        height: 2px;
        background: #fff;
        transition: width 0.3s;
        margin-top: 2px;
    }

    .nav-link:not(.nav-btn-pill):hover {
        color: #fff !important;
    }

    .nav-link:not(.nav-btn-pill):not(.dropdown-toggle):hover::after {
        width: 100%;
    }

/* Contact Us Pill Button */
.nav-btn-pill {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    border-radius: 50px;
    padding: 5px 20px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    .nav-btn-pill:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        background-color: #f8f9fa !important;
    }

/* Mobile Toggler */
.navbar-toggler {
    border: none;
    background: rgba(255,255,255,0.2);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Dropdown Items */
.dropdown-item-custom {
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

    .dropdown-item-custom:hover {
        background-color: #f8f9fa;
    }

        .dropdown-item-custom:hover h6 {
            color: var(--primary-color);
        }

/* Icon Circles */
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
/* Pastel Colors */
.bg-light-blue {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-light-green {
    background-color: rgba(25, 135, 84, 0.1);
}

.bg-light-purple {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.bg-light-orange {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-light-red {
    background-color: rgba(220, 53, 69, 0.1);
}

.bg-light-cyan {
    background-color: rgba(13, 202, 240, 0.1);
}


/* =========================================
   2. SCROLLED STATE (White Background)
   ========================================= */
.navbar.navbar-scrolled {
    background: #ffffff;
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}


    .navbar.navbar-scrolled .navbar-brand {
        background: transparent;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        color: var(--primary-color) !important;
    }

        .navbar.navbar-scrolled .navbar-brand img {
            transform: scale(0.9);
        }

    .navbar.navbar-scrolled .nav-link {
        color: var(--dark-color) !important;
    }

        .navbar.navbar-scrolled .nav-link:hover {
            color: var(--primary-color) !important;
        }

        .navbar.navbar-scrolled .nav-link:not(.nav-btn-pill):not(.dropdown-toggle)::after {
            background: var(--primary-color);
        }

    .navbar.navbar-scrolled .nav-btn-pill {
        background-color: var(--primary-color) !important;
        color: #fff !important;
    }

        .navbar.navbar-scrolled .nav-btn-pill:hover {
            background-color: var(--secondary-color) !important;
            color: #fff !important;
        }

    .navbar.navbar-scrolled .navbar-toggler {
        background: transparent;
        border: 1px solid #eee;
    }

    .navbar.navbar-scrolled .navbar-toggler-icon {
        filter: none;
    }


/* =========================================
   3. DESKTOP ONLY (HOVER EFFECTS)
   Min-Width 992px
   ========================================= */
@media screen and (min-width: 992px) {

    /* Hover Animation Logic - ONLY for Desktop */
    .has-megamenu {
        position: relative;
    }

    .megamenu {
        width: 650px;
        padding: 20px;
        margin-top: 15px;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        /* Animation Props */
        display: block; /* Required for opacity transition */
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(10px);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        /* Centering */
        position: absolute;
        top: 100%;
        left: 50%;
    }

    /* Trigger Hover */
    .nav-item.dropdown:hover .megamenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
}


/* =========================================
   4. MOBILE FIXES (CLICK BEHAVIOR)
   Max-Width 991px
   ========================================= */
@media screen and (max-width: 991px) {

    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
        padding-bottom: 20px;
        background: rgba(255,255,255,0.95); /* Add background so text is readable */
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }
    .navbar {
        padding: 0px 0;
        /*    transition: all 0.4s ease-in-out;
    background: transparent;*/
    }
    /* Force Links to be Dark on Mobile (since background is white) */
    .nav-link {
        color: #333 !important;
        margin-left: 0;
        padding: 10px 0;
    }

    /* Reset Megamenu to standard Bootstrap behavior */
    .megamenu {
        width: 100% !important;
        position: static !important; /* Stack naturally */
        transform: none !important;
        opacity: 1 !important; /* Always visible when open */
        visibility: visible !important;
        display: none; /* Hidden by default, toggled by JS */

        box-shadow: none !important;
        padding: 0 10px;
        margin-top: 0;
        background: transparent !important;
        border-top: 1px solid #eee;
    }

    /* When Bootstrap adds '.show', make it block */
    .dropdown-menu.show {
        display: block !important;
    }

    /* Stack Columns */
    .megamenu .col-lg-6 {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Adjust Button */
    .nav-btn-pill {
        margin-top: 10px;
        width: 100%;
        text-align: center;
        background-color: var(--primary-color) !important;
        color: white !important;
    }
    .nav-link:not(.nav-btn-pill):hover {
        color: #212529 !important;
    }
    /* Default state: Hidden */
    .megamenu, .dropdown-menu {
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        position: static !important;
    }

        /* Open state: Block (Applied by the JS above) */
        .megamenu.show, .dropdown-menu.show {
            display: block !important;
        }
}

/* --- Interactive Hero Section --- */
#hero {
    /* Parallax Background */
    background: linear-gradient(135deg, rgba(11, 123, 174, 0.85), rgba(44, 62, 80, 0.9)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates the parallax effect */
    height: 100vh; /* Full screen height */
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100vw; /* Force full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
/*.footer-modern {
    width: 100vw;*/ /* Force full viewport width */
    /*position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}*/

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    opacity: 0; /* Hidden initially */
    animation: fadeInUp 0.8s ease-out forwards; /* Run animation */
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.3s forwards; /* 0.3s delay */
}

.hero-btns {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards; /* 0.6s delay */
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards, bounce 2s infinite 2s;
}



/* Responsive Font Sizes */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .navbar {
        background: rgba(0,0,0,0.9);
    }
    /* Dark navbar on mobile always for readability */
}
/* Sections General */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

    .section-title h2 {
        font-weight: 700;
        color: var(--dark-color);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    .section-title p {
        color: var(--text-muted);
        max-width: 700px;
        margin: 0 auto;
    }

/* Services Cards */
/* --- Mobile Horizontal Scroll for Services --- */
@media screen and (max-width: 767px) {

    /* 1. Turn the Row into a Scrollable Flex Container */
    #services .row.g-4 {
        display: flex;
        flex-wrap: nowrap; /* Prevent stacking */
        overflow-x: auto; /* Enable swipe */
        padding-bottom: 30px; /* Space for shadow/interaction */
        /* Snap Effect */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* Hide Scrollbar */
        scrollbar-width: none;
    }

        #services .row.g-4::-webkit-scrollbar {
            display: none;
        }

    /* 2. Style the Columns (Cards) */
    #services .col-md-6 {
        flex: 0 0 auto; /* Fixed width, don't shrink */
        width: 85%; /* 85% width shows a 'peek' of the next card */
        max-width: 320px;
        margin-right: 15px; /* Space between cards */
        scroll-snap-align: center; /* Center the card when scrolling stops */
    }

    /* 3. Adjust Card Padding for Mobile */
    /* 40px padding is great for desktop, but too big for mobile phones */
    #services .service-card {
        padding: 30px 20px;
        height: 100%; /* Ensure equal height */
        display: flex; /* Flex to align content */
        flex-direction: column;
        justify-content: center; /* Vertically center content */
    }

    /* 4. Fix Icon Size for Mobile */
    #services .icon-box {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
}
.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    text-align: center;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    }

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(11, 123, 174, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

/* Methodology */
/* Modern Methodology Section Styles */
/* --- Mobile Horizontal Scroll for Methodology Section --- */
@media screen and (max-width: 767px) {

    /* 1. Target the row holding the cards */
    #methodology .row.g-4 {
        display: flex;
        flex-wrap: nowrap; /* Prevents cards from stacking */
        overflow-x: auto; /* Enables horizontal scrolling */
        overflow-y: hidden;
        padding-bottom: 20px; /* Adds space for scrollbar/shadows */
        /* Optional: Smooth scrolling on iOS */
        -webkit-overflow-scrolling: touch;
        /* Optional: Snap to start of card */
        scroll-snap-type: x mandatory;
        /* Optional: Hide scrollbar for cleaner look */
        scrollbar-width: none; /* Firefox */
    }

        /* Hide scrollbar for Chrome/Safari/Edge */
        #methodology .row.g-4::-webkit-scrollbar {
            display: none;
        }

    /* 2. Target the individual card columns */
    #methodology .col-md-6 {
        flex: 0 0 auto; /* Don't grow, don't shrink */
        width: 85%; /* Card takes 85% of screen width */
        max-width: 320px; /* Cap width so it's not too huge */
        scroll-snap-align: center; /* Cards snap to center when scrolling stops */
    }
}
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f5 100%);
}

.methodology-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 30px 25px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent; /* Prepare for hover effect */
}

    .methodology-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.08);
        border-top: 4px solid var(--primary-color);
    }

.method-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Specific colors for icons */
.icon-adaptive {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.icon-speed {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.icon-feedback {
    background-color: rgba(11, 123, 174, 0.1);
    color: #0b7bae;
}

.icon-quality {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.methodology-card:hover .method-icon-wrapper {
    transform: scale(1.1);
}

.methodology-card h5 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.methodology-card p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Portfolio */
/* --- Horizontal Scroller Styles --- */
.portfolio-scroller {
    display: flex;
    overflow-x: auto;
    gap: 20px; /* Space between cards */
    padding-bottom: 25px; /* Space for shadow/scrollbar */
    padding-top: 10px; /* Space for hover lift effect */
    padding-left: 5px; /* slight padding for the first item */
    padding-right: 20px; /* trailing padding */
    /* Smooth Snapping Physics */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide Scrollbar (Clean look) */
    scrollbar-width: none; /* Firefox */
}

    .portfolio-scroller::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

.scroller-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    /* Desktop: Show 3 full cards + 10% of the 4th card */
    /* 30% * 3 = 90%. The remaining 10% shows the next card peek */
    width: 30%;
}

/* Laptop/Smaller Desktop: Show 2 full cards + peek */
@media (max-width: 1200px) {
    .scroller-item {
        width: 40%;
    }
}

/* Tablet: Show 2 cards barely or 1.5 */
@media (max-width: 991px) {
    .scroller-item {
        width: 45%;
    }
}

/* Mobile: Show 1 card + large peek of next one */
@media (max-width: 767px) {
    .scroller-item {
        width: 85%; /* Shows 1 full card and 15% of the next */
    }

    .portfolio-scroller {
        padding-left: 15px;
    }
}
/* Modern Portfolio Grid */
.portfolio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .portfolio-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        border-color: rgba(0, 0, 0, 0.15);
    }

.portfolio-img-wrapper {
    overflow: hidden;
    height: 220px;
    position: relative;
    flex-shrink: 0;
}

    .portfolio-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.portfolio-card:hover .portfolio-img-wrapper img {
    transform: scale(1.11);
}

.portfolio-body {
    padding: 20px;
    flex-grow: 1; /* Ensures text area fills remaining height */
    display: flex;
    flex-direction: column;
}

    .portfolio-body h5 {
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 8px;
    }

/* Optional: "View Project" link that appears on hover could go here, 
   but keeping it clean for now */
/* Careers Form */
.career-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
}

.form-control {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(11, 123, 174, 0.25);
    }

/* Footer */
/* Modern Integrated Footer */
.footer-modern {
    background-color: #111111; /* Deep dark background */
    color: #b0b0b0; /* Softer text color than pure white */
    padding-top: 80px;
    font-size: 0.95rem;
    position: relative;
}

    .footer-modern h5 {
        color: #ffffff;
        font-weight: 700;
        margin-bottom: 25px;
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

/* Links Styling */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #b0b0b0;
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-block;
    }

        .footer-links a:hover {
            color: var(--primary-color); /* Uses your brand blue */
            transform: translateX(5px); /* Subtle slide effect */
        }

/* Contact Info Styling */
.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-list i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 5px; /* Align icon with text top */
}

/* Social Icons */
.social-icons-modern {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

    .social-icons-modern a {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        border-radius: 50%;
        transition: all 0.3s ease;
        text-decoration: none;
    }

        .social-icons-modern a:hover {
            background: var(--primary-color);
            transform: translateY(-3px);
        }

/* Bottom Bar (Formerly Sub-footer) */
.footer-bottom {
    margin-top: 60px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider */
    font-size: 0.85rem;
}

.footer-bottom-links a {
    color: #b0b0b0;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
}

    .footer-bottom-links a:hover {
        color: #fff;
    }
.footer-modern {
    width: 100vw; /* Force full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Utility */
.text-theme {
    color: var(--primary-color);
}

/* 1. Reuse the Keyframes (Text In Animation for Service page ) */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 2. Apply Animation to the Heading */
.page-hero h1 {
    opacity: 0; /* Start invisible */
    animation: heroFadeInUp 0.8s ease-out forwards;
}

/* 3. Apply Animation to the Paragraph with Delay */
.page-hero p {
    opacity: 0; /* Start invisible */
    animation: heroFadeInUp 0.8s ease-out 0.3s forwards; /* 0.3s delay */
}
/* 2. Apply Animation to the Heading */
.hr-modern-hero h1 {
    opacity: 0; /* Start invisible */
    animation: heroFadeInUp 0.8s ease-out forwards;
}

/* 3. Apply Animation to the Paragraph with Delay */
.hr-modern-hero p {
    opacity: 0; /* Start invisible */
    animation: heroFadeInUp 0.8s ease-out 0.3s forwards; /* 0.3s delay */
}

/* 2. Apply Animation to the Heading */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Prevents a gap that causes the menu to close */
    }
}
/* Custom width for the HR/IT dropdown */
@media (min-width: 992px) {
    #hrItDropdown + .dropdown-menu {
        min-width: 700px; /* Adjust this value to your preferred width */
        left: 50% !important;
        transform: translateX(-50%) !important; /* Centers the wide menu under the link */
    }

    /* Ensure the row inside takes full width */
    .megamenu .row {
        margin: 0;
    }
}

/* Hover effect to keep it open */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}
