/* ========================================
   SOFTA Architect Website Custom Styles
   ======================================== */

/* Import Google Fonts for English text */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800;900&display=swap');

/* Root Variables - متغيرات CSS الأساسية */
:root {
    --primary-blue: rgb(53, 110, 181);
    --primary-blue-dark: rgba(42, 88, 145, 1);
    --primary-blue-light: rgba(53, 110, 181, 0.1);
    --secondary-gray: #6B7280;
    --accent-orange: #F59E0B;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles - الأنماط الأساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Typography - الطباعة */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Container - الحاوية */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles - أنماط الهيدر */
header {
    background: #6B7280;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-light);
}

/* Navigation - التنقل */
nav a {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section - قسم الترحيب */
.hero-section {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    position: relative;
    overflow: hidden;
}

.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="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    background: linear-gradient(135deg, var(--text-dark), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons - الأزرار */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* Section Styles - أنماط الأقسام */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards - البطاقات */
.card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(229, 231, 235, 0.5);
}

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

.card-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-blue-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Grid Layouts - تخطيط الشبكة */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Form Styles - أنماط النماذج */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact Info - معلومات الاتصال */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Footer - التذييل */
footer {
    background:linear-gradient(135deg, #ede9f1, #eee6f6);
}

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

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
}

/* Scroll to Top Button - زر العودة للأعلى */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
}

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

.scroll-to-top:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-3px);
}

/* Mobile Menu - قائمة الموبايل */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E5E7EB;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--primary-blue);
    padding-left: 1rem;
}

/* Mobile Dropdown - القوائم المنسدلة للموبايل */
.mobile-dropdown-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: right;
    cursor: pointer;
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active {
    max-height: 200px;
}

