/* 
   Yemen Egypt - Custom CSS
   Brand Colors:
   Primary Blue: #244A9A
   Gold: #F4C13A
   Soft Blue: #4A6FC1
   Neutral Gray: #A6A6A6
   Warm Gold: #F5B942
*/

:root {
    --primary-blue: #244A9A;
    --primary-gold: #F4C13A;
    --soft-blue: #4A6FC1;
    --neutral-gray: #A6A6A6;
    --warm-gold: #F5B942;
    --white: #ffffff;
    --dark: #1a1a1a;
    --font-heading: 'Brave Eightyone', sans-serif;
    /* Fallback if not loaded */
    --font-body: 'Open Sauce', sans-serif;
    /* Fallback */
    --transition-speed: 0.3s;
}

/* Import Google Fonts as closest match if waiting for local files */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Rajdhani:wght@500;600;700&display=swap');

body {
    font-family: 'Outfit', sans-serif;
    /* "Open Sauce" alternative */
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Rajdhani', sans-serif;
    /* "Brave Eightyone" alternative */
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
}

/* --- Utilities --- */
.text-gold {
    color: var(--primary-gold);
}

.text-blue {
    color: var(--primary-blue);
}

.bg-blue {
    background-color: var(--primary-blue);
}

.bg-gold {
    background-color: var(--primary-gold);
}

.btn-primary-custom {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--primary-gold);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: transparent;
    color: var(--primary-gold);
}

.btn-secondary-custom {
    background-color: transparent;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--white);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-custom:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* --- Navigation --- */
.navbar-custom {
    background-color: var(--primary-blue);
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    color: var(--primary-gold) !important;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin-left: 20px;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold) !important;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(36, 74, 154, 0.8), rgba(36, 74, 154, 0.6)), url('/assets/img/hero-bg.jpg');
    /* Placeholder image path */
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    animation: slideUp 0.8s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #e0e0e0;
    animation: slideUp 1s ease-out;
}

.hero-btns {
    animation: slideUp 1.2s ease-out;
}

/* --- Services Section --- */
/* --- Services Section --- */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 15px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.service-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.1) 100%);
    transition: background 0.4s ease;
}

.service-card:hover .service-overlay {
    background: linear-gradient(to top, rgba(36, 74, 154, 0.9) 0%, rgba(36, 74, 154, 0.6) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.service-content {
    transition: transform 0.4s ease;
}

.service-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.service-card:hover .service-details {
    max-height: 200px;
    /* Approximate height for content */
    opacity: 1;
    margin-top: 10px;
}

.service-card:hover i.text-gold {
    padding-left: 5px;
    transition: padding 0.3s ease;
}

/* Delay animations for each card */
.row .col-md-4:nth-child(1) .service-card {
    animation-delay: 0.1s;
}

.row .col-md-4:nth-child(2) .service-card {
    animation-delay: 0.2s;
}

.row .col-md-4:nth-child(3) .service-card {
    animation-delay: 0.3s;
}

.row .col-md-4:nth-child(4) .service-card {
    animation-delay: 0.4s;
}

.row .col-md-4:nth-child(5) .service-card {
    animation-delay: 0.5s;
}

.row .col-md-4:nth-child(6) .service-card {
    animation-delay: 0.6s;
}

.hero-slider .carousel-item {
    height: 85vh;
    min-height: 600px;
    background-color: #000;
    overflow: hidden;
}

.hero-slider .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.6;
    animation: zoomEffect 20s infinite linear;
}

.hero-slider .carousel-caption {
    bottom: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    z-index: 2;
}

.hero-slider h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards 0.5s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slider p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards 1s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-slider .btn {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 1.5s;
}

/* Specific active state animations for carousel */
.carousel-item.active h1,
.carousel-item.active p,
.carousel-item.active .btn {
    animation-play-state: running;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Services Section --- */
/* Removed duplicate service-card rules */

.service-icon {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* --- About Section --- */
.about-section {
    background-color: var(--white);
    position: relative;
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

/* --- Footer --- */
.footer-custom {
    background-color: var(--primary-blue);
    color: var(--white);
    padding-top: 60px;
    padding-bottom: 20px;
}

.footer-heading {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1d1d1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.social-icons a {
    color: var(--white);
    margin-right: 15px;
    font-size: 18px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-gold);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Animations --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- CTA Section --- */
.cta-section {
    background-image: url('https://images.unsplash.com/photo-1548695607-9c73430ba065?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    /* Logistics Background */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(36, 74, 154, 0.95), rgba(36, 74, 154, 0.8));
}

.cta-icon i {
    animation: pulse 2s infinite;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-gold {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #fff;
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        height: auto;
        padding: 100px 0;
    }
}