:root {
    --primary-color: #8B0000; /* Deep Red */
    --secondary-color: #FFD700; /* Gold */
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
}

* {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    overflow-x: hidden;
    background-color: #fff;
}

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

/* Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar:hover {
    background-color: rgba(139, 0, 0, 0.95);
}

.logo-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--secondary-color);
}

.logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.brand-name {
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 0;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heroSlider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(139, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-content h1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    line-height: 1.3;
}

.hero-content p {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    font-size: 1.3rem;
}

/* Swiper Navigation */
.swiper-button-next, 
.swiper-button-prev {
    color: var(--secondary-color);
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background: rgba(139, 0, 0, 0.8);
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
    background-color: #a50000;
    border-color: #a50000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.3);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-hover {
    position: relative;
    overflow: hidden;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

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

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

/* Section Title */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    font-size: 2.5rem;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 20%;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.2);
}

/* Feature Items */
.feature-item {
    transition: all 0.3s ease;
    padding: 10px 0;
    border-left: 3px solid transparent;
    padding-left: 15px;
}

.feature-item:hover {
    border-left-color: var(--primary-color);
    transform: translateX(10px);
}

.feature-item i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Product Cards */
.product-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.2) !important;
}

.product-image-wrapper {
    overflow: hidden;
    height: 250px;
    position: relative;
}

.product-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.product-card:hover img {
    transform: scale(1.15) rotate(2deg);
}

.card-body {
    padding: 25px;
}

.rating {
    margin-top: 15px;
    animation: fadeIn 0.5s ease;
}

.rating i {
    margin: 0 3px;
    transition: transform 0.2s ease;
}

.rating i:hover {
    transform: scale(1.2);
}

/* Gallery Images */
.gallery-img {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 200px;
    width: 100%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.gallery-img:hover {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.1);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.3);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a50000 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    opacity: 0.5;
}

.stat-item {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-info-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #a50000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
}

/* Contact Form */
.form-control {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.3);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(139, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.hover-zoom {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.image-container {
    overflow: hidden;
    border-radius: 15px;
}

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

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .counter {
        font-size: 2rem;
    }

    .product-card {
        margin-bottom: 20px;
    }

    .swiper-button-next, 
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}

/* Scroll Animation Trigger */
.fade-in,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    animation: none;
}

.fade-in.animate,
.fade-in-left.animate,
.fade-in-right.animate {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-left.animate {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right.animate {
    animation: fadeInRight 0.8s ease-out forwards;
}
