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

/* Clean Color Palette for Conversions */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Clean Arabic font support */
[lang="ar"] body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    direction: rtl;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

/* Arabic typography for headings */
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4, [lang="ar"] h5, [lang="ar"] h6 {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

/* Clean animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-cta {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-content {
    direction: rtl;
}

/* Clean Header */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    transition: color 0.2s ease;
    border-bottom: 2px solid transparent;
}

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

.nav-dashboard {
    background: var(--bg-accent);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-dashboard:hover {
    background: var(--primary-color);
    color: white !important;
    border-bottom-color: transparent !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile-Optimized Language Toggle */
.language-switcher {
    display: flex;
    gap: 0.25rem;
    margin-left: 1rem;
    align-items: center;
}

.lang-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    min-width: 65px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.lang-toggle-btn:hover {
    background: var(--bg-accent);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-toggle-btn .lang-text {
    transition: opacity 0.2s ease;
}

.lang-toggle-btn .lang-divider {
    opacity: 0.5;
    font-weight: 300;
}

/* Arabic font for buttons and UI elements */
[lang="ar"] .cta-button,
[lang="ar"] .lang-toggle-btn,
[lang="ar"] .nav-links a {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

/* Clean Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Compact Hero Section */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 450px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 160px;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.cta-button.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-image-container {
    width: 100%;
    max-width: 400px;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    background: linear-gradient(45deg, #667eea, #764ba2);
    padding: 3px;
    animation: imageContainerPulse 4s ease-in-out infinite;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d, #093637, #667eea);
    background-size: 400% 400%;
    border-radius: calc(var(--radius-lg) + 6px);
    z-index: -1;
    animation: rotatingBorder 3s ease-in-out infinite;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: calc(var(--radius-lg) - 3px);
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
}

.hero-img:hover {
    transform: scale(1.08) rotate(2deg);
    filter: brightness(1.2) contrast(1.2) saturate(1.3);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

@keyframes imageContainerPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    }
}

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

/* Phone Number LTR Direction Fix */
[data-lang="contact-phone-value"],
input[type="tel"],
.phone-number,
.phone-display {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext !important;
}

[dir="rtl"] [data-lang="contact-phone-value"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] .phone-number,
[dir="rtl"] .phone-display {
    text-align: left !important;
}

/* Dashboard table phone numbers */
.dashboard-table .phone-display {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
    font-family: 'Poppins', monospace;
}

/* Compact Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Compact Courses Section */
.courses {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Compact Course Structure */
.course-structure {
    padding: 60px 0;
    background: var(--bg-primary);
}

.course-timeline {
    max-width: 700px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
    animation: fadeInUp 0.8s ease-out;
}

.timeline-number {
    background: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    flex: 1;
    border-left: 3px solid var(--primary-color);
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Clean Pricing Section */
.pricing {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.promo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-header {
    padding: 2rem;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.original-price {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.promo-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.savings {
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pricing-features {
    padding: 0 2rem 2rem;
}

.pricing-features p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.pricing-card.featured .cta-button {
    margin: 0 2rem 2rem;
    width: calc(100% - 4rem);
    text-align: center;
}

/* Clean Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.contact-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
}

.enrollment-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--bg-primary);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Arabic font for form inputs */
[lang="ar"] .form-group input,
[lang="ar"] .form-group select {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

/* Clean Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Dropdown Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        text-align: left;
        font-size: 1rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-dashboard {
        margin-top: 0.5rem;
        text-align: center;
        border: 1px solid var(--primary-color);
    }

    .language-switcher {
        position: absolute;
        top: 50%;
        right: 4rem;
        transform: translateY(-50%);
        z-index: 1000;
    }
}

/* Optimized Mobile Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .hero-image-container {
        max-width: 350px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 0.75rem;
        height: 55px;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .language-switcher {
        margin-left: 0.75rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 70px 0 50px;
    }

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

    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .cta-button {
        width: 100%;
        max-width: 220px;
        padding: 0.75rem 1.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
        height: 50px;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }

    .language-switcher {
        margin-left: 0.5rem;
    }

    .lang-toggle-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        min-width: 55px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

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

    .feature-card {
        padding: 1.2rem;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .hero-image-container {
        max-width: 300px;
        height: 240px;
    }

    /* Form Feedback Styles */
    .form-feedback {
        margin-top: 1.5rem;
        animation: slideDown 0.4s ease-out;
    }

    .success-feedback {
        background: linear-gradient(135deg, #10b981, #059669);
        border-radius: var(--radius-lg);
        padding: 1.5rem;
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
        border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .feedback-content {
        display: flex;
        align-items: center;
        gap: 1rem;
        color: white;
    }

    .feedback-icon {
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .feedback-text {
        font-size: 1.1rem;
        font-weight: 500;
        line-height: 1.4;
    }

    /* Mobile feedback adjustments */
    @media (max-width: 768px) {
        .success-feedback {
            padding: 1.2rem;
            margin: 1rem;
        }

        .feedback-content {
            gap: 0.8rem;
        }

        .feedback-icon {
            font-size: 1.3rem;
        }

        .feedback-text {
            font-size: 1rem;
        }
    }

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

