/* ===== Global Styles ===== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 40px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* ===== Language Toggle ===== */
.language-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Always on the left side */
    z-index: 1050;
    transition: var(--transition);
}

/* Keep the toggle fixed on the left regardless of language direction */
[dir="rtl"] .language-toggle,
[dir="ltr"] .language-toggle {
    left: 30px !important;
    right: auto !important;
}

.language-toggle #langToggle {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 110, 253, 0.2);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.language-toggle #langToggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.navbar .container .navbar-brand {
    margin-right: auto;
}

.navbar .container .navbar-toggler {
    margin-left: auto;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 25px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: clamp(1rem, 4vw, 1.8rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
    flex-shrink: 0;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.navbar-nav {
    width: 100%;
}

.navbar-nav .nav-link {
    font-weight: 600;
    margin: 0 0.25rem;
    padding: 0.6rem 0.8rem !important;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    color: var(--dark-color) !important;
    text-decoration: none;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.btn {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    border: none;
}

.navbar-nav .nav-link.btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    color: white !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

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

.navbar-toggler:hover {
    background: rgba(13, 110, 253, 0.1);
}

/* ===== Hero Section ===== */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Space for fixed navbar */
    padding-bottom: 2rem;
}

/* Hero Background Icons */
.hero-bg-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Add gradient overlay to enhance icon visibility */
.hero-bg-icons::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.1) 100%);
    z-index: -1;
}

.bg-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    font-size: 2.5rem;
    animation: float-smooth 12s ease-in-out infinite;
    transition: all 0.3s ease;
}

.bg-icon:nth-child(1) { top: 8%; left: 8%; animation-delay: 0s; font-size: 2rem; }
.bg-icon:nth-child(2) { top: 18%; right: 12%; animation-delay: 1.5s; font-size: 2.8rem; }
.bg-icon:nth-child(3) { top: 28%; left: 18%; animation-delay: 3s; font-size: 2.2rem; }
.bg-icon:nth-child(4) { top: 12%; left: 45%; animation-delay: 4.5s; font-size: 2.6rem; }
.bg-icon:nth-child(5) { top: 38%; right: 22%; animation-delay: 6s; font-size: 2.4rem; }
.bg-icon:nth-child(6) { top: 58%; left: 12%; animation-delay: 7.5s; font-size: 2.1rem; }
.bg-icon:nth-child(7) { top: 68%; right: 18%; animation-delay: 9s; font-size: 2.7rem; }
.bg-icon:nth-child(8) { top: 78%; left: 28%; animation-delay: 10.5s; font-size: 2.3rem; }
.bg-icon:nth-child(9) { top: 22%; right: 35%; animation-delay: 2s; font-size: 2.5rem; }
.bg-icon:nth-child(10) { top: 42%; left: 55%; animation-delay: 3.5s; font-size: 2rem; }
.bg-icon:nth-child(11) { top: 62%; right: 8%; animation-delay: 5s; font-size: 2.9rem; }
.bg-icon:nth-child(12) { top: 32%; left: 75%; animation-delay: 6.5s; font-size: 2.2rem; }
.bg-icon:nth-child(13) { top: 52%; right: 55%; animation-delay: 8s; font-size: 2.6rem; }
.bg-icon:nth-child(14) { top: 72%; left: 65%; animation-delay: 9.5s; font-size: 2.4rem; }
.bg-icon:nth-child(15) { top: 82%; right: 45%; animation-delay: 11s; font-size: 2.1rem; }

/* Hover effect for better visibility */
.hero-section:hover .bg-icon {
    color: rgba(255, 255, 255, 0.25);
}

@keyframes float-smooth {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.15;
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(5deg) scale(1.1);
        opacity: 0.25;
    }
    50% {
        transform: translateY(-8px) translateX(-5px) rotate(-3deg) scale(0.95);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-20px) translateX(8px) rotate(7deg) scale(1.05);
        opacity: 0.2;
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.15;
    }
}

/* Pulsing effect for some icons */
.bg-icon:nth-child(odd) {
    animation: float-smooth 12s ease-in-out infinite, pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 25px rgba(255, 255, 255, 0.3);
    }
}

/* Different movement patterns for variety */
.bg-icon:nth-child(3n) {
    animation: float-circular 15s linear infinite;
}

