/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --primary-color: #5d3292;
    /* Logo Purple - Main brand color */
    --secondary-color: #f15e2a;
    /* Logo Orange - Secondary brand color */
    --accent-color: #f5b040;
    /* Logo Yellow-Orange - Accent color */
    --dark-color: #414142;
    /* Logo Dark Gray - Minor elements */
    --light-color: #f9fafb;
    /* Light gray */
    --white: #ffffff;
    --text-dark: #5d3292;
    /* Logo purple for main text */
    --text-light: #414142;
    /* Logo dark gray for secondary text */
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--white);
    color: var(--dark-color);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left .contact-item {
    margin-left: 20px;
}

.top-bar-left .contact-item:last-child {
    margin-left: 0;
}

.top-bar-right .contact-item {
    margin: 0;
}

.contact-item i {
    margin-left: 8px;
    color: var(--accent-color);
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: linear-gradient(
        135deg,
        var(--secondary-color),
        var(--accent-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* Navigation Styles */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list li:last-child {
    margin-left: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 12px 15px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 25px;
    background: transparent;
}

.nav-icon {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-link span {
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Creative hover animation for navigation */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--secondary-color),
        var(--accent-color)
    );
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover {
    color: var(--white);
    background: linear-gradient(
        135deg,
        var(--secondary-color),
        var(--accent-color)
    );
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 94, 42, 0.3);
}

.nav-link:hover .nav-icon {
    transform: scale(1.2);
    color: var(--white);
}

.nav-link:hover span {
    font-weight: 600;
    color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Carousel Styles */
.slider {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

#heroCarousel {
    height: 100%;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item {
    position: relative;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 2;
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 0;
}

.slide-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out;
}

.slide-content p {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out 0.3s both;
}

/* Custom Bootstrap carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(93, 50, 146, 0.8);
    border: none;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 4;
}

.carousel-control-prev {
    right: auto;
    left: 30px;
}

.carousel-control-next {
    left: auto;
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(241, 94, 42, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(241, 94, 42, 0.4);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Custom carousel indicators */
.carousel-indicators {
    bottom: 30px;
    z-index: 4;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.2);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wave divider */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 4;
}

.wave-bottom {
    display: block;
    width: 100%;
    height: 120px;
    fill: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev {
        left: 15px;
    }

    .carousel-control-next {
        right: 15px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider {
        min-height: 500px;
    }
}
