/* --- Global Styles & Variables --- */
:root {
    --primary-color: #005f73;
    --secondary-color: #0a9396;
    --accent-color: #ee9b00;
    --dark-color: #001219;
    --light-color: #f8f9fa;
    --text-color: #343a40;
    --white-color: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); }
ul { list-style: none; }

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Header --- */
header {
    background: var(--white-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo span {
    color: var(--secondary-color);
    font-weight: 400;
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    background-image: linear-gradient(rgba(0, 18, 25, 0.7), rgba(0, 18, 25, 0.7)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1600');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    margin: auto;
}

.hero h1 {
    color: var(--white-color);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* --- About Section --- */
.about-section {
    background-color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-text h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* --- Strengths Section --- */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.strength-card {
    background: var(--white-color);
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strength-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.strength-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.strength-card h4 {
    margin-bottom: 10px;
}

/* --- Services Section --- */
.services-section {
    background-color: var(--light-color);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.service-card h3 {
    color: var(--white-color);
    margin-bottom: 15px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
}


/* --- Vision & Values Section --- */
.vision-card {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 60px;
}

.vision-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vision-card p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    text-align: center;
}

.value-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.value-item h4 {
    margin-bottom: 5px;
}


/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

footer h4 {
    color: var(--white-color);
    margin-bottom: 20px;
}

footer .logo span {
    color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links ul li a:hover {
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact p i {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* --- Hamburger Menu --- */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* --- Hamburger to 'X' animation --- */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
    
    /* --- Mobile Navigation --- */
    .hamburger-menu {
        display: flex; /* Show the hamburger menu */
    }

    header nav {
        position: absolute;
        top: 75px; /* Height of the header */
        right: 0;
        background: var(--white-color);
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 10px 10px -5px rgba(0,0,0,0.1);
    }
    
    header nav.nav-active {
        max-height: 500px; /* A large enough value to show all links */
    }

    header nav ul {
        flex-direction: column;
        padding: 20px;
    }

    header nav ul li {
        margin: 0;
        text-align: center;
    }
    
    header nav ul li a {
        display: block;
        padding: 15px 0;
    }
}

/* --- Rule for Large Screens --- */
@media (min-width: 992px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Styles for Services Page --- */

/* Active Link in Navigation */
nav ul li a.active-link {
    color: var(--primary-color);
    font-weight: 700;
}

/* Page Hero (for pages other than home) */
.page-hero {
    background-image: linear-gradient(rgba(0, 18, 25, 0.8), rgba(0, 18, 25, 0.8)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1600');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
}

.page-hero h1 {
    color: var(--white-color);
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}


/* Service Details Sections */
.service-details-section {
    padding: 80px 0;
}

.service-details-section.alt-bg {
    background-color: var(--light-color);
}

.service-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-content-layout.reverse {
    grid-template-columns: 1fr 1fr;
}

.service-content-layout.reverse .service-text {
    order: -1;
}

.service-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.service-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-text h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
}

.features-list {
    list-style: none;
    padding-left: 0;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.features-list i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.features-list-grid {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.features-list-grid li {
    display: flex;
    align-items: center;
}

.features-list-grid i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Contact CTA Section */
.contact-cta-section {
    background-color: var(--light-color);
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.contact-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cta-button-container {
    text-align: center;
    margin-top: 40px;
}


/* Additional Responsive Rules for Services Page */
@media (max-width: 992px) {
    .service-content-layout,
    .service-content-layout.reverse {
        grid-template-columns: 1fr;
    }
    .service-content-layout.reverse .service-text {
        order: 0; /* Stack in natural order on mobile */
    }
}

@media (max-width: 768px) {
    .contact-details {
        grid-template-columns: 1fr;
    }
    .features-list-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Styles for Contact Page --- */

.contact-page-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form-container h3, .contact-info-container h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Form Styles */
#contact-form .form-group {
    margin-bottom: 20px;
}

#contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 95, 115, 0.2);
}

#contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Info Section Styles */
.contact-info-container .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-container .info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
    width: 25px;
    text-align: center;
}

.contact-info-container .info-item h4 {
    margin-bottom: 5px;
}

.contact-info-container .info-item p {
    margin-bottom: 5px;
    line-height: 1.5;
    color: #6c757d;
}

.contact-info-container .info-item a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Map Section */
.map-section {
    padding: 0;
    line-height: 0; /* Removes space below iframe */
}

/* Responsive adjustments for Contact page */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Form Status Message Styles --- */
#form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    display: none; /* Hidden by default */
}

#form-status.status-sending {
    display: block;
    background-color: #e9ecef;
    color: var(--text-color);
}

#form-status.status-success {
    display: block;
    background-color: #d1e7dd;
    color: #0f5132;
}

#form-status.status-error {
    display: block;
    background-color: #f8d7da;
    color: #842029;
}