/* ===== CSS VARIABLES & RESET ===== */
:root {
    /* Color Palette */
    --primary-color: #0b2e59; /* Dark Blue */
    --secondary-color: #d4a017; /* Gold/Orange */
    --accent-color: #f28c28; /* Orange */
    --text-color: #333333;
    --light-text: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #1e293b;

    /* Typography */
    --font-main: 'Cairo', sans-serif;
    
    /* Spacings & Shadows */
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Utilities */
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.text-center { text-align: center; }
.text-white { color: #fff; }
.mt-4 { margin-top: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.dir-ltr { direction: ltr; display: inline-block; }
.number-font { font-family: monospace; font-size: 1.1rem; letter-spacing: 1px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Typography Titles */
.section-title {
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title.light-title h2 {
    color: #fff;
}

.section-title .subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-title p {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 600px;
}

.text-center .section-title p {
    margin: 0 auto;
}

.section-title.light-title p {
    color: rgba(255, 255, 255, 0.8);
}


/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact span {
    margin-left: 20px;
}

.top-contact i {
    color: var(--secondary-color);
    margin-left: 5px;
}

.top-social a {
    color: #fff;
    margin-right: 15px;
    font-size: 1rem;
}

.top-social a:hover {
    color: var(--secondary-color);
}

/* ===== HEADER & NAV ===== */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition);
}

.site-logo:hover {
    transform: scale(1.02);
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(11, 46, 89, 0.9), rgba(11, 46, 89, 0.4));
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    color: #fff;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* HERO ANIMATIONS */
.slide-up {
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}
.slide-up-delay {
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
    transform: translateY(40px);
}
.slide-up-delay-2 {
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.6s;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}


/* ===== QUICK STATS ===== */
.quick-stats {
    background-color: var(--primary-color);
    padding: 3rem 0;
    color: #fff;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}


/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.about-features i {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-top: 3px;
}

.about-features span {
    font-weight: 600;
    color: var(--primary-color);
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.image-wrapper img {
    transition: var(--transition);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--secondary-color);
    color: #fff;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--box-shadow);
    border: 5px solid #fff;
    text-align: center;
    z-index: 2;
}

.experience-badge .badge-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .badge-text {
    font-size: 0.9rem;
    font-weight: 700;
}

/* ===== SERVICES ===== */
.services-section {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-bottom: 4px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-color);
    box-shadow: var(--box-shadow-hover);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card p {
    color: var(--light-text);
    transition: var(--transition);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-icon {
    color: #fff;
}

.service-card.highlight {
    background-color: var(--primary-color);
    color: #fff;
    border-bottom-color: var(--secondary-color);
}
.service-card.highlight h3, .service-card.highlight p {
    color: #fff;
}
.service-card.highlight:hover::before {
    background-color: var(--secondary-color);
}
.service-card.highlight:hover {
    border-bottom-color: var(--primary-color);
}

/* ===== PORTS DEALT WITH ===== */
.ports-section {
    padding: 6rem 0;
}

.ports-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

.ports-info {
    flex: 1;
}

.ports-map {
    flex: 1;
}

.ports-list {
    margin-top: 2rem;
}

.port-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-right: 4px solid transparent;
}

.port-item:hover {
    background: #fff;
    box-shadow: var(--box-shadow);
    border-right-color: var(--secondary-color);
    transform: translateX(-5px);
}

.port-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(11, 46, 89, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.port-details h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.port-details p {
    color: var(--light-text);
    font-size: 0.95rem;
}

.map-illustration img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}


/* ===== WHY US ===== */
.why-us-section {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 4rem;
    text-align: center;
}

.feature-box i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.feature-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}


/* ===== OFFICIAL INFO ===== */
.official-info-section {
    padding: 6rem 0 3rem 0;
}

.info-card-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.info-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2.5rem;
    text-align: center;
}

.info-header i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.info-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.info-header p {
    opacity: 0.8;
}

.info-body {
    padding: 3rem;
}

.official-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.official-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.official-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.official-list .label {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.official-list .value {
    color: var(--light-text);
    font-weight: 600;
    text-align: left;
}


/* ===== CONTACT ===== */
.contact-section {
    padding: 3rem 0 6rem 0;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 3rem;
}

.contact-info-blocks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-block {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.contact-block:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.cb-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin: 0 auto 1rem auto;
}

.contact-block h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-block p {
    color: var(--light-text);
}

.contact-form-container {
    flex: 2;
    background: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-right: 4px solid var(--secondary-color);
    padding-right: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 46, 89, 0.1);
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #051a33;
    color: #fff;
}

.footer-top {
    padding: 5rem 0 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-widget h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.site-logo-footer {
    max-height: 100px;
    width: auto;
    object-fit: contain;
    /* Optional: Since the footer background is dark blue and the logo is blue, making the logo white using a filter helps it stand out */
    filter: brightness(0) invert(1) opacity(0.9);
}

.brand-widget p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.links-widget ul li {
    margin-bottom: 10px;
}

.links-widget ul a {
    color: rgba(255,255,255,0.7);
}

.links-widget ul a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.contact-list li, .legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
}

.contact-list i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.legal-list strong {
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: #020d1a;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}


/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Arabic layout (rtl), left side is usually better for floating, or right. Let's keep it visible */
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b858;
    color: #fff;
}




/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ports-flex {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header-inner {
        position: relative;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        display: none;
        padding: 20px 0;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }
    
    .main-nav a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .about-grid {
        flex-direction: column-reverse;
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .official-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .info-body {
        padding: 1.5rem;
    }
}
