/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Navbar Styles - MESON Style */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.08);
        border: 1px solid rgba(37, 99, 235, 0.12);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(37, 99, 235, 0.02));
        backdrop-filter: blur(12px);
        border-radius: 12px;
        margin: 0.8rem auto;
        padding: 0;
        min-width: auto;
        width: 92%;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001; /* Ensure it's above other elements */
        display: none;
    }  transition: all 0.3s ease;
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.nav-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3rem;
    align-items: center;
}

.nav-links li a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.8rem 0;
    letter-spacing: 0.2px;
}

.nav-links li a:hover {
    color: #2563eb;
    text-decoration: none;
}

/* Clean underline effect */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 25px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 280px;
    padding: 1.2rem 0;
    margin-top: 0.8rem;
    border: 1px solid rgba(37, 99, 235, 0.08);
    list-style: none;
    backdrop-filter: blur(10px);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

/* Staggered animation for menu items */
.dropdown:hover .dropdown-menu li:nth-child(1) { animation-delay: 0.1s; }
.dropdown:hover .dropdown-menu li:nth-child(2) { animation-delay: 0.15s; }
.dropdown:hover .dropdown-menu li:nth-child(3) { animation-delay: 0.2s; }
.dropdown:hover .dropdown-menu li:nth-child(4) { animation-delay: 0.25s; }
.dropdown:hover .dropdown-menu li:nth-child(5) { animation-delay: 0.3s; }

.dropdown:hover .dropdown-menu li {
    animation: slideInFromLeft 0.3s ease forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base dropdown item styles are now handled in the FINAL OVERRIDE section at the end of the file */
.dropdown-menu li a {
    /* Basic styling placeholder - actual styles in FINAL OVERRIDE section */
    display: flex;
    position: relative;
}

/* Add Contact Us Button like MESON */
.nav-links li:last-child a {
    background: #2563eb;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.nav-links li:last-child a:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-links li:last-child a::after {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    .nav-logo img {
        height: 35px;
    }
    
    .hamburger {
        display: flex;
        padding: 10px;
        margin-right: -5px; /* Give more tappable area */
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 100px 2rem 2rem;
        gap: 1rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: center;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
        pointer-events: auto;
        z-index: 1000;
    }
    
    .nav-links li {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .nav-links li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.2rem;
        font-weight: 500;
        color: #374151;
        text-decoration: none;
        transition: all 0.3s ease;
        text-align: center;
        line-height: 1.4;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-links li a:hover {
        color: #2563eb;
        background: rgba(37, 99, 235, 0.05);
        padding-left: 0;
    }
    
    .nav-links li a::after {
        display: none;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.08);
        border: 1px solid rgba(37, 99, 235, 0.12);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(37, 99, 235, 0.02));
        backdrop-filter: blur(12px);
        border-radius: 12px;
        margin: 0.8rem auto;
        padding: 0.8rem 0;
        min-width: auto;
        width: 92%;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001; /* Ensure it's above other elements */
        display: none; /* Hide by default and show with display block */
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
        display: block; /* Show the dropdown when active */
        padding: 1rem 0;
        overflow: visible;
        height: auto;
    }
    
    .dropdown-toggle {
        justify-content: center;
        cursor: pointer;
        position: relative;
    }
    
    .dropdown-toggle::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 20px;
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        border-radius: 2px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .dropdown.active .dropdown-toggle::after {
        opacity: 1;
    }
    
    .dropdown-menu li a {
        font-size: 1rem;
        padding: 1rem 2rem 1rem 3.5rem;
        border-bottom: none;
        color: #374151;
        font-weight: 500;
        position: relative;
        margin: 0.2rem 1rem;
        border-radius: 8px;
        letter-spacing: 0.3px;
        -webkit-tap-highlight-color: transparent;
        display: block !important;
        width: calc(100% - 2rem) !important;
        cursor: pointer !important;
        z-index: 2 !important;
    }
    
    .dropdown-menu li a:hover, .dropdown-menu li a:active, .dropdown-menu li a:focus {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(29, 78, 216, 0.05));
        color: #2563eb;
        padding-left: 4rem;
        transform: translateX(3px);
        pointer-events: auto !important;
        touch-action: auto !important;
    }
    
    /* Mobile icons positioning - removed */
    
    /* Make all submenu items have consistent padding */
    .dropdown-menu li a {
        padding: 1rem 2rem 1rem 1.5rem !important;
        background: transparent !important;
    }
    
    /* Specific rule for mobile dropdown items */
    @media screen and (max-width: 768px) {
        .dropdown-menu li a {
            padding: 0.8rem 1.5rem !important;
            display: block !important;
            width: 100% !important;
            text-align: center !important;
            font-size: 1rem !important;
            margin: 0.2rem auto !important;
        }
        
        /* Fix for Website Development menu item alignment */
        .dropdown-menu li:nth-child(5) a {
            text-align: center !important;
            padding: 0.8rem 1.5rem !important;
            margin: 0.2rem auto !important;
            width: 100% !important;
        }
        
        /* Make all menu-item-containers consistent */
        .menu-item-container {
            text-align: center !important;
            width: 100% !important;
            display: block !important;
        }
        
        /* Make all menu text consistent */
        .menu-text {
            display: inline-block !important;
            text-align: center !important;
            width: auto !important;
            margin: 0 auto !important;
        }
        
        /* Ensure the submenu items are visible */
        .dropdown.active .dropdown-menu li {
            opacity: 1 !important;
            transform: none !important;
            visibility: visible !important;
        }
        
        /* Add extra styles when dropdown is open */
        body.dropdown-open .dropdown.active .dropdown-menu {
            display: block !important;
            max-height: 1000px !important;
            overflow: visible !important;
            opacity: 1 !important;
            visibility: visible !important;
            z-index: 9999 !important;
        }
        
        /* Ensure uniform sizing for all submenu items */
        .dropdown-menu li {
            margin: 0.3rem 0 !important;
            padding: 0 !important;
            width: 100% !important;
        }
        
        /* Ensure links have proper dimensions */
        .dropdown-menu li a {
            height: auto !important;
            box-sizing: border-box !important;
        }
        
        /* Reset any specific overrides for the 5th item */
        .dropdown-menu li:nth-child(5) a::before,
        .dropdown-menu li:nth-child(5) a::after {
            position: static !important;
        }
    }
    
    .dropdown-menu li a:hover {
        padding: 1rem 2rem 1rem 2rem !important;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(29, 78, 216, 0.05));
        transform: translateX(3px);
    }
    
    /* Contact button styling for mobile */
    .nav-links li:last-child a {
        background: #2563eb;
        color: #ffffff;
        border-radius: 8px;
        margin: 1rem 0;
        border: none;
        font-weight: 600;
        padding: 1rem 2rem;
    }
    
    .nav-links li:last-child a:hover {
        background: #1d4ed8;
        transform: translateY(-2px);
    }
    
    /* Remove bottom border from contact button */
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* Social Media Container for Mobile */
.mobile-social-icons {
    display: none;
    position: fixed;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    gap: 1rem;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease 0.2s;
}

