/* Main Styles */
:root {
    --primary: #01664d;
    --primary-light: #027a5d;
    --primary-dark: #01503d;
    --secondary: #0D9488;
    --secondary-light: #14B8A6;
    --secondary-dark: #0F766E;
    --accent: #F59E0B;
    --accent-light: #FBBF24;
    --accent-dark: #D97706;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --dark: #1E293B;
    --light: #F8FAFC;
    --gray: #64748B;
    --gray-light: #E2E8F0;
}

/* General Styles */
body {
    font-family: 'Vazirmatn', sans-serif !important;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 20px;
    color: var(--primary);
}

.section-title h2:after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray);
}

.btn {
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(1, 102, 77, 0.2);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(1, 102, 77, 0.2);
}

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

/* Navbar */
.navbar {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
}

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

.brand-text-accent {
    color: var(--secondary);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--dark);
    padding: 10px 16px;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    right: 50%;
    transform: translateX(50%);
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .btn {
    margin-right: 15px;
}

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
#hero {
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(1, 102, 77, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--gray);
}

.hero-btns {
    margin-top: 30px;
}

.hero-image {
    position: relative;
    text-align: center;
    margin-top: 30px;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    top: 10%;
    right: 5%;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* Features Section */
.features-tabs {
    margin-top: 50px;
}

.nav-pills .nav-link {
    border-radius: 30px;
    padding: 10px 20px;
    margin: 0 5px;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(1, 102, 77, 0.2);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(1, 102, 77, 0.1);
}

.tab-content {
    margin-top: 40px;
}

.feature-card {
    background-color: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card .icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Benefits Section */
.benefits-image {
    position: relative;
    padding: 20px;
}

.benefits-image::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    top: 0;
    right: 0;
    z-index: -1;
    transform: rotate(-3deg);
}

.benefits-list {
    padding: 30px;
}

.benefit-item {
    margin-bottom: 30px;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.icon-box-sm {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(1, 102, 77, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.benefit-item h4 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: var(--dark);
}

.benefit-item p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonial-card {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 0;
}

.testimonial-content::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -40px;
    right: -10px;
    color: rgba(1, 102, 77, 0.1);
    font-family: 'Georgia', serif;
}

.avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Demo Section */
.demo-content {
    padding: 30px;
}

.demo-content h2 {
    margin-bottom: 20px;
    font-size: 2.3rem;
    color: var(--dark);
}

.demo-content p {
    color: var(--gray);
    margin-bottom: 30px;
}

.demo-features {
    list-style: none;
    padding-right: 0;
}

.demo-features li {
    margin-bottom: 15px;
    font-weight: 500;
}

.demo-features li i {
    color: var(--success);
    margin-left: 10px;
}

.demo-form-card {
    background-color: white;
    border-radius: 16px;
    padding: 40px;
}

/* Contact Section */
.contact-card {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.contact-card h4 {
    margin: 20px 0 10px;
    font-size: 1.3rem;
    color: var(--dark);
}

.contact-card p {
    color: var(--gray);
    margin-bottom: 5px;
}

/* Footer */
#footer {
    background-color: var(--dark);
}

.footer-about h3 {
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.footer-links h5 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
}

.footer-links h5:after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--primary);
    position: absolute;
    bottom: -10px;
    right: 0;
    border-radius: 2px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
    padding-right: 5px;
}

.footer-newsletter h5 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
}

.footer-newsletter h5:after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--primary);
    position: absolute;
    bottom: -10px;
    right: 0;
    border-radius: 2px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    height: 50px;
    color: white;
}

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

.newsletter-form .btn {
    padding: 10px 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-5px);
}

/* Responsive Styles */

/* Large Devices (Desktops) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 991px) {
    .section-padding {
        padding: 80px 0;
    }

    #hero {
        min-height: 600px;
        height: auto;
        padding: 120px 0 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 50px;
    }

    .demo-form-card {
        margin-top: 50px;
    }

    .navbar-nav .btn {
        margin-top: 10px;
        margin-right: 0;
    }

    .benefits-image {
        margin-bottom: 40px;
    }

    .features-tabs .nav-pills {
        flex-wrap: wrap;
    }

    .features-tabs .nav-item {
        margin-bottom: 10px;
    }
}

/* Small Devices (Landscape Phones) */
@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }

    #hero {
        padding: 100px 0 80px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .section-title {
        margin-bottom: 40px;
    }

    .demo-content {
        padding: 0;
        margin-bottom: 40px;
    }

    .demo-form-card {
        padding: 30px;
    }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575px) {
    .section-padding {
        padding: 50px 0;
    }

    #hero {
        padding: 90px 0 70px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .hero-btns .btn {
        margin-bottom: 15px;
        display: block;
        width: 100%;
    }

    .hero-btns .btn:first-child {
        margin-left: 0;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .benefit-item h4 {
        font-size: 1.2rem;
    }

    .demo-form-card {
        padding: 20px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
}

/* RTL Specific Adjustments */
@media (max-width: 767px) {
    .icon-box-sm {
        margin-left: 10px;
        margin-right: 0;
    }

    .benefits-list {
        padding: 20px 0;
    }
}