/* GENISTOCK - Professional Stock Management SaaS
   Complete CSS Stylesheet */

:root {
    /* Primary Colors */
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #eef2ff;
    --secondary: #7209b7;
    --secondary-dark: #5a0a94;
    --accent: #4cc9f0;
    
    /* Neutral Colors */
    --dark: #212529;
    --dark-light: #343a40;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #495057;
    --white: #ffffff;
    --black: #000000;
    
    /* Semantic Colors */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Effects */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
}

body[dir="rtl"] {
    font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Language Switcher Button (like WhatsApp) */
.language-switcher-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.3);
    z-index: 1000;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    padding: 8px;
    text-align: center;
}

.language-switcher-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(67, 97, 238, 0.4);
    background: var(--primary-dark);
}

.language-switcher-button i {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 2px;
}

.language-switcher-button .current-lang,
.language-switcher-button .current-currency {
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

/* Language Popup */
.language-popup {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 280px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: none;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--gray-light);
    overflow: hidden;
}

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

.language-popup.show {
    display: block;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--primary-light);
    border-bottom: 1px solid var(--gray-light);
}

.popup-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.close-popup {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-popup:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.lang-options,
.currency-options {
    padding: 10px;
}

.lang-option,
.currency-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 5px;
    border: 1px solid transparent;
}

.lang-option:hover,
.currency-option:hover {
    background: var(--gray-light);
}

.lang-option.selected,
.currency-option.selected {
    background: var(--primary-light);
    border-color: var(--primary);
}

.lang-name,
.currency-name {
    flex: 1;
    font-weight: 500;
    color: var(--dark);
}

.lang-code,
.currency-code {
    font-weight: 600;
    color: var(--gray);
    margin: 0 10px;
    width: 40px;
    text-align: center;
}

.lang-option i,
.currency-option i {
    color: var(--primary);
    font-size: 0.9rem;
    width: 20px;
}

.popup-divider {
    height: 1px;
    background: var(--gray-light);
    margin: 10px 20px;
}

/* Overlay for popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.popup-overlay.show {
    display: block;
}

/* Responsive Design for Language Switcher */
@media (max-width: 768px) {
    .language-switcher-button {
        bottom: 90px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .language-popup {
        bottom: 150px;
        right: 20px;
        width: 260px;
    }
    
    .lang-option,
    .currency-option {
        padding: 10px 12px;
    }
}

@media (max-width: 576px) {
    .language-switcher-button {
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .language-popup {
        bottom: 135px;
        right: 15px;
        width: 250px;
    }
    
    .language-switcher-button i {
        font-size: 18px;
    }
    
    .language-switcher-button .current-lang,
    .language-switcher-button .current-currency {
        font-size: 9px;
    }
}

/* Mobile specific: Adjust WhatsApp button position */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 30px;
        right: 20px;
    }
    
    .language-switcher-button {
        bottom: 100px;
        right: 20px;
    }
}

/* For RTL languages */
body[dir="rtl"] .language-popup {
    right: auto;
    left: 30px;
}

body[dir="rtl"] .language-switcher-button {
    right: auto;
    left: 30px;
}

