/* General styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f0f0f0;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: #ffcc00;
}

/* Header */
header {
    background-color: #333;
    color: #fff;
    padding: 1em 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header .logo {
    flex: 1;
}

header .logo img {
    width: 50px;
    height: 50px;
}

header nav {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px; 
}

header nav ul li a {
    font-size: 1em;
    font-weight: 500;
    padding: 0.5em 1em;
    transition: color 0.3s, background-color 0.3s;
    color: #fff;
}

header nav ul li a:hover {
    color: #ffcc00;
    background-color: rgba(255, 204, 0, 0.2);
    border-radius: 5px;
}

/* Contact Info */
header .contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    font-size: 0.9em;
}

header .contact-info a {
    color: #61dafb;
    text-decoration: none;
}

header .contact-info a:hover {
    color: #21a1f1;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(to bottom, #333, #555);
    color: #fff;
    padding: 8em 2em;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.hero button {
    background-color: #ffcc00;
    color: #333;
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s;
}

.hero button:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
}

/* About Section */
#about {
    padding: 5em 5%;
    background: linear-gradient(to bottom right, #f0f0f0, #e0e0e0);
    text-align: center;
}

#about h2 {
    margin-bottom: 2em;
    font-size: 2.8em; 
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#about p {
    margin-bottom: 5em;
    font-size: 1.4em;
    color: #666;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; 
}

.about-grid div {
    background-color: #fff;
    padding: 2em;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-grid div:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about-grid div h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    color: #333;
    font-weight: bold;
}

.about-grid div p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}


/* Services Section */
#services {
    padding: 5em 5%;
    background-color: #fff;
    text-align: center;
}

#services h2 {
    margin-bottom: 2em;
    font-size: 2.8em;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#services p {
    margin-bottom: 5em;
    font-size: 1.4em;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.services-grid div {
    background-color: #fff;
    padding: 2em;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-grid div:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.services-grid div h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    color: #333;
    font-weight: bold;
}

.services-grid div p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}



/* Get In Touch Section */
#contact {
    padding: 4em 5%;
    background: linear-gradient(to right, #fafafa, #f5f5f5);
    text-align: center;
}

#contact h2 {
    margin-bottom: 1.5em;
    font-size: 3em;
    font-weight: bold;
    color: #333;
}

#contact p {
    margin-bottom: 2em;
    font-size: 1.2em;
    color: #666;
}



/* Contact Form */
form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3em;
    background-color: #fff;
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: box-shadow 0.3s ease;
}

form:hover {
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.2);
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1.1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus, form textarea:focus {
    border-color: #ffcc00;
    box-shadow: 0px 4px 15px rgba(255, 204, 0, 0.3);
    outline: none;
}

form button {
    background-color: #ffcc00;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

form button:hover {
    background-color: #e6b800;
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 1.5em 0;
    text-align: center;
}






/* Mobile Navigation Menu */
@media only screen and (max-width: 768px) {
    header nav ul {
        display: none;
    }
    header nav::before {
        content: '\2630'; /* Unicode for the hamburger icon */
        font-size: 2em;
        cursor: pointer;
        color: #fff;
    }
    header nav ul.active {
        display: block;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #333;
        width: 100%;
        padding: 0;
        text-align: center;
    }
    header nav ul li {
        margin: 10px 0;
    }
    header nav ul li a {
        display: block;
        padding: 1em 0;
        color: #fff;
    }
}

/* Make Hero Section more compact on smaller screens */
@media only screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .hero button {
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* Fine-tune form spacing */
form input, form textarea {
    padding: 12px;
    margin-bottom: 15px;
}

form button {
    padding: 12px 30px;
    font-size: 1em;
}

/* Footer text adjustments */
footer p {
    font-size: 0.9em;
}

/* Adjust grid padding for smaller devices */
@media only screen and (max-width: 768px) {
    .about-grid div, .services-grid div {
        padding: 1.2em;
    }
}

@media only screen and (max-width: 480px) {
    .about-grid div, .services-grid div {
        padding: 1em;
    }
}


/* Mobile Navigation Menu */
@media only screen and (max-width: 768px) {
    header nav ul {
        display: none;
    }
    header nav::before {
        content: '\2630'; 
        font-size: 2em;
        cursor: pointer;
        color: #fff;
    }
    header nav ul.active {
        display: block;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #333;
        width: 100%;
        padding: 0;
        text-align: center;
    }
    header nav ul li {
        margin: 10px 0;
    }
    header nav ul li a {
        display: block;
        padding: 1em 0;
        color: #fff;
    }
}

/* Adjust form width for smaller devices */
@media only screen and (max-width: 768px) {
    form {
        max-width: 95%; 
        padding: 2em; 
    }
}

@media only screen and (max-width: 480px) {
    form {
        max-width: 90%; 
        padding: 1.1em; 
    }
}



/* Adjusting for mobile screens */
@media only screen and (max-width: 768px) {
    header .contact-info {
        flex-direction: row;
        justify-content: flex-end;
        gap: 0.1px; 
        font-size: 0.8em; 
    }

    header .contact-info a {
        font-size: 0.8em; 
    }
}

@media only screen and (max-width: 480px) {
    header .contact-info {
        flex-direction: column; 
        align-items: flex-end;
        font-size: 0.75em; 
    }

    header .contact-info a {
        font-size: 0.75em; 
    }
}