/* Importing Google Fonts and defining variables for colors and styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* Defining the new custom font */
@font-face {
    font-family: 'All Genders v4';
    src: url('../fonts/All Genders v4.otf') format('otf');
    font-weight: normal;
    font-style: normal;
}

/* Global Variables and Colors */
:root {
    --primary-color: #007BFF;
    --primary-hover: #0056b3;
    --accent-color: #00c6a7;
    --dark-bg: #111827;
    --card-bg: #1f2937;
    --text-color: #e5e7eb;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Light theme variables */
[data-theme="light"] {
    --primary-color: #007BFF;
    --primary-hover: #0056b3;
    --accent-color: #00c6a7;
    --dark-bg: #f9fafb;
    --card-bg: #ffffff;
    --text-color: #374151;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.5;
    background-color: var(--dark-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* General Layout & Common Components */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    cursor: pointer;
}

.button-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.button-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

.button-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    background-color: #fff;
    color: #1f2937;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button-google:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.button-google i {
    margin-left: 10px;
    font-size: 1.2rem;
}

.card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.2);
}

.icon-large {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    animation: icon-pulse 2s infinite;
}

.icon-small {
    font-size: 0.9rem;
    margin-left: 8px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* --- Header & Navigation --- */
.main-header {
    background: transparent;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease;
    backdrop-filter: blur(5px);
}

.main-header.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
    box-shadow: var(--box-shadow);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo-container {
    display: flex;
    align-items: center;
}

.main-header .logo-container a {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.main-header .logo-container a:hover {
    transform: scale(1.05);
}

.main-header .logo {
    max-width: 40px;
    height: 40px;
    margin-left: 10px;
    border-radius: 50%;
    animation: bounce 1.5s infinite;
}

.main-header .site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.main-nav {
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin-right: 2rem;
}

.main-nav ul li.user-info {
    color: var(--accent-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.main-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}

/* تعديل المسافة بين الأزرار وأيقونة الثيم */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-button-nav {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.cta-button-nav:hover {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.theme-toggle button {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-right: 1rem;
}

.theme-toggle button:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.header-right {
    display: flex;
    align-items: center;
}

.menu-toggle-button {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu-toggle-button:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* --- Hero Section (all pages) --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 0 60px;
    z-index: 1;
}

.hero-section.about-hero-section {
    min-height: 80vh;
    padding-top: 120px;
}

.hero-section h1, .hero-section .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fade-in-up 1s ease forwards;
}

.hero-section p, .hero-section .hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
    animation: fade-in-up 1s ease 0.3s forwards;
}

.hero-section .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: zoom-in 1s ease 0.6s forwards;
}

/* --- Home Page Specific Styles --- */
.hero-section.home-hero-section {
    background: transparent;
}

/* --- Features Section --- */
.features-section .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.features-section .feature-card {
    text-align: center;
}

/* --- Pricing Section --- */
.pricing-section .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.pricing-section .pricing-card {
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.pricing-section .pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-section .pricing-card.featured {
    border-color: var(--primary-color);
    position: relative;
    z-index: 1;
    transform: scale(1.05);
}

.pricing-section .card-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
}

.pricing-section .pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: right;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.pricing-section .pricing-card ul li {
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pricing-section .pricing-card ul li:not(:last-child) {
    border-bottom: 1px dashed var(--border-color);
}

.pricing-section .pricing-card .unavailable i {
    color: var(--text-muted);
}

/* --- About Page Specific Styles --- */
.about-hero-section .hero-image {
    margin-top: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    animation: fade-in-up 1s ease 0.9s forwards;
}

.about-hero-section .hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-hero-section .hero-image img:hover {
    transform: scale(1.05);
}

.story-section .row {
    display: flex;
    align-items: center;
}

.story-section .col-lg-6 {
    padding: 0 15px;
}

.story-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.story-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -10px;
    right: 0;
    border-radius: 2px;
}

.values-section .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.values-section .value-card {
    text-align: center;
}

.values-section .value-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.values-section .value-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.values-section .value-card p {
    color: var(--text-muted);
}

/* --- Team Section --- */
.team-section .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    background-color: var(--card-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 123, 255, 0.05));
    transition: opacity 0.4s ease;
    opacity: 0;
}

.team-member:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.team-member:hover::before {
    opacity: 1;
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 198, 167, 0.5);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.team-member:hover .member-image {
    transform: scale(1.05) rotate(5deg);
    border-color: var(--primary-color);
}

