/* ============================================
   OIL SERVICES COMPANY - UNIFIED THEME SYSTEM
   Dark & Light Mode Support
   ============================================ */

/* Root Variables - Light Theme (Default) */
:root {
    /* Primary Colors - Golden & Dark */
    --primary-gold: #D4AF37;
    --primary-dark: #1a1a1a;
    --secondary-gold: #C5A028;
    --accent-gold: #F4E4B8;
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-dark: #1a1a1a;
    --bg-card: #ffffff;
    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    /* Border & Divider */
    --border-color: #e0e0e0;
    --divider-color: rgba(0, 0, 0, 0.1);
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.3);
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(212, 175, 55, 0.3) 100%);
    /* Status Colors */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

/* Dark Theme */
[data-theme="dark"] {
    /* Background Colors */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2a2a2a;
    --bg-card: #1e1e1e;
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    /* Border & Divider */
    --border-color: #3a3a3a;
    --divider-color: rgba(255, 255, 255, 0.1);
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.5);
    /* Gradients */
    --gradient-overlay: linear-gradient(135deg, rgba(18, 18, 18, 0.9) 0%, rgba(212, 175, 55, 0.4) 100%);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    body[dir="rtl"],
    html[dir="rtl"] body {
        font-family: 'Cairo', sans-serif !important;
    }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--gradient-gold);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--shadow-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .theme-toggle {
    right: auto;
    left: 30px;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.theme-toggle i {
    font-size: 1.5rem;
    color: var(--bg-dark);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--gradient-dark);
    color: var(--text-light);
    font-size: 0.9rem;
    border-bottom: 2px solid var(--primary-gold);
    padding: 0.5rem 0;
}

    .top-bar a {
        color: var(--accent-gold);
        transition: color 0.3s ease;
    }

        .top-bar a:hover {
            color: var(--primary-gold);
        }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: var(--bg-primary) !important;
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-scrolled {
    background: var(--bg-card) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand strong {
    font-size: 1.3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

    .navbar-light .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--gradient-gold);
        transition: width 0.3s ease;
    }

    .navbar-light .navbar-nav .nav-link:hover::after,
    .navbar-light .navbar-nav .nav-link.active::after {
        width: 80%;
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        color: var(--primary-gold);
    }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--gradient-gold);
    border: none;
    color: var(--bg-dark);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-gold);
        background: var(--secondary-gold);
        color: var(--bg-dark);
    }

.btn-outline-primary {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background: var(--gradient-gold);
        border-color: var(--primary-gold);
        color: var(--bg-dark);
        transform: translateY(-3px);
        box-shadow: var(--shadow-gold);
    }

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-gold);
    }

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    color: var(--text-primary);
}

.card-title {
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.carousel-caption h1,
.carousel-caption p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* ============================================
   SECTIONS
   ============================================ */
/*section {
    padding: 5rem 0;
}*/

.bg-light {
    background: var(--bg-secondary) !important;
}

.bg-dark {
    background: var(--gradient-dark) !important;
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    overflow: hidden;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 80px;
        height: 3px;
        background: var(--gradient-gold);
        opacity: 0;
        animation: fadeUp 1s ease forwards;
        animation-delay: 0.3s;
    }

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   SERVICE & FEATURE BOXES
   ============================================ */
.service-icon,
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: 50%;
    color: var(--bg-dark);
    transition: all 0.3s ease;
}

.service-box:hover .service-icon,
.feature-box:hover .feature-icon {
    transform: rotateY(360deg);
    box-shadow: var(--shadow-gold);
}

.features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    flex: 1 1 calc(25% - 1.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    min-height: 280px; /* ??????? */
}

    .feature-box:hover {
        background: var(--bg-secondary);
        box-shadow: var(--shadow-md);
        border-color: var(--primary-gold);
        transform: translateY(-5px);
    }

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 20px;
}

.bg-primary {
    background: var(--gradient-gold) !important;
    color: var(--bg-dark) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-secondary {
    background-color: var(--text-muted) !important;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress {
    border-radius: 10px;
    background-color: var(--bg-tertiary);
    height: 10px;
}

.progress-bar {
    background: var(--gradient-gold);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--gradient-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

    footer a {
        color: var(--accent-gold);
        transition: all 0.3s ease;
    }

        footer a:hover {
            color: var(--primary-gold);
            transform: translateX(5px);
        }

[dir="rtl"] footer a:hover {
    transform: translateX(-5px);
}

footer h5 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus,
    .form-select:focus {
        background: var(--bg-card);
        color: var(--text-primary);
        border-color: var(--primary-gold);
        box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    }

.form-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
#back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
    background: var(--gradient-gold);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

[dir="rtl"] #back-to-top {
    right: auto;
    left: 30px;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

#back-to-top i {
    color: var(--bg-dark);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary {
    color: var(--primary-gold) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.border-primary {
    border-color: var(--primary-gold) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-lift:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

    .hover-shadow:hover {
        box-shadow: var(--shadow-md);
    }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    [dir="rtl"] .theme-toggle {
        right: auto;
        left: 20px;
    }

    #back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
    }

    section {
        padding: 3rem 0;
    }
}
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-lift:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    }

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

    .hover-shadow:hover {
        box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
    }

.feature-box {
    transition: all 0.3s ease;
    border-radius: 10px;
}

    .feature-box:hover {
        background: #f8f9fa;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }