/* General Styles */
:root {
    --primary-color: #2B3A55; /* سورمه‌ای اصلی */
    --secondary-color: #FFD700; /* زرد جیغ */
    --darker-blue-menu: #007ACC; /* آبی پررنگ‌تر برای منو */
    --darkest-blue-menu-hover: #005F99; /* آبی تیره‌تر برای هاور منو */
    --white-color: #FFFFFF;
    --text-color: #333;
    --border-color: #eee;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.3);

    /* Fonts - Added more weights for Vazirmatn for better typography */
    --font-fa: 'Vazirmatn', sans-serif;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800; /* Assuming Vazirmatn has this weight */
}

/* Base styles for all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-fa);
    font-weight: var(--font-weight-regular); /* Default font weight */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    direction: rtl; /* Right-to-Left for Persian */
    text-align: right;
    scroll-behavior: smooth; /* Smooth scroll for internal links */
}

/* General containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

/* Link styling */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* List styling */
ul {
    list-style: none;
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-fa);
    font-weight: var(--font-weight-bold); /* Bold headings */
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Button general styles */
.btn {
    display: inline-block;
    padding: 12px 25px; /* Slightly larger padding for buttons */
    border-radius: 8px; /* More rounded buttons */
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    user-select: none; /* Prevent text selection on buttons */
    font-size: 1.05em; /* Slightly larger text in buttons */
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-details {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 18px; /* Adjusted padding for detail buttons */
    font-size: 0.95em; /* Slightly larger text */
    border-radius: 5px;
    margin-top: 15px; /* More space above button */
    border: none; /* Ensure no default border */
}

.btn-details:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Section Title styling */
.section-title {
    text-align: center;
    margin-bottom: 50px; /* More space below title */
    font-size: 2.8rem; /* Larger section titles */
    font-weight: var(--font-weight-extrabold); /* Extra bold title */
    position: relative;
    padding-bottom: 15px; /* More space for the underline */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px; /* Wider underline */
    height: 5px; /* Thicker underline */
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: -30px auto 60px auto; /* Adjust margin to sit closer to title */
    font-size: 1.15em;
    color: #666;
    line-height: 1.8;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background-color: var(--secondary-color);
    z-index: 2000;
}

/* Header Sections */
.main-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 100%;
    position: relative;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: flex-end; /* Align to start (right in RTL) */
    align-items: center;
    padding: 12px 20px; /* Slightly more padding */
    background-color: rgba(43, 58, 85, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top .logo {
    height: 45px; /* Larger logo */
    width: auto;
    margin-left: auto;
}

.auth-buttons {
    margin-right: auto; /* Push auth buttons to the left in RTL */
    display: flex;
    gap: 10px;
}

.auth-buttons .btn {
    padding: 8px 18px; /* Smaller buttons for login/register */
    font-size: 0.9em;
}

.main-nav {
    background-color: var(--primary-color);
    padding: 0;
    position: sticky; /* Make navigation sticky */
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Subtle shadow for sticky nav */
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 15px 0; /* More padding for nav links */
}

.nav-links li {
    position: relative;
    margin: 0 20px; /* Increased margin between links */
}

.nav-links li a {
    color: var(--white-color);
    font-weight: var(--font-weight-bold);
    padding: 10px 0;
    display: block;
    font-size: 1.1em; /* Larger nav links */
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

/* Hamburger Menu (for mobile) */
.hamburger-menu {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001; /* Above nav links on mobile */
}

.hamburger-menu .bar {
    display: block;
    width: 28px; /* Slightly wider bar */
    height: 3px;
    background-color: var(--white-color);
    margin: 6px 0; /* More space between bars */
    transition: all 0.3s ease;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg); /* Adjusted for new bar spacing */
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg); /* Adjusted for new bar spacing */
}


/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--darker-blue-menu);
    min-width: 280px; /* Wider dropdown */
    box-shadow: 0 8px 16px var(--shadow-medium);
    z-index: 100;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-out;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    padding: 14px 18px; /* More padding for dropdown items */
    color: var(--white-color);
    display: flex;
    align-items: center;
    gap: 12px; /* More space between icon and text */
    white-space: nowrap;
    font-size: 1em;
}

