/* Import Google Fonts for improved aesthetics and readability */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;  /* Upgraded from Arial for a more professional, modern feel */
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;  /* Added subtle background for depth */
}

header {
    background: linear-gradient(135deg, #007bff, #0056b3);  /* Enhanced gradient for visual appeal */
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);  /* Added shadow for depth */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;  /* Added smooth hover effect */
}

.menu-toggle:hover {
    transform: scale(1.1);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;  /* Enhanced transition */
}

nav ul li a:hover {
    color: #ffd700;  /* Changed to gold for better contrast and appeal */
    transform: translateY(-2px);  /* Added lift effect */
}

.hero {
    background: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);  /* Added overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);  /* Added shadow for depth */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background: #fff;
    color: #007bff;
    padding: 12px 24px;  /* Slightly larger for better touch targets */
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.btn:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);  /* Added shadow on hover */
}

section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#about, #services, #contact {
    background: #f4f4f4;
    border-radius: 8px;  /* Added for softer edges */
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);  /* Subtle shadow for elevation */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service {
    background: white;
    padding: 2rem;
    border-radius: 8px;  /* Increased for modern look */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;  /* Added hover animation */
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

input, textarea {
    margin-bottom: 1rem;
    padding: 12px;  /* Increased for better usability */
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #007bff;  /* Added focus state for accessibility */
    outline: none;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #007bff;
        display: none;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    nav ul.show {
        display: flex;
    }
    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
}