/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for MedLink Colors & Styling */
:root {
    --medlink-blue: #316DE9; /* Primary Blue from your logo */
    --medlink-dark-blue: #1D4ED8; /* Darker shade for gradients */
    --medlink-light-blue: #667eea; /* Lighter shade for hero gradient start */
    --primary-white: #ffffff;
    --light-bg: #f8fafc; /* Light background for sections */
    --dark-text: #1e293b; /* Dark text for headings */
    --medium-text: #4b5563; /* Medium text for paragraphs */
    --light-text: #94a3b8; /* Light text for footer/subtle elements */
    --dark-bg: #1e293b; /* Dark background for footer */
    --accent-green: #10b981; /* For checkmarks */
    --accent-yellow: #fbbf24; /* For star ratings */
    --shadow-light: rgba(0, 0, 0, 0.08); /* Lighter shadow */
    --shadow-medium: rgba(0, 0, 0, 0.15); /* Medium shadow */
    --shadow-strong: rgba(0, 0, 0, 0.25); /* Stronger shadow for hover */
    --border-light: #e2e8f0; /* Light border for inputs */
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Changed font to Inter */
    line-height: 1.7; /* Slightly increased line height for readability */
    color: var(--medium-text);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px; /* Slightly increased padding for inner content */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Slightly lighter border */
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px var(--shadow-light); /* Refined shadow */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px; /* Consistent padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Slightly increased navbar height */
}

.nav-logo {
    display: flex;
    align-items: center;
    /* No font-size or color here as the logo is an image now */
}

/* Styling for the MedLink logo image */
.medlink-logo-img {
    height: 70px; /* INCREASED HEIGHT for prominent visibility in navbar */
    width: auto; /* Maintain aspect ratio */
    margin-right: 0; /* No margin needed if text span is removed */
    transition: transform var(--transition-speed) ease;
}

.medlink-logo-img:hover {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem; /* Increased gap between menu items */
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color var(--transition-speed) ease;
    position: relative;
    padding: 5px 0; /* Add padding for better hover area */
}

/* Active navigation link style */
.nav-link.active {
    color: var(--medlink-blue);
    font-weight: 700; /* Make it bolder when active */
}

.nav-link.active::after {
    width: 100%; /* Ensure underline is active */
}

.nav-link:hover {
    color: var(--medlink-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px; /* Slightly thicker underline */
    bottom: -8px; /* Adjusted position */
    left: 0;
    background-color: var(--medlink-blue);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px; /* Added padding for easier tapping */
}

.hamburger span {
    width: 28px; /* Slightly wider lines */
    height: 4px; /* Slightly thicker lines */
    background: var(--dark-text);
    margin: 4px 0; /* Increased margin between lines */
    transition: var(--transition-speed);
    border-radius: 2px; /* Rounded corners for hamburger lines */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Updated gradient for a vibrant, professional feel */
    background: linear-gradient(135deg, var(--medlink-light-blue) 0%, var(--medlink-blue) 50%, var(--medlink-dark-blue) 100%);
    color: var(--primary-white);
    padding: 120px 25px 60px; /* Adjusted padding */
    position: relative;
    overflow: hidden; /* Hide overflow for any background effects */
}

/* Subtle background pattern/texture for hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 100% 150%, rgba(255,255,255,0.05) 0%, transparent 50%),
                      radial-gradient(circle at 0% -50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    background-size: 800px 800px;
    opacity: 0.8;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 700px; /* Increased max-width for content */
    margin-right: 60px; /* Increased margin */
    position: relative; /* Ensure content is above pseudo-element */
    z-index: 2;
    will-change: transform; /* Hint for browser optimization for parallax */
}

.hero h1 {
    font-size: 4rem; /* Larger heading */
    font-weight: 800; /* Bolder */
    margin-bottom: 1.8rem; /* More space */
    line-height: 1.15;
}