.dropdown-menu li a:hover {
    background-color: var(--darkest-blue-menu-hover);
    color: var(--white-color);
}

.dropdown-icon {
    width: 35px; /* Larger dropdown icons */
    height: 35px; /* Larger dropdown icons */
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dropdown-menu li p {
    font-size: 0.85em; /* Slightly larger description */
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    white-space: normal;
}

/* Banner Wrapper with Parallax */
.banner-wrapper {
    width: 100%;
    height: 550px; /* Slightly taller banner */
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute; /* For parallax effect */
    top: 0;
    left: 0;
    will-change: transform; /* Optimize for animation */
}

/* Hero Content (Below Banner) */
.hero-content {
    background: linear-gradient(to right, #2B3A55, #1A253A, #2B3A55);
    color: var(--white-color);
    padding: 70px 0; /* More padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 5;
    margin-top: 40px; /* More margin top */
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 60px; /* More rounded corners */
    box-shadow: 0 12px 25px var(--shadow-heavy); /* Stronger shadow */
}

.hero-inner-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem; /* Larger heading */
    margin-bottom: 20px; /* More space below heading */
    color: var(--secondary-color);
    font-weight: var(--font-weight-extrabold);
}

.hero-content p {
    font-size: 1.3rem; /* Larger paragraph text */
    margin-bottom: 35px; /* More space below paragraph */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color);
}

.hero-content .btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.hero-content .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.header-search-social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px; /* More space above search/social */
    padding: 0 20px;
}

.search-box {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    background-color: var(--white-color);
    box-shadow: 0 5px 15px var(--shadow-medium);
    width: 100%;
    max-width: 450px; /* Wider search box */
    direction: rtl;
}

.search-box input {
    flex-grow: 1;
    padding: 15px 25px; /* More padding for input */
    border: none;
    outline: none;
    font-size: 1.1em; /* Larger input text */
    font-family: var(--font-fa);
    color: var(--text-color);
    background-color: transparent;
}

.search-box button {
    background-color: var(--secondary-color);
    border: none;
    padding: 15px 25px; /* More padding for button */
    cursor: pointer;
    font-size: 1.3em; /* Larger icon */
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #e6c200;
}

.header-social-links {
    display: flex;
    gap: 25px; /* More space between social icons */
}

.header-social-links a {
    color: var(--white-color);
    font-size: 2rem; /* Larger social icons */
    transition: transform 0.3s ease, color 0.3s ease;
}

.header-social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-7px); /* More pronounced hover effect */
}

/* Services Section */
.services-section {
    padding: 80px 0; /* More padding for the section */
}

.service-filters {
    text-align: center;
    margin-bottom: 45px; /* More space below filters */
}

.filter-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 14px 28px; /* Significantly larger buttons */
    margin: 0 8px; /* More space between buttons */
    border: none;
    border-radius: 8px; /* More rounded buttons */
    cursor: pointer;
    font-size: 1.15em; /* Larger font size for filter buttons */
    font-weight: var(--font-weight-bold);
    transition: all 0.4s ease; /* Slower, smoother transition */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Subtle shadow */
}

.filter-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px); /* Slight lift on hover */
    box-shadow: 0 6px 15px rgba(0,0,0,0.2); /* Enhanced shadow on hover */
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2); /* Active state shadow */
    transform: scale(1.02); /* Slightly larger when active */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Slightly larger min-width for items */
    gap: 35px; /* More space between service items */
}

.service-item {
    background-color: var(--white-color);
    border-radius: 10px; /* More rounded corners */
    box-shadow: 0 6px 20px var(--shadow-light); /* Stronger initial shadow */
    padding: 30px; /* More padding inside items */
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* Slower, smoother transitions */
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex; /* Flexbox for alignment */
    flex-direction: column;
    justify-content: space-between; /* Distribute space */
}

