:root {
    --bg-color: #f3f6fa;
    --nav-bg: #ffffff;
    --text-primary: #1c1e21;
    --text-secondary: #606770;
    --border-color: #e4e6eb;
    --card-bg: #ffffff;
    --dropdown-bg: #ffffff;
    --dropdown-hover: #f0f2f5;
    
    --input-bg: #ffffff;
    --input-border: #ccd0d5;
    
    --btn-paste-bg: #ffeaea;
    --btn-paste-text: #e63946;
    --btn-download-bg: #f0f2f5;
    --btn-download-text: #1c1e21;
    --btn-download-hover: #e4e6eb;
    
    --disclaimer-bg: #ffeaea;
    --disclaimer-text: #e63946;

    --footer-bg: #ffffff;
    --footer-border: #e4e6eb;
    
    --nav-icon-color: #1c1e21;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --nav-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --card-bg: #111111;
    --dropdown-bg: #222222;
    --dropdown-hover: #333333;
    
    --input-bg: #222222;
    --input-border: #333333;
    
    --btn-paste-bg: #ffeaea;   /* Retains light red look based on dark mockup */
    --btn-paste-text: #e63946;
    --btn-download-bg: #333333;
    --btn-download-text: #ffffff;
    --btn-download-hover: #444444;
    
    --disclaimer-bg: #222222;
    --disclaimer-text: #a0a0a0;

    --footer-bg: #111111;
    --footer-border: #333333;
    
    --nav-icon-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    background-color: var(--nav-bg);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

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

.nav-links a, .dropbtn {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dropdown-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    top: 100%;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: var(--dropdown-hover);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.icon-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--nav-icon-color);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: var(--dropdown-hover);
}

.lang-wrapper {
    position: relative;
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--dropdown-bg);
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    top: 100%;
    margin-top: 10px;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
}

.lang-option:hover {
    background-color: var(--dropdown-hover);
}

.lang-option.active {
    font-weight: bold;
    color: #ff3333;
}

/* Main Content */
.main-content {
    padding: 60px 5%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
}

.downloader-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
}

.input-container {
    display: flex;
    width: 100%;
    align-items: center;
}

.url-input {
    flex: 1;
    background: none;
    border: none;
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
}

.url-input::placeholder {
    color: var(--text-secondary);
}

.paste-btn, .download-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    transition: background 0.2s;
}

.paste-btn {
    background-color: var(--btn-paste-bg);
    color: var(--btn-paste-text);
}

.download-btn {
    background-color: var(--btn-download-bg);
    color: var(--btn-download-text);
}

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

.copyright-notice {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.disclaimer-banner {
    background-color: var(--disclaimer-bg);
    color: var(--disclaimer-text);
    padding: 12px 20px;
    border-radius: 6px;
    margin-top: 50px;
    font-size: 14px;
    text-align: left;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.section-header {
    background-color: var(--nav-bg);
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-content {
    background-color: var(--nav-bg);
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    padding: 20px;
    color: var(--text-primary);
    font-size: 15px;
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-secondary);
}

.accordion-content p {
    padding-bottom: 15px;
}

/* Features */
.features-section .section-header {
    border-bottom: none;
}
.features-section .section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding: 60px 5% 30px;
    transition: background-color 0.3s, border-color 0.3s;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 14px;
}

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

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.disclaimer {
    margin-top: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-primary);
    background-color: var(--dropdown-hover);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    color: var(--text-primary);
}

.modal-close-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
}

.modal-close-icon:hover {
    color: var(--text-primary);
}

.progress-container {
    width: 100%;
    height: 12px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #ff3333;
    transition: width 0.3s ease;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Contact Form */
.contact-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--card-bg);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #ff3333;
}

.submit-btn {
    background: #ff3333;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    align-self: flex-start;
}

.submit-btn:hover {
    opacity: 0.9;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* How To Use Page */
.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: left;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 80px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    display: flex;
    width: 100%;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item.right {
    justify-content: flex-end;
}

.timeline-item.left {
    justify-content: flex-start;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #ff3333;
    border-radius: 50%;
    z-index: 2;
}

.timeline-content {
    width: 45%;
}

.timeline-item.right .timeline-content {
    text-align: left;
    padding-left: 30px;
}

.timeline-item.left .timeline-content {
    text-align: right;
    padding-right: 30px;
}

.step-label {
    display: block;
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: #ff3333;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-full-section {
    margin-top: 60px;
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-card {
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-item, .timeline-item.left {
        flex-direction: row;
        justify-content: flex-start;
        padding-left: 50px;
    }
    
    .timeline-content, .timeline-item.left .timeline-content {
        width: 100%;
        text-align: left;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .downloader-form {
        flex-direction: column;
        padding: 10px;
        background: transparent;
        border: none;
    }
    
    .input-container {
        background-color: var(--input-bg);
        border: 1px solid var(--input-border);
        border-radius: 8px;
        padding: 10px;
        display: flex;
        width: 100%;
        flex-direction: column;
    }
    
    .paste-btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .form-btn-gro {
        width: 100%;
        gap: 10px;
    }
    
    .url-input {
        width: 100%;
    }
        
    .download-btn {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .submit-btn {
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* Mobile Menu Drawer Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: var(--nav-bg);
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-links {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

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

@media (max-width: 480px) {
    .nav-left, .nav-right {
        gap: 10px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
.form-btn-gro {
    display: flex;
}
[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}