.btn-more-info {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(2, 104, 179, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-more-info::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-more-info:hover::before {
    width: 300px;
    height: 300px;
}

.btn-more-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(2, 104, 179, 0.4);
}

/* Updated Dropdown Menu Styles */
.dropdown-wrapper {
    position: relative;
    height: 100%;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    padding: 10px 0;
    z-index: 99999;
    margin-top: 5px;
    max-height: 600px;
    overflow-y: auto;
    min-width: 280px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

/* Add a invisible bridge between dropdown trigger and menu */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.dropdown-menu a {
    font-size: 14px;
}

.dropdown-wrapper:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(2, 104, 179, 0.1);
    transform: translateX(5px);
}

/* Enhanced Top Header */
.top-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: white;
    padding: 12px 0;
    position: relative;
    overflow: visible;
    z-index: 1001;
}

/* .top-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
} */

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.contact-info {
    display: flex;
    gap: 25px;
    align-items: center;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: all 0.3s;
    cursor: pointer;
}

.contact-info span:hover {
    transform: translateY(-2px);
    color: var(--accent);
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    position: relative;
    z-index: 1002;
    align-items: center;
}

.top-nav a {
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* .top-nav a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transition: left 0.3s;
        } */
.top-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.top-nav a:hover::before {
    left: 0;
}

.top-nav a:hover {
    transform: translateY(-2px);
}

/* Premium Navigation */
.main-navigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.logo-container {
    position: relative;
}

.main-logo {
    max-height: 70px;
    transition: all 0.3s;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.main-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    transition: all 0.3s;
    font-size: 15px;
}

.search-input:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(2, 104, 179, 0.2);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1) rotate(90deg);
    box-shadow: 0 5px 15px rgba(2, 104, 179, 0.4);
}

.nav-icons {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: flex-end;
}

.nav-icon {
    position: relative;
    font-size: 28px;
    color: var(--primary);
    transition: all 0.3s;
    cursor: pointer;
}

.nav-icon:hover {
    transform: scale(1.2) rotate(10deg);
    color: var(--secondary);
}

.nav-icon .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    color: var(--secondary);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Mobile Menu Content */
.mobile-menu-content {
    padding: 20px;
}

.mobile-menu-content>a {
    display: block;
    padding: 15px 10px;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 16px;
}

.mobile-menu-content>a:hover {
    background: rgba(2, 104, 179, 0.1);
    padding-left: 20px;
    color: var(--primary);
}

/* Mobile Dropdown */
.mobile-menu-dropdown {
    position: relative;
}

.mobile-menu-dropdown>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 16px;
}

.mobile-menu-dropdown>a:hover {
    background: rgba(2, 104, 179, 0.1);
    color: var(--primary);
}

.mobile-menu-dropdown>a i {
    transition: transform 0.3s;
    font-size: 14px;
}

/* Mobile Submenu */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f9f9f9;
}

.mobile-submenu.active {
    max-height: 800px;
}

.mobile-submenu a {
    display: block;
    padding: 12px 10px 12px 30px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.mobile-submenu a:hover {
    background: white;
    color: var(--primary);
    padding-left: 40px;
}

/* Mobile Contact Info */
.mobile-contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 10px;
    color: var(--dark);
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-contact-item:hover {
    background: rgba(2, 104, 179, 0.05);
}

.mobile-contact-item i {
    font-size: 20px;
    color: var(--primary);
    width: 30px;
    text-align: center;
}

.mobile-contact-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Hide top header on mobile */
@media (max-width: 768px) {
    .top-header {
        display: none;
    }

    .main-navigation {
        padding: 15px 0;
    }

    .main-logo {
        max-height: 50px;
    }

    .nav-icons {
        display: flex;
        gap: 5px !important;
        align-items: center;
        justify-content: flex-end;
    }

    .nav-icon {
        font-size: 20px !important;
    }

    .mobile-menu-toggle .fas {
        font-size: 20px !important;
    }

    .search-input {
        padding: 5px !important;
    }

    .search-btn {
        width: 35px !important;
        height: 35px !important;
        right: 2px !important;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Tests Section - 3D Cards */
.tests-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    perspective: 1000px;
}

.test-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    transition: all 0.5s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.test-card:hover {
    /* transform: rotateY(10deg) rotateX(5deg) translateY(-20px); */
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.test-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    transition: all 0.3s;
}

.test-card:hover .test-icon {
    transform: scale(1.1) rotate(10deg);
}