/* Performance optimizations */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
header {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #fff;
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
header h1 {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 1px;
}
header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
header nav ul li {
    display: inline;
}
header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
header nav ul li a:hover {
    background: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
    transform: translateY(-2px);
}
main {
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 100px;
}
section {
    margin-bottom: 50px;
    padding: 0 20px;
}
section h2 {
    color: #003366;
    font-size: 2.2em;
    margin-bottom: 25px;
    border-bottom: 3px solid #ffcc00;
    padding-bottom: 10px;
    font-weight: 300;
}
section h3 {
    color: #004080;
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 400;
}
section p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.05em;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.value-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #ffcc00;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.value-item h3 {
    color: #003366;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}
.service-section {
    background: #f8f9fa;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 5px solid #003366;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.service-section h3 {
    color: #003366;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 500;
}
footer {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #e9ecef;
}
form label {
    font-weight: 600;
    color: #003366;
    display: block;
    margin-bottom: 5px;
}
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    width: 100%;
    padding: 12px;
    margin: 6px 0 20px 0;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease;
}
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}
form button {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}
form button:hover {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
    color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}
#captcha-question {
    font-weight: bold;
    margin-bottom: 6px;
    display: inline-block;
}

/* Image Styling */
.hero-image {
    text-align: center;
    margin: 30px 0;
}
.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.hero-img:hover {
    transform: scale(1.02);
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 20px;
}
.service-text {
    order: 1;
}
.service-image {
    order: 2;
    text-align: center;
}
.service-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Alternate layout for some service sections */
.service-section:nth-child(even) .service-content {
    grid-template-columns: 1fr 1fr;
}
.service-section:nth-child(even) .service-text {
    order: 2;
}
.service-section:nth-child(even) .service-image {
    order: 1;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.about-image {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.about-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
}
.image-caption {
    font-weight: 600;
    color: #003366;
    margin: 0;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    header nav ul {
        gap: 20px;
    }
    header nav ul li a {
        font-size: 1em;
        padding: 6px 12px;
    }
    main {
        padding: 30px 15px;
        margin: 10px;
    }
    section {
        padding: 0 10px;
    }
    section h2 {
        font-size: 1.8em;
    }
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-section {
        padding: 20px;
    }
    .service-content {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .service-text,
    .service-image {
        order: unset !important;
    }
    .about-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    form {
        padding: 20px;
        margin: 0 10px;
    }
    .hero-img {
        border-radius: 8px;
    }
}
