/* =========================================================================
   VARIABLES & BASE STYLES
   ========================================================================= */
:root {
    /* Colors: Elegant Dark Blue & Light Gold / Premium Grays */
    --primary: #0B2545;           /* Visibly Dark Blue */
    --primary-light: #133B5C;     /* Lighter Dark Blue */
    --gold: #D4AF37;              /* Elegant Gold */
    --gold-hover: #b5952f;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F7;          /* Apple-like light gray */
    
    /* Typography */
    --font-primary: 'Cairo', sans-serif;
    
    /* Layout & Utilities */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(10, 25, 48, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* =========================================================================
   UTILITIES
   ========================================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }
.bg-dark { background-color: var(--primary); }
.bg-dark-secondary { background-color: #071224; }
.text-white { color: var(--text-light) !important; }
.text-white-opacity { color: rgba(255, 255, 255, 0.85) !important; }
.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.font-light { font-weight: 300 !important; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.text-center { text-align: center; }
.max-w-800 { max-width: 800px; }
.m-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.ltr-text { direction: ltr; display: inline-block; }
.w-full { width: 100%; }
.justify-center { justify-content: center; }

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.align-center { align-items: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

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

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--primary);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-whatsapp-solid {
    background-color: #25D366;
    color: white;
    gap: 8px;
}

.btn-whatsapp-solid:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.btn-whatsapp-huge {
    background-color: #25D366;
    color: white;
    font-size: 20px;
    padding: 20px 50px;
    border-radius: 8px;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-huge:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

/* =========================================================================
   HEADER (NAVBAR)
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    color: var(--gold);
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* =========================================================================
   HERO SECTION (Image Background)
   ========================================================================= */
.hero {
    position: relative;
    padding-top: 200px;
    padding-bottom: 160px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Optional parallax effect for backgrounds */
.parallax-bg {
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Elegant dark blue gradient overlay */
    background: linear-gradient(135deg, rgba(10, 25, 48, 0.9) 0%, rgba(10, 25, 48, 0.7) 100%);
    z-index: 0;
}

.badge-light {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* =========================================================================
   SECTIONS GLOBAL
   ========================================================================= */
.section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.title-separator {
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    margin-bottom: 24px;
    border-radius: 2px;
}

.title-separator.text-center { margin: 0 auto 24px; }
.title-separator.align-right { margin-left: auto; margin-right: 0; }

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ABOUT (Split Image) */
.about-image-wrapper {
    position: relative;
    padding: 20px 20px 20px 0;
}

.img-decorative-border {
    position: absolute;
    top: 0; right: 0;
    width: 80%; height: 80%;
    border: 3px solid var(--gold);
    border-radius: 8px;
    z-index: 0;
}

.about-img {
    position: relative;
    z-index: 1;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-lg);
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
}

.stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
}

/* SERVICES (Image Cards) */
.service-fancy-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-fancy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-fancy-card:hover .card-img-wrapper img {
    transform: scale(1.08); /* Zoom effect on hover */
}

.card-icon-floating {
    position: absolute;
    bottom: -25px; right: 25px;
    width: 60px; height: 60px;
    background-color: var(--primary);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 3px solid var(--bg-white);
    z-index: 2;
    transition: var(--transition-smooth);
}

.service-fancy-card:hover .card-icon-floating {
    background-color: var(--gold);
    color: var(--primary);
}

.card-content {
    padding: 40px 25px 30px;
    flex-grow: 1;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.card-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* WHY US (Parallax) */
.why-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 25, 48, 0.85); /* Dark blue overlay */
    z-index: 0;
}

.value-props {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.value-props li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.prop-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.value-props h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
}

.value-props p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.glass-panel h3 {
    font-size: 30px;
    font-weight: 800;
}

/* CONTACT (Compact Fancy) */
.contact-compact-card {
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--bg-white);
}

.flex-row-responsive {
    display: flex;
    flex-direction: row;
}

.contact-info-panel, .contact-action-panel {
    flex: 1;
    padding: 60px 50px;
}

.bg-primary { background-color: var(--primary); }
.text-whatsapp { color: #25D366; }
.tracking-wider { letter-spacing: 1px; }
.uppercase { text-transform: uppercase; }
.max-w-sm { max-width: 400px; margin-left: auto; margin-right: auto; }
.flex-col { display: flex; flex-direction: column; }
.gap-6 { gap: 24px; }
.gap-4 { gap: 16px; }
.flex { display: flex; }

.c-icon-small {
    width: 45px;
    height: 45px;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.floating-anim {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.contact-list h5 {
    font-size: 16px;
}
.contact-list p, .contact-list a {
    font-size: 15px;
}
.email-link:hover {
    color: var(--gold);
}

/* FOOTER */
.footer {
    padding: 50px 0 30px;
    border-top: 4px solid var(--gold);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 18px;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background-color: var(--gold);
    color: var(--primary);
    transform: translateY(-3px);
}


/* =========================================================================
   ANIMATIONS (Intersection Observer)
   ========================================================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-right {
    opacity: 0;
    transform: translateX(30px); /* RTL */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-left {
    opacity: 0;
    transform: translateX(-30px); /* RTL */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.in-view {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero {
        padding-top: 140px;
        padding-bottom: 100px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .contact-info-blocks {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        padding: 0;
    }
    
    .img-decorative-border {
        display: none;
    }
    
    .title-separator.align-right {
        margin: 0 auto 24px;
    }
    
    .why-content {
        text-align: center;
    }
    
    .value-props li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .flex-row-responsive {
        flex-direction: column;
    }
    
    .contact-info-panel, .contact-action-panel {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--bg-light);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-actions .btn-outline {
        display: none;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-whatsapp-solid {
        justify-content: center;
    }
    
    .btn-whatsapp-huge {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}
