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

:root {
    --primary-color: #3F5CAC;
    --primary-light: #87CEEB;
    --primary-dark: #2F4A8B;
    --secondary-color: #f8f9fa;
    --accent-color: #DAA520;
    --text-primary: #2c3e50;
    --text-secondary: #64748b;
    --background: #ffffff;
    --surface: #f8f9fa;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    font-size: 18px;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}


/* Visually Hidden utility class */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%);
    white-space: nowrap !important;
    border: 0 !important;
}

#main-content {
    margin-top: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: -100px;
    height: 0px;
    width: 0px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
    right: 6px;
    height: 1em;
    width: auto;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary-color);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--surface) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-text .tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Floating Hero Visual */
    @keyframes float {
        0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
        15% { transform: translateY(-15px) translateX(5px) rotate(1deg); }
        30% { transform: translateY(-25px) translateX(-3px) rotate(-0.5deg); }
        45% { transform: translateY(-10px) translateX(8px) rotate(1.5deg); }
        60% { transform: translateY(-30px) translateX(-5px) rotate(-1deg); }
        75% { transform: translateY(-5px) translateX(3px) rotate(0.5deg); }
        90% { transform: translateY(-20px) translateX(-2px) rotate(-0.5deg); }
        100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    }

    .hero-visual {
        position: relative;
        height: 450px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 16px;
        overflow: hidden;
    }

    .floating-elements {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .floating-card {
        position: absolute;
        background: white;
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        animation: float 6s ease-in-out infinite;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        min-width: 140px;
        text-align: center;
    }

    .floating-card:hover {
        animation-play-state: paused;
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .floating-card:nth-child(1) {
        top: 8%;
        left: 8%;
        animation-delay: 0s;
    }

    .floating-card:nth-child(2) {
        top: 55%;
        left: 30%;
        animation-delay: 1.5s;
    }

    .floating-card:nth-child(3) {
        top: 15%;
        left: 70%;
        animation-delay: 3s;
    }

     /* SVG Icon Styles */
    .card-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 0.75rem;
        background: linear-gradient(135deg, #3F5CAC, #DAA520);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

    .card-title {
        font-weight: 600;
        font-size: 0.9rem;
        color: #2c3e50;
        margin: 0;
    }

    .card-subtitle {
        font-size: 0.75rem;
        color: #64748b;
        margin: 0.25rem 0 0;
    }

/* Services Section */
    .services {
        padding: 6rem 0;
        background: var(--background);
    }

    .section-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .section-header p {
        font-size: 1.1rem;
        color: var(--text-secondary);
        max-width: 600px;
        margin: 1rem auto;
    }

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

    .service-card {
        background: white;
        border-radius: 16px;
        padding: 2.5rem;
        box-shadow: var(--shadow);
        transition: all 0.3s ease;
        border: 1px solid var(--border);
    }

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

    .service-icon {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
        color: white;
    }

    .service-card h3 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .service-card p {
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
    }

    .service-features {
        list-style: none;
    }

    .service-features li {
        padding: 0.5rem 0;
        color: var(--text-secondary);
        position: relative;
        padding-left: 1.5rem;
    }

    .service-features li::before {
        content: '✓';
        position: absolute;
        left: 0;
        color: var(--primary-color);
        font-weight: bold;
    }

/* About Section */
    .about {
        padding: 6rem 0;
        background: var(--surface);
    }

    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }

    .about-text h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        color: var(--text-primary);
    }

    .about-text p {
        font-size: 1.1rem;
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
    }

    .stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-top: 2rem;
    }

    .stat {
        text-align: center;
        padding: 1.5rem;
        background: white;
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

    .stat-number {
        font-size: 2rem;
        font-weight: 800;
        color: var(--primary-color);
        display: block;
    }

    .stat-label {
        display: block;
        color: var(--text-secondary);
        margin-top: 0.5rem;
    }

    .stat-label.small {
        font-size: .75rem;
    }

/* Contact Section */
    .contact {
        padding: 6rem 0;
        background: var(--background);
    }

    .contact-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .contact-form {
        background: white;
        padding: 2.5rem;
        border-radius: 16px;
        box-shadow: var(--shadow);
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.875rem;
        border: 2px solid var(--border);
        border-radius: 8px;
        font-size: 1rem;
        transition: border-color 0.3s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--primary-color);
    }

    .form-group textarea {
        resize: vertical;
        min-height: 120px;
    }

    .contact-info h3 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        color: var(--text-primary);
    }

    .contact-info p {
        color: var(--text-secondary);
        margin-bottom: 2rem;
    }

    .contact-details {
        list-style: none;
    }

    .contact-details li {
        padding: 1rem 0;
        display: flex;
        align-items: center;
        gap: 1rem;
        color: var(--text-secondary);
    }

    .contact-details li::before {
        content: '📧';
        font-size: 1.2rem;
    }

/* Footer */
    footer {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));    color: white;
        padding: 3rem 0 1rem;
        position: relative;
    }

    /* Add a subtle overlay to improve text readability */
    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.1);
        pointer-events: none;
    }

    /* Ensure footer content is above the overlay */
    .footer-content,
    .footer-bottom {
        position: relative;
        z-index: 1;
    }

    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-section h4 {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .footer-section p,
    .footer-section a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        line-height: 1.6;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .footer-section a:hover {
        color: white;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .footer-bottom {
        text-align: center;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.8);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
/* End Footer */

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .hero-visual {
        height: 300px;
    }

    .floating-card {
        padding: 1rem;
    }
}

/* Accessibility improvements */
.reduce-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --text-primary: #000000;
        --border: #000000;
    }
}

/* Focus indicators */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}