.service-item:hover {
    transform: translateY(-10px); /* More pronounced lift */
    box-shadow: 0 10px 30px var(--shadow-medium); /* Stronger shadow on hover */
}

.service-item img {
    width: 220px; /* Larger images */
    height: 220px; /* Larger images */
    object-fit: cover;
    margin: 0 auto 20px auto; /* Centered with more bottom margin */
    border: 7px solid var(--secondary-color); /* Thicker border */
    transition: all 0.5s ease-in-out; /* Slower transition for image */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Maintain unique shape */
    box-shadow: 0 0 0 10px rgba(255, 215, 0, 0.3); /* Larger, more diffused outer glow */
}

.service-item img:hover {
    transform: scale(1.1) rotate(7deg); /* More pronounced scale and rotate */
    border-radius: 50%; /* Fully round on hover */
    box-shadow: 0 0 0 12px rgba(255, 215, 0, 0.5); /* Stronger glow on hover */
}

.service-item h3 {
    font-size: 1.7rem; /* Larger heading for service item */
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

.service-item p {
    font-size: 1.05rem; /* Larger paragraph text */
    color: #555;
    margin-bottom: 20px; /* More space below description */
    min-height: 50px; /* Ensure consistent height for text */
    overflow: hidden;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Light background for pricing */
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.pricing-plan {
    background-color: var(--white-color);
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 8px 25px var(--shadow-light); /* Stronger shadow */
    padding: 40px 30px; /* More padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 2px solid var(--border-color);
}

.pricing-plan.featured {
    border-color: var(--secondary-color); /* Highlight border for featured plan */
    transform: scale(1.05); /* Slightly larger for featured */
    box-shadow: 0 12px 35px var(--shadow-medium); /* Stronger shadow for featured */
    background: linear-gradient(to bottom right, var(--white-color) 80%, rgba(255, 215, 0, 0.1)); /* Subtle gradient */
}

.pricing-plan:hover {
    transform: translateY(-15px) scale(1.02); /* More pronounced lift on hover */
    box-shadow: 0 15px 40px var(--shadow-medium); /* Even stronger shadow on hover */
}

.pricing-plan .badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-bottom-left-radius: 12px;
    font-weight: var(--font-weight-bold);
    font-size: 0.9em;
    transform: translate(0, 0); /* Ensure badge stays put */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pricing-plan h3 {
    font-size: 2.2rem; /* Larger plan title */
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: var(--font-weight-extrabold);
}

.pricing-plan .price {
    font-size: 2.8rem; /* Very large price */
    font-weight: var(--font-weight-extrabold);
    color: var(--secondary-color);
    margin-bottom: 25px; /* More space below price */
}

.pricing-plan .price span {
    font-size: 0.9em; /* Smaller /month text */
    font-weight: var(--font-weight-regular);
    color: #888;
}

.pricing-plan .features {
    text-align: right;
    margin-bottom: 30px; /* More space below features */
}

.pricing-plan .features li {
    font-size: 1.1em; /* Larger feature text */
    margin-bottom: 12px; /* More space between features */
    color: #444;
    display: flex;
    align-items: center;
}

.pricing-plan .features li i {
    color: #28a745; /* Green checkmark */
    margin-left: 10px; /* Space between icon and text */
    font-size: 1.2em; /* Larger checkmark */
}

.pricing-plan .features li i.featured-no {
    color: #dc3545; /* Red X for non-included features */
}

.pricing-plan .btn {
    width: 90%; /* Wider button */
    padding: 15px 0; /* More padding for button */
    font-size: 1.15em;
    border-radius: 50px; /* Pill-shaped button */
}

.custom-pricing-note {
    text-align: center;
    margin-top: 50px; /* More space above note */
    font-size: 1.1em;
    color: #555;
}

.custom-pricing-note a {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

.custom-pricing-note a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


/* Vision & Mission Section */
.vision-mission-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 90px 0; /* More padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-image: url('images/bcg.png');
    background-size: cover;
    background-position: center;
}

.vision-mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 58, 85, 0.85);
    z-index: 1;
}

.vision-mission-section .container {
    display: flex;
    justify-content: space-around;
    gap: 40px; /* More space between boxes */
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.vision-box, .mission-box {
    flex: 1;
    min-width: 320px; /* Slightly wider boxes */
    padding: 35px; /* More padding */
    border-radius: 10px; /* More rounded corners */
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); /* Stronger shadow */
    border: 1px solid rgba(255, 255, 255, 0.25); /* Thicker border */
    backdrop-filter: blur(8px); /* More blur effect */
}

.vision-box h2, .mission-box h2 {
    color: var(--secondary-color);
    font-size: 2.2rem; /* Larger heading */
    margin-bottom: 20px;
    font-weight: var(--font-weight-extrabold);
}

.vision-box p, .mission-box p {
    font-size: 1.15rem; /* Larger paragraph text */
    line-height: 1.8;
}

.vision-icon, .mission-icon {
    font-size: 3.5em; /* Larger icons */
    color: var(--secondary-color);
    margin-bottom: 25px; /* More space below icons */
    animation: iconBounce 2s infinite ease-in-out;
}

.mission-icon {
    animation-delay: 0.5s;
}

/* Contact Section */
.contact-section {
    padding: 80px 0; /* More padding */
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly wider contact items */
    gap: 35px; /* More space between items */
    margin-bottom: 50px; /* More space below grid */
    text-align: center;
}

.contact-item {
    background-color: var(--white-color);
    padding: 30px; /* More padding */
    border-radius: 10px; /* More rounded corners */
    box-shadow: 0 6px 20px var(--shadow-light); /* Stronger shadow */
    border: 1px solid var(--border-color);
}

.contact-item i {
    font-size: 2.8rem; /* Larger icons */
    color: var(--secondary-color);
    margin-bottom: 18px; /* More space below icon */
}

.contact-item h3 {
    font-size: 1.6rem; /* Larger heading */
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

.contact-item p a {
    color: #666;
    font-size: 1em;
}

.social-media-links {
    text-align: center;
    margin-bottom: 50px; /* More space below social links */
}

.social-media-links a {
    display: inline-block;
    font-size: 2.2rem; /* Larger social icons */
    color: var(--primary-color);
    margin: 0 18px; /* More space between icons */
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-media-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-7px); /* More pronounced hover effect */
}

.contact-form-map {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* More space between form and map */
}

.contact-form, .google-map {
    flex: 1;
    min-width: 350px; /* Wider min-width */
    background-color: var(--white-color);
    padding: 35px; /* More padding */
    border-radius: 10px; /* More rounded corners */
    box-shadow: 0 6px 20px var(--shadow-light); /* Stronger shadow */
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 25px; /* More space below heading */
    font-size: 2rem; /* Larger heading */
    font-weight: var(--font-weight-bold);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px; /* More padding */
    margin-bottom: 18px; /* More space below inputs */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-fa);
    font-size: 1.05em; /* Larger input text */
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 14px; /* More padding for button */
    font-size: 1.2em; /* Larger button text */
}

.google-map iframe {
    border-radius: 8px;
}

/* Form Message Styles */
.form-message {
    padding: 12px 18px; /* More padding */
    margin-top: 18px; /* More margin top */
    border-radius: 5px;
    font-size: 1em;
    text-align: center;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Smart Chat Section */
.smart-chat-container {
    position: fixed;
    bottom: 25px; /* More space from bottom */
    left: 25px; /* More space from left */
    z-index: 1000;
}

.chat-toggle-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 18px; /* Larger button */
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem; /* Larger icon */
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px var(--shadow-medium);
    transition: all 0.3s ease;
}

.chat-toggle-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.15); /* More pronounced scale */
}