@media (max-width: 768px) and [dir="rtl"] {
    .language-popup {
        left: 20px;
        right: auto;
    }
    
    .language-switcher-button {
        left: 20px;
        right: auto;
    }
    
    .whatsapp-button {
        left: 20px;
        right: auto;
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
    color: var(--white);
    font-size: 32px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

nav.scrolled {
    padding: 15px 5%;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 22px;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--primary);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

/* Hero Section */
.hero {
    padding: 180px 5% 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f4ff 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(114, 9, 183, 0.05) 100%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.primary-button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.secondary-button {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.dashboard-mockup {
    width: 100%;
    max-width: 700px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
    border: 10px solid var(--white);
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Sections Common Styles */
.section {
    padding: 100px 5%;
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-icon i {
    color: var(--white);
    font-size: 28px;
}

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

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

.feature-list {
    list-style: none;
    margin-top: 15px;
    text-align: left;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
    color: var(--gray);
    font-size: 0.95rem;
    position: relative;
    padding-left: 25px;
}

.feature-list li:before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

body[dir="rtl"] .feature-list li {
    padding-left: 0;
    padding-right: 25px;
}

body[dir="rtl"] .feature-list li:before {
    left: auto;
    right: 0;
}

/* Screenshots Section */
.screenshots-section {
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f4ff 100%);
}

.screenshot-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.screenshot-slider::-webkit-scrollbar {
    height: 8px;
}

.screenshot-slider::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

.screenshot-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--white);
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.screenshot-caption {
    padding: 15px;
    background: var(--white);
    font-weight: 500;
    text-align: center;
    border-top: 1px solid var(--gray-light);
}

/* Pricing Section */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    justify-items: center;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: var(--gray);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: var(--primary);
    font-size: 0.9rem;
}

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

/* Payment Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--dark);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-method.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.payment-details {
    display: none;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.error-message {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 5% 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: var(--white);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

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

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

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dark-light);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.newsletter-form .form-group {
    margin-top: 20px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #343a40;
    color: #adb5bd;
    font-size: 0.9rem;
}

.copyright a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 60px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .dashboard-mockup {
        max-width: 100%;
        transform: none;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .primary-button, .secondary-button {
        width: 100%;
    }
    
    .language-switcher {
        top: 15px;
        right: 15px;
        flex-wrap: wrap;
        gap: 3px;
        padding: 6px;
    }
    
    .lang-btn, .currency-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button i {
        font-size: 26px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 70px 5%;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Print Styles */
@media print {
    .language-switcher,
    .whatsapp-button,
    .cta-button,
    .hero-buttons,
    .modal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .hero, .section {
        padding: 20px 0 !important;
    }
}

/* Screenshots Section */
.screenshots-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
    position: relative;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.screenshot-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

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

.screenshot-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f8f9fa;
}

.screenshot-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.screenshot-item:hover .screenshot-thumbnail img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-overlay i {
    font-size: 2.5rem;
    color: white;
    background: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-caption {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--dark);
    background: white;
}

.no-screenshots {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-screenshots i {
    font-size: 4rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.no-screenshots p {
    color: var(--gray);
    font-size: 1.2rem;
}

/* Image Preview Modal */
.image-preview-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: var(--border-radius);
    z-index: 1001;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.image-preview-modal.active {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
}

.modal-overlay.active {
    display: block;
}

.modal-header {
    padding: 20px 30px;
    background: var(--dark);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    flex: 1;
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.nav-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.modal-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 10px;
}

#modalImage {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-counter {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.image-description {
    text-align: center;
    margin-top: 15px;
    color: var(--dark);
    font-weight: 500;
    padding: 10px;
    background: var(--gray-light);
    border-radius: 5px;
}

.modal-footer {
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 1px solid var(--gray-light);
}

.modal-footer button {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.download-btn {
    background: var(--success);
    color: white;
}

.download-btn:hover {
    background: #3db5d8;
}

.fullscreen-btn {
    background: var(--secondary);
    color: white;
}

.fullscreen-btn:hover {
    background: #6509a0;
}

/* Fullscreen mode */
.image-preview-modal.fullscreen {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
}

.image-preview-modal.fullscreen #modalImage {
    max-height: 80vh;
}

/* Responsive Design */
@media (max-width: 768px) {
    .screenshot-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .modal-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
    
    .image-preview-modal {
        width: 95%;
        height: 95vh;
    }
    
    .modal-header {
        padding: 15px;
    }
}


/* Why Choose Us Section */
.why-choose-section {
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(114, 9, 183, 0.03) 100%);
    border-radius: 50%;
    z-index: 0;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.why-choose-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 32px;
    transition: var(--transition);
}

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

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

.why-choose-card p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.stat-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: var(--gray);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animation for stats */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    animation: countUp 0.6s ease forwards;
    opacity: 0;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 992px) {
    .why-choose-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .why-choose-card {
        padding: 30px 20px;
    }
    
    .why-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}


/* Add this to your existing CSS */
html {
    scroll-padding-top: 80px; /* Height of your navigation bar */
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px; /* Adjust for mobile */
    }
}

/* Update the navigation active state styling */
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}



/* RTL Navigation Support */
body[dir="rtl"] .nav-links a::after {
    right: 0;
    left: auto;
}

body[dir="rtl"] .nav-links a:hover::after {
    right: 0;
    left: auto;
    width: 100%;
}

body[dir="rtl"] .footer-column h3::after {
    right: 0;
    left: auto;
}