/* Base Styles */
:root {
    --primary-color: #4a9cc7;
    --primary-light: #6bb4d6;
    --primary-dark: #2d7ca5;
    --secondary-color: #63c7d6;
    --accent-color: #8fd3e0;
    --dark-color: #1a3a4f;
    --light-color: #f8fbfd;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --white-color: #ffffff;
    --gray-light: #ecf0f1;
    --gray-medium: #bdc3c7;
    --gray-dark: #95a5a6;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* Layout Styles */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding-right: 3rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.hero-title .title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.4s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-left: 20px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.6s forwards;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.8s forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-illustration {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(74, 156, 199, 0.3));
    transform: translateY(50px);
    opacity: 0;
    animation: fadeInUp 0.8s 1s forwards;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 156, 199, 0.15) 0%, rgba(74, 156, 199, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 6s ease-in-out infinite;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 0.5rem;
    font-size: 1rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(74, 156, 199, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(74, 156, 199, 0.6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(74, 156, 199, 0.3);
}

.pulse {
    animation: pulse 2s infinite;
}

/* Test Cards Container */
.test-cards-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 2rem;
}

.test-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
}

.test-card {
    flex: 0 1 350px;
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

/* For single card centering */
.test-cards.single-card {
    width: 350px;
}

@media (max-width: 768px) {
    .test-cards {
        grid-template-columns: 1fr;
    }

    .test-card {
        flex: 0 1 100%;
    }
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.test-card.daily {
    border-top-color: var(--primary-color);
}

.test-card.upcoming {
    border-top-color: var(--secondary-color);
}

.test-card-header {
    padding: 1.8rem;
    position: relative;
    background: linear-gradient(135deg, rgba(74, 156, 199, 0.05), rgba(99, 199, 214, 0.05));
}

.test-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--white-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    z-index: 2;
}

.test-card.daily .test-badge {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.test-card.upcoming .test-badge {
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.test-card h3 {
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.test-card-body {
    padding: 0 1.8rem 1.8rem;
}

.test-card-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.test-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.test-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.test-specialty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.test-specialty i {
    font-size: 1.1rem;
}

.no-tests-card {
    background: var(--white-color);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    grid-column: 1 / -1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.no-tests-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.no-tests-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.no-tests-card p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="%23f0f7fa" d="M0,0 L100,0 L100,100 Q50,80 0,100 Z"></path></svg>');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: -1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--white-color);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(74, 156, 199, 0.1), rgba(99, 199, 214, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    transform: rotate(15deg) scale(1.1);
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    text-align: center;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.feature-card:hover .feature-wave {
    transform: scaleX(1);
}

.features-cta {
    max-width: 900px;
    margin: 4rem auto 0;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(74, 156, 199, 0.05), rgba(99, 199, 214, 0.05));
    border-radius: 20px;
    border: 2px dashed var(--primary-color);
    position: relative;
    overflow: hidden;
}

.features-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 156, 199, 0.05) 0%, rgba(74, 156, 199, 0) 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.features-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.features-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(74, 156, 199, 0.03), rgba(99, 199, 214, 0.03));
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
}

.testimonial-card {
    min-width: 350px;
    background: var(--white-color);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    position: relative;
    border: 1px solid rgba(74, 156, 199, 0.1);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 4rem;
    color: rgba(74, 156, 199, 0.1);
    z-index: 1;
}

.testimonial-content {
    position: relative;
    z-index: 2;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
    border: 3px solid var(--primary-light);
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-rating {
    color: var(--warning-color);
    font-size: 0.9rem;
}

/* Specialties Section */
.specialties-section {
    padding: 6rem 0;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.specialty-card {
    background: var(--white-color);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(74, 156, 199, 0.1);
}


.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--white-color), #f8fbfd);
}

.specialty-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(74, 156, 199, 0.1), rgba(99, 199, 214, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.specialty-card:hover .specialty-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    transform: scale(1.1);
}

.specialty-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--dark-color);
}

