/* Custom CSS for EduTech Landing Page */

:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Hide vertical scrollbars globally while preserving scrolling */
html, body {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0px; /* Chrome, Safari and Opera */
    height: 0px;
}
/* Also hide scrollbars for any inner scrollable containers */
* {
    scrollbar-width: none;
}
*::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    max-width: 100vw;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

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

/* SmartKit Loading Animation */
.smartkit-loader {
    text-align: center;
}

.smartkit-text {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: pulse-text 2s ease-in-out infinite;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce-dots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

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

@keyframes bounce-dots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Modern Hamburger Menu */
.sidebar-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(79, 70, 229, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.sidebar-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sidebar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Modern Sidebar */
.modern-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.modern-sidebar.active {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar-brand i {
    font-size: 2rem;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.sidebar-menu {
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-link.active {
    background: var(--gradient);
    color: white;
}

.sidebar-link i {
    font-size: 1.25rem;
    width: 24px;
}

.sidebar-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.sidebar-social a {
    width: 40px;
    height: 40px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.brand-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Language Switcher */
.lang-switch {
    position: relative;
    display: inline-block;
    height: 34px;
    padding: 0 6px;
}
.lang-switch input { display: none; }
.lang-switch-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    user-select: none;
}
.lang-switch .lang {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-dark);
}
.lang-switch .switch-handle {
    width: 34px;
    height: 22px;
    background: var(--gradient);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow);
}
.lang-switch input:checked + .lang-switch-label .switch-handle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.lang-switch input:checked + .lang-switch-label .lang-en { opacity: 0.6; }
.lang-switch input:not(:checked) + .lang-switch-label .lang-ar { opacity: 0.6; }

.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    width: 100%;
    max-width: 100vw;
}

.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 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 500px;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.hero-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    opacity: 0.8;
    margin: 0;
}

/* Hero Image */
.hero-image {
    position: relative;
    height: 600px;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 0%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    right: 20%;
    animation-delay: 4s;
}

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

.hero-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
}

.dashboard-mockup {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    overflow: hidden !important;
    position: relative;
}

.dashboard-mockup * {
    overflow: hidden !important;
}

