/* --- Global Styles & Variables --- */
:root {
    --primary-color: #1a73e8; /* Blue from snippet */
    --primary-darker: #185abc; /* Darker blue for hover */
    --text-dark: #333;
    --text-light: #555;
    --bg-light: #f8f9fa; /* Light grey for alternate sections */
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: rgba(60, 64, 67, 0.15);
    --shadow-medium: rgba(60, 64, 67, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Smooth scroll for anchor links */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* --- Header --- */
.header {
    background-color: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav a {
    color: var(--text-dark);
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--bg-light); /* Or use a subtle gradient/image */
    /* background: linear-gradient(135deg, #eef5ff, #ffffff); */
    text-align: center;
    padding: 80px 0;
    min-height: 40vh; /* Minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px; /* Slightly less rounded */
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-darker);
    border-color: var(--primary-darker);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px); /* Subtle lift */
}

/* --- Card Grid & Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center icon and text */
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.card-icon {
    font-size: 2.5rem; /* Adjust icon size */
    margin-bottom: 15px;
    line-height: 1;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Specific Sections Background --- */
.services {
    background-color: var(--bg-white);
}

.why-us {
    background-color: var(--bg-light);
}


/* --- Footer --- */
.footer {
    background-color: #333; /* Dark footer */
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer a {
    color: #fff; /* White links in footer */
}

.footer a:hover {
    color: var(--primary-color);
}


/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    .nav {
        margin-top: 10px;
    }
    .nav a {
        margin: 0 10px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero h1 {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }
    .hero .subtitle {
        font-size: 1rem;
    }
    .card-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
}

@media (max-width: 480px) {
    .nav a {
        margin: 0 8px;
        font-size: 0.9rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .card {
        padding: 20px;
    }
}