.hero p {
    font-size: 1.4rem; /* Larger paragraph */
    margin-bottom: 3rem; /* More space */
    opacity: 0.95; /* Slightly less transparent */
}

.hero-buttons {
    display: flex;
    gap: 1.5rem; /* Increased gap */
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px; /* Slightly larger buttons */
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1.05rem; /* Slightly larger font */
    box-shadow: 0 5px 15px var(--shadow-light); /* Default button shadow */
}

.btn-primary {
    background: var(--primary-white);
    color: var(--medlink-blue);
}

.btn-primary:hover {
    background: var(--light-grey-bg);
    transform: translateY(-3px); /* More pronounced lift */
    box-shadow: 0 12px 30px var(--shadow-strong); /* Stronger shadow on hover */
}

.btn-secondary {
    background: transparent;
    color: var(--primary-white);
    border: 2px solid var(--primary-white);
}

.btn-secondary:hover {
    background: var(--primary-white);
    color: var(--medlink-blue);
    transform: translateY(-3px); /* More pronounced lift */
    box-shadow: 0 12px 30px var(--shadow-strong); /* Stronger shadow on hover */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    will-change: transform; /* Hint for browser optimization for parallax */
}

.illustration-circle,
.illustration-square { /* Combined styling for illustrations */
    width: 320px; /* Slightly larger */
    height: 320px; /* Slightly larger */
    border-radius: 50%; /* Circle for hero */
    background: rgba(255, 255, 255, 0.15); /* Slightly less transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px); /* Stronger blur for glassmorphism */
    border: 2px solid rgba(255, 255, 255, 0.3); /* Stronger border */
    color: var(--primary-white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); /* Added shadow for depth */
    /* Removed pulse animation from here to prevent conflict with JS parallax */
}

.illustration-square {
    border-radius: 25px; /* Rounded square for about section */
    background: linear-gradient(135deg, var(--medlink-blue), var(--medlink-dark-blue));
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35); /* Stronger shadow */
    animation: none; /* Ensure no animation for square */
}

.illustration-circle i,
.illustration-square i {
    font-size: 8.5rem; /* Slightly larger icon */
    opacity: 0.9;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem; /* More vertical space */
}

.section-header h2 {
    font-size: 3rem; /* Larger heading */
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.2rem; /* More space */
}

.section-header p {
    font-size: 1.3rem; /* Larger paragraph */
    color: var(--medium-text);
    max-width: 700px; /* Wider text area */
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Adjusted column ratio */
    gap: 5rem; /* Increased gap */
    align-items: center;
}

.about-text h3 {
    font-size: 2.2rem; /* Larger heading */
    color: var(--dark-text);
    margin-bottom: 1.8rem; /* More space */
}

.about-text p {
    font-size: 1.15rem; /* Slightly larger paragraph */
    color: var(--medium-text);
    margin-bottom: 2.5rem; /* More space */
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 2.5rem; /* Increased gap */
    flex-wrap: wrap; /* Ensure wrapping on small screens */
    justify-content: flex-start; /* Align left on desktop */
}

.stat {
    text-align: center;
    flex: 1; /* Allow flex items to grow */
    min-width: 120px; /* Minimum width for stats */
}

.stat-number {
    display: block;
    font-size: 3rem; /* Larger number */
    font-weight: 800; /* Bolder */
    color: var(--medlink-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem; /* Slightly larger label */
    color: var(--medium-text);
    text-transform: uppercase;
    letter-spacing: 1.5px; /* More letter spacing */
}

.about-image {
    display: flex;
    justify-content: center;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--primary-white); /* Ensure white background */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly adjusted minmax for more flexibility */
    gap: 2.5rem; /* Increased gap */
}

.service-card {
    background: var(--primary-white);
    padding: 3rem 2.5rem; /* Increased padding */
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 12px 30px var(--shadow-light); /* Refined shadow */
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05); /* Subtle border for definition */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Slightly thicker accent line */
    background: linear-gradient(90deg, var(--medlink-blue), var(--medlink-dark-blue));
    transform: scaleX(0); /* Start hidden */
    transform-origin: left;
    transition: transform var(--transition-speed) ease-out;
}