.chat-box {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 12px; /* More rounded corners */
    width: 380px; /* Wider chat box */
    box-shadow: 0 8px 25px var(--shadow-medium); /* Stronger shadow */
    display: none;
    position: absolute;
    bottom: calc(100% + 20px); /* More space from button */
    left: 0;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9);
    transform-origin: bottom left; /* Scale from bottom left */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 18px; /* More padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem; /* Larger heading */
}

.close-chat {
    cursor: pointer;
    font-size: 2rem; /* Larger close icon */
    line-height: 1;
    transition: color 0.2s ease;
}

.close-chat:hover {
    color: var(--secondary-color);
}

.chat-body {
    padding: 18px; /* More padding */
    max-height: 450px; /* Taller chat body */
    overflow-y: auto;
}

#faq-search {
    width: 100%;
    padding: 12px; /* More padding */
    margin-bottom: 18px; /* More space below search */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-fa);
    font-size: 1em;
}

.faq-item {
    margin-bottom: 12px; /* More space between FAQ items */
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 12px; /* More padding */
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.15em; /* Larger question text */
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.2s ease;
    padding-bottom: 6px;
    position: relative;
    padding-left: 25px; /* More space for chevron icon */
    font-weight: var(--font-weight-bold);
}

.faq-question::before {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    color: var(--secondary-color);
    font-size: 0.9em; /* Slightly larger chevron */
}

