/* Custom CSS for Sawafan Investment Website */

:root {
    --primary-color: #1A2B3C;
    --secondary-color: #C8A25C;
    --accent-color: #2E4A3A;
    --light-bg: #F5F5DC;
    --dark-text: #4A3C30;
    --light-gray: #D3D3D3;
}

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

body {
    font-family: 'RB-Regular', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'RB-Bold', sans-serif;
    font-weight: 600;
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.8rem !important;
    color: var(--secondary-color) !important;
}
.navbar-brand img{
    height: 60px;
}

.nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(26, 43, 60, 0.7), rgba(26, 43, 60, 0.7)), 
                url('../images/hero_banner.png') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 43, 60, 0.8) 0%, rgba(46, 74, 58, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Project Cards */
.project-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.project-progress {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 2;
}

.progress {
    height: 6px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.3);
}

.progress-bar {
    border-radius: 3px;
}

/* Statistics Section */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-item i {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Process Steps */
.process-step {
    padding: 2rem 1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(26, 43, 60, 0.3);
}

/* Values Section */
.value-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background-color: #1a1a1a !important;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-3px);
}
 /* Footer Styling */
        footer {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
        }
        
        .footer-section {
            padding: 1rem 0;
        }
        
        .footer-links a {
            color: var(--light-gray) !important;
            transition: all 0.3s ease;
            padding: 0.25rem 0;
        }
        
        .footer-links a:hover {
            color: var(--secondary-color) !important;
            transform: translateX(5px);
        }
        
        .footer-links a:hover i {
            color: #667eea;
        }
        
        .contact-info .contact-icon {
            width: 20px;
            text-align: center;
        }
        
        .social-link {
            width: 45px;
            height: 45px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transition: all 0.3s ease;
            font-size: 1.1rem;
        }
        
        .social-link:hover {
            background: #667eea;
            border-color: #667eea;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }
        
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .stat-item {
        margin-bottom: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.card, .btn, .nav-link {
    transition: all 0.3s ease;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* Background Colors */
.bg-light {
    background-color: var(--light-bg) !important;
}



/* Additional Enhancements */

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Enhanced Card Styles */
.contact-info-card,
.team-card,
.achievement-card,
.value-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-info-card:hover,
.team-card:hover,
.achievement-card:hover,
.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

/* FAQ Styles */
.faq-category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-category-card:hover {
    background-color: var(--primary-color) !important;
    color: white;
    transform: translateY(-3px);
}

.faq-category-card:hover i {
    color: var(--secondary-color) !important;
}

.accordion-button {
    font-weight: 600;
    color: var(--dark-text);
    background-color: #f8f9fa;
    border: none;
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(26, 43, 60, 0.25);
    border-color: var(--primary-color);
}

.accordion-body {
    background-color: white;
    border-radius: 0 0 8px 8px;
    border: 1px solid #dee2e6;
    border-top: none;
}

/* Contact Form Enhancements */
.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 43, 60, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

/* Social Links Enhancements */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: translateX(5px);
}

.social-link:hover i {
    color: var(--secondary-color) !important;
}

/* Map Container */
.map-container {
    border: 3px solid var(--light-gray);
    transition: all 0.3s ease;
}

.map-container:hover {
    border-color: var(--secondary-color);
}

/* Enhanced Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to specific elements */
.contact-info-card:nth-child(1) {
    animation: slideInFromLeft 0.6s ease-out 0.2s both;
}

.contact-info-card:nth-child(2) {
    animation: bounceIn 0.6s ease-out 0.4s both;
}

.contact-info-card:nth-child(3) {
    animation: slideInFromRight 0.6s ease-out 0.6s both;
}

/* Enhanced Button Styles */
.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Typography */
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Improved Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .page-header {
        background: none !important;
        color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #FFD700;
        --accent-color: #000000;
        --dark-text: #000000;
    }
    
    .btn-primary {
        background-color: #000000;
        border-color: #000000;
    }
    
    .text-primary {
        color: #000000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Additional responsive improvements */
@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .contact-info-card,
    .team-card {
        margin-bottom: 1rem;
    }
}

/* Performance optimizations */
.project-card img,
.hero-section {
    will-change: transform;
}

/* Ensure proper stacking context */
.navbar {
    z-index: 1030;
}

.hero-overlay {
    z-index: 1;
}

.hero-content {
    z-index: 2;
}

.project-progress small{
    color: var(--light-bg) !important;
}