/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    flex: 1 0 auto;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.site-header {
    background-color: #004080;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.site-nav a:hover,
.site-nav a:focus {
    color: #ffcc00;
}

/* Hamburger menu button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    background-color: #fff;
    height: 3px;
    width: 25px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #004080 0%, #0073e6 100%);
    color: #fff;
    padding: 6rem 0 3rem 0;
    text-align: center;
    position: relative;
}

.hero-section .hero-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: #ffcc00;
    color: #004080;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #e6b800;
    transform: scale(1.05);
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background-color: #fff;
    text-align: center;
}

.services-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: #f0f4f8;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease;
}

.service-item:hover,
.service-item:focus-within {
    transform: translateY(-10px);
}

.service-item h3 {
    margin-bottom: 1rem;
    color: #004080;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: #e6f0ff;
    text-align: center;
}

.about-section ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    text-align: left;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.about-section ul li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

/* Additional styling for About page sections */
.about-section section {
    margin-bottom: 2.5rem;
}

.about-section h3 {
    font-size: 1.8rem;
    color: #004080;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid #004080;
    padding-bottom: 0.3rem;
}

.about-section p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.about-section h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* About grid layout */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.about-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.about-section p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #333;
}

/* Profile Image */
.about-section .profile-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 1rem;
    box-shadow: none;
    border: none;
    transition: none;
}

.about-section .profile-image:hover {
    transform: scale(1.05);
}

/* Contact Info Section */
.about-section .contact-info {
    background-color: #ecf0f1;
    padding: 2rem 2.5rem;
    margin: 2rem auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    max-width: 600px;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
}

.about-section .contact-info p {
    flex: 1 1 45%;
    font-size: 1rem;
    color: #004080;
    display: flex;
    align-items: center;
    margin: 0;
}

.about-section .contact-info .icon {
    font-size: 1.4rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background-color: #fff;
    text-align: center;
}

/* Contact Info Section */
.contact-info {
    background-color: #ecf0f1;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.contact-info h3 {
    color: #004080;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #004080;
    padding-bottom: 0.5rem;
}

.contact-info p {
    font-size: 1rem;
    color: #004080;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.contact-info .icon {
    font-size: 1.3rem;
    margin-right: 0.6rem;
    flex-shrink: 0;
}

.contact-info a {
    color: #0073e6;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover,
.contact-info a:focus {
    text-decoration: underline;
}

.contact-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #004080;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0073e6;
    outline: none;
}

.form-message {
    margin-top: 1rem;
    font-weight: 600;
    color: green;
}

/* Footer */
.site-footer {
    background-color: #004080;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.site-footer a {
    color: #fff;
    text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffcc00;
}

/* Responsive */
@media (max-width: 768px) {
    .site-nav ul {
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        padding-top: 5rem;
        display: none;
        border-radius: 0;
        box-shadow: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
        opacity: 0;
        transform: translateY(-20px);
        z-index: 1001;
        justify-content: center;
        align-items: center;
    }

    .site-nav ul.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .site-nav ul li {
        margin: 1.5rem 0;
    }

    .site-nav a {
        font-size: 1.8rem;
        padding: 0.5rem 1rem;
        display: block;
        color: #fff;
        font-weight: 700;
        text-align: center;
        transition: color 0.3s ease;
    }

    .site-nav a:hover,
    .site-nav a:focus {
        color: #ffcc00;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 1100;
        width: 40px;
        height: 30px;
    }

    .nav-toggle .hamburger,
    .nav-toggle .hamburger::before,
    .nav-toggle .hamburger::after {
        background-color: #fff;
        height: 4px;
        width: 35px;
        border-radius: 3px;
        position: absolute;
        left: 0;
        transition: all 0.4s ease;
        display: block;
    }

    .nav-toggle .hamburger {
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle .hamburger::before {
        content: '';
        top: -12px;
    }

    .nav-toggle .hamburger::after {
        content: '';
        top: 12px;
    }

    .nav-toggle.active .hamburger {
        background-color: transparent;
    }

    .nav-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }
}