.specialty-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.specialty-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 156, 199, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.specialty-link:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: rotate(45deg);
}

/* Header Styles */
.header-home, .header-other {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 156, 199, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 50px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-link span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.logo-link:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.logo-link:hover span {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.profile-trigger {
    margin-left: 1rem;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    background: rgba(74, 156, 199, 0.1);
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-weight: 500;
}

.profile-link:hover {
    background: rgba(74, 156, 199, 0.2);
    transform: translateY(-2px);
}

.profile-icon {
    font-size: 1.3rem;
}

/* Profile Popup */
.profile-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    visibility: hidden;
    z-index: 1100;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 320px;
}

.profile-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.popup-header {
    padding: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.user-avatar i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.user-info h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.user-info p {
    margin: 0.3rem 0 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.popup-actions {
    padding: 1.2rem;
}

.popup-btn {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    color: var(--text-color);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.popup-btn:last-child {
    margin-bottom: 0;
}

.popup-btn:hover {
    background: rgba(74, 156, 199, 0.1);
    color: var(--primary-color);
}

.popup-btn i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: var(--white-color);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: all 0.4s ease;
    overflow-y: auto;
}

.mobile-menu.show {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(74, 156, 199, 0.1);
}

.mobile-menu-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
}

.mobile-menu nav ul {
    padding: 1.5rem;
}

.mobile-menu nav li {
    margin-bottom: 0.5rem;
}

.mobile-menu nav a {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    color: var(--text-color);
    transition: all 0.3s ease;
    gap: 1rem;
}

.mobile-menu nav a:hover,
.mobile-menu nav a.active {
    background: rgba(74, 156, 199, 0.1);
    color: var(--primary-color);
}

.mobile-menu nav a i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

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

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--dark-color), #1a3a4f);
    color: var(--white-color);
    padding: 5rem 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer .logo {
    margin-bottom: 1.5rem;
}

.footer .logo img {
    height: 45px;
}

.footer .logo span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

.footer p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    color: var(--white-color);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul a {
    opacity: 0.8;
    transition: all 0.3s ease;
    display: block;
    font-size: 0.95rem;
}

.footer-section ul a:hover {
    opacity: 1;
    color: var(--primary-light);
    padding-left: 8px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-info i {
    margin-right: 1rem;
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Block Overlay */
.mobile-block-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-color), #1a3a4f);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    padding: 2rem;
    text-align: center;
}

.mobile-block-container {
    max-width: 600px;
    width: 100%;
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 156, 199, 0.3);
    animation: fadeInScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-block-container h1 {
    font-size: 2.2rem;
    margin: 1.5rem 0 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.mobile-block-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.mobile-block-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.desktop-icon, .mobile-icon {
    position: relative;
    font-size: 4rem;
    margin: 0 2rem;
}

.desktop-icon {
    color: var(--success-color);
}

.mobile-icon {
    color: var(--danger-color);
}

.no-entry-icon {
    position: absolute;
    font-size: 5rem;
    color: rgba(231, 76, 60, 0.7);
    z-index: 2;
    animation: pulse 2s infinite;
}

.mobile-block-instructions {
    text-align: left;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.instruction-step {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.step-content strong {
    color: white;
    opacity: 1;
}

.mobile-block-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-block-footer i {
    color: var(--warning-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 4rem 0;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .test-cards {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .specialties-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .mobile-block-container h1 {
        font-size: 1.8rem;
    }

    .desktop-icon, .mobile-icon {
        font-size: 3rem;
        margin: 0 1rem;
    }

    .no-entry-icon {
        font-size: 4rem;
    }
}

/* Features Section Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    justify-items: center; /* Add this to center the cards */
}

/* Specialties Section Grid */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center; /* Add this to center the cards */
}

/* Adjust card width to prevent stretching */
.feature-card{
    width: 100%;
    max-width: 350px; /* Set a max-width for better control */
}

/* For odd number of cards - make the last one centered */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}
.features-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.features-grid {
    width: 100%;
    max-width: 1200px; /* Adjust based on your design */
}