.mobile-dropdown a {
    padding: 0.5rem 0;
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.mobile-dropdown a:hover {
    color: var(--primary-blue);
}

/* Desktop Dropdown - القوائم المنسدلة للكمبيوتر */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:visible {
    visibility: visible;
}

/* Dropdown Animation - تحريك القوائم المنسدلة */
.group:hover .group-hover\:opacity-100 {
    transform: translateY(0);
}

.group .group-hover\:opacity-100 {
    transform: translateY(-10px);
    transition: transform 0.3s ease;
}

/* Improved Dropdown Hover Experience - تحسين تجربة القوائم المنسدلة */
.group {
    position: relative;
}

.group .absolute {
    transition: all 0.3s ease;
    pointer-events: none;
}

.group:hover .absolute {
    pointer-events: auto;
}

/* Add delay to prevent dropdown from disappearing too quickly */
.group .absolute {
    transition-delay: 0.1s;
}

.group:hover .absolute {
    transition-delay: 0s;
}

/* Ensure dropdown stays visible when hovering over it */
.group .absolute:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

/* Additional dropdown improvements */
.group .absolute {
    z-index: 1000;
}

/* Prevent dropdown from closing when moving mouse to dropdown */
.group:hover .absolute {
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

/* Add small gap between button and dropdown to prevent accidental closing */
.group .absolute {
    margin-top: 8px;
}

/* Ensure smooth transitions */
.group .absolute {
    transition: all 0.2s ease-in-out;
}

/* Responsive Design - التصميم المتجاوب */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    section {
        padding: 3rem 0;
    }
    
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Animations - الرسوم المتحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Loading States - حالات التحميل */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes - فئات مساعدة */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

/* Print Styles - أنماط الطباعة */
@media print {
    .scroll-to-top,
    .mobile-menu-btn,
    .social-links {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Custom CSS for SOFTA Website */

/* Animation Delays for Floating Elements */
.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Apply Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-slide-in-left {
    animation: slide-in-left 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slide-in-right 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

/* Enhanced Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(45deg, #3b82f6, rgba(53, 110, 181, 1), #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, rgba(53, 110, 181, 1) 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Flash Deal Card Enhancements */
.flash-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.flash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.flash-card:hover::before {
    left: 100%;
}

.flash-card:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Countdown Timer Enhancements */
.countdown-item {
    transition: all 0.3s ease;
    position: relative;
}

.countdown-item:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .flash-card:hover {
        transform: scale(1.02);
    }
    
    .countdown-item:hover {
        transform: scale(1.05);
    }
}

/* Loading Animation for Flash Sale Banner */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, #ef4444, #f97316, #ef4444);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Enhanced Mobile Menu */
.mobile-menu-item {
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, rgba(53, 110, 181, 1));
    transition: width 0.3s ease;
}

.mobile-menu-item:hover::after {
    width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, rgba(53, 110, 181, 1));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, rgba(53, 110, 181, 1));
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .glass {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Print Styles */
@media print {
    .flash-card,
    .countdown-item,
    .btn-primary {
        box-shadow: none !important;
        transform: none !important;
    }
}

/* ========================================
   Hosting Packages Tab Styles
   ======================================== */

/* Tab Navigation Styles */
.tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    background-color: rgb(53, 110, 181) !important;
    color: white !important;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Tab Content Transitions */
.tab-pane {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pane:not(.active) {
    display: none;
}

.tab-pane.active {
    animation: tabFadeIn 0.4s ease-out;
}

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

/* Package Card Enhancements */
.package-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: left 0.6s;
}

.package-card:hover::before {
    left: 100%;
}

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

/* Popular Badge Animation */
.popular-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Feature List Enhancements */
.feature-list li {
    transition: all 0.3s ease;
    position: relative;
}

.feature-list li:hover {
    transform: translateX(5px);
    color: #059669;
}

.feature-list li svg {
    transition: all 0.3s ease;
}

.feature-list li:hover svg {
    transform: scale(1.2);
    color: #059669;
}

/* Responsive Tab Design */
@media (max-width: 768px) {
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .tab-btn span {
        font-size: 0.875rem;
    }
    
    .package-card:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .tab-btn svg {
        width: 1rem;
        height: 1rem;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] .feature-list li:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .tab-btn::before {
    left: 100%;
    transition: left 0.5s;
}

[dir="rtl"] .tab-btn:hover::before {
    left: -100%;
}

/* Accessibility Enhancements */
.tab-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.tab-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .tab-btn {
        border: 2px solid currentColor;
    }
    
    .tab-btn.active {
        border-color: #3b82f6;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .tab-btn,
    .tab-pane,
    .package-card,
    .feature-list li {
        transition: none;
        animation: none;
    }
    
    .tab-btn::before,
    .package-card::before {
        display: none;
    }
}

/* ========================================
   FAQ Section Styles - أنماط قسم الأسئلة الشائعة
   ======================================== */

/* FAQ Container */
.faq-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* FAQ Tabs */
.faq-tab {
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.faq-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.faq-tab:hover::before {
    left: 100%;
}

.faq-tab.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* FAQ Content */
.faq-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.faq-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Questions */
.faq-question {
    background: none;
    border: none;
    width: 100%;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-question:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
}

/* FAQ Icons */
.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

/* FAQ Answers */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.faq-answer.faq-answer-open {
    max-height: 500px;
    opacity: 1;
}

/* FAQ Card Hover Effects */
.faq-content .bg-white {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-content .bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue-light);
}

/* FAQ Responsive Design */
@media (max-width: 768px) {
    .faq-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .faq-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .faq-content .bg-white {
        padding: 1rem;
    }
}

/* FAQ Animation Classes */
.faq-fade-in {
    animation: faqFadeIn 0.5s ease-in-out;
}

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

.faq-slide-in {
    animation: faqSlideIn 0.4s ease-out;
}

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

/* FAQ Accessibility */
.faq-question:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.faq-tab:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* FAQ Loading States */
.faq-loading {
    opacity: 0.6;
    pointer-events: none;
}

.faq-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-blue);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: faqSpin 1s linear infinite;
}

@keyframes faqSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Footer Styles - أنماط الفوتر
   ======================================== */

/* Footer Container */
footer {
    background:linear-gradient(rgb(230, 233, 238));
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0d1521, transparent);
}

/* Footer Links */
footer a {
    transition: all 0.3s ease;
    position: relative;
    color: #6b7280 !important;
    font-weight: 500;
}

footer a:hover {
    transform: translateX(5px);
    color: #4b5563 !important;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #6b7280;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Footer Social Icons */
footer .social-icon {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

footer .social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

footer .social-icon:hover::before {
    left: 100%;
}

footer .social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Footer Newsletter Form */
footer input[type="email"] {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

footer input[type="email"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

footer button[type="submit"] {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

footer button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

footer button[type="submit"]:hover::before {
    left: 100%;
}

footer button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Footer Section Headers */
footer h4, footer h5 {
    position: relative;
    color: #000000 !important;
}

footer h4::after, footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: rgba(53, 110, 181, 1);
    border-radius: 1px;
}

/* Footer Company Name - SOFTA */
footer .text-3xl, footer .font-bold {
    color: #1f2937 !important;
    font-weight: 700;
}

/* Footer Company Description Text */
footer .text-gray-600, footer .text-gray-500 {
    color: #1f2937 !important;
}

/* Footer Contact Links */
footer .contact-item a, footer .contact-item span {
    color: #1f2937 !important;
}

/* Footer Contact Information - Phone, Email, Address */
footer a[href^="tel:"], 
footer a[href^="mailto:"], 
footer .text-gray-600 a,
footer .contact-info a,
footer .contact-info span {
    color: #1f2937 !important;
}

/* Footer Gray Text - Make All Gray Text Black */
footer .text-gray-300,
footer .text-gray-400,
footer .text-gray-500,
footer .text-gray-600,
footer span,
footer p {
    color: #1f2937 !important;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    footer .grid {
        gap: 2rem;
    }
    
    footer h4::after, footer h5::after {
        width: 25px;
        bottom: -6px;
    }
}

@media (max-width: 640px) {
    footer {
        padding: 2rem 1rem;
    }
    
    footer .social-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    footer input[type="email"] {
        font-size: 0.875rem;
    }
}

/* Footer Animation Classes */
.footer-fade-in {
    animation: footerFadeIn 0.8s ease-in-out;
}

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

.footer-slide-up {
    animation: footerSlideUp 0.6s ease-out;
}

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

/* Footer Hover Effects */
footer .bg-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

footer .border-t {
    border-color: rgba(75, 85, 99, 0.5);
}

/* Footer Accessibility */
footer a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

footer button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Footer Loading States */
.footer-loading {
    opacity: 0.6;
    pointer-events: none;
}

.footer-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #3b82f6;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: footerSpin 1s linear infinite;
}

@keyframes footerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Hover Effects for Blue Border Buttons */
button[style*="border-color: rgb(53, 110, 181)"]:hover {
    background-color: rgb(53, 110, 181) !important;
    color: white !important;
}

/* Specific hover effect for Learn More button */
button[style*="color: rgb(53, 110, 181)"]:hover {
    background-color: rgb(53, 110, 181) !important;
    color: white !important;
}

/* Deploy AI Agents button hover effect */
button[style*="background-color: white"][style*="border-color: rgb(53, 110, 181)"]:hover {
    background-color: rgb(53, 110, 181) !important;
    color: white !important;
}

/* Schedule Demo button hover effect */
button[style*="background-color: white"][style*="color: rgb(53, 110, 181)"]:hover {
    background-color: rgb(53, 110, 181) !important;
    color: white !important;
}

/* Get Free Quote button hover effect */
button[style*="border-color: rgb(53, 110, 181)"][style*="color: rgb(53, 110, 181)"]:hover {
    background-color: rgb(53, 110, 181) !important;
    color: white !important;
}

/* Custom Hover Effects for Navigation Buttons */
.faq-tab:hover {
    background-color: rgb(53, 110, 181) !important;
    color: white !important;
}

/* Remove focus outlines and click borders from header elements */
header button:focus,
header a:focus,
header button:active,
header a:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Remove user-select to prevent double-click issues */
header button,
header a {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Remove any default button styles that might cause borders */
header button {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove focus styles from navigation links */
nav button:focus,
nav a:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Remove all default button and link styles that might cause issues */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Remove any browser default styles for buttons and links */
button, a {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Ensure smooth clicking without double-click requirement */
header * {
    pointer-events: auto;
    cursor: pointer;
}

/* Remove any transform or transition that might interfere with clicking */
header button,
header a {
    transform: none !important;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Custom hover colors for navigation elements */
header button:hover,
header a:hover,
nav button:hover,
nav a:hover {
    color: rgb(53, 110, 181) !important;
}

/* Mobile navigation hover colors */
.mobile-dropdown-btn:hover,
.mobile-dropdown a:hover {
    color: rgb(53, 110, 181) !important;
}

/* FAQ Tab Active State */
.faq-tab.active {
    background-color: rgb(53, 110, 181) !important;
    color: white !important;
}

/* FAQ Tab Inactive State */
.faq-tab:not(.active) {
    background-color: #E5E7EB !important;
    color: #374151 !important;
}

.faq-tab:not(.active):hover {
    background-color: #D1D5DB !important;
    color: #374151 !important;
}
