/* 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 */
    }
}



/* 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: 40vh;
    }

    .hero-basic .hero-content {
        padding: 1.5rem;
    }

    .hero-basic h1 {
        font-size: 2rem;
    }

    .hero-basic p {
        font-size: 0.9rem;
    }
}

.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 */
}

.map-container {
    margin-bottom: 20px; /* Add some space between the map and the form */
}


.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    flex: 1;
    padding-right: 20px;
}

.contact-form .form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.contact-info, .terminals-info {
    flex: 1;
    padding-left: 20px;
    border-left: 3px solid rgb(255, 72, 0);
}

.contact-info h3, .terminals-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p, .terminals-info p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.terminals-info {
    border-left: 3px solid rgb(255, 72, 0); /* New vertical line for the third section */
    padding-left: 20px;
    height: 367px;
}



.certifications {
    text-align: center;
    padding: 50px 0;
}

.certification-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.certification-logo img {
    width: 120px; /* Adjust size as needed */
    height: auto;
}


/* 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;
}
