
:root {
    --primary-color: #004aad;
    --secondary-color: #1e90ff;
    --accent-color: #00d4ff;
    --text-color: #333;
    --light-gray: #f5f7fa;
    --success-color: #28a745;
    --error-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[dir="rtl"] * {
    font-family: 'Cairo', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    transition: opacity 0.3s;
}

[dir="rtl"] .nav-links a {
    margin-right: 2rem;
    margin-left: 0;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Language Switcher */
.lang-switch {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

/* URL Shortener Form */
.url-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

input[type="url"] {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="url"]:focus {
    border-color: var(--secondary-color);
    outline: none;
}

button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background: var(--secondary-color);
}

button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Result Display */
.result-container {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.download-btn {
    background: var(--primary-color);
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.result-container.success {
    background-color: #d4edda;
    border: 1px solid var(--success-color);
    color: #155724;
}

.result-container.error {
    background-color: #f8d7da;
    border: 1px solid var(--error-color);
    color: #721c24;
}

.short-url {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    word-break: break-all;
}

.copy-btn {
    background: var(--success-color);
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.loading-spinner {
    display: none;
    margin-left: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    display: block;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 auto 1rem auto;
    text-align: center;
    width: 100%;
}

[dir="rtl"] .feature-card {
    text-align: center;
}

[dir="rtl"] .feature-icon {
    display: block !important;
    margin: 0 auto 1rem auto;
}

[dir="rtl"] .features-grid {
    direction: rtl;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: white;
    margin-left: 1rem;
    font-size: 1.5rem;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.8;
}

[dir="rtl"] .social-links a {
    margin-right: 1rem;
    margin-left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links a {
        margin: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .input-group {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Social Proof Section */
.social-proof {
    padding: 4rem 0;
    background: var(--light-gray);
}

.social-proof .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-bottom: 4rem;
}

.social-proof .stat {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.social-proof .stat:hover {
    transform: translateY(-5px);
}

.social-proof .stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.social-proof .stat p {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: white;
}

.faq h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.faq-grid {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.6;
}

/* RTL Support for new sections */
[dir="rtl"] .faq-item h3 {
    text-align: right;
}

[dir="rtl"] .social-proof .stat {
    direction: rtl;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .social-proof .stats {
        grid-template-columns: 1fr;
    }

    .social-proof .stat h3 {
        font-size: 2rem;
    }

    .faq-grid {
        padding: 0 1rem;
    }
}



.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

[dir="rtl"] .footer-links {
    margin-right: 0;
    margin-left: 2rem;
}