.service-card:hover::before {
    transform: scaleX(1); /* Expand on hover */
}

.service-card:hover {
    transform: translateY(-12px); /* More pronounced lift */
    box-shadow: 0 25px 50px var(--shadow-medium); /* Stronger shadow on hover */
}

.service-icon {
    width: 85px; /* Slightly larger icon circle */
    height: 85px;
    margin: 0 auto 1.8rem; /* More space */
    background: linear-gradient(135deg, var(--medlink-blue), var(--medlink-dark-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2); /* Subtle shadow for icon */
    transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg); /* Flip effect on hover */
}

.service-card h3 {
    font-size: 1.6rem; /* Slightly larger heading */
    color: var(--dark-text);
    margin-bottom: 1.2rem;
}

.service-card p {
    color: var(--medium-text);
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.service-card ul {
    list-style: none;
    text-align: left;
    padding-left: 0; /* Ensure no default padding */
}

.service-card li {
    color: var(--medium-text);
    margin-bottom: 0.6rem; /* Slightly more space */
    position: relative;
    padding-left: 1.8rem; /* More space for checkmark */
    font-size: 1.05rem; /* Slightly larger list item font */
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.1rem; /* Larger checkmark */
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--light-bg);
}

/* Testimonials Grid with Horizontal Scroll */
.testimonials-grid {
    display: grid;
    /* Changed to a single column layout that scrolls horizontally */
    grid-auto-flow: column; /* Arrange items in columns, not rows */
    grid-auto-columns: 85%; /* Each card takes up 85% of the container width on desktop */
    gap: 2.5rem;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snap to cards when scrolling */
    padding-bottom: 20px; /* Space for scrollbar */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox scrollbar style */
    scrollbar-color: var(--medlink-blue) var(--light-bg); /* Firefox scrollbar color */
}

/* Custom scrollbar for Webkit browsers (Chrome, Safari) */
.testimonials-grid::-webkit-scrollbar {
    height: 10px;
}

.testimonials-grid::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 10px;
}

.testimonials-grid::-webkit-scrollbar-thumb {
    background-color: var(--medlink-blue);
    border-radius: 10px;
    border: 2px solid var(--light-bg);
}


.testimonial-card {
    background: var(--primary-white);
    padding: 3rem; /* Increased padding */
    border-radius: 20px;
    box-shadow: 0 12px 30px var(--shadow-light); /* Refined shadow */
    position: relative;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid rgba(0,0,0,0.05); /* Subtle border */
    scroll-snap-align: start; /* Snap point for scrolling */
    flex-shrink: 0; /* Prevent cards from shrinking */
    width: 100%; /* Ensure card takes full auto-column width */
}

.testimonial-card:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 20px 45px var(--shadow-medium); /* Stronger shadow on hover */
}

.testimonial-content {
    margin-bottom: 2.5rem; /* More space */
}

.testimonial-content i {
    font-size: 2.5rem; /* Larger quote icon */
    color: var(--medlink-blue);
    margin-bottom: 1.2rem;
}

.testimonial-content p {
    font-size: 1.15rem; /* Slightly larger paragraph */
    line-height: 1.8;
    color: var(--medium-text);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center; /* Align items to the center */
    gap: 1rem; /* Space between picture and info */
    margin-top: 1.5rem; /* Added margin */
}

/* Styling for testimonial author pictures */
.author-pic {
    width: 60px; /* Size of the picture */
    height: 60px;
    border-radius: 50%; /* Make it circular */
    object-fit: cover; /* Ensure image covers the area */
    border: 3px solid var(--medlink-blue); /* Subtle border matching brand color */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Small shadow for depth */
    flex-shrink: 0; /* Prevent image from shrinking */
}


