* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #000;
    --accent: #4F46E5;
    --bg: #fff;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

#langToggle {
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
}

#langToggle:hover {
    background: var(--accent);
    color: white;
}

/* Hero Section with Animated Background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Animated Particle Background */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    min-height: 1.2em;
}

/* Typing cursor effect */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: white;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--accent);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Products Section */
.products {
    padding: 5rem 0;
    background: var(--bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Animated Product Icon Container */
.product-img {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    position: relative;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.product-img::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--gray);
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.buy-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.buy-btn:hover {
    background: var(--accent);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10B981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

/* Beautiful Floating Features Section */
.features {
    padding: 5rem 0;
    background: #0f0f1e;
    position: relative;
    overflow: hidden;
    color: white;
}

.features::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.4), transparent);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: pulse-glow 4s ease-in-out infinite;
}

.features::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.3), transparent);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: pulse-glow 5s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.feature-icon {
    font-size: 3rem;
    display: block;
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.feature-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    opacity: 0.2;
    animation: ripple 2s ease-in-out infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--light-gray);
    text-align: center;
}

.about p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray);
    font-size: 1.1rem;
}

.about-sen-1 {
    font-family: arial;
    font-weight: bold;
}

.edu-warning {
    color: red;
    font-weight: bold;
    text-decoration: underline;
    font-size: 1.2rem;
}

/* Custom App Section */
.custom-app {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.custom-app::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.custom-app-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.custom-app-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.custom-app-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.custom-app-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.custom-app-btn {
    padding: 1rem 2.5rem;
    background: white;
    color: var(--accent);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.custom-app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--bg);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.by-text1 {
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    position: relative;
    background: white;
    margin: 2rem auto;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    text-align: center;
    animation: slideIn 0.3s ease;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Pricing Table Styles */
.pricing-row {
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--light-gray);
}

.pricing-row:hover {
    background: #F9FAFB;
}

.pricing-row.selected {
    background: #EEF2FF;
    position: relative;
}

.pricing-row.selected::before {
    content: '✓';
    position: absolute;
    left: 0.5rem;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.pricing-row td {
    padding: 1rem 0.5rem;
}

.pricing-row.selected td {
    padding-left: 2rem;
}

.plan-period {
    font-weight: 600;
    color: var(--primary);
}

.plan-price {
    font-weight: 700;
    color: var(--accent);
    text-align: right;
}

.plan-savings {
    display: inline-block;
    background: #10B981;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Custom App Form Styles */
#customAppForm select {
    cursor: pointer;
    background: white;
}

#customAppForm select:focus {
    outline: none;
    border-color: var(--accent);
}

#customAppForm textarea {
    resize: vertical;
    min-height: 100px;
}

/* Parallax layers */
.parallax-layer {
    transition: transform 0.3s ease-out;
}

/* RTL Support - Keep these elements centered */
[dir="rtl"] nav ul {
    flex-direction: row-reverse;
}

/* Keep hero centered in both directions */
[dir="rtl"] .hero-content {
    text-align: center;
}

/* Keep product cards text aligned based on content */
[dir="rtl"] .product-card {
    text-align: right;
}

/* Keep about section centered */
[dir="rtl"] .about {
    text-align: center;
}

/* Keep custom app section centered */
[dir="rtl"] .custom-app-content {
    text-align: center;
}

/* Keep footer centered */
[dir="rtl"] footer {
    text-align: center;
}

/* Form groups should align right in RTL */
[dir="rtl"] .form-group {
    text-align: right;
}

/* Modal content should align right in RTL */
[dir="rtl"] .modal-content {
    text-align: center;
}

/* Tables align right in RTL */
[dir="rtl"] table {
    text-align: right;
}

[dir="rtl"] th:last-child,
[dir="rtl"] td:last-child {
    text-align: left;
}

/* RTL close button positioning */
[dir="rtl"] .close {
    right: auto;
    left: 1rem;
}

/* RTL checkmark positioning for selected pricing rows */
[dir="rtl"] .pricing-row.selected::before {
    left: auto;
    right: 0.5rem;
}

[dir="rtl"] .pricing-row.selected td {
    padding-left: 0.5rem;
    padding-right: 2rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}