/* Custom CSS for انعام الصنام Landing Page */

/* CSS Variables */
:root {
    --primary-color: #9B1B1C;
    --primary-dark: #7A1516;
    --primary-light: #B52B2D;
    --secondary-color: #F4F4F4;
    --accent-color: #FFD700;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Override Bootstrap Primary Color */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

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

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

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

/* Typography */
body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white) !important;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-brand .logo-img {
    height: 90px;
    width: auto;
}

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

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

/* Center the navigation menu */
@media (min-width: 992px) {
    .navbar-nav.mx-auto {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Hero Section */
.hero {
    /* background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%); */
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    padding-top: 100px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

.hero-buttons .btn {
    padding: 15px 25px;
    font-size: 1.1rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* About Section */
.about {
    background-color: var(--white);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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


/* App Screenshots Carousel */
.app-screenshots {
    background-color: var(--light-gray);
}

/* Fix for card images */
.card-img-container {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 10px;
}

.card-img-top {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Ensure images don't get cut off */
.card {
    overflow: visible;
}

.card-body {
    padding: 1.5rem;
}

.carousel-item img {
    height: auto;
    max-height: 600px;
    object-fit: contain;
    width: 100%;
    background-color: transparent;
    border-radius: 12px;
}

.carousel-inner {
    padding: 0;
    margin-bottom: 1rem;
}

.carousel-item {
    padding: 0;
}

.carousel-item .row {
    margin: 0;
    justify-content: center;
    align-items: center;
}

#appCarousel {
    position: relative;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev {
    left: -60px;
}

.carousel-control-next {
    right: -60px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.carousel-indicators {
    margin-bottom: 0.5rem;
}

.carousel-indicators button {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 12px;
    height: 12px;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.contact-item:hover i {
    color: var(--accent-color) !important;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.footer-brand .logo-img {
    height: 100px;
}

.footer a:hover {
    color: var(--white) !important;
}
.footer-text{
    font-size: 1.4rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-nav.mx-auto {
        position: static;
        transform: none;
    }
}

@media (max-width: 768px) {
    .navbar-nav .nav-link {
        margin: 0;
        margin-bottom: 0.5rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .carousel-item img {
        max-height: 450px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .carousel-item img {
        max-height: 350px;
    }
    
    .navbar-brand .logo-img {
        height: 40px;
    }
}

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

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

.card,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(155, 27, 28, 0.25);
    border-color: var(--primary-color);
}

/* Loading states */
.btn:active {
    transform: scale(0.98);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-dark: #000000;
        --text-light: #333333;
    }
}

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