/* ========== Global Styles ========== */
html {
    scroll-behavior: smooth;
  }
  
  div {
    scroll-margin-top: 60px; /* Adjust this value based on your header's height */
  }
  
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;

}

nav {
    z-index: 1000; /* Ensure nav always stays above other content */
    background-color: #eaf4f6;
    position: relative;
}

.navbar-brand img {
    height: 80px;
    margin: -1rem;
}
@media (max-width: 992px) {
    .navbar-brand{
        margin: 0!important;
    }
}

.navbar-nav .nav-link {
    margin-left: 2rem; /* Default for larger screens */
}

@media (max-width: 992px) {
    .navbar-nav .nav-link {
        margin-left: 0; /* Reset margin for mobile screens */
    }
}

.navbar-toggler{
    border: none!important;
    outline: none!important;
}
/* Base style for the hamburger icon */
.navbar-toggler-icon {
    width: 30px;
    height: 3px;
    background-color: #007bff;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    width: 30px;
    height: 3px;
    background-color: #007bff;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon::before {
    top: -10px;
}

.navbar-toggler-icon::after {
    top: 10px;
}

/* When the menu is open */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent; /* Hide the middle bar */
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}


.navbar-nav .nav-link i.fab.fa-skype {
    margin-right: 5px; /* Adjust spacing between the icon and text */
    font-size: 1.2rem; /* Adjust icon size */
    color: #00aff0; /* Skype's brand color */
}

    /* Custom Dropdown Styles */
    .dropdown-menu {
        background-color: #007bff; /* Blue background */
        border: none;
        border-radius: 8px;
        padding: 0;
        margin-top: 0.5rem;
    }

    .dropdown-menu .dropdown-item {
        color: #ffffff; /* White text */
        font-size: 1rem;
        padding: 10px 15px;
        text-align: center;
        transition: background-color 0.3s ease;
    }

    .dropdown-menu .dropdown-item:hover {
        background-color: #0056b3; /* Darker blue on hover */
        color: #ffffff;
    }

.dark-blue {
    position: relative;
    color: #00274d !important;
    z-index: 10; /* Ensure text always appears above overlays */
}
.blue-title{
    
    position: relative;
    color: #1f5ba5 !important;
    z-index: 10; /* Ensure text always appears above overlays */
}

/* ========== Header Styles ========== */
header {
    background: url('img/hero-desktop-background.avif') no-repeat center center fixed;
    background-position: top center;
    background-size: 150%;
    position: relative;
    height: 60vh;
    display: flex;
    width: 100%;
    overflow: hidden;
    z-index: 5; /* Ensure header appears below navbar */
    
}
/* Change background image for screens narrower than 1180px */
@media (max-width: 1179px) {
    header {
        background: url('img/hero-image-background.avif') no-repeat center center fixed;
        background-position: top center;

    }
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 76, 133, 0.3);
    z-index: 1; /* Background overlay */
    pointer-events: none;
}

.overlay {
    background-color: rgba(0, 48, 91, 0.6);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 40%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: right;
    padding: 2rem;
    z-index: 10; /* Ensure overlay content appears above the background */
}
/* Media query for screens narrower than 870px */
@media (max-width: 870px) {
    .overlay {
        width: 70%; /* Adjust width for smaller screens */
    }
}
.overlay h1 {
    margin-top: 40%;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 3rem;
    font-weight: bold;
    z-index: 15; /* Ensure header text is on top */
}

/* ========== Service Section Styles ========== */
.service-container {
    padding: 4rem 2rem;
    position: relative;
    background: url('img/chess-background.avif') no-repeat center center;
    background-size: cover;
    color: #00274d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
}

.service-container h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.service-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1; /* Background overlay */
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    justify-items: start;
    align-items: center;
    margin: auto;
    position: relative;
    z-index: 10; /* Ensure grid content appears over overlay */
}

.service-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    font-size: 1.5rem;
    color: #00274d;
    z-index: 15; /* Ensure service items are on top */
}

.service-item i {
    font-size: 2rem;
    color: #00274d;
}

.service-item span {
    font-weight: bold;
}

.arrow-down {
    margin-top: 2rem;
    font-size: 2rem;
    color: #00274d;
    animation: bounce 2s infinite;
    z-index: 15;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========== About Us Section Styles ========== */
.about-us-container {
    background: url('img/about-us-background.avif') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 4rem 2rem;
    position: relative;
    z-index: 5;
}

.about-us-container h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.about-us-container p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
    text-align: justify;
    position: relative;
    z-index: 10;
}

/* ========== Office Section Styles ========== */
.office-container {
    padding: 4rem 2rem;
    position: relative;
    color: #00274d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    background-color: #eaf4f6;
}

.office-container h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    z-index: 10;
}


.office-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    position: relative;
    z-index: 10;
}

.office-card h5 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1rem;
    color: #275bbe;
    text-align: center;
    position: relative;
    z-index: 10;
}

.office-card p {
    text-align: center;
    margin: 0.5rem 0;
    position: relative;
    z-index: 10;
}

.office-card p.phone {
    color: #000;
    font-size: 1rem;
}

.phone a{
    text-decoration: none;
    color: #000;
}
.phone a:hover{
    text-decoration: none;
    color: #0056b3;
}

/* ========== Footer Styles ========== */
.footer-section {
    background-image: url('img/footer-background.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 50px 20px;
    text-align: left;
    position: relative;
    z-index: 0;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 45, 90, 0.8);
    z-index: 1;
    pointer-events: none;
}

.footer-section .container {
    position: relative;
    z-index: 10;
}

.footer-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
}

.contact-info p,
.contact-info a {
    color: #ffffff;
    font-size: 1rem;
    margin: 5px 0;
}

.contact-info a:hover {
    color: #83b7e6;
    text-decoration: underline;
}

.map-section iframe {
    border-radius: 5px;
}

.contact-form h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #83b7e6;
    border-radius: 5px;
}

.contact-form .btn-primary {
    background-color: #83b7e6;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    color: #ffffff;
    border-radius: 5px;
    width: 100%;
}

.contact-form .btn-primary:hover {
    background-color: #0056b3;
}

.back-to-top {
    margin-top: 20px;
}

.back-to-top a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
}

.back-to-top a:hover {
    color: #83b7e6;
}

/* ========== Fade-In Animation ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px); /* Starts slightly below its final position */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.show {
    z-index: 5;
    opacity: 1;
    transform: translateY(0); /* Moves to its final position */
}
