@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Work+Sans:wght@600;700&display=swap');

html {
    scroll-behavior: smooth;
}

/* --- Root Colors --- */
:root {
    --primary-color: #0055A4;
    --secondary-color: #00AEEF;
    --dark-grey: #333333;
    --light-grey: #f4f4f4;
    --text-color: #555555;
    --white-color: #ffffff;
}

/* --- Global Setup --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--light-grey);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
}

.top-bar-left p {
    margin: 0;
    margin-right: 20px;
}

.top-bar-left i, .top-bar-right i {
    color: var(--primary-color);
    margin-right: 8px;
}

.top-bar-right a {
    margin-left: 15px;
    color: var(--dark-grey);
    transition: color 0.3s;
}

.top-bar-right a:hover {
    color: var(--secondary-color);
}

/* --- Header & Navigation --- */
header {
    background: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--dark-grey);
    padding: 20px 15px;
    display: block;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: var(--white-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin-top: 0;
    min-width: 240px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    padding: 10px 20px;
}

.dropdown-menu a:hover {
    background-color: var(--light-grey);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    background-image: linear-gradient(rgba(0,170,239,0.7), rgba(0,85,164,0.7)), url('images/hero-background.jpg');
    height: 85vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Work Sans', sans-serif;
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    animation: slideIn 1s ease-out;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #00aEEF, #0055A4);
    color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0,85,164,0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0055A4, #00aEEF);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0,85,164,0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0,85,164,0.2);
}

/* --- Services Section --- */
.services {
    padding: 80px 0;
    background-color: var(--light-grey);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Work Sans', sans-serif;
    font-size: 36px;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--white-color);
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,85,164,0.1);
}

.service-icon {
    height: 60px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.service-item:hover .service-icon {
    transform: rotate(10deg) scale(1.1);
}

.service-item h3 {
    font-family: 'Work Sans', sans-serif;
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- About Section --- */
.about-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.features-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.feature-item i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.feature-item h3 {
    font-family: 'Work Sans', sans-serif;
    font-size: 20px;
    color: var(--dark-grey);
    margin: 0 0 5px 0;
}

.feature-item p {
    margin: 0;
    font-size: 15px;
}

/* --- News Section --- */
.news {
    padding: 80px 0;
    background-color: var(--light-grey);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,85,164,0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.news-card-content h3 {
    font-family: 'Work Sans', sans-serif;
    font-size: 20px;
    color: var(--dark-grey);
    margin: 0 0 15px 0;
}

.news-card-content p {
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.read-more {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more i {
    margin-left: 5px;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-grey);
    color: #e0e0e0;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Work Sans', sans-serif;
    color: var(--white-color);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 15px;
    line-height: 1.7;
}

.social-links a {
    color: var(--white-color);
    text-decoration: none;
    font-size: 18px;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Some updates  */


/* --- Footer Links Fix --- */
.footer-col ul a {
    text-decoration: none;
    color: #e0e0e0; /* Soft light grey for default */
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col ul a:hover {
    color: var(--secondary-color); /* Brighter blue on hover */
    padding-left: 5px;
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 40px;
    background: var(--light-grey);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-details h3 {
    font-family: 'Work Sans', sans-serif;
    font-size: 24px;
    color: var(--dark-grey);
    margin-top: 0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-top: 25px;
    font-size: 16px;
}

.contact-info-item i {
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 20px;
    width: 25px;
    padding-top: 4px;
}

/* --- Form Styles --- */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-grey);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: var(--white-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 85, 164, 0.2);
    transform: translateY(-1px);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* --- Submit Button --- */
.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #00aEEF, #0055A4);
    color: var(--white-color);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,85,164,0.2);
}

.contact-form button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0,85,164,0.3);
}

/* --- Responsive Contact Section --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        padding: 30px;
        gap: 30px;
    }
}


/* --- Animations --- */
@keyframes slideIn {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--white-color); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    nav ul.active { display: flex; }
    nav li { width: 100%; text-align: center; }
    .dropdown-menu { position: static; display: none; box-shadow: none; width: 100%; }
    .dropdown.open .dropdown-menu { display: block; }
    .menu-toggle { display: block; }
    .hero { height: 70vh; }
    .hero-content h1 { font-size: 38px; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar .container { flex-direction: column; gap: 10px; }
    .top-bar-left { flex-direction: column; align-items: center; gap: 5px; }
    .top-bar-left p { margin: 0; }
    .top-bar-right { justify-content: center; }
    .hero-content h1 { font-size: 32px; }
    .hero-content p { font-size: 16px; }
    .btn-primary, .btn-secondary { padding: 12px 25px; font-size: 14px; }
    .section-title h2 { font-size: 30px; }
    .services, .news, .contact-section { padding: 60px 0; }
    .contact-grid { padding: 30px; }
}

/* --- ADDED MODAL STYLES --- */

/* The gray background overlay */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001; /* Higher than the header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto; /* Enable scroll if needed */
}

/* The white pop-up box */
.modal-content {
    background-color: var(--white-color);
    position: relative;
    margin: 5% auto; /* Centered with space from top */
    padding: 40px;
    border-radius: 12px;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s;
}

/* The close button (X) */
.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--dark-grey);
}

/* Styles for the content inside the modal */
#modal-body-content h2 {
    font-family: 'Work Sans', sans-serif;
    color: var(--primary-color);
    margin-top: 0;
}

#modal-body-content p {
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Simple fade-in animation for the modal */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}