.author-info h4 {
    color: var(--dark-text);
    font-size: 1.2rem; /* Slightly larger name */
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.author-info span {
    color: var(--medium-text);
    font-size: 0.95rem; /* Slightly larger title */
}

.rating {
    color: var(--accent-yellow);
    font-size: 1.1rem; /* Larger stars */
    margin-left: auto; /* Push stars to the right */
    flex-shrink: 0; /* Prevent stars from shrinking */
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--primary-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Adjusted column ratio for form prominence */
    gap: 5rem; /* Increased gap */
    align-items: flex-start; /* Align items to the top */
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Increased gap */
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem; /* Increased gap */
}

.contact-item i {
    font-size: 1.8rem; /* Larger icon */
    color: var(--medlink-blue);
    margin-top: 0.2rem; /* Fine-tune alignment */
}

.contact-item h3 {
    color: var(--dark-text);
    margin-bottom: 0.6rem;
    font-size: 1.3rem; /* Slightly larger heading */
    font-weight: 600;
}

.contact-item p {
    color: var(--medium-text);
    line-height: 1.7;
    font-size: 1.05rem;
}

.contact-form {
    background: var(--light-bg);
    padding: 3rem; /* Increased padding */
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow-light); /* Added shadow */
    border: 1px solid rgba(0,0,0,0.05); /* Subtle border */
}

.form-group {
    margin-bottom: 1.8rem; /* More space between form groups */
    display: flex;
    gap: 1.2rem; /* Consistent gap */
}

.form-group input,
.form-group textarea {
    flex: 1;
    padding: 18px; /* Larger input fields */
    border: 2px solid var(--border-light);
    border-radius: 12px; /* More rounded corners */
    font-size: 1.05rem; /* Slightly larger font */
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    font-family: 'Inter', sans-serif; /* Ensure consistent font */
    color: var(--dark-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--medlink-blue);
    box-shadow: 0 0 0 3px rgba(49, 109, 233, 0.2); /* Subtle focus ring */
}

.form-group textarea {
    min-height: 150px; /* Ensure textarea has enough height */
    resize: vertical; /* Allow vertical resizing */
}

.form-group:nth-child(2),
.form-group:nth-child(3) {
    flex-direction: column;
}

.form-group:nth-child(2) input,
.form-group:nth-child(3) textarea {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--primary-white);
    padding: 80px 0 30px; /* Adjusted padding */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjusted minmax */
    gap: 2.5rem; /* Increased gap */
    margin-bottom: 3rem; /* More space */
}

.footer-logo {
    display: flex;
    align-items: center;
    /* No font-size or color here as the logo is an image now */
    margin-bottom: 1.2rem;
}

/* Styling for the MedLink logo image in the footer */
.footer-logo .medlink-logo-img {
    height: 60px; /* INCREASED HEIGHT for the footer as well */
    width: auto;
    margin-right: 0; /* No margin if text span is removed */
}

.footer-section p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1.2rem; /* Increased gap */
}

.social-links a {
    width: 45px; /* Slightly larger social icons */
    height: 45px;
    background: rgba(255, 255, 255, 0.1); /* Lighter background for contrast */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-size: 1.2rem; /* Larger social icon font */
}

.social-links a:hover {
    background: var(--medlink-blue);
    transform: translateY(-3px) scale(1.1); /* More pronounced lift and slight scale */
    box-shadow: 0 8px 20px rgba(49, 109, 233, 0.4); /* Stronger shadow */
}

.footer-section h3 {
    color: var(--primary-white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem; /* Slightly larger heading */
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem; /* More space */
}

.footer-section ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--medlink-blue);
}

.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* More space */
}

.contact-info-footer p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0; /* Remove extra margin */
    font-size: 0.95rem;
}