.faq-question.active::before {
    transform: translateY(-50%) rotate(180deg);
}

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-answer {
    display: none;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    color: #555;
    font-size: 1em; /* Larger answer text */
    line-height: 1.7;
}

.faq-answer.show {
    padding: 12px 0 0; /* More padding when shown */
}

/* Modal General Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75); /* Darker overlay */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px); /* Subtle blur for background */
}

.modal-content {
    background-color: var(--white-color);
    margin: auto;
    padding: 45px; /* More padding */
    border-radius: 12px; /* More rounded corners */
    width: 85%; /* Wider modal */
    max-width: 750px; /* Larger max width */
    position: relative;
    animation: fadeIn 0.3s ease-out;
    text-align: right;
    box-shadow: 0 12px 35px var(--shadow-heavy); /* Stronger shadow */
    transition: all 0.3s ease-out; /* For hide animation */
}

.modal-content.hide {
    opacity: 0;
    transform: translateY(20px);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 20px; /* More space from top */
    left: 30px; /* More space from left */
    font-size: 40px; /* Larger close button */
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
}

/* Service Modal Specific Styles */
#modal-service-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* More rounded image */
    margin-bottom: 25px; /* More space below image */
    border: 1px solid var(--border-color);
}

#modal-service-title {
    color: var(--primary-color);
    font-size: 2.2rem; /* Larger title */
    margin-bottom: 18px;
    font-weight: var(--font-weight-extrabold);
}

#modal-service-description {
    color: #444;
    line-height: 1.8;
    margin-bottom: 25px; /* More space below description */
    font-size: 1.05em;
}

#modal-service-details {
    color: #555;
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
    padding-top: 25px; /* More padding top */
    font-size: 0.95em;
}

/* Auth Modal Specific Styles */
.auth-content {
    max-width: 500px; /* Specific width for auth modal */
    padding: 35px;
}

.auth-content h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: var(--font-weight-bold);
    color: #555;
    font-size: 1.05em;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 14px 18px; /* More padding */
    border: 1px solid var(--border-color);
    border-radius: 8px; /* More rounded input fields */
    font-size: 1.1em;
    font-family: var(--font-fa);
    outline: none;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.auth-form .form-options {
    text-align: left; /* Align to left in RTL */
    margin-bottom: 20px;
}

.auth-form .form-options a {
    color: var(--primary-color);
    font-size: 0.95em;
}

