/* ==========================================
   بيانات تايمز - Bayanat Times
   Custom Styles
   ========================================== */

/* Color Palette */
:root {
    --primary-color: #090074;
    --secondary-color: #339988;
    --accent-color: #5c4fbd;
    --light-primary: #e8e6f5;
    --light-secondary: #e6f5f2;
    --dark-color: #1a1a2e;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gradient-primary: linear-gradient(135deg, #090074 0%, #5c4fbd 100%);
    --gradient-secondary: linear-gradient(135deg, #339988 0%, #4db3a3 100%);
    --box-shadow: 0 4px 20px rgba(9, 0, 116, 0.1);
    --box-shadow-hover: 0 8px 30px rgba(9, 0, 116, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
    color: var(--white);
}

.btn-secondary-custom {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.btn-secondary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Navbar */
.navbar-custom {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-custom .navbar-brand img {
    height: 75px;
}

.navbar-custom .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-color);
    background-color: var(--light-primary);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 60px 60px;
    }
}

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

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-section .tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-section .hero-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-section .hero-buttons {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.hero-section .btn-hero-primary {
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.hero-section .btn-hero-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-hero-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 13px 38px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section .btn-hero-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.hero-image {
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Sections Common Styles */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* About Section */
.about-section {
    background: var(--gray-100);
}

.about-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.about-card .icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.about-card .icon i {
    font-size: 2rem;
    color: var(--white);
}

/* Features Section */
.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.feature-card .icon-box {
    width: 70px;
    height: 70px;
    background: var(--light-secondary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    background: var(--gradient-secondary);
}

.feature-card .icon-box i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box i {
    color: var(--white);
}

/* Sections Cards */
.section-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.section-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.section-card .card-header {
    background: var(--gradient-primary);
    padding: 25px;
    text-align: center;
}

.section-card .card-header i {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 10px;
}

.section-card .card-header h4 {
    color: var(--white);
    margin: 0;
}

.section-card .card-body {
    padding: 25px;
}

.section-card .card-body p {
    margin-bottom: 0;
}

/* Services Section */
.services-section {
    background: var(--gray-100);
}

.service-card {
    background: var(--white);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-card .icon-wrapper {
    width: 100px;
    height: 100px;
    background: var(--light-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background: var(--gradient-primary);
}

.service-card .icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper i {
    color: var(--white);
}

/* Stats Section */
.stats-section {
    background: var(--gradient-primary);
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-item .stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    margin-bottom: 10px;
}

.stat-item .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--light-secondary);
    padding: 80px 0;
}

.newsletter-box {
    background: var(--white);
    border-radius: 25px;
    padding: 50px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.newsletter-form {
    max-width: 500px;
    margin: 30px auto 0;
}

.newsletter-form .input-group {
    background: var(--gray-100);
    border-radius: 50px;
    padding: 5px;
}

.newsletter-form input {
    border: none;
    background: transparent;
    padding: 15px 25px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: none;
}

.newsletter-form button {
    border-radius: 50px;
    padding: 15px 35px;
}

/* Contact Section */
.contact-section {
    background: var(--gray-100);
}

.contact-info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    box-shadow: var(--box-shadow);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item .icon {
    width: 60px;
    height: 60px;
    background: var(--light-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    flex-shrink: 0;
}

.contact-info-item .icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-info-item .content h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-info-item .content p {
    margin-bottom: 0;
    color: var(--text-light);
}

.contact-form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.contact-form .form-control {
    border: 2px solid var(--gray-200);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(51, 153, 136, 0.1);
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: none;
}

/* Footer */
.footer {
    background: var(--dark-color);
    padding-top: 80px;
}

.footer-content {
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.footer h5 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 10px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item i {
    margin-left: 15px;
    color: var(--secondary-color);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--box-shadow);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item.active {
    color: var(--white);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Animated Elements */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .tagline {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .navbar-custom .nav-link {
        padding: 10px 15px;
        margin: 5px 0;
    }
}

@media (max-width: 767px) {
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .hero-buttons a {
        display: block;
        margin: 10px 0;
    }

    .stat-item .stat-number {
        font-size: 2.5rem;
    }

    .newsletter-box {
        padding: 30px 20px;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-info-item .icon {
        margin: 0 auto 15px;
    }
}
