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

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #FF0000;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

header h1 i {
    color: #FF0000;
    margin-right: 10px;
}

header p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.logo-link {
    color: #FF0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-link:hover {
    color: #cc0000;
    text-decoration: none;
}

/* Converter Box */
.converter-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.converter-box:hover {
    transform: translateY(-5px);
}

.input-group {
    display: flex;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.input-group button {
    padding: 15px 25px;
    background-color: #FF0000;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.input-group button:hover {
    background-color: #cc0000;
}

/* Loader */
.loader {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #FF0000;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error & Success Messages */
.error-message, .success-message {
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #fff8f8;
    border-left: 4px solid #ff0000;
    color: #721c24;
}

.success-message {
    background-color: #f7fffa;
    border-left: 4px solid #28a745;
    color: #155724;
}

.video-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.thumbnail {
    width: 120px;
    margin-right: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    display: block;
}

.details h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.details p {
    color: #666;
    margin: 0;
}

.download-section {
    text-align: center;
    margin-top: 20px;
}

.download-btn {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #218838;
}

.download-btn i {
    margin-right: 8px;
}

/* How To Use */
.how-to-use {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.how-to-use h2 {
    color: #FF0000;
    margin-top: 0;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.how-to-use ol {
    padding-left: 25px;
}

.how-to-use li {
    margin-bottom: 10px;
}

/* Support Button */
.support-button {
    margin-top: 20px;
    text-align: center;
}

.kofi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FF5E5B;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 94, 91, 0.4);
    position: relative;
    overflow: hidden;
}

.kofi-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.kofi-button:hover {
    background-color: #ff4543;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 94, 91, 0.5);
}

.kofi-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 94, 91, 0.4);
}

.kofi-button.large {
    padding: 15px 30px;
    font-size: 1.2em;
}

.kofi-button.small {
    padding: 8px 16px;
    font-size: 0.9em;
}

/* Features Section */
.features-section {
    margin: 40px 0;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.features-section h2 {
    color: #FF0000;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.features-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FF0000;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #FF0000;
    opacity: 0.7;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 3em;
    color: #FF0000;
    margin-bottom: 20px;
    display: block;
}

.feature-item h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    margin: 40px 0;
}

.faq-section h2 {
    color: #FF0000;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.faq-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FF0000;
}

.faq-item {
    margin-bottom: 25px;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
}

.faq-item h3 {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    padding-left: 25px;
}

.faq-item h3:before {
    content: '?';
    position: absolute;
    left: 0;
    top: 0;
    color: #FF0000;
    font-weight: bold;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* About Section */
.about-section {
    margin: 40px 0;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-section h2 {
    color: #FF0000;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #FF0000;
}

.about-section p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
}

.donation-section {
    margin-top: 30px;
    background-color: #fff8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px dashed #FF5E5B;
}

.donation-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.donation-section p {
    color: #555;
    margin-bottom: 20px;
}

/* Legal Section */
.legal-section {
    margin: 40px 0;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-section h2 {
    color: #555;
    margin-top: 0;
    margin-bottom: 20px;
}

.legal-section p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
    margin-bottom: 15px;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    margin: 0 10px;
    color: #666;
    text-decoration: none;
}

.footer-links a:hover {
    color: #FF0000;
}

.footer-donation {
    margin-bottom: 15px;
}

/* Language Selector in Footer */
footer .language-selector {
    position: relative;
    top: auto;
    right: auto;
    margin: 15px 0;
}

footer .language-dropdown {
    bottom: 100%;
    top: auto;
    margin-bottom: 10px;
    margin-top: 0;
    transform: translateY(10px);
}

footer .language-selector:hover .language-dropdown,
footer .language-selector:focus-within .language-dropdown {
    transform: translateY(0);
}

/* For mobile view */
@media (max-width: 768px) {
    footer .language-dropdown {
        transform: translateX(-50%) translateY(10px);
    }
    
    footer .language-selector:hover .language-dropdown,
    footer .language-selector:focus-within .language-dropdown {
        transform: translateX(-50%) translateY(0);
    }
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
    z-index: 100;
}

.current-language {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.current-language:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.current-language i {
    margin-right: 8px;
    color: #FF0000;
}

.current-language i.fa-chevron-down {
    margin-left: 8px;
    margin-right: 0;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    padding: 10px 0;
    width: 180px;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

/* Show dropdown on hover */
.language-selector:hover .language-dropdown,
.language-selector:focus-within .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Rotate chevron on hover */
.language-selector:hover .fa-chevron-down,
.language-selector:focus-within .fa-chevron-down {
    transform: rotate(180deg);
}

.language-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.language-dropdown a:hover {
    background-color: #f5f5f5;
    color: #FF0000;
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-group input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .input-group button {
        border-radius: 5px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .video-info {
        flex-direction: column;
        text-align: center;
    }
    
    .thumbnail {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 2rem;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .footer-links a {
        display: block;
        margin: 10px 0;
    }
    
    .kofi-button.large {
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    .language-selector {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 20px;
        align-self: flex-end;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .language-dropdown {
        width: 100%;
        max-width: 250px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .language-selector:hover .language-dropdown,
    .language-selector:focus-within .language-dropdown {
        transform: translateX(-50%) translateY(0);
    }
    
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