@keyframes float-circular {
    0% {
        transform: rotate(0deg) translateX(20px) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.3;
    }
    75% {
        opacity: 0.2;
    }
    100% {
        transform: rotate(360deg) translateX(20px) rotate(-360deg);
        opacity: 0.15;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through */
}

/* Ensure hero content and buttons are clickable */
.hero-content {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    text-align: right;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-buttons {
    position: relative;
    z-index: 15;
    pointer-events: auto;
}

.hero-buttons .btn {
    pointer-events: auto;
    position: relative;
    z-index: 20;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    z-index: 0;
    pointer-events: none; /* Allow clicks to pass through */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-align: right;
    direction: rtl;
    width: 100%;
    margin-right: 0;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    text-align: right;
    direction: rtl;
    width: 100%;
    margin-right: 0;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    direction: rtl;
    width: 100%;
    margin-right: 0;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--warning-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.2;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    direction: rtl;
    width: 100%;
    margin-right: 0;
}

.hero-buttons .btn {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    font-size: 1.1rem;
    min-width: 180px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hero-buttons .btn-outline-light:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.hero-buttons .btn-outline-light i {
    color: #25d366;
}

.hero-buttons .btn-outline-light:hover i {
    color: white;
}

/* ===== Hero Image ===== */
.hero-image {
    position: relative;
    z-index: 2;
    will-change: transform;
}

.dashboard-preview {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: var(--transition);
    position: relative;
    will-change: transform;
    min-height: 400px;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(2deg);
}

.dashboard-header {
    background: var(--light-color);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.dashboard-dots {
    display: flex;
    gap: 0.5rem;
}

.dashboard-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.dashboard-dots span:nth-child(2) {
    background: #ffbd2e;
}

.dashboard-dots span:nth-child(3) {
    background: #27ca3f;
}

.dashboard-title {
    font-weight: 600;
    color: var(--dark-color);
}

.dashboard-content {
    padding: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 80px;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.stat-card i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card .label {
    font-size: 0.8rem;
    color: var(--secondary-color);
    line-height: 1.2;
}

.dashboard-chart {
    height: 150px;
    background: var(--light-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
}

.chart-placeholder i {
    font-size: 2rem;
    color: var(--primary-color);
}

.chart-placeholder span {
    color: var(--secondary-color);
    font-weight: 500;
}

/* AI Assistant Preview */
.ai-assistant-preview {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e3f2fd;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.ai-header i {
    font-size: 1.2rem;
}

.ai-header span {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.ai-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: auto;
}

.ai-status.online {
    background: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.ai-conversation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-message {
    display: flex;
}

.message-bubble {
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    max-width: 80%;
    line-height: 1.4;
}

.message-bubble.user {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-bubble.ai {
    background: #f8f9fa;
    color: var(--dark-color);
    border-bottom-left-radius: 4px;
    border: 1px solid #e9ecef;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.action-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1976d2 100%);
    color: white;
    padding: 0.6rem 0.4rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

.action-btn i {
    font-size: 1rem;
}

.action-btn span {
    font-weight: 500;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* ===== Features Section ===== */
.features-overview {
    padding: 8rem 0 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    z-index: 10;
    margin-top: -2rem;
}

.features-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(248,249,250,0) 0%, rgba(248,249,250,1) 100%);
    z-index: -1;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-right: auto;
    margin-left: auto;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--dark-color);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-right: 1.5rem;
    color: var(--secondary-color);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0.5rem;
    color: var(--success-color);
    font-weight: bold;
}

/* ===== Feature Previews ===== */
.feature-preview {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.preview-window {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
    transform: perspective(1000px) rotateX(5deg);
    transition: var(--transition);
}

.feature-card:hover .preview-window {
    transform: perspective(1000px) rotateX(0deg);
}

.window-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.window-dots {
    display: flex;
    gap: 0.25rem;
}

.window-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f56;
}

.window-dots span:nth-child(2) {
    background: #ffbd2e;
}

.window-dots span:nth-child(3) {
    background: #27ca3f;
}

.window-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.preview-content {
    padding: 1rem;
    background: #fafbfc;
    min-height: 120px;
}

/* User List Preview */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
}

.user-role {
    font-size: 0.65rem;
    color: var(--secondary-color);
}

.user-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
}

/* Schedule Preview */
.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.schedule-item.completed {
    border-left-color: var(--success-color);
    opacity: 0.8;
}

.schedule-item.in-progress {
    border-left-color: var(--warning-color);
    background: rgba(255, 193, 7, 0.1);
}

.time {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 35px;
}

.session-info {
    flex: 1;
}

.session-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
}

.session-student {
    font-size: 0.65rem;
    color: var(--secondary-color);
}

.session-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

.session-status.completed {
    background: var(--success-color);
}

.session-status.in-progress {
    background: var(--warning-color);
    animation: pulse 2s infinite;
}

/* Payment Preview */
.payment-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-card {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
}

.payment-amount {
    font-size: 1.2rem;
    font-weight: 700;
}

.payment-label {
    font-size: 0.65rem;
    opacity: 0.9;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.payment-method {
    width: 24px;
    height: 16px;
    background: white;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.payment-method i {
    font-size: 0.7rem;
    color: var(--secondary-color);
}

.payment-transactions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark-color);
}

.transaction-date {
    font-size: 0.6rem;
    color: var(--secondary-color);
}

.transaction-amount {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success-color);
}

/* Analytics Preview */
.analytics-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chart-container {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 60px;
    padding: 0 0.5rem;
}

.chart-bar {
    width: 12px;
    background: var(--gradient-primary);
    border-radius: 2px 2px 0 0;
    animation: growUp 1s ease forwards;
    transform-origin: bottom;
}

@keyframes growUp {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.analytics-stats {
    display: flex;
    justify-content: space-around;
}

.analytics-stats .stat-item {
    text-align: center;
}

.analytics-stats .stat-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

.analytics-stats .stat-label {
    font-size: 0.6rem;
    color: var(--secondary-color);
}

/* Messages Preview */
.messages-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    position: relative;
}

.message-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-sender {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark-color);
}

.message-text {
    font-size: 0.65rem;
    color: var(--secondary-color);
    margin: 0.1rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    font-size: 0.6rem;
    color: var(--secondary-color);
}

.message-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
}

.message-status.unread {
    background: var(--primary-color);
}

.message-status.read {
    background: var(--secondary-color);
    opacity: 0.5;
}

/* Mobile Preview */
.mobile-preview {
    max-width: 180px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    padding: 4px;
}

.mobile-preview .preview-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    min-height: 140px;
}

.mobile-header {
    background: #000;
    color: white;
    padding: 0.25rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 600;
}

.mobile-battery {
    width: 20px;
    height: 10px;
    border: 1px solid white;
    border-radius: 2px;
    position: relative;
}

.mobile-battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 6px;
    background: white;
    border-radius: 0 1px 1px 0;
}

.battery-level {
    width: 80%;
    height: 100%;
    background: #4ade80;
    border-radius: 1px;
}

.mobile-content {
    padding: 1rem 0.75rem;
    text-align: center;
}

.mobile-app-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
}

.mobile-app-icon i {
    color: white;
    font-size: 1.2rem;
}

.mobile-app-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.mobile-features {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
}

.mobile-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 6px;
    transition: var(--transition);
}

.mobile-feature:hover {
    background: rgba(13, 110, 253, 0.1);
}

.mobile-feature i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Payment Gateways Preview */
.payment-gateways {
    padding: 0.5rem;
}

.gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.gateway-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.gateway-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gateway-logo {
    width: 30px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: white;
    font-size: 0.8rem;
}

.gateway-logo.stripe {
    background: #635bff;
}

.gateway-logo.paypal {
    background: #0070ba;
}

.gateway-logo.paymob {
    background: #00d4aa;
}

.gateway-logo.fawry {
    background: #ff6b35;
}

.gateway-logo.bank {
    background: #2c3e50;
}

.gateway-logo.wallet {
    background: #9b59b6;
}

.gateway-item span {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
}

/* Security Log Preview */
.security-log {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.log-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.log-item.success {
    border-left-color: var(--success-color);
}

.log-item.warning {
    border-left-color: var(--warning-color);
}

.log-item.info {
    border-left-color: var(--info-color);
}

.log-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
}

