/* General Styles */
body {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f9;
}

header, main, footer {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

a {
    text-decoration: none;
    color: #1A73E8; /* Changed to a darker blue for better contrast */
    transition: color 0.3s ease;
}

a:hover, a:focus {
    text-decoration: underline;
    outline: 3px solid #1A73E8;
    outline-offset: 3px;
    color: #D93025; /* Changed to a darker red for better contrast */
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

h1, h2, h3 {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    color: #1F364D;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
    margin-top: 20px;
}

h3 {
    font-size: 1.5em;
}

/* Header Styles */
header {
    background: linear-gradient(to right, #1F364D, #1A73E8); /* Darker blue for better contrast */
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .logo {
    flex: 1;
}

header .logo img {
    max-height: 60px;
    width: auto;
}

header nav {
    flex: 3;
    display: flex;
    justify-content: flex-end;
}

header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0;
    align-items: center;
}

header nav ul li {
    margin: 0 15px;
}

header nav a {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav a:hover, header nav a:focus {
    background-color: #D93025; /* Darker red for better contrast */
    color: #fff;
    transform: scale(1.05);
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    header nav {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
    }

    header nav ul li {
        margin: 10px 0;
    }

    .burger-menu {
        display: flex;
    }

    .burger-menu.active + nav {
        display: flex;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content img {
        margin-bottom: 20px;
    }

    .service-list {
        flex-direction: column;
    }

    .portfolio-items {
        flex-direction: column;
    }
}

/* Hero Section */
.hero-content {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to bottom right, #1A73E8, #1F364D); /* Darker blue for better contrast */
    color: #fff;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-content .cta-button {
    background-color: #D93025; /* Darker red for better contrast */
    color: #fff;
    padding: 15px 30px;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-content .cta-button:hover, .hero-content .cta-button:focus {
    background-color: #C5221F; /* Darker shade for better contrast */
    outline: none;
    transform: scale(1.05);
}

/* Sections */
section {
    padding: 40px 20px;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-out;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
    gap: 20px; /* Ensures spacing between items */
}

.about-content img {
    flex: 1 1 150px;
    max-width: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.about-content p {
    flex: 1 1 100%;
    margin: 20px 0;
    text-align: justify;
}

/* Services Section */
.service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.service-item {
    flex: 1 1 calc(33.333% - 20px);
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    margin-top: 0;
}

/* Testimonials Section */
.testimonials-carousel {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

blockquote {
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

cite {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

/* Portfolio Section */
.portfolio-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.portfolio-item {
    flex: 1 1 calc(33.333% - 20px);
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    max-width: 100%;
    height: auto;
}

.portfolio-item p {
    margin-top: 10px;
}

/* Call to Action Section */
#cta {
    text-align: center;
    background-color: #1A73E8; /* Darker blue for better contrast */
    color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#cta .cta-button {
    background-color: #1F364D;
    color: #fff;
    padding: 10px 20px;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#cta .cta-button:hover, #cta .cta-button:focus {
    background-color: #16324A;
    outline: 3px solid #fff;
    outline-offset: 3px;
    transform: scale(1.05);
}

/* Contact Section */
#contact {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #ddd;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact form label {
    margin: 10px 0 5px;
}

#contact form input, #contact form textarea, #contact form .submit-button {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 5px 0 15px;
}

#contact form .submit-button {
    background-color: #1F364D;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact form .submit-button:hover, #contact form .submit-button:focus {
    background-color: #16324A;
    outline: 3px solid #fff;
    outline-offset: 3px;
    transform: scale(1.05);
}

.contact-details {
    margin-top: 20px;
    text-align: center;
}

.map {
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: #1F364D;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer nav ul {
    list-style: none;
    padding: 0;
}

footer nav ul li {
    display: inline;
    margin: 0 10px;
}

footer nav a {
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Skip Links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 10px;
}

/* Popup Messages */
.message-popup {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    background-color: #1F364D;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
}

.message-popup.show {
    display: block;
}

.success-message {
    background-color: #4CAF50;
}

.error-message {
    background-color: #F44336;
}