.mockup-header {
    height: 40px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

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

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

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-content {
    display: flex;
    height: calc(100% - 40px);
    overflow: hidden !important;
}

.mockup-sidebar {
    width: 80px;
    background: var(--gradient);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px;
}

.sidebar-item {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-item.active {
    background: white;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.mockup-main {
    flex: 1;
    padding: 1rem;
    background: #f8fafc;
    overflow: hidden !important;
}

.mockup-chart {
    height: 120px;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: end;
    padding: 15px;
    position: relative;
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    width: 100%;
    height: 100%;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-color) 0%, #8b5cf6 100%);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    animation: chartGrow 2s ease-out;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@keyframes chartGrow {
    from {
        height: 0;
    }
    to {
        height: var(--final-height, 50%);
    }
}

.mockup-cards {
    display: flex;
    gap: 0.5rem;
    overflow: hidden !important;
}

.mockup-card {
    flex: 1;
    height: 60px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mockup-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

.card-icon.grade-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.card-icon.attendance-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.card-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Section */
.features-section {
    background: var(--bg-light);
    overflow: hidden !important;
}

.features-section .container,
.features-section .row,
.features-section .col-lg-8,
.features-section .section-title,
.features-section .section-description {
    overflow: hidden !important;
}

.features-section .row.g-4 {
    overflow: hidden !important;
}

/* Prevent scroll on mobile for features */
@media (max-width: 768px) {
    .features-section {
        overflow-x: hidden !important;
        overflow-y: hidden !important;
    }
    
    .features-section .container {
        overflow: hidden !important;
        max-width: 100vw;
    }
    
    .features-section .row {
        overflow: hidden !important;
        margin: 0 !important;
    }
    
    .features-section .col-lg-4,
    .features-section .col-md-6 {
        overflow: hidden !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .feature-card {
        overflow: hidden !important;
        word-wrap: break-word;
        max-width: 100%;
    }
}

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

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
    overflow-y: hidden !important;
}

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

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

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

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

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

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

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-content {
    padding-right: 2rem;
}

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

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.about-feature h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.about-feature p {
    color: var(--text-light);
    margin: 0;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact-section {
    background: var(--bg-light);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

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

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

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Modern Footer */
.modern-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 4rem 0 0;
}

.footer-content {
    padding-bottom: 3rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

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

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

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

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

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.footer-newsletter-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 0.75rem 1.25rem;
    background: var(--gradient);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
    position: relative;
}

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

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-weight: 500;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 2rem 2rem 1rem;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.login-form .form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

/* Enhanced Responsive Design */
.container, .container-fluid {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

.col, [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

/* Prevent all elements from causing horizontal scroll */
* {
    max-width: 100%;
    box-sizing: border-box;
}

img, video, iframe, embed, object {
    max-width: 100% !important;
    height: auto !important;
}

.hero-title, .section-title, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.feature-card, .about-feature, .contact-form {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .modern-sidebar {
        width: 350px;
        right: -350px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
}

@media (max-width: 992px) {
    .modern-sidebar {
        width: 320px;
        right: -320px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-image {
        height: 500px;
        margin-top: 2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .modern-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .hero-section {
        padding-top: 100px;
        min-height: calc(100vh - 20px);
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
        margin-top: 2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.125rem;
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .hero-buttons {
        text-align: center;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-image {
        height: 400px;
        margin-top: 3rem;
    }
    
    .floating-card {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .dashboard-mockup {
        width: 300px;
        height: 200px;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .stat-item {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 120px;
        min-height: calc(100vh - 40px);
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-top: 3rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .sidebar-header {
        padding: 1.5rem;
    }
    
    .sidebar-content {
        padding: 1.5rem;
    }
    
    .sidebar-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .hero-image {
        height: 400px;
        position: relative;
        margin-top: 2rem;
    }
    
    .floating-card {
        position: absolute;
        background: white;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 600;
        color: var(--text-dark);
        font-size: 0.75rem;
        animation: float 6s ease-in-out infinite;
        z-index: 2;
    }
    
    .floating-card i {
        font-size: 1rem;
    }
    
    .card-1 {
        top: 5%;
        right: 5%;
        animation-delay: 0s;
    }
    
    .card-2 {
        top: 45%;
        right: 0%;
        animation-delay: 2s;
    }
    
    .card-3 {
        bottom: 15%;
        right: 10%;
        animation-delay: 4s;
    }
    
    .dashboard-mockup {
        width: 280px;
        height: 200px;
        margin: 0 auto;
    }
    
    .hero-illustration {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .hero-image {
        height: 350px;
    }
    
    .dashboard-mockup {
        width: 220px;
        height: 160px;
    }
    
    .floating-card {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .floating-card i {
        font-size: 0.9rem;
    }
    
    .smartkit-text {
        font-size: 2.5rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ======================== */
/* RTL Support Adjustments  */
/* ======================== */
html[dir="rtl"] body {
    direction: rtl;
}

/* Mirror margin utility used in icons/buttons where needed */
html[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: .5rem !important; }

/* Sidebar slides from left in RTL */
html[dir="rtl"] .modern-sidebar { right: auto; left: -400px; }
@media (max-width: 1200px) { html[dir="rtl"] .modern-sidebar { left: -350px; } }
@media (max-width: 992px)  { html[dir="rtl"] .modern-sidebar { left: -320px; } }
@media (max-width: 768px)  { html[dir="rtl"] .modern-sidebar { left: -100%; } }
html[dir="rtl"] .modern-sidebar.active { left: 0; right: auto; }

/* Hover translate direction for links */
html[dir="rtl"] .sidebar-link:hover { transform: translateX(-5px); }

/* WhatsApp tooltip position mirrored */
html[dir="rtl"] .whatsapp-tooltip { right: auto; left: 70px; }
html[dir="rtl"] .whatsapp-btn:hover .whatsapp-tooltip { left: 75px; }

/* Navbar alignment and spacing in RTL */
html[dir="rtl"] .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
}
/* Only show desktop nav on lg+ in RTL, matching Bootstrap's navbar-expand-lg behavior */
@media (min-width: 992px) {
    html[dir="rtl"] .navbar .desktop-nav {
        display: flex !important;
    }
}
html[dir="rtl"] .navbar .desktop-nav {
    align-items: center;
    margin-left: auto !important; /* center/space with brand when row-reverse */
    margin-right: 0 !important;
}
html[dir="rtl"] .navbar .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
/* Mirror Bootstrap margin utilities often used in nav */
html[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: .5rem !important; }
html[dir="rtl"] .ms-3 { margin-left: 0 !important; margin-right: 1rem !important; }

/* Language switch vertical alignment in nav */
html[dir="rtl"] .navbar .lang-switch-label { align-items: center; }

/* Hide desktop nav below lg in both directions to only show the menu icon */
@media (max-width: 991.98px) {
    .navbar .desktop-nav { display: none !important; }
    .navbar .sidebar-toggle { display: inline-flex !important; }
}

/* Hide menu icon on lg+ where desktop nav is visible */
@media (min-width: 992px) {
    .navbar .sidebar-toggle { display: none !important; }
}