.log-item.success .log-icon {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.log-item.warning .log-icon {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.log-item.info .log-icon {
    background: rgba(13, 202, 240, 0.1);
    color: var(--info-color);
}

.log-info {
    flex: 1;
}

.log-action {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark-color);
}

.log-time {
    font-size: 0.6rem;
    color: var(--secondary-color);
}

/* Email System Preview */
.email-system {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.email-template {
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.email-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.email-subject {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark-color);
}

.email-status {
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
}

.email-status.sent {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.email-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.email-content {
    padding: 0.5rem;
}

.email-preview {
    font-size: 0.65rem;
    color: var(--secondary-color);
    line-height: 1.3;
}

/* Islamic Content Preview */
.islamic-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.content-item.quran {
    border-left: 3px solid #2ecc71;
}

.content-item.hadith {
    border-left: 3px solid #3498db;
}

.content-item.dua {
    border-left: 3px solid #9b59b6;
}

.content-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
}

.content-item.quran .content-icon {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.content-item.hadith .content-icon {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.content-item.dua .content-icon {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.content-text {
    flex: 1;
}

.arabic-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark-color);
    font-family: 'Amiri', 'Cairo', serif;
    line-height: 1.4;
}

.content-type {
    font-size: 0.6rem;
    color: var(--secondary-color);
    margin-top: 0.1rem;
}

/* Time Zone Preview */
.timezone-system {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timezone-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.timezone-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timezone-flag {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.timezone-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timezone-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark-color);
}

.timezone-time {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

/* Community System Preview */
.community-system {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.community-post {
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: var(--transition);
}

.community-post:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.post-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    flex-shrink: 0;
}

.post-info {
    flex: 1;
}

.post-author {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark-color);
}

.post-time {
    font-size: 0.6rem;
    color: var(--secondary-color);
}

.post-status {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 10px;
    font-weight: 600;
}

.post-status.approved {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.post-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.post-content {
    padding: 0.5rem;
}

.post-text {
    font-size: 0.65rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.post-actions {
    display: flex;
    gap: 0.75rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.action-item:hover {
    color: var(--primary-color);
}

.action-item i {
    font-size: 0.65rem;
}

/* Support System Preview */
.support-system {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.support-ticket {
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: var(--transition);
}

.support-ticket:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.ticket-id {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.ticket-priority {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 8px;
    font-weight: 600;
}

.ticket-priority.high {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.ticket-priority.medium {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.ticket-priority.low {
    background: rgba(13, 202, 240, 0.1);
    color: var(--info-color);
}

.ticket-content {
    padding: 0.5rem;
}

.ticket-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.ticket-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.ticket-user {
    font-size: 0.65rem;
    color: var(--secondary-color);
}

.ticket-time {
    font-size: 0.6rem;
    color: var(--secondary-color);
}

.ticket-status {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.ticket-status.open {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.ticket-status.in-progress {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.ticket-status.resolved {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

/* ===== AI System Section ===== */
.ai-system-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.ai-system-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="ai-pattern" width="60" height="60" patternUnits="userSpaceOnUse"><g opacity="0.1"><circle cx="30" cy="30" r="2" fill="%23667eea"/><path d="M20 20 L40 20 L40 40 L20 40 Z" fill="none" stroke="%23667eea" stroke-width="0.5"/><circle cx="15" cy="15" r="1" fill="%23764ba2"/><circle cx="45" cy="45" r="1" fill="%23764ba2"/><path d="M10 30 Q30 10 50 30 Q30 50 10 30" fill="none" stroke="%23667eea" stroke-width="0.3"/></g></pattern></defs><rect width="200" height="200" fill="url(%23ai-pattern)"/></svg>');
    opacity: 0.6;
}

.ai-system-section::after {
    content: '🤖 🧠 ⚡ 🔮 💡 🎯 📊 🚀';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 2rem;
    opacity: 0.03;
    pointer-events: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 2rem;
    line-height: 1;
    letter-spacing: 2rem;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(90deg); }
    50% { transform: translateY(0px) rotate(180deg); }
    75% { transform: translateY(-5px) rotate(270deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

/* AI Floating Elements */
.ai-system-section {
    position: relative;
}

.ai-system-section .container {
    position: relative;
    z-index: 3;
}

.ai-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.ai-floating-elements::before {
    content: '⚡';
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 3rem;
    opacity: 0.05;
    animation: float 15s infinite ease-in-out;
}

.ai-floating-elements::after {
    content: '🧠';
    position: absolute;
    top: 60%;
    right: 15%;
    font-size: 2.5rem;
    opacity: 0.05;
    animation: float 20s infinite ease-in-out reverse;
}

.ai-content {
    position: relative;
    z-index: 2;
}

.ai-content h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.ai-content h2::before {
    content: '🤖';
    position: absolute;
    left: -3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.1;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.3; transform: translateY(-50%) scale(1.1); }
}

.ai-features {
    margin-top: 2rem;
}

.ai-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.ai-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.ai-feature-item:hover::before {
    left: 100%;
}

.ai-feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
    border-left: 4px solid #667eea;
}

.ai-feature-item i {
    font-size: 2rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-feature-item h5 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.ai-feature-item p {
    color: var(--secondary-color);
    margin: 0;
}

/* ===== Chat Interface ===== */
.ai-demo {
    position: relative;
}

.chat-interface {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-header i {
    font-size: 1.2rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #27ca3f;
    border-radius: 50%;
    margin-right: auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 202, 63, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(39, 202, 63, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 202, 63, 0);
    }
}

.chat-messages {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
    display: flex;
}

.ai-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ai-message .message-content {
    background: var(--light-color);
    color: var(--dark-color);
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: var(--light-color);
    border-radius: 18px;
    width: fit-content;
    margin-bottom: 1rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* ===== Responsive Design ===== */

/* Large screens adjustments */
@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        margin: 0 0.15rem;
        padding: 0.6rem 0.6rem !important;
        font-size: 0.85rem;
    }

    .navbar-brand {
        font-size: 1.6rem;
        max-width: none;
        white-space: nowrap;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        margin: 0 0.1rem;
        padding: 0.5rem 0.5rem !important;
        font-size: 0.8rem;
    }

    .navbar-brand {
        font-size: 1.4rem;
        max-width: none;
        white-space: nowrap;
    }

    .navbar-collapse {
        margin-top: 1rem;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 15px;
        padding: 1rem;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

    .navbar-nav {
        text-align: center;
        width: 100%;
    }

    .navbar-nav .nav-link {
        margin: 0.4rem auto;
        display: block;
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .navbar-nav .nav-link.btn {
        margin-top: 0.8rem;
        max-width: 200px;
    }
}

/* Small screens */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
        max-width: none;
        white-space: normal;
        line-height: 1.3;
        overflow: visible;
        text-overflow: unset;
    }

    .navbar-nav .nav-link {
        margin: 0.4rem auto;
        text-align: center;
        padding: 0.8rem 1.2rem !important;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        border-radius: 25px;
    }

    .navbar-nav .nav-link.btn {
        margin-top: 1rem;
        padding: 1rem 2rem !important;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .navbar-collapse {
        padding: 1.5rem;
        margin-top: 1rem;
    }
}

    .hero-section {
        padding-top: 120px; /* More space for mobile navbar */
        padding-bottom: 3rem;
        min-height: 100vh;
    }

    .bg-icon {
        font-size: 1.2rem !important;
        opacity: 0.6;
    }

    .bg-icon:nth-child(n+8) {
        display: none; /* Hide more icons on mobile for better performance */
    }

    .hero-content {
        align-items: center;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        text-align: center;
        direction: ltr;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        text-align: center;
        direction: ltr;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: 2.5rem;
        direction: ltr;
        width: 100%;
    }

    .stat-item {
        flex: 1;
        min-width: 80px;
        max-width: 100px;
    }

    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    .stat-label {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        direction: ltr;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 90%;
        max-width: 280px;
        min-width: auto;
        padding: 14px 20px;
        font-size: 1rem;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
    }

    .dashboard-preview {
        transform: none;
        margin-top: 3rem;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
        text-align: center;
    }

    .stat-card .number {
        font-size: 1.5rem;
    }

    .stat-card .label {
        font-size: 0.85rem;
    }

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

    .features-overview {
        padding: 6rem 0 4rem 0;
    }

    .feature-preview {
        margin-bottom: 1rem;
    }

    .preview-window {
        transform: none;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .ai-feature-item {
        flex-direction: column;
        text-align: center;
    }

    .ai-feature-item:hover {
        transform: translateY(-5px);
    }

    .mobile-preview {
        max-width: 140px;
    }

    .mobile-content {
        padding: 0.75rem 0.5rem;
    }

    .mobile-app-icon {
        width: 30px;
        height: 30px;
    }

    .mobile-app-icon i {
        font-size: 1rem;
    }

    .chart-container {
        height: 50px;
    }

    .chart-bar {
        width: 8px;
    }
}

/* Extra Small screens */
@media (max-width: 576px) {
    .navbar {
        padding: 0.6rem 0;
    }

    .navbar-brand {
        font-size: 1rem;
        max-width: none;
        white-space: normal;
        line-height: 1.2;
        padding: 0.2rem 0;
    }

    .navbar-nav .nav-link {
        margin: 0.3rem auto;
        padding: 0.7rem 1rem !important;
        font-size: 0.95rem;
        max-width: 260px;
    }

    .navbar-nav .nav-link.btn {
        padding: 0.9rem 1.8rem !important;
        font-size: 1rem;
        margin-top: 0.8rem;
    }

    .navbar-collapse {
        padding: 1.2rem;
    }

    .hero-section {
        padding-top: 140px; /* Even more space for very small screens */
        padding-bottom: 2rem;
        min-height: 100vh;
    }

    .hero-content {
        align-items: center;
        text-align: center;
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: 1.7rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        text-align: center;
        direction: ltr;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        text-align: center;
        direction: ltr;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
        gap: 0.8rem;
        margin-bottom: 2rem;
        direction: ltr;
        width: 100%;
    }

    .stat-item {
        flex: 1;
        min-width: 70px;
        max-width: 90px;
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        direction: ltr;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 95%;
        max-width: 260px;
        margin: 0 auto;
        min-width: auto;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.95rem;
        white-space: normal;
        line-height: 1.3;
    }

    /* About System Section Mobile */
    .system-preview {
        transform: none;
        margin-top: 2rem;
    }

    .dashboard-preview {
        margin-top: 2.5rem;
        max-width: 98%;
    }

    .dashboard-stats {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.75rem;
        text-align: center;
    }

    .stat-card .number {
        font-size: 1.3rem;
    }

    .stat-card .label {
        font-size: 0.8rem;
    }

    .stat-card i {
        font-size: 1.2rem;
    }

    .about-system-section .stat-number {
        font-size: 1.2rem;
    }

    .about-feature-card {
        padding: 1.5rem;
    }

    .about-feature-card .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        min-width: auto;
        text-align: center;
    }

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

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

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .preview-content {
        padding: 0.75rem;
        min-height: 100px;
    }

    .user-item, .schedule-item, .message-item {
        padding: 0.4rem;
        gap: 0.5rem;
    }

    .user-name, .session-title, .message-sender {
        font-size: 0.7rem;
    }

    .user-role, .session-student, .message-text {
        font-size: 0.6rem;
    }

    .payment-card {
        padding: 0.5rem;
    }

    .payment-amount {
        font-size: 1rem;
    }

    .analytics-stats .stat-value {
        font-size: 0.8rem;
    }

    .gateway-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }

    .gateway-item {
        padding: 0.25rem;
    }

    .gateway-logo {
        width: 20px;
        height: 15px;
        font-size: 0.6rem;
    }

    .gateway-item span {
        font-size: 0.5rem;
    }

    .log-item, .email-template, .content-item {
        padding: 0.4rem;
        gap: 0.4rem;
    }

    .log-action, .email-subject, .arabic-text {
        font-size: 0.65rem;
    }

    .log-time, .email-preview, .content-type {
        font-size: 0.55rem;
    }

    .log-icon, .content-icon {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    .timezone-item {
        padding: 0.4rem;
        gap: 0.5rem;
    }

    .timezone-flag {
        font-size: 1rem;
        width: 20px;
    }

    .timezone-name, .timezone-time {
        font-size: 0.65rem;
    }

    .benefit-card {
        padding: 2rem 1.5rem;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
    }

    .benefit-icon i {
        font-size: 1.5rem;
    }

    .guarantee-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .guarantee-item {
        padding: 0.75rem;
    }

    .community-post, .support-ticket {
        margin-bottom: 0.5rem;
    }

    .post-header, .ticket-header {
        padding: 0.4rem;
        gap: 0.4rem;
    }

    .post-content, .ticket-content {
        padding: 0.4rem;
    }

    .post-author, .ticket-title {
        font-size: 0.65rem;
    }

    .post-time, .ticket-user, .ticket-time {
        font-size: 0.55rem;
    }

    .post-text {
        font-size: 0.6rem;
    }

    .action-item {
        gap: 0.2rem;
        font-size: 0.55rem;
    }

    .action-item i {
        font-size: 0.6rem;
    }

    .ticket-id {
        font-size: 0.6rem;
    }

    .ticket-priority, .ticket-status, .post-status {
        font-size: 0.55rem;
        padding: 0.05rem 0.2rem;
    }

    .floating-contact {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ===== Floating Contact Buttons ===== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 50%;
    transform: scale(0);
    transition: var(--transition);
    z-index: -1;
}

.floating-btn:hover::before {
    transform: scale(1.2);
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    color: white;
    background: #128c7e;
}

/* Messenger Button */
.messenger-btn {
    background: linear-gradient(45deg, #0084ff, #44bec7);
    color: white;
}

.messenger-btn:hover {
    color: white;
    background: linear-gradient(45deg, #0066cc, #369aa3);
}

/* Back to Top Button */
.back-to-top {
    background: var(--primary-color);
    color: white;
    opacity: 0;
    visibility: hidden;
}

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

.back-to-top:hover {
    background: var(--secondary-color);
    color: white;
}

/* Floating buttons - no animation for stability */
.whatsapp-btn,
.messenger-btn {
    /* Always visible and stable */
}

.back-to-top {
    /* Only back to top has show/hide behavior */
}

/* Curriculum System Preview */
.curriculum-system {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.curriculum-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.curriculum-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.curriculum-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.curriculum-info {
    flex: 1;
}

.curriculum-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.curriculum-progress {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 1s ease;
}

.curriculum-status {
    font-size: 0.6rem;
    color: var(--secondary-color);
}

/* Attendance System Preview */
.attendance-system {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attendance-calendar {
    background: white;
    border-radius: 6px;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
}

.calendar-header {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
}

.calendar-day {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day.present {
    background: rgba(25, 135, 84, 0.2);
    color: var(--success-color);
}

.calendar-day.absent {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
}

.calendar-day.late {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
}

.calendar-day.today {
    background: var(--primary-color);
    color: white;
}

.attendance-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6rem;
    color: var(--secondary-color);
}

.stat-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-color.present {
    background: var(--success-color);
}

.stat-color.absent {
    background: var(--danger-color);
}

.stat-color.late {
    background: var(--warning-color);
}

/* Setup System Preview */
.setup-system {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setup-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.setup-option.active {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
}

.setup-option:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.setup-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.setup-option.active .setup-icon {
    animation: pulse 2s infinite;
}

.setup-info {
    flex: 1;
}

.setup-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.setup-status {
    font-size: 0.6rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.setup-option.active .setup-status {
    color: var(--primary-color);
    font-weight: 600;
}

.setup-progress {
    width: 100%;
    height: 3px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.setup-progress .progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 2s ease;
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(13, 110, 253, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(13, 110, 253, 0.6);
    }
}

/* ===== Additional Features Section ===== */
.additional-features {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.additional-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(13,110,253,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.additional-feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.additional-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.additional-feature-card:hover::before {
    transform: scaleX(1);
}

.additional-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
}

.additional-feature-card .feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.additional-feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.4);
}

.additional-feature-card h4 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.additional-feature-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-benefits li {
    padding: 0.5rem 0;
    color: var(--dark-color);
    position: relative;
    padding-left: 1.5rem;
    font-weight: 500;
}

.feature-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.feature-benefits li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    transition: all 0.2s ease;
}

/* Responsive Design for Additional Features */
@media (max-width: 768px) {
    .additional-feature-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .additional-feature-card .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .additional-feature-card h4 {
        font-size: 1.2rem;
    }
}

/* ===== Customer Reviews Section ===== */
.customer-reviews {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

/* Social Media Background Icons */
.social-bg-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.social-icon-bg {
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.08;
    animation: floatSocial 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* First row - Top area */
.social-icon-bg:nth-child(1) { top: 8%; left: 5%; color: #1877f2; animation-delay: 0s; animation-duration: 9s; }
.social-icon-bg:nth-child(2) { top: 12%; left: 25%; color: #25d366; animation-delay: 1s; animation-duration: 7s; }
.social-icon-bg:nth-child(3) { top: 6%; left: 45%; color: #0084ff; animation-delay: 2s; animation-duration: 8s; }
.social-icon-bg:nth-child(4) { top: 15%; left: 65%; color: #e4405f; animation-delay: 0.5s; animation-duration: 6s; }
.social-icon-bg:nth-child(5) { top: 10%; left: 85%; color: #1da1f2; animation-delay: 3s; animation-duration: 10s; }

/* Second row - Upper middle */
.social-icon-bg:nth-child(6) { top: 25%; left: 8%; color: #ff0000; animation-delay: 1.5s; animation-duration: 7s; }
.social-icon-bg:nth-child(7) { top: 30%; left: 30%; color: #0077b5; animation-delay: 4s; animation-duration: 6s; }
.social-icon-bg:nth-child(8) { top: 22%; left: 50%; color: #0088cc; animation-delay: 2.5s; animation-duration: 9s; }
.social-icon-bg:nth-child(9) { top: 28%; left: 70%; color: #000000; animation-delay: 3.5s; animation-duration: 7s; }
.social-icon-bg:nth-child(10) { top: 35%; left: 90%; color: #fffc00; animation-delay: 4.5s; animation-duration: 8s; }

/* Third row - Middle */
.social-icon-bg:nth-child(11) { top: 45%; left: 3%; color: #7289da; animation-delay: 5s; animation-duration: 6s; }
.social-icon-bg:nth-child(12) { top: 50%; left: 20%; color: #bd081c; animation-delay: 1.2s; animation-duration: 9s; }
.social-icon-bg:nth-child(13) { top: 42%; left: 40%; color: #ff4500; animation-delay: 3.8s; animation-duration: 7s; }
.social-icon-bg:nth-child(14) { top: 48%; left: 60%; color: #001935; animation-delay: 2.3s; animation-duration: 8s; }
.social-icon-bg:nth-child(15) { top: 52%; left: 80%; color: #665cac; animation-delay: 4.8s; animation-duration: 6s; }

/* Fourth row - Lower middle */
.social-icon-bg:nth-child(16) { top: 65%; left: 10%; color: #00aff0; animation-delay: 0.8s; animation-duration: 10s; }
.social-icon-bg:nth-child(17) { top: 70%; left: 28%; color: #9146ff; animation-delay: 3.2s; animation-duration: 7s; }
.social-icon-bg:nth-child(18) { top: 62%; left: 48%; color: #1ab7ea; animation-delay: 1.8s; animation-duration: 8s; }
.social-icon-bg:nth-child(19) { top: 68%; left: 68%; color: #1db954; animation-delay: 4.2s; animation-duration: 6s; }
.social-icon-bg:nth-child(20) { top: 72%; left: 88%; color: #ff5500; animation-delay: 2.8s; animation-duration: 9s; }

/* Additional scattered icons */
.social-icon-bg:nth-child(21) { top: 18%; left: 15%; color: #1877f2; animation-delay: 5.5s; animation-duration: 8s; }
.social-icon-bg:nth-child(22) { top: 38%; left: 12%; color: #25d366; animation-delay: 0.3s; animation-duration: 7s; }
.social-icon-bg:nth-child(23) { top: 58%; left: 35%; color: #e4405f; animation-delay: 3.7s; animation-duration: 6s; }
.social-icon-bg:nth-child(24) { top: 78%; left: 15%; color: #ff0000; animation-delay: 1.7s; animation-duration: 9s; }
.social-icon-bg:nth-child(25) { top: 85%; left: 55%; color: #0088cc; animation-delay: 4.3s; animation-duration: 7s; }
.social-icon-bg:nth-child(26) { top: 32%; left: 82%; color: #0084ff; animation-delay: 2.1s; animation-duration: 8s; }
.social-icon-bg:nth-child(27) { top: 55%; left: 92%; color: #1da1f2; animation-delay: 5.1s; animation-duration: 6s; }
.social-icon-bg:nth-child(28) { top: 75%; left: 75%; color: #0077b5; animation-delay: 0.9s; animation-duration: 10s; }
.social-icon-bg:nth-child(29) { top: 88%; left: 35%; color: #000000; animation-delay: 3.9s; animation-duration: 7s; }
.social-icon-bg:nth-child(30) { top: 92%; left: 8%; color: #fffc00; animation-delay: 1.4s; animation-duration: 8s; }

/* Animation keyframes */
@keyframes floatSocial {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.08;
    }
    20% {
        transform: translateY(-15px) rotate(72deg) scale(1.1);
        opacity: 0.15;
    }
    40% {
        transform: translateY(-8px) rotate(144deg) scale(0.9);
        opacity: 0.12;
    }
    60% {
        transform: translateY(-25px) rotate(216deg) scale(1.2);
        opacity: 0.18;
    }
    80% {
        transform: translateY(-12px) rotate(288deg) scale(1.05);
        opacity: 0.1;
    }
}

/* Pulse animation for some icons */
.social-icon-bg:nth-child(odd) {
    animation-name: pulseSocial;
}

@keyframes pulseSocial {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.08;
    }
    25% {
        transform: scale(1.3) rotate(90deg);
        opacity: 0.2;
    }
    50% {
        transform: scale(0.8) rotate(180deg);
        opacity: 0.05;
    }
    75% {
        transform: scale(1.1) rotate(270deg);
        opacity: 0.15;
    }
}

/* Hover effects */
.customer-reviews:hover .social-icon-bg {
    animation-play-state: paused;
    opacity: 0.25;
    transform: scale(1.2);
}

.customer-reviews:hover .social-icon-bg:nth-child(even) {
    opacity: 0.3;
    transform: scale(1.4) rotate(45deg);
}

/* Different sizes for variety */
.social-icon-bg:nth-child(3n) {
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.social-icon-bg:nth-child(5n) {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.social-icon-bg:nth-child(7n) {
    width: 25px;
    height: 25px;
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-icon-bg {
        width: 25px;
        height: 25px;
        font-size: 12px;
        opacity: 0.05;
    }

    .social-icon-bg:nth-child(3n) {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .social-icon-bg:nth-child(5n) {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    /* Hide some icons on mobile for better performance */
    .social-icon-bg:nth-child(n+21) {
        display: none;
    }
}

/* Social Media Background Icons */
.social-bg-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.social-icon-bg {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.1;
    animation: floatSocial 6s ease-in-out infinite;
}

.social-icon-bg:nth-child(1) {
    top: 10%;
    left: 5%;
    color: #1877f2;
    animation-delay: 0s;
    animation-duration: 8s;
}

.social-icon-bg:nth-child(2) {
    top: 20%;
    right: 8%;
    color: #25d366;
    animation-delay: 1s;
    animation-duration: 7s;
}

.social-icon-bg:nth-child(3) {
    top: 60%;
    left: 3%;
    color: #0084ff;
    animation-delay: 2s;
    animation-duration: 9s;
}

.social-icon-bg:nth-child(4) {
    top: 15%;
    left: 50%;
    color: #e4405f;
    animation-delay: 0.5s;
    animation-duration: 6s;
}

.social-icon-bg:nth-child(5) {
    top: 70%;
    right: 15%;
    color: #1da1f2;
    animation-delay: 3s;
    animation-duration: 8s;
}

.social-icon-bg:nth-child(6) {
    top: 40%;
    right: 5%;
    color: #ff0000;
    animation-delay: 1.5s;
    animation-duration: 7s;
}

.social-icon-bg:nth-child(7) {
    top: 80%;
    left: 20%;
    color: #0077b5;
    animation-delay: 4s;
    animation-duration: 6s;
}

.social-icon-bg:nth-child(8) {
    top: 30%;
    left: 80%;
    color: #0088cc;
    animation-delay: 2.5s;
    animation-duration: 9s;
}

.social-icon-bg:nth-child(9) {
    top: 50%;
    left: 25%;
    color: #000000;
    animation-delay: 3.5s;
    animation-duration: 7s;
}

.social-icon-bg:nth-child(10) {
    top: 85%;
    right: 30%;
    color: #fffc00;
    animation-delay: 4.5s;
    animation-duration: 8s;
}

@keyframes floatSocial {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(90deg) scale(1.1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-10px) rotate(180deg) scale(0.9);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-30px) rotate(270deg) scale(1.2);
        opacity: 0.25;
    }
}

/* Hover effect for the entire section */
.customer-reviews:hover .social-icon-bg {
    animation-play-state: paused;
    opacity: 0.3;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.reviews-container {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Ensure content is above background icons */
.customer-reviews .container {
    position: relative;
    z-index: 10;
}

.customer-reviews .section-title,
.customer-reviews .section-subtitle {
    position: relative;
    z-index: 15;
}

.review-bubble {
    position: absolute;
    background: white;
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 90%;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.8s ease;
    border-left: 5px solid var(--primary-color);
}

.review-bubble.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bubble-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-color);
    margin: 0;
    font-style: italic;
    position: relative;
}

.review-text p::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    left: -20px;
    top: -10px;
    font-family: serif;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.reviewer-details h5 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.reviewer-details span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* ===== Partners Section ===== */
.partners-section {
    background: white;
    overflow: hidden;
}

.partners-carousel {
    overflow: hidden;
    position: relative;
    height: 200px;
}

.partners-track {
    display: flex;
    animation: scroll-partners 20s linear infinite;
    gap: 2rem;
    align-items: center;
}

.partner-card {
    flex: 0 0 250px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.partner-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f8f9fa;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.partner-logo svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo img,
.partner-card:hover .partner-logo svg {
    transform: scale(1.1);
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    font-size: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.partner-card:hover .logo-placeholder {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: white;
    transform: scale(1.1);
}

.partner-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Duplicate partners for seamless loop */
.partners-track::after {
    content: '';
    display: flex;
    gap: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .review-bubble {
        padding: 1.5rem;
        max-width: 95%;
    }

    .review-text p {
        font-size: 1rem;
    }

    .review-text p::before {
        font-size: 2rem;
        left: -15px;
        top: -5px;
    }

    .reviewer-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .partner-card {
        flex: 0 0 200px;
        padding: 1rem;
    }

    .partner-logo {
        width: 60px;
        height: 60px;
    }

    .logo-placeholder {
        font-size: 1.5rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation-fill-mode: forwards;
}

.animate-on-scroll.animate {
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
}

.animate-on-scroll.fade-up.animate {
    animation-name: fadeInUp;
}

.animate-on-scroll.fade-right.animate {
    animation-name: fadeInRight;
}

.animate-on-scroll.fade-left.animate {
    animation-name: fadeInLeft;
}

/* ===== ABOUT SYSTEM SECTION ===== */
.about-system-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.about-system-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="1" fill="%23000" opacity="0.02"/><circle cx="10" cy="50" r="1" fill="%23000" opacity="0.02"/><circle cx="90" cy="30" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-content h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content .lead {
    color: #5a6c7d;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-features li {
    padding: 0.75rem 0;
    color: #495057;
    font-size: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.about-features li:last-child {
    border-bottom: none;
}

.about-image {
    position: relative;
    z-index: 2;
}

.system-preview {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.3s ease;
}

.system-preview:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.preview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.preview-dots span:first-child {
    background: #ff5f56;
}

.preview-dots span:nth-child(2) {
    background: #ffbd2e;
}

.preview-dots span:last-child {
    background: #27ca3f;
}

.preview-title {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.preview-body {
    padding: 2rem;
}

.dashboard-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.about-system-section .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.about-system-section .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.about-feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.about-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.about-feature-card .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.about-feature-card h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-feature-card p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* ===== Dashboards Section ===== */
.dashboards-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.dashboard-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.dashboard-card.admin-dashboard::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dashboard-card.teacher-dashboard::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.dashboard-card.student-dashboard::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.dashboard-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    position: relative;
}

.admin-dashboard .dashboard-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.teacher-dashboard .dashboard-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.student-dashboard .dashboard-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.dashboard-icon i {
    font-size: 2.5rem;
    color: white;
}

.dashboard-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.dashboard-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.dashboard-features {
    list-style: none;
    padding: 0;
    text-align: right;
}

.dashboard-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
    padding-right: 2rem;
    color: var(--secondary-color);
}

.dashboard-features li:last-child {
    border-bottom: none;
}

.dashboard-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0.75rem;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===== Advanced Features ===== */
.advanced-features {
    padding: 5rem 0;
}

.advanced-feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.advanced-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.advanced-feature-card .feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.advanced-feature-card .feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.advanced-feature-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.advanced-feature-card ul {
    list-style: none;
    padding: 0;
    text-align: right;
}

.advanced-feature-card ul li {
    padding: 0.5rem 0;
    color: var(--secondary-color);
    position: relative;
    padding-right: 1.5rem;
}

.advanced-feature-card ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== Security & Analytics ===== */
.security-analytics {
    padding: 5rem 0;
    background: var(--light-color);
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.security-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.security-item i {
    font-size: 2rem;
    margin-top: 0.5rem;
}

.security-item h5 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.security-item p {
    color: var(--secondary-color);
    margin: 0;
}

.analytics-preview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.analytics-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-right: 4px solid var(--primary-color);
}

.analytics-card h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-value {
    font-weight: 600;
    color: var(--dark-color);
}

.progress-item {
    margin-bottom: 1rem;
}

.progress-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* ===== Get System Section ===== */
.get-system-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.get-system-section .section-title {
    color: white;
}

.get-system-section .section-title::after {
    background: var(--warning-color);
}

.benefit-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    position: relative;
    color: var(--dark-color);
    padding: 2.5rem 2rem;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.benefit-card.featured {
    transform: scale(1.05);
    border: 3px solid var(--warning-color);
}

.benefit-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--warning-color);
    color: var(--dark-color);
    padding: 0.5rem 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    transform: rotate(45deg);
    z-index: 10;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.benefit-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.benefit-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
    padding-right: 2rem;
    color: var(--secondary-color);
}

.benefit-list li:last-child {
    border-bottom: none;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0.75rem;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.system-guarantee {
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.guarantee-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.guarantee-content i {
    font-size: 2.5rem;
    color: var(--warning-color);
}

.guarantee-content h5 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.guarantee-content p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.6;
}

.guarantee-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.guarantee-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.guarantee-item i {
    font-size: 1.2rem;
    color: var(--warning-color);
}

.guarantee-item span {
    color: white;
    font-weight: 500;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 5rem 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    z-index: 0;
}

.contact-form-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
}

.contact-form .form-control {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    background: white;
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.contact-form .btn {
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.contact-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#formMessage {
    border-radius: 10px;
    padding: 1rem;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#formMessage.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #b8dacc;
    color: #155724;
}

#formMessage.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    border: 1px solid #f1b0b7;
    color: #721c24;
}

.contact-info-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info-item i {
    font-size: 2rem;
    color: var(--warning-color);
    margin-bottom: 1rem;
}

.contact-info-item h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-info-item p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color) !important;
    border-top: 3px solid var(--primary-color);
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white !important;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
    border-color: var(--primary-color);
}

.social-link i {
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

/* Legacy social links support */
.social-links a {
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--warning-color) !important;
    transform: translateY(-2px);
}

/* Footer Text Styling */
.footer p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 !important;
    }

    .footer p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem !important;
    }

    .social-links {
        justify-content: center;
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Additional Mobile Fixes for Very Small Screens */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-section {
        padding-top: 150px;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .hero-buttons .btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .dashboard-preview {
        margin-top: 2rem;
    }

    .stat-card .number {
        font-size: 1.2rem;
    }

    .stat-card .label {
        font-size: 0.75rem;
    }
}

/* Enhanced Mobile Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fix for text overflow and layout issues */
@media (max-width: 768px) {
    .hero-content * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .dashboard-preview {
        overflow: hidden;
        border-radius: 15px;
    }

    .stat-card {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .stat-card > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-buttons .btn {
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-buttons .btn i {
        margin-left: 0.5rem;
        flex-shrink: 0;
    }

    /* Ensure proper RTL/LTR icon spacing */
    [dir="rtl"] .hero-buttons .btn i {
        margin-left: 0;
        margin-right: 0.5rem;
    }

    [dir="ltr"] .hero-buttons .btn i {
        margin-right: 0.5rem;
        margin-left: 0;
    }
}

/* RTL/LTR Layout Classes for Mobile */
@media (max-width: 768px) {
    .hero-content.rtl-layout {
        text-align: center !important;
        direction: rtl;
    }

    .hero-content.ltr-layout {
        text-align: center !important;
        direction: ltr;
    }

    .hero-content.rtl-layout .hero-title,
    .hero-content.rtl-layout .hero-subtitle {
        text-align: center !important;
        direction: rtl;
    }

    .hero-content.ltr-layout .hero-title,
    .hero-content.ltr-layout .hero-subtitle {
        text-align: center !important;
        direction: ltr;
    }

    .hero-content.rtl-layout .hero-stats,
    .hero-content.rtl-layout .hero-buttons {
        justify-content: center !important;
        direction: rtl;
    }

    .hero-content.ltr-layout .hero-stats,
    .hero-content.ltr-layout .hero-buttons {
        justify-content: center !important;
        direction: ltr;
    }

    /* RTL specific button styling */
    [dir="rtl"] .hero-buttons .btn {
        flex-direction: row-reverse;
    }

    [dir="ltr"] .hero-buttons .btn {
        flex-direction: row;
    }

    /* RTL specific stat item styling */
    [dir="rtl"] .stat-item {
        text-align: center;
    }

    [dir="ltr"] .stat-item {
        text-align: center;
    }
}



@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth transitions for language switching */
.hero-content,
.hero-title,
.hero-subtitle,
.hero-stats,
.hero-buttons {
    transition: all 0.3s ease;
}



@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced button hover effects for mobile */
@media (max-width: 768px) {
    .hero-buttons .btn {
        transform: scale(1);
        transition: all 0.3s ease;
    }

    .hero-buttons .btn:active {
        transform: scale(0.95);
    }

    .hero-buttons .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}



/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .hero-section {
        will-change: transform;
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .dashboard-preview {
        will-change: transform, opacity;
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .hero-content > * {
        will-change: transform, opacity;
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* Touch-friendly interactions */
    .btn, .nav-link, .stat-card, .feature-card {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }

    /* Smooth touch feedback */
    .btn:active,
    .nav-link:active,
    .stat-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Enhanced button press effect */
    .hero-buttons .btn:active {
        transform: scale(0.95) translateY(1px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    /* Language toggle animation */
    #langToggle {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #langToggle:active {
        transform: scale(0.9) rotate(5deg);
    }

    /* Swipe indicator for language toggle */
    .hero-section::after {
        content: '';
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        animation: swipeHint 3s ease-in-out infinite;
    }

    @keyframes swipeHint {
        0%, 100% {
            opacity: 0.3;
            transform: translateX(-50%) scaleX(1);
        }
        50% {
            opacity: 0.6;
            transform: translateX(-50%) scaleX(1.5);
        }
    }
}

/* ===== AOS Animation Overrides for Consistent Experience ===== */
/* Ensure AOS works the same on all devices */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Disable AOS animations on very small screens if needed */
@media (max-width: 320px) {
    [data-aos] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Ensure smooth transitions for all AOS elements */
[data-aos] {
    transition-property: transform, opacity;
    transition-timing-function: ease;
}

/* Custom AOS animations for better mobile experience */
[data-aos="fade-up"] {
    transform: translate3d(0, 40px, 0);
    opacity: 0;
}

[data-aos="fade-up"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translate3d(-40px, 0, 0);
    opacity: 0;
}

[data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

[data-aos="fade-left"] {
    transform: translate3d(40px, 0, 0);
    opacity: 0;
}

[data-aos="fade-left"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
    opacity: 0;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

/* Ensure consistent performance across devices */
[data-aos] {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}