.member-name {
    font-family: 'All Genders v4', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.team-member:hover .member-name {
    color: var(--primary-color);
}

.member-role {
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.team-member:hover .member-role {
    color: var(--accent-color);
}

/* --- Contact Page Specific Styles --- */
.contact-section {
    padding-top: 120px;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.contact-info,
.contact-form-card {
    width: 50%;
}

.contact-info h3,
.contact-form-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.info-item .icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-left: 1rem;
    min-width: 32px;
}

.info-item .info-text h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.info-item .info-text a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item .info-text a:hover {
    color: var(--primary-color);
}

.social-media-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-icon-link {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon-link:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* --- Auth Pages (Login & Signup) - New Design --- */
.auth-page {
    background-color: var(--dark-bg);
}

.auth-split-section {
    display: flex;
    height: 100vh;
}

.auth-visual-side {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1579532537596-f2858164010b?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.auth-visual-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.9), rgba(0, 123, 255, 0.5));
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.auth-logo-large {
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
    animation: bounce 1.5s infinite;
}

.logo-link {
    display: block;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.auth-visual-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-visual-text {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-bg);
}

.auth-form-container {
    max-width: 450px;
    width: 90%;
    padding: 3rem;
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
}

.auth-form-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.auth-form-container p.auth-subtitle {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

.auth-form input:focus {
    background: rgba(255, 255, 255, 0.1);
}

.auth-form .button-primary {
    margin-top: 1.5rem;
}

.auth-form-container .divider span {
    background: rgba(31, 41, 55, 0.5);
}

/* General Auth Page styles */
.auth-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}
.auth-links a:hover {
    text-decoration: underline;
}
.forgot-password-link {
    display: block;
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.forgot-password-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
.social-login {
    margin-top: 1.5rem;
}
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}
.divider span {
    background-color: var(--card-bg);
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    color: var(--text-muted);
}
.divider::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.error-message {
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    color: #ff4d4f;
}
.success-message {
    color: #00c6a7;
}

/* Floating Home Button */
.floating-home-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-home-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
}

.floating-home-btn i {
    animation: bounce 1.5s infinite;
}

/* --- Footer --- */
footer {
    background-color: var(--card-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin: 0 0.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* --- Splash Screen Styles --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-logo {
    width: 150px;
    height: auto;
    animation: bounce 1.5s infinite;
}

.splash-text {
    font-family: 'All Genders v4', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-top: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.splash-subtext {
    font-family: 'All Genders v4', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 10px;
    animation: fadeIn 1.5s ease-in-out;
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--card-bg);
    padding: 5rem 0;
    border-radius: 12px;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* --- Dashboard Page Styles (جديد) --- */
.dashboard-container {
    padding-top: 100px;
}
.dashboard-card {
    padding: 2.5rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    text-align: center;
    margin-bottom: 2rem;
}

/* --- Animations --- */
@keyframes rotate-logo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes icon-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

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

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* --- User Profile in Header (جديد) --- */
.user-profile-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile-actions .dashboard-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.user-profile-actions .dashboard-link:hover {
    color: var(--primary-color);
}

.profile-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: border-color 0.3s ease;
}

.user-profile-actions .dashboard-link span {
    margin-right: 8px; /* المسافة بين الصورة والنص */
    font-size: 14px;
    font-weight: 500;
}

.button-danger {
    background-color: transparent;
    color: #ff4d4f;
    border: 2px solid #ff4d4f;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.button-danger:hover {
    background-color: #ff4d4f;
    color: #fff;
    transform: scale(1.05);
}

/* تعديل عرض أزرار المصادقة عند تسجيل الدخول */
.auth-buttons-container.hidden {
    display: none;
}

/* --- Testimonials Section (New Swiper Design) --- */
.testimonials-section {
    background-color: var(--dark-bg);
    padding: 5rem 0;
}

.testimonials-swiper {
    width: 100%;
    height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
}

.testimonials-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* New Testimonial Card Design */
.testimonial-card {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    text-align: right;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background-color: rgba(31, 41, 55, 0.5); /* شفافية */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    cursor: grab;
    position: relative;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-card:active {
    cursor: grabbing;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    direction: rtl;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1rem;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-color);
}

.testimonial-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.testimonial-comment {
    color: var(--text-color);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.8;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
}

.no-testimonials-message, .error-message {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.1rem;
}

/* New Add Testimonial Form Design */
.add-testimonial-card {
    margin-top: 4rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--card-bg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.add-testimonial-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 2rem;
    direction: rtl;
}

.add-testimonial-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.add-testimonial-card textarea {
    min-height: 120px;
}

.add-testimonial-card button {
    margin-top: 1.5rem;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Swiper Navigation & Pagination Styles */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
    font-size: 2rem !important;
    transform: scale(0.8) !important;
    transition: transform 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    transform: scale(1) !important;
}

.swiper-pagination-bullet {
    background-color: var(--text-muted);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}
/* User Profile Avatar in Dashboard */
.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
    transition: all 0.4s ease;
    margin-bottom: 1.5rem;
}

.profile-avatar-large:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.6);
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 992px) {
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--card-bg);
        padding: 1rem 0;
        display: none;
        flex-direction: column;
        width: 100%;
        border-radius: 8px;
        box-shadow: var(--box-shadow);
    }
    .header-right {
        margin-right: auto;
    }
    .main-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    .main-nav.show {
        display: flex;
        animation: fade-in-up 0.5s ease;
    }
    .menu-toggle-button {
        display: block;
    }
    .main-nav.show ul {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .main-nav.show ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-nav.show ul li a {
        padding: 1rem;
        display: block;
        width: 100%;
    }
    .contact-container {
        flex-direction: column;
    }
    .contact-info,
    .contact-form-card {
        width: 100%;
    }
    .social-media-icons {
        justify-content: center;
    }
    .team-section .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .auth-split-section {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .auth-form-side {
        padding: 3rem 0;
    }

    .auth-visual-side {
        display: none; /* Hide visual side on smaller screens */
    }

    .back-home-btn {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1, .section-title, .cta-title, .hero-section .hero-title {
        font-size: 2.5rem;
    }
    .hero-section p, .section-subtitle, .cta-subtitle, .hero-section .hero-subtitle {
        font-size: 1rem;
    }
    .features-section .features-grid, .pricing-section .pricing-grid, .values-section .values-grid {
        grid-template-columns: 1fr;
    }
    .pricing-section .pricing-card.featured {
        transform: scale(1);
    }
    .story-section .row {
        flex-direction: column-reverse;
    }
}
