@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary-blue: #3b82f6;
    /* Even brighter blue */
    --secondary-blue: #2563eb;
    --accent-orange: #fbbf24;
    --accent-orange-glow: rgba(251, 191, 36, 0.3);
    --text-dark: #0f172a;
    --text-gray: #4b5563;
    --bg-light: #ffffff;
    /* Pure white background */
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    padding: 1rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo img {
    height: 75px;
    filter: brightness(1.5) contrast(1.2);
    transition: var(--transition);
}

header.scrolled .logo {
    padding: 0;
    background: transparent;
}

header.scrolled .logo img {
    height: 60px;
    filter: brightness(1.1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    opacity: 0.8;
}

header:not(.scrolled):not(.menu-open) nav ul li a {
    color: white;
    /* Visible on dark hero images */
    opacity: 0.9;
}

header:not(.scrolled):not(.menu-open) .logo img {
    filter: brightness(1.5) contrast(1.2);
}

header:not(.scrolled):not(.menu-open) .menu-toggle span {
    background: white;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-orange);
    opacity: 1;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* --- Slider Section --- */
.slider-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.05);
    /* Slightly brighter */
    z-index: -1;
}

.slide-content {
    max-width: 900px;
    padding: 0 2rem;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    opacity: 0;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    /* Softer but wide shadow */
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2.5rem;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:hover {
    background: transparent;
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 0 20px var(--accent-orange-glow);
}

/* --- Sections --- */
section {
    padding: 100px 5%;
    min-height: 50vh;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--text-dark);
    /* Darker for better clarity */
    margin-bottom: 10px;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

#real-world-map {
    width: 100%;
    height: auto;
    display: block;
}

#real-world-map path {
    fill: rgba(59, 130, 246, 0.1);
    stroke: rgba(59, 130, 246, 0.3);
    stroke-width: 1;
    transition: var(--transition);
    cursor: pointer;
}

#real-world-map path:hover {
    fill: rgba(59, 130, 246, 0.4);
    stroke: var(--primary-blue);
    filter: drop-shadow(0 0 8px var(--primary-blue));
}

#real-world-map path.egypt-highlight {
    fill: var(--accent-orange);
    stroke: var(--accent-orange);
    filter: drop-shadow(0 0 10px var(--accent-orange));
    animation: pulseHighlight 2s infinite alternate;
}

@keyframes pulseHighlight {
    0% {
        filter: drop-shadow(0 0 5px var(--accent-orange));
        opacity: 0.8;
    }

    100% {
        filter: drop-shadow(0 0 15px var(--accent-orange));
        opacity: 1;
    }
}

.card:hover {
    transform: translateY(-10px);
    background: var(--card-bg);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* --- Alternating Services --- */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.service-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-blue);
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-name {
    flex: 1;
    text-align: center;
}

.service-name h3 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.service-name h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.service-desc {
    flex: 1.5;
    padding: 0 20px;
}

.service-desc p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

@media (max-width: 768px) {

    .service-item,
    .service-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .service-name h3 {
        font-size: 1.8rem;
    }
}

/* --- Modern Luxury About --- */
.about-container {
    max-width: 1200px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-item:nth-child(even) {
    flex-direction: row-reverse;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--accent-orange);
    border-right: 5px solid var(--accent-orange);
    border-radius: 0 30px 0 0;
    z-index: -1;
}

.about-item:nth-child(even) .about-image::after {
    right: auto;
    left: -20px;
    border-right: none;
    border-left: 5px solid var(--accent-orange);
    border-radius: 30px 0 0 0;
}

.about-content {
    flex: 1;
}