.auth-form .form-options a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.auth-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    margin-top: 15px;
    border-radius: 8px; /* Match input field radius */
}

.auth-form .switch-auth-mode {
    text-align: center;
    margin-top: 25px; /* More space above switch text */
    font-size: 1em;
    color: #666;
}

.auth-form .switch-auth-mode a {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

.auth-form .switch-auth-mode a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Auth form messages */
#login-message, #register-message {
    margin-top: 20px;
    padding: 12px;
    font-size: 0.95em;
}


/* Animation Classes (will be added by JS) */
.animate-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Active states for animations */
.animated {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Animations Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Footer Styles */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0 20px 0; /* Adjusted padding, more at top */
    font-size: 0.95em;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 4 columns, responsive */
    gap: 40px; /* More space between columns */
    margin-bottom: 40px; /* Space above bottom copyright */
}

.footer-col {
    padding: 20px 0; /* Padding for each column */
}

.footer-col h3 {
    color: var(--secondary-color); /* Footer headings in yellow */
    font-size: 1.4rem; /* Larger heading for footer columns */
    margin-bottom: 25px; /* More space below heading */
    font-weight: var(--font-weight-bold);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60px; /* Underline for footer headings */
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-col p,
.footer-col li {
    margin-bottom: 12px; /* Space between lines/list items */
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    line-height: 1.7;
}

.footer-col p i {
    margin-left: 10px; /* Space between icon and text */
    color: var(--secondary-color);
    font-size: 1.1em;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--secondary-color);
    transform: translateX(-5px); /* Slight slide on hover for links */
}

.footer-logo {
    max-width: 120px; /* Size for footer logo */
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Subtle glow for logo */
}

.footer-social-links {
    margin-top: 25px; /* Space above social links */
    display: flex;
    gap: 20px; /* Space between icons */
}

