:root {
    --primary-color: #007bff;
    --secondary-color: #667eea;
    --accent-color: #764ba2;
    --text-primary: 333;
    --text-secondary: #666;
    --text-light: #999;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-bg-light: rgba(255, 255, 255, 0.75);
    --glass-blur: blur(10px);
    --overlay-dark: rgba(0, 0, 0, 0.10);
    --sidebar-width: 300px;
    --border-radius: 10px;
    --border-radius-large: 30px;
    --shadow-light: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 15px 35px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    --gradient-light: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--light-bg);
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Background image container for better loading control */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background: url('header.png') center/cover no-repeat;
    background-size: cover;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-dark);
    z-index: -1;
}

/* Container */
.container {
    width: calc(100% - var(--sidebar-width));
    margin: 0 auto 0 var(--sidebar-width);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        margin: 0 auto;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    width: 100%;
    transition: margin-left 0.3s ease;
    overflow-x: hidden;
}

.main-content.shifted {
    margin-left: var(--sidebar-width);
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur); /* Safari support */
    box-shadow: var(--shadow-light);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: left 0.3s ease;
    left: 0; /* Visible by default on desktop */
}

/* Only hide sidebar on mobile by default */
@media (max-width: 768px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width)); /* Hidden by default on mobile */
    }
}

.sidebar.open {
    left: 0; /* Shown when open */
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: -100%; /* Hidden by default on small screens */
        border-radius: 0;
    }

    .sidebar.open {
        left: 0;
    }

    .main-content {
        margin-left: 0; /* Remove margin when sidebar is full width */
    }

    .main-content.shifted {
        margin-left: 0;
    }

    .mobile-menu-container {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
    }

    .menu-toggle {
        background: var(--glass-bg);
        border: none;
        padding: 10px;
        border-radius: var(--border-radius);
        cursor: pointer;
        box-shadow: var(--shadow-light);
    }
}