.contact-info-footer i {
    color: var(--medlink-blue);
    width: 25px; /* Wider icon area for alignment */
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Lighter border */
    padding-top: 2.5rem;
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--medlink-blue);
    color: var(--primary-white);
    width: 55px; /* Larger button */
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Larger icon */
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--shadow-medium);
    opacity: 0; /* Start hidden */
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease-in-out;
    z-index: 999;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: var(--medlink-dark-blue);
    transform: translateY(-5px); /* Lift on hover */
    box-shadow: 0 12px 25px var(--shadow-strong);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to all sections for a subtle entrance */
section {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden for animation */
}

/* Delay animations for sections to appear sequentially */
.hero { animation-delay: 0.1s; }
.about { animation-delay: 0.3s; }
.services { animation-delay: 0.5s; }
.testimonials { animation-delay: 0.7s; }
.contact { animation-delay: 0.9s; }
.footer { animation-delay: 1.1s; }


/* Custom Message Box Styling (for form submission) */
.custom-message-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-message-box.show {
    opacity: 1;
    visibility: visible;
}

.message-box-content {
    background: var(--primary-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-strong);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.custom-message-box.show .message-box-content {
    transform: translateY(0);
}

.message-box-content p {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.message-box-close-btn {
    background: var(--medlink-blue);
    color: var(--primary-white);
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.message-box-close-btn:hover {
    background: var(--medlink-dark-blue);
    transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 992px) { /* New breakpoint for larger tablets/smaller desktops */
    .hero h1 {
        font-size: 3.2rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .illustration-circle, .illustration-square {
        width: 280px;
        height: 280px;
    }
    .illustration-circle i, .illustration-square i {
        font-size: 7rem;
    }
    .about-content, .contact-content {
        grid-template-columns: 1fr; /* Stack columns earlier */
        text-align: center;
    }
    .about-image, .contact-info {
        justify-content: center;
        align-items: center;
    }
    .stats {
        justify-content: center;
    }
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjust footer columns */
    }
    .nav-container {
        padding: 0 15px; /* Adjust padding for smaller screens */
    }
    .container {
        padding: 0 15px; /* Adjust padding for smaller screens */
    }
    /* Testimonials grid on smaller desktops/larger tablets */
    .testimonials-grid {
        grid-auto-columns: 95%; /* Take up more width */
    }
}


@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px; /* Adjusted to new navbar height */
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition-speed);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 25px 50px;
    }

    .hero-content {
        margin-right: 0;
        margin-bottom: 3rem;
    }

    .hero h1 {
        font-size: 2.8rem; /* Adjusted for tablet */
    }

    .hero p {
        font-size: 1.15rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .illustration-circle, .illustration-square {
        width: 250px; /* Smaller for tablets */
        height: 250px;
    }
    .illustration-circle i, .illustration-square i {
        font-size: 6rem;
    }


    .section-header h2 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .stats {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        /* On mobile, each card takes full width */
        grid-auto-columns: 100%;
        padding: 0 15px 20px; /* Add horizontal padding to see partial next card */
    }
    .testimonial-card {
        margin-right: 15px; /* Add margin to see partial next card */
    }


    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-group {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info .contact-item {
        justify-content: center; /* Center contact items on mobile */
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 70px; /* Smaller navbar on very small screens */
    }
    .medlink-logo-img {
        height: 55px; /* Smaller logo on very small screens */
    }
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .illustration-circle, .illustration-square {
        width: 200px; /* Even smaller for mobile */
        height: 200px;
    }
    .illustration-circle i, .illustration-square i {
        font-size: 5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    .section-header p {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 2.5rem 1.8rem;
    }

    .testimonial-card {
        padding: 2.5rem;
    }

    .contact-form {
        padding: 2.5rem;
    }

    .stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .scroll-to-top-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }
    /* Testimonials grid on very small mobile */
    .testimonials-grid {
        grid-auto-columns: 100%; /* Ensure full width for single card view */
        padding: 0 10px 20px;
    }
    .testimonial-card {
        margin-right: 10px;
    }
}