.footer-social-links a {
    color: var(--white-color);
    font-size: 1.8rem; /* Larger social icons in footer */
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px); /* Lift effect for social icons */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .header-top {
        flex-direction: row; /* Keep auth buttons on one line */
        justify-content: space-between; /* Space out elements */
        padding-bottom: 10px;
    }

    .header-top .logo {
        margin: 0; /* Remove specific margin if logo is added */
    }
    
    .auth-buttons {
        margin-right: 0; /* Remove auto margin */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
    }

    .nav-links {
        flex-direction: column;
        display: none; /* Hidden by default for hamburger menu */
        width: 100%;
        background-color: var(--primary-color);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex; /* Shown when active */
    }

    .nav-links li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        padding: 15px 20px;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background-color: var(--darkest-blue-menu-hover);
        display: none;
        opacity: 1;
        transform: translateY(0);
        transition: none; /* Disable transition for immediate toggle */
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .banner-wrapper {
        height: 450px; /* Adjusted banner height for tablets */
    }

    .hero-content {
        padding: 60px 0;
        margin-top: 30px;
        border-radius: 40px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .header-search-social {
        flex-direction: column;
        gap: 25px;
        margin-top: 40px;
    }

    .search-box {
        width: 90%;
        max-width: none;
    }

    .header-social-links {
        margin-right: 0;
    }

    .filter-btn {
        padding: 12px 22px; /* Slightly smaller filter buttons for tablets */
        font-size: 1.05em;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width */
    }

    .service-item img {
        width: 200px; /* Slightly smaller images for tablets */
        height: 200px;
    }

    /* Pricing Section Responsive */
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .pricing-plan.featured {
        transform: scale(1.03); /* Less pronounced scale on tablets */
    }

    .pricing-plan:hover {
        transform: translateY(-10px) scale(1.01); /* Less pronounced lift */
    }

    .vision-mission-section .container {
        flex-direction: column;
    }

    .contact-form-map {
        flex-direction: column;
    }

    .smart-chat-container {
        left: 15px;
        bottom: 15px;
    }

    .chat-box {
        width: 90vw;
        left: 50%;
        transform: translateX(-50%) scale(0.9); /* Center on smaller screens */
        transform-origin: center bottom;
    }
    
    .chat-box.animated {
        transform: translateX(-50%) scale(1);
    }

    .modal-content {
        width: 90%;
        padding: 30px;
    }

    /* Auth Modal Responsive */
    .auth-content {
        width: 90%;
        max-width: 450px;
        padding: 25px;
    }

    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust for smaller tablets */
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 10px 15px;
    }

    .banner-wrapper {
        height: 350px;
    }

    .hero-content {
        padding: 50px 0;
        margin-top: 20px;
        border-radius: 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-description {
        font-size: 1em;
        margin: -20px auto 40px auto;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 1em;
        margin: 0 5px;
    }

    .services-grid {
        gap: 25px;
    }

    .service-item img {
        width: 180px;
        height: 180px;
    }

    .pricing-plan h3 {
        font-size: 2rem;
    }
    .pricing-plan .price {
        font-size: 2.4rem;
    }
    .pricing-plan .features li {
        font-size: 1em;
    }
    .pricing-plan .btn {
        padding: 12px 0;
        font-size: 1.1em;
    }

    .vision-box h2, .mission-box h2 {
        font-size: 2rem;
    }

    .vision-box p, .mission-box p {
        font-size: 1.05em;
    }

    .contact-item i {
        font-size: 2.5rem;
    }

    .contact-item h3 {
        font-size: 1.4rem;
    }

    .social-media-links a {
        font-size: 2rem;
    }

    .chat-box {
        width: 95vw;
    }

    .modal-content {
        width: 95%;
        padding: 25px;
    }

    .auth-content h3 {
        font-size: 2.2rem;
    }
    .auth-form input {
        padding: 12px 15px;
        font-size: 1em;
    }
    .auth-form button {
        padding: 12px;
        font-size: 1.1em;
    }

    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        text-align: center;
    }

    .footer-col h3 {
        text-align: center;
        margin-bottom: 15px;
    }

    .footer-col h3::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-social-links {
        justify-content: center; /* Center social icons */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .auth-buttons {
        gap: 5px;
    }
    .auth-buttons .btn {
        padding: 7px 12px;
        font-size: 0.8em;
    }

    .banner-wrapper {
        height: 300px;
    }

    .hero-content {
        padding: 40px 0;
        margin-top: 15px;
        border-radius: 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 0.9em;
        margin: -10px auto 30px auto;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9em;
        margin-bottom: 10px; /* Add margin for wrapping */
    }

    .service-filters {
        flex-wrap: wrap; /* Allow buttons to wrap */
        justify-content: center;
    }

    .service-item img {
        width: 160px;
        height: 160px;
    }

    .pricing-plan {
        padding: 30px 20px;
    }
    .pricing-plan h3 {
        font-size: 1.8rem;
    }
    .pricing-plan .price {
        font-size: 2.2rem;
    }

    .chat-toggle-btn {
        padding: 15px;
        font-size: 1.5rem;
    }

    .chat-box {
        width: calc(100% - 30px); /* Fill almost full width */
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%) scale(0.9);
        transform-origin: center bottom;
    }
    
    .chat-box.animated {
        transform: translateX(-50%) scale(1);
    }

    .modal-content {
        padding: 20px;
    }

    .auth-content h3 {
        font-size: 2rem;
    }
    .auth-form input {
        padding: 10px 12px;
    }
    .auth-form button {
        padding: 10px;
        font-size: 1em;
    }
    .auth-form .switch-auth-mode {
        font-size: 0.9em;
    }

    /* Footer Responsive */
    .footer-col {
        padding: 15px 0;
    }

    .footer-col h3 {
        font-size: 1.3rem;
    }

    .footer-col p,
    .footer-col li {
        font-size: 0.9em;
    }

    .footer-logo {
        max-width: 100px;
    }

    .footer-social-links {
        gap: 15px;
    }
}