.mobile-social-icons.active {
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 768px) {
    .mobile-social-icons {
        display: flex;
        flex-direction: row;
    }
    
    .mobile-social-icons a {
        width: 45px;
        height: 45px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-social-icons a:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    
    /* Exact colors matching the image */
    .mobile-social-icons a.twitter { 
        background: #1da1f2; 
    }
    .mobile-social-icons a.facebook { 
        background: #1877f2; 
    }
    .mobile-social-icons a.linkedin { 
        background: #0077b5; 
    }
    .mobile-social-icons a.tiktok { 
        background: #000000; 
    }
    .mobile-social-icons a.youtube { 
        background: #ff0000; 
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        height: 60px;
        padding: 0 1rem;
    }
    
    .nav-logo img {
        height: 30px;
    }
    
    .nav-links {
        padding: 80px 1rem 2rem;
    }
    
    .nav-links li a {
        font-size: 1.1rem;
        padding: 0.8rem 0;
    }
    
    .nav-links li:last-child a {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .mobile-social-icons {
        bottom: 3rem;
        gap: 0.8rem;
    }
    
    .mobile-social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* 
 * FINAL OVERRIDE STYLES FOR DROPDOWN MENU
 * All individual styling has been consolidated here with !important to ensure consistency
 */

/* Reset all dropdown items styling first */
.dropdown-menu li a {
    all: unset;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 1rem 2rem 1rem 3.5rem !important;
    color: #374151 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 0 !important;
    position: relative !important;
    letter-spacing: 0.3px !important;
    transform: none !important;
    cursor: pointer !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
}

/* Make all submenu items have consistent styling */
.dropdown-menu li a {
    all: unset;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 1rem 2rem 1rem 1.5rem !important;
    color: #374151 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 0 !important;
    position: relative !important;
    letter-spacing: 0.3px !important;
    transform: none !important;
    cursor: pointer !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
}

/* Style for ALL items in hover state */
.dropdown-menu li a:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(29, 78, 216, 0.03)) !important;
    background-color: transparent !important;
    color: #2563eb !important;
    transform: translateX(5px) !important;
    padding: 1rem 2rem 1rem 4rem !important;
}

/* Specifically override submenu 5 hover state to be identical */
.dropdown-menu li:nth-child(5) a:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(29, 78, 216, 0.03)) !important;
    background-color: transparent !important;
    color: #2563eb !important;
    transform: translateX(5px) !important;
    padding: 1rem 2rem 1rem 4rem !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
}

/* Icons for all dropdown items - removed */

/* Icons for all dropdown items - hover state - removed */

/* Specific icon contents for each menu item - removed */

/* Update padding for dropdown menu items without icons */
.dropdown-menu li a {
    padding-left: 1.5rem !important;
}

/* Arrow on hover for all items */
.dropdown-menu li a::after {
    content: '→' !important;
    position: absolute !important;
    right: 2rem !important;
    opacity: 0 !important;
    transform: translateX(-10px) !important;
    transition: all 0.3s ease !important;
    color: #2563eb !important;
    font-weight: 600 !important;
    display: none !important;
}

.dropdown-menu li a:hover::after {
    opacity: 1 !important;
    transform: translateX(0) !important;
    display: block !important;
}
