/* Copy of Our Service CSS with terminals-specific content */
/* General Reset to Prevent Header Overflow */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
}

/* 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;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* Logo Bouncy Animation */
.preloader-logo {
    width: 150px;
    height: auto;
    animation: bounce 1s infinite ease-in-out;
}

/* Keyframes for Bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Main Header */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    box-sizing: border-box;
    overflow: hidden;
}

/* Logo */
.main-header .logo img {
    max-height: 100px;
    display: block;
    margin: -20px 200px;
}

/* Navigation Menu */
.main-header .main-nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    margin: 25px;
    padding: 0;
}

.main-header .main-nav ul li {
    position: relative;
}

.main-header .main-nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 200;
    font-size: 1rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-header .main-nav ul li a:hover {
    color: #ffd700;
}

/* Button Styling */
.btn-tsa {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    background-color: #005baa;
    border: 2px solid #005baa;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    position: relative;
    animation: bounceColor 1s infinite;
}

.animated-hover {
    animation: bounceColor 1.5s infinite;
}

.btn-tsa:hover {
    background-color: white;
    color: #005baa;
    border: 2px solid #005baa;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transform: none;
    animation: none;
}

@keyframes bounceColor {
    0%, 100% {
        transform: translateY(0);
        background-color: #005baa;
        color: white;
    }
    50% {
        transform: translateY(-5px);
        background-color: white;
        color: #005baa;
    }
}

.header .btn-tsa {
    margin-left: auto;
    align-self: center;
    margin-right: 20px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero-basic {
    position: relative;
    width: 100%;
    height: 70vh;
    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;
}

.hero-basic .hero-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    color: #000;
    position: relative;
    top: 40px;
}

.hero-basic .hero-content::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background-color: #ff4500;
    border-radius: 2px;
}

.hero-basic h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-basic p {
    font-size: 1rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    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;
}

.btn-secondary {
    display: inline-block;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    color: white;
    border: 2px solid white;
    background-color: transparent;
    transition: all 0.6s ease;
}

.btn-secondary:hover {
    background-color: white;
    color: #005baa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-button {
    display: inline-block;
    position: relative;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    background-color: #00aef0;
    text-decoration: none;
    border-radius: 0px;
    overflow: visible;
    transition: box-shadow 0.3s ease-in-out;
}

.custom-button .arrow {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease-in-out;
}

.custom-button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-button:hover .arrow {
    transform: translateX(5px);
}

.custom-button::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #ff4500;
    transition: width 0.3s ease-in-out;
    z-index: 1;
}

.custom-button:hover::after {
    width: 100%;
}

.terminals-section {
    padding: 50px 20px;
    background-color: #f5f5f5;
    text-align: center;
}

.terminals-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.terminals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.terminal-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s;
}

.terminal-card:hover {
    transform: translateY(-10px);
}

.terminal-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.terminal-card img:hover {
    border: solid rgb(84, 102, 193) 5px;
}

.terminal-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.terminal-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.cta-button {
    display: block;
    text-align: center;
    background-color: rgb(84, 102, 193);
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #0013e6;
    transform: scale(1.05);
}

.certifications {
    text-align: center;
    padding: 50px 0;
}

.certification-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.certification-logo img {
    width: 120px;
    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: 0;
    margin-right: 310px;
    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;
    background-color: #ff4500;
    color: white;
    text-align: center;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
    width: 300px;
    height: 15px;
}

.fixed-button:hover {
    background-color: #ff1900;
    transform: translateY(-2px);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.4);
}

.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;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-header .logo img {
        margin: -20px 50px;
    }
}

@media (max-width: 1024px) {
    .main-header .logo img {
        margin: -20px 20px;
    }
    
    .main-nav ul {
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .to-top {
        margin-right: 5px;
        bottom: 60px;
    }
    
    .fixed-button {
        width: 200px;
    }
    
    .fixed-button a {
        font-size: 0.85rem;
    }
}

@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;
    }
    
    .to-top {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        margin-right: 5px;
        bottom: 50px;
    }
    
    .fixed-button {
        width: 150px;
        font-size: 0.75rem;
        padding: 0.8rem 0;
    }
    
    .fixed-button a {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .to-top {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        bottom: 45px;
    }
    
    .fixed-button {
        width: 120px;
        font-size: 0.7rem;
        padding: 0.6rem 0;
    }
    
    .fixed-button a {
        font-size: 0.65rem;
    }
}