

/* CSS Variables */
:root {
    --primary-color: #14012e;
    --secondary-color: #bf9dda;
    --accent-color: #ffbb00;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Navbar (Glassmorphism) --- */
.navbar-custom {
    background: rgba(20, 1, 46, 0.9) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-custom .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.navbar-brand img {
    height: 50px;
    transition: transform 0.3s;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: var(--primary-color);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 1, 46, 0.6);
    /* Dark Overlay */
    z-index: 2;
}

.slide.active {
    opacity: 1;
    z-index: 3;
}

.slide-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 800px;
    transform: translateY(30px);
    transition: transform 1s ease, opacity 1s ease;
    opacity: 0;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hbtn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.hbtn:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 187, 0, 0.4);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 5;
    transform: translateY(-50%);
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

.slider-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* --- New Section: Features --- */
.features-section {
    padding: 80px 0;
    background: #fff;
}

.feature-box {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: var(--bg-light);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* --- Services --- */
.services-section {
    padding: 80px 0;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(20, 1, 46, 0.1);
}

.service-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-btn {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.service-btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* --- New Section: CTA --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a0852 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

/* --- Partners --- */
.partners-section {
    padding: 60px 0;
    background: #fff;
}

.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
    max-height: 80px;
    object-fit: contain;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Blog --- */
.blog-section {
    padding: 80px 0;
}

.blog-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border-right: 4px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateX(-5px);
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

.read-more:hover {
    color: var(--primary-color);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-color);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-inline-end: 10px;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Utility */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 50px;
    font-weight: 800;
    color: var(--primary-color);
}

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

