/* General Reset to Prevent Header Overflow */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll caused by overflow */
    box-sizing: border-box; /* Include padding and border in width */
    width: 100%; /* Ensure width does not exceed viewport */
}

/* Body Font */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #f8f8f8;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* Background color during loading */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it appears above everything else */
    transition: opacity 0.5s ease; /* Smooth fade-out */
}

/* Logo Bouncy Animation */
.preloader-logo {
    width: 150px; /* Adjust logo size */
    height: auto;
    animation: bounce 1s infinite ease-in-out; /* Bouncy effect */
}

/* Keyframes for Bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px); /* Move up */
    }
}

/* Hide the menu toggle on larger screens */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* For Mobile Screens */
@media (max-width: 768px) {
    /* Re-arrange header layout */
    .main-header {
        justify-content: space-between;
        padding: 0.5rem 1rem;
    }

    .main-header .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #005baa; /* Solid background for slide-out menu */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 999;
        padding: 2rem 1rem;
        box-sizing: border-box;
    }

    .main-header .main-nav ul {
        flex-direction: column;
        gap: 2rem;
        margin: 0;
    }

    .main-header .main-nav ul li a {
        font-size: 1.2rem;
    }

    /* Move TSA button to bottom of the menu */
    .main-header .main-nav .btn-tsa {
        margin-left: 0;
        margin-top: 2rem;
    }

    /* Show the menu toggle icon on mobile */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        z-index: 1001; /* Ensure it stays above the nav */
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: #fff;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* When the menu is open, transform to 'X' */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Show Nav when open class is added */
    .main-nav.open {
        right: 0;
    }
}



/* Main Header Fix */
.main-header {
    position: fixed; /* Fixed at the top */
    top: 0;
    left: 0; /* Align to the very left of the viewport */
    width: 100%; /* Ensure header spans the viewport width */
    z-index: 1000;
    display: flex;
    justify-content: space-between; /* Align logo and nav properly */
    align-items: center; /* Center vertically */
    padding: 1rem 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url('../img/header-bg.jpg') no-repeat center center/cover; /* Background image with overlay */
    box-sizing: border-box; /* Include padding in width calculation */
    border-bottom: 2px solid #005baa; /* Optional: Add a bottom border for emphasis */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}


/* Logo */
.main-header .logo img {
    max-height: 70px; /* Restrict the logo size */
    display: block;
}

/* Navigation Menu */
.main-header .main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem; /* Space between items */
    margin: 0; /* Reset margins */
    padding: 0; /* Reset padding */
}

.main-header .main-nav ul li {
    position: relative;
}

.main-header .main-nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.main-header .main-nav ul li a:hover {
    color: #ffd700; /* Gold hover effect */
}

/* Button Styling */
.btn-tsa {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #005baa; /* Blue background */
    border: 2px solid #005baa; /* Blue border */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none;
    transition: all 0.3s ease-in-out; /* Smooth transition */
}

/* Hover Effects */
.btn-tsa:hover {
    background-color: white; /* Change background to white */
    color: #005baa; /* Blue text on hover */
    border: 2px solid #005baa; /* Keep the border */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
    transform: translateY(-3px); /* Slight upward movement */
}

/* Adjust positioning inside the header */
.header .btn-tsa {
    margin-left: auto; /* Push the button to the far right */
    align-self: center; /* Vertically align in the header */
    margin-right: 20px; /* Add spacing from the edge */
}