.about-content h3 {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 800;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.feature-tag {
    padding: 8px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

@media (max-width: 992px) {

    .about-item,
    .about-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-image::after {
        display: none;
    }

    .about-content h3 {
        font-size: 2.2rem;
    }
}

/* --- Stats Section --- */
.stats-section {
    padding: 100px 5%;
    background: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/slider-1.jpg') center/cover;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-item h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
    display: inline-block;
}

.stat-suffix {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: white;
}

.stat-item p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    opacity: 0.8;
}

@media (max-width: 768px) {

    .stat-item h2,
    .stat-suffix {
        font-size: 3rem;
    }
}

/* --- Contact Section Refinement --- */
.contact-info-card {
    background: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 50px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.info-header h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.info-header p {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.info-details {
    margin: 40px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(10px);
}

.icon-box {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.text-box .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-bottom: 2px;
}

.text-box .value {
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-info-card {
        padding: 40px 30px;
    }
}

/* --- Forms --- */
form input,
form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* --- Main Footer --- */
.main-footer {
    background: #0f172a;
    color: white;
    padding: 100px 5% 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-family: 'Outfit', sans-serif;
    position: relative;
    padding-bottom: 12px;
    text-align: center;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.footer-col p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 25px;
    filter: brightness(1.2);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #64748b;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 30px;
}

.legal-links a {
    color: #64748b;
    text-decoration: none;
    transition: var(--transition);
}

.legal-links a:hover {
    color: white;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Footer --- */
footer {
    padding: 60px 5%;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: var(--text-gray);
    background: #fff;
}

.bg-subtle {
    background: #f1f5f9;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 10px;
    transition: var(--transition);
    transform-origin: center;
}

.menu-toggle span.open:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle span.open:nth-child(2) {
    opacity: 0;
}

.menu-toggle span.open:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        padding: 100px 2rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    nav ul li a {
        font-size: 1.8rem;
        color: var(--text-dark) !important; /* Force dark color on mobile menu */
        font-weight: 800;
    }

    header.scrolled .menu-toggle span,
    nav.active ~ .menu-toggle span {
        background: var(--text-dark);
    }
    
    /* Ensure toggle stays dark when menu is active regardless of scroll */
    header .menu-toggle span.open {
        background: var(--text-dark) !important;
    }

    .slide-content h1 {
        font-size: 2.8rem;
    }

    header.menu-open .logo img {
        filter: brightness(1) contrast(1);
    }


    section {
        padding: 60px 5%;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Global Reach Map --- */
.bg-dark-map {
    background-color: #0f172a;
    color: white;
}

.text-white {
    color: #ffffff !important;
}

.subtitle {
    color: #94a3b8;
    margin-top: 10px;
    font-size: 1.1rem;
}

.map-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

#real-world-map {
    width: 100%;
    height: auto;
    display: block;
}

#real-world-map path {
    fill: rgba(59, 130, 246, 0.1);
    stroke: rgba(59, 130, 246, 0.3);
    stroke-width: 1;
    transition: var(--transition);
    cursor: pointer;
}

#real-world-map path:hover {
    fill: rgba(59, 130, 246, 0.4);
    stroke: var(--primary-blue);
    filter: drop-shadow(0 0 8px var(--primary-blue));
}

#real-world-map path.egypt-highlight {
    fill: var(--accent-orange);
    stroke: var(--accent-orange);
    filter: drop-shadow(0 0 10px var(--accent-orange));
    animation: pulseHighlight 2s infinite alternate;
}

@keyframes pulseHighlight {
    0% {
        filter: drop-shadow(0 0 5px var(--accent-orange));
        opacity: 0.8;
    }

    100% {
        filter: drop-shadow(0 0 15px var(--accent-orange));
        opacity: 1;
    }
}

.map-tooltip {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border: 1px solid var(--primary-blue);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .map-tooltip {
        white-space: normal;
        width: 80%;
        text-align: center;
        font-size: 0.8rem;
    }
}
/* --- Map Connection Lines --- */
.route-line {
    fill: none;
    stroke: rgba(245, 158, 11, 0.4); /* subtle thin line */
    stroke-width: 1;
    transition: stroke 0.3s;
}

.route-line:hover {
    stroke: rgba(245, 158, 11, 1);
}

.traveling-ball {
    filter: drop-shadow(0 0 6px var(--accent-orange));
}

.egypt-highlight {
    fill: var(--accent-orange) !important;
    filter: drop-shadow(0 0 10px var(--accent-orange));
    transform-origin: center;
    transition: var(--transition);
}

.egypt-pointer {
    fill: rgba(245, 158, 11, 0.5);
    pointer-events: none;
}