/* Profile Section */
.profile-section {
    text-align: center;
    padding: 40px 30px;
    border-bottom: 1px solid #eee;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 5px solid #f0f0f0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    alt: 'Dr. Jan C. Rode';
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.profile-title {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Navigation Menu */
.nav-menu {
    padding: 0;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    border-bottom: 1px solid #eee;
}

.nav-menu a {
    display: block;
    padding: 20px 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: #f8f9ff;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    transform: scaleY(1);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
    margin-left: 0;
}

@media (min-width: 769px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        width: 100%;
        margin-left: 0;
    }
}

/* Section Base Styles */
.section {
    padding: 40px 30px;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    position: relative;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

@media (max-width: 768px) {
    .background-container {
        background-image: url('mobile_header.jpg'); /* Switch to mobile optimized image */
        background-size: cover;
        background-position: center center;
    }
}

.section:first-child {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
}

.section-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section - Bulletproof Responsive Design */
.hero {
    /* Core layout */
    color: var(--white);
    text-align: center;
    position: relative;
    
    /* Robust height strategy */
    min-height: 100dvh; /* Dynamic viewport - best for desktop */
    min-height: 100vh; /* Fallback for older browsers */
    
    /* Background setup - desktop */
    background-image: url('header.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Prevents iOS performance issues */
    
    /* Flexbox for perfect centering */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Safe padding with viewport units */
    padding: max(20px, 3vh) max(20px, 5vw);
    
    /* Containment strategy */
    overflow: hidden;
    contain: layout style paint;
    
    /* Ensure minimum viable height */
    min-height: max(100dvh, 600px);
}

/* Dark overlay for text readability */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

/* Content container with bulletproof sizing */
.hero .section-content {
    position: relative;
    z-index: 2;
    
    /* Responsive width with safe boundaries */
    width: min(90vw, 800px);
    max-width: 100%;
    
    /* Flexible internal spacing */
    padding: clamp(20px, 4vw, 40px);
    
    /* Flex layout for content */
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vh, 32px);
    
    /* Ensure content fits within viewport */
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
}

/* Typography with fluid scaling */
.hero h2 {
    font-size: clamp(24px, 6vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: clamp(16px, 3.5vw, 22px);
    margin: 0;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.3;
}

.hero .description {
    font-size: clamp(14px, 2.5vw, 18px);
    max-width: min(600px, 100%);
    margin: 0 auto;
    opacity: 0.85;
    line-height: 1.6;
    font-weight: 400;
}

/* Mobile-first responsive breakpoints */
@media (max-width: 768px) {
    .hero {
        /* Switch to mobile background */
        background-image: url('mobile_header.jpg');
        
        /* iOS Safari optimized height */
        min-height: 100svh; /* Small viewport height */
        min-height: max(100svh, 500px); /* Ensure minimum usable space */
        
        /* Adjust background for mobile */
        background-position: center top;
        background-size: cover;
    }
    
    .hero .section-content {
        /* Safe area handling for notched devices */
        padding-top: max(24px, env(safe-area-inset-top, 24px));
        padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
        
        /* Tighter mobile spacing */
        gap: clamp(12px, 2.5vh, 24px);
        
        /* Ensure content doesn't overflow on small screens */
        max-height: calc(100svh - 48px);
    }
}

/* Extra small devices optimization */
@media (max-width: 480px) {
    .hero {
        /* Even more conservative height for tiny screens */
        min-height: max(100svh, 450px);
        padding: max(16px, 2vh) max(16px, 4vw);
    }
    
    .hero .section-content {
        padding: clamp(16px, 3vw, 24px);
        gap: clamp(10px, 2vh, 20px);
        max-height: calc(100svh - 32px);
    }
    
    /* Ensure readability on very small screens */
    .hero h2 {
        font-size: clamp(20px, 7vw, 32px);
        line-height: 1.2;
    }
    
    .hero .subtitle {
        font-size: clamp(14px, 4vw, 18px);
    }
    
    .hero .description {
        font-size: clamp(13px, 3vw, 16px);
        line-height: 1.5;
    }
}

/* Landscape mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: max(12px, 2vh) max(20px, 5vw);
    }
    
    .hero .section-content {
        gap: clamp(8px, 1.5vh, 16px);
        max-height: calc(100vh - 24px);
    }
}

.section-content {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-large);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 40px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Hero section keeps original styling */
.hero .section-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 20px 0;
    overflow-x: auto;
}

/* Responsive adjustments for services grid */
@media (max-width: 1024px) {
    .services-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .services-grid {
        flex-direction: column;
        padding: 30px 20px;
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

@media (max-width: 768px) {
    .service-card {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 30px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stats Section */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

@media (max-width: 768px) {
    .stats-grid {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }
}

.stat-item {
    padding: 20px;
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border-radius: var(--border-radius);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .stat-item {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin: 20px 0 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

@media (max-width: 768px) {
    .testimonials-grid {
        flex-direction: column;
        padding: 30px 20px;
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

@media (max-width: 768px) {
    .projects-grid {
        flex-direction: column;
        padding: 30px 20px;
    }
}

.project-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

@media (max-width: 768px) {
    .project-card {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

.project-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 30px;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 80px;
    flex-grow: 1;
}

.project-result {
    background: rgba(248, 249, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: var(--border-radius-large);
    display: inline-block;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.project-result span {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 5px;
}

/* CTA Section */
.cta-section {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    min-height: auto !important;
    padding: 60px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

.cta-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-large);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.cta-button i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Section Wrapper and White Content Area */
.section-wrapper {
    background: none;
    padding: 60px 0;
}

.white-content-area {
    background: #ffffff;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

/* Card Container - Horizontal Layout */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px;
    justify-content: center;
}

/* Desktop: 3 cards in one row */
@media (min-width: 1024px) {
    .card-container {
        flex-wrap: nowrap;
        gap: 20px;
    }
}

/* Tablet: 2 cards per row */
@media (max-width: 1023px) and (min-width: 769px) {
    .card-container {
        justify-content: space-around;
    }
    
    .card {
        flex: 0 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

/* Mobile: 1 card per row */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .card {
        width: 100%;
        max-width: none;
    }
}

/* Card Styles */
.card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 280px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-price {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding: 8px 16px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

.card-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
    text-align: left;
}

.card-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.card-features li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

/* Service Icon Styles */
.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

/* Button Styles */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius-large);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: var(--white);
    text-decoration: none;
}

/* Contact Section */
.contact {
    background: rgba(0, 0, 0, 0.6);
    text-align: center;
    padding: 60px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--white);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 40px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.contact-item {
    padding: 20px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

.contact-item i {
    font-size: 1.875rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.contact-item a:hover {
    opacity: 0.8;
}

.contact p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 20px;
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        padding: 30px 20px;
    }

    .contact-item {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}
    
/* Responsive Design */
.mobile-menu-container {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
}

.menu-toggle {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.close-menu {
    display: none; /* Always hidden as per user request */
}

@media (max-width: 768px) {
    .mobile-menu-container {
        display: block; /* Show on mobile */
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 100%;
        border-radius: 0;
    }

    .sidebar.open {
        transform: translateX(0%);
    }

    .main-content {
        margin-left: 0;
    }

    body {
        background-attachment: scroll; /* Allow background to scroll on mobile */
    }
}

@media (min-width: 769px) {
    .mobile-menu-container {
        display: none !important; /* Hide on desktop */
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Focus States for Accessibility */
/* Added a comment to force refresh */
.btn:focus,
.nav-menu a:focus,
.social-links a:focus,
.cta-button:focus,
.menu-toggle:focus,
.close-menu:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 1);
        --glass-bg-light: rgba(255, 255, 255, 1);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .social-links,
    .cta-button,
    .btn {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .section {
        background: white;
        backdrop-filter: none;
        page-break-inside: avoid;
    }
}