/* Hero Section */
/* Hero Basic Section */
.hero-basic {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    background: linear-gradient(to bottom, rgba(255, 111, 0, 0.418), rgba(0, 0, 128, 0.7)),
                url('../img/ser6.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    box-sizing: border-box;
}

/* Content Styling */
.hero-basic .hero-content {
    background: rgba(255, 255, 255, 0.9); /* White background with transparency */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 600px; /* Limit the width */
    color: #000; /* Dark text */
    position: relative; /* Required for the pseudo-element */
    top: 40px;
    
}

/* Orange Line Below Content */
.hero-basic .hero-content::after {
    content: "";
    position: absolute;
    bottom: -10px; /* Adjust the distance below the content */
    left: 50%;
    transform: translateX(-50%);
    width: 50%; /* Adjust the length of the line */
    height: 3px; /* Thickness of the line */
    background-color: #ff4500; /* Orange color */
    border-radius: 2px; /* Rounded edges for the line */
}

.hero-basic h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-basic p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Adjust for Smaller Screens */
@media (max-width: 768px) {
    .hero-basic {
        height: 60vh;
        top: 10px;
    }

    .hero-basic .hero-content {
        padding: 1.5rem;
    }

    .hero-basic h1 {
        font-size: 1.5rem;
    }

    .hero-basic p {
        font-size: 0.5rem;
        text-align: justify;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem; /* Space between buttons */
    margin-top: 1rem;
}

.btn-primary, .btn-secondary {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-primary {
    background: #005baa;
    color: white;
}

.btn-primary:hover {
    background: #003d80;
}

/* About Button (Secondary Style) */
.btn-secondary {
    display: inline-block;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px; /* Rounded corners */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    color: white;
    border: 2px solid white;
    background-color: transparent; /* Transparent background */
    transition: all 0.6s ease; /* Slow transition for hover effect */
    border-radius: 0px;
}

/* Hover Effect for About Button */
.btn-secondary:hover {
    background-color: white; /* Fill with white background */
    color: #005baa; /* Change text color */
    transform: translateY(-2px); /* Slight upward movement */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
}


/* Button Container */
.custom-button {
    display: inline-block;
    position: relative; /* Required for positioning the underline */
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    background-color: #00aef0; /* Blue background */
    text-decoration: none;
    border-radius: 5px; /* Rounded corners */
    overflow: visible; /* Allow underline to be visible */
    transition: box-shadow 0.3s ease-in-out; /* Smooth shadow effect */
    border-radius: 0px;
}

/* Arrow Styling */
.custom-button .arrow {
    display: inline-block;
    margin-left: 0.5rem; /* Initial position */
    transition: transform 0.3s ease-in-out; /* Smooth push effect */
}

/* Hover Effect for Button */
.custom-button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

/* Arrow Movement on Hover */
.custom-button:hover .arrow {
    transform: translateX(5px); /* Push the arrow forward */
}

/* Orange Underline */
.custom-button::after {
    content: ""; /* Ensure the pseudo-element is created */
    position: absolute;
    bottom: -5px; /* Position slightly below the button */
    left: 0;
    width: 0%; /* Start hidden */
    height: 3px; /* Thickness of the underline */
    background-color: #ff4500; /* Orange color */
    transition: width 0.3s ease-in-out; /* Smooth underline animation */
    z-index: 1; /* Ensure it is visible */
}

/* Extend Orange Underline on Hover */
.custom-button:hover::after {
    width: 100%; /* Expand the underline across the button */
}


/* Our Services Section */
.our-services-section {
    padding: 4rem 5%;
    background-color: #f9f9f9;
    text-align: center;
}

.services-header h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #003d80;
    margin-bottom: 1rem;
}

.services-header p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.services-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.25rem;
    color: #003d80;
    margin: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
    margin: 0 1rem 1rem;
    line-height: 1.5;
}

.service-card .learn-more-btn {
    display: block;
    text-align: center;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background-color: #005baa;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.service-card .learn-more-btn:hover {
    background-color: #003d80;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-cards-container {
        grid-template-columns: 1fr;
    }

    .service-card img {
        height: 200px;
    }
}




/* Footer Section */
.site-footer {
    position: relative;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
    url('../img/hr.jpeg') no-repeat center center/cover;
    color: white;
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-left {
    flex: 1.5;
}

.footer-logo {
    width: 150px;
    margin-bottom: 1rem;
}

.footer-left p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.locations li {
    list-style: none;
    margin-bottom: 0.5rem;
    color: #ff4500;
}

.locations li i {
    margin-right: 0.5rem;
    color: #ffcc00;
}

.footer-right {
    flex: 2.5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.footer-section {
    text-align: left;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
}

.footer-section .red-line {
    display: inline-block;
    width: 5px;
    height: 20px;
    background-color: #ff4500;
    margin-right: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li i {
    margin-right: 0.5rem;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.footer-section a:hover {
    color: #ff4500;
}

.social-icons a {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: #ffcc00;
    text-decoration: none;
}

.social-icons a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #ffffff;
    padding-top: 1rem;
    font-size: 0.8rem;
    margin: 0 auto;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-bottom a:hover {
    color: #ffffff;
}

.to-top {
    display: inline-block;
    position: fixed;
    bottom: 0;
    right: 1300px;
    background-color: #ff4500;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0px;
    font-size: 1rem;
    font-weight: LIGHT;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}


.to-top:hover {
    background-color: #ff1900;
    transform: translateY(-3px);
    color: #ffffff;
}

.fixed-button {
    position: fixed;
    bottom: 0;
    left: 0;
    /* width: 100%; */
    background-color: #ff4500; /* Red background */
    color: white;
    text-align: center;
    padding: 1rem 0;
    z-index: 1000; /* Ensure it stays on top of other elements */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
    width: 300px;
    height: 15px;
    margin: auto 1200px;
}

.fixed-button:hover {
    background-color: #ff1900; /* Darker red on hover */
    transform: translateY(-2px); /* Slight upward movement */
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.4); /* Enhanced shadow on hover */
}

.fixed-button a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.fixed-button i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .site-footer{
        flex-direction: column;
    }
    .footer-container{
        flex-direction: column;
    }
    .footer-section{
        font-size: 0.5rem;
    }
    .fixed-button {
        width: 50px;
        height: 10px;
    }
    
}