:root {
    --primary-color: #003366;
    --primary-light: #e6f0ff;
    --accent-color: #ffd700;
    --dark-color: #121212;
    --text-color: #333333;
    --body-bg: #ffffff;
    --section-bg: #f8f9fa;
    --transition: all 0.3s ease-in-out;
}

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

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease-out, visibility 1s;
}

.company-name-splash {
    color: var(--accent-color);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.company-slogan-splash {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Typography & Helpers */
.section-padding {
    padding: 80px 0;
}

.section-title h2 {
    position: relative;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.text-center .section-title h2::after {
    right: 50%;
    transform: translateX(50%);
}

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

.transition-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand .brand-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    margin-left: 15px;
    padding: 5px 10px !important;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

/* Hero Slider */
.hero-slider .carousel-item {
    height: 90vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
}

.carousel-caption {
    z-index: 10;
}

/* Goals */
.goal-card {
    background: #fff;
    transition: var(--transition);
}

/* Counters */
#counters {
    background: linear-gradient(rgba(0,51,102,0.9), rgba(0,51,102,0.9)), url('../images/hero2.png');
    background-attachment: fixed;
    background-size: cover;
}

/* Service Item */
.service-item:hover .service-icon {
    background-color: var(--primary-color) !important;
}

.service-item:hover .service-icon i {
    color: #fff !important;
}

/* Gallery */
.gallery-item {
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,51,102,0.85);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Form */
.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Float WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.hotspot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 110px;
    right: 40px;
    width: 45px;
    height: 45px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Map */
.map-container {
    filter: grayscale(0.2);
}

/* Footer */
.footer {
    border-top: 10px solid var(--primary-color);
}

.btn-social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-social:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

@media (max-width: 991px) {
    .hero-slider .carousel-item { height: 70vh; }
    .company-name-splash { font-size: 2.5rem; }
}
