:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --accent-color: #6f42c1; 
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--dark-color);
    background-color: #fff;
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.section-title {
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #3a6186, #89253e);
    overflow: hidden;
}

#particles-js-hero {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Features Section */
#features {
    padding: 80px 0;
}
.feature-box {
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1);
    border-radius: .75rem;
}

/* Templates Showcase Section */
#templates {
    padding: 80px 0;
}
.template-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    height: 250px; /* Or adjust as needed */
}
.template-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.template-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}
.template-card:hover .template-overlay {
    transform: translateY(0);
}
.template-overlay h5 {
    font-weight: bold;
}

/* Swiper Styles */
.swiper-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    overflow: hidden; /* Hide overflowing slides */
}
.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 320px;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* Testimonials Section */
#testimonials {
    padding: 80px 0;
}
.testimonial-card {
    background: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 700px;
    margin: auto;
}
.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
}
.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-card cite {
    font-weight: bold;
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

/* --------------------------------------------------- 
    RESPONSIVE STYLES
----------------------------------------------------- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem; /* Reduce font size for hero title on smaller screens */
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    #features, #templates, #testimonials {
        padding: 60px 0; /* Reduce padding on sections */
    }

    .feature-box {
        padding: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .btn-lg {
        width: 100%;
        margin-bottom: 10px;
        display: block;
    }
    .hero-section .btn-lg:last-child {
        margin-bottom: 0;
    }
}
