/* --- General & Variables --- */
:root {
    --bs-primary: #17A2B8;
    --bs-dark: #2c3e50;
    --bs-light: #f8f9fa;
    --agb-gold: #C5B358;
    --agb-dark-blue: #1A3B70;
}

body {
    padding-top: 70px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- Font Management --- */
html[lang="en"] body { 
    font-family: 'Poppins', sans-serif; 
}
html[lang="ar"] body { 
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

/* --- RTL (Arabic) Specific Styles --- */
html[lang="ar"] .navbar-nav { margin-right: auto; margin-left: 0; }
html[lang="ar"] .ms-auto { margin-left: auto !important; margin-right: 0 !important; }
html[lang="ar"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
html[lang="ar"] .ms-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }

/* --- AGB Animated Logo Styles --- */
#agb-logo-nav {
    vertical-align: middle;
}
#agb-logo-cta {
    display: block;
    margin: 0 auto;
}

@keyframes planeOrbit {
    from { transform: rotate(0deg) translateX(28px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(28px) rotate(-360deg); }
}

@keyframes globeSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

#agb-logo-nav .agb-plane-container,
#agb-logo-cta .agb-plane-container {
    transform-origin: 50% 50%;
    animation: planeOrbit 10s linear infinite;
}

#agb-logo-nav .agb-globe, #agb-logo-cta .agb-globe,
#agb-logo-nav .agb-globe-details, #agb-logo-cta .agb-globe-details {
    transform-origin: 50% 50%;
    animation: globeSpin 60s linear infinite;
}

/* --- Hero Section Styles --- */
#hero {
    width: 100%;
    aspect-ratio: 1000 / 400; 
    overflow: hidden;
    position: relative;
    background-color: #333;
}

#hero .carousel, #hero .carousel-inner, #hero .carousel-item {
    height: 100%;
}

#hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.25rem;
}
.carousel-caption p:last-of-type {
    margin-bottom: 0;
}

/* --- Creative Services Section Styles --- */
#services {
    background-color: #ffffff;
}
.service-block {
    margin-top: 4rem;
    margin-bottom: 4rem;
}
.service-block h3 {
    color: var(--bs-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.service-list li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}
.service-list .bi {
    margin-top: 5px;
    color: var(--bs-primary);
}

/* --- Call to Action (CTA) Section Styles --- */
#cta {
    background: linear-gradient(135deg, var(--agb-dark-blue) 0%, var(--bs-primary) 100%);
    color: #FFFFFF;
}

#cta .btn-warning {
    background-color: var(--agb-gold);
    border-color: var(--agb-gold);
    color: var(--agb-dark-blue);
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
}

#cta .btn-warning:hover {
    background-color: #FFFFFF;
    color: var(--agb-dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#agb-logo-cta .agb-plane {
    fill: #FFFFFF;
}

/* --- General Component & Utility Styles --- */
.navbar-brand span { 
    vertical-align: middle; 
}
.nav-link.active, .nav-link:hover { 
    color: var(--bs-primary) !important; 
}
.text-primary { 
    color: var(--bs-primary) !important; 
}
.bg-dark { 
    background-color: var(--bs-dark) !important; 
}