/* ===================================

   Rawaq Company - Custom Styles

   Modern, Attractive & Responsive Design

   =================================== */

/* ===== CSS Variables ===== */
:root {
    --color-primary: #2c5aa0;
    --color-primary-dark: #1e3f72;
    --color-primary-light: #4a7bc8;
    --color-secondary: #6c757d;
    --color-success: #198754;
    --color-info: #0dcaf0;
    --color-warning: #ffc107;
    --color-dark: #212529;
    --color-light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #2c5aa0 0%, #4a7bc8 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-gold: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --transition-speed: 0.3s;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4, .display-5 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ===== Navigation ===== */
.navbar {
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: transform var(--transition-speed) ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.nav-link {
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--color-primary) !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    padding: 0.5rem;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition-speed) ease;
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    color: white !important;
    transform: translateX(5px);
}

.dropdown-menu-lg {
    min-width: 400px;
}

.dropdown-header {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Hero Section ===== */
.hero-slider {
    margin-top: 76px;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-slide .container,
.hero-slide .row,
.hero-slide .col-lg-6 {
    position: relative;
    z-index: 2;
}

.hero-slide h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-slide p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-slide .btn {
    animation: fadeInUp 1.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-indicators [data-bs-slide-to] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    transition: all var(--transition-speed) ease;
}

.carousel-indicators .active {
    transform: scale(1.3);
    background: white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all var(--transition-speed) ease;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* ===== Buttons ===== */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
}

/* ===== Cards ===== */
.card {
    transition: all var(--transition-speed) ease;
    border-radius: 1rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
}

.hover-lift {
    position: relative;
}

.hover-lift::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

.hover-lift:hover::after {
    transform: scaleX(1);
}

/* ===== Icon Circles ===== */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: var(--gradient-primary);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
    transition: all var(--transition-speed) ease;
}

.card:hover .icon-circle {
    transform: rotateY(360deg);
    box-shadow: 0 12px 30px rgba(44, 90, 160, 0.5);
}

.bg-secondary .icon-circle {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.bg-success .icon-circle {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.bg-info .icon-circle {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
}

.bg-warning .icon-circle {
    background: var(--gradient-gold);
}

.bg-dark .icon-circle {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

/* ===== Sections ===== */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(44, 90, 160, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.bg-light {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
}

/* ===== Images ===== */
img {
    transition: all var(--transition-speed) ease;
}

img:hover {
    transform: scale(1.05);
}

.rounded-3 {
    border-radius: 1rem !important;
}

/* ===== Partner Logos ===== */
.partner-carousel {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.partner-logo {
    flex: 0 0 auto;
    opacity: 0.6;
    transition: all var(--transition-speed) ease;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.logo-placeholder {
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
}

.logo-placeholder:hover {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

footer h5,
footer h6,
footer p,
footer ul,
footer li {
    color: white !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a {
    transition: all var(--transition-speed) ease;
    display: inline-block;
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover {
    color: var(--color-primary-light) !important;
    transform: translateX(5px);
}

footer .bi {
    transition: all var(--transition-speed) ease;
}

footer .bi:hover {
    transform: scale(1.2) rotate(5deg);
}

/* ===== Newsletter Section ===== */
.bg-primary {
    background: var(--gradient-primary) !important;
}

#newsletterForm .form-control {
    border: 2px solid transparent;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all var(--transition-speed) ease;
}

#newsletterForm .form-control:focus {
    border-color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ===== Utility Classes ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: all var(--transition-speed) ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
}

/* ===== Animations ===== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ===== Responsive Design ===== */
@media (max-width: 991.98px) {
    .hero-slide {
        height: auto;
        padding: 100px 0;
    }
    
    .dropdown-menu-lg {
        min-width: 100%;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .icon-circle i {
        font-size: 1.5rem !important;
    }
    
    .partner-carousel {
        gap: 1rem;
    }
    
    .logo-placeholder {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    footer {
        display: none;
    }
}

/* ===== Accessibility ===== */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ===== Loading States ===== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Enhanced Visual Effects ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glow-effect {
    box-shadow: 0 0 20px rgba(44, 90, 160, 0.5);
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* ===== RTL (Arabic) Support ===== */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-brand {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .dropdown-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .nav-link::after {
    left: 50%;
    right: auto;
}

[dir="rtl"] .me-2,
[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .ms-2,
[dir="rtl"] .ms-3 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

[dir="rtl"] .text-md-end {
    text-align: left !important;
}

[dir="rtl"] .carousel-control-prev {
    left: auto;
    right: 30px;
}

[dir="rtl"] .carousel-control-next {
    right: auto;
    left: 30px;
}

[dir="rtl"] footer a:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .bi {
    display: inline-block;
}

/* Arabic Font Optimization */
[dir="rtl"] body {
    font-family: 'Segoe UI', 'Arial', 'Tahoma', sans-serif;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, 
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-weight: 700;
}

/* Smooth transition for language switch */
* {
    transition: text-align 0.3s ease;
}

/* ===== End of Styles ===== */
