/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 50%, #c44569 100%);
    min-height: 100vh;
}

/* Main Content Styles */
.main-content {
    background: white;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    padding: 40px 0;
}

/* Page Header Styles */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.last-updated {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* Content Section Styles */
.content-section {
    background: white;
    padding: 0;
}

.content-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid #ff4757;
    padding-bottom: 10px;
}

.content-section h3 {
    color: #444;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.content-section ul, .content-section ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
}

.header {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
}

.navbar {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand img {
    height: 40px;
}

.nav-brand h1 {
    margin: 0;
    display: inline;
}

.nav-brand h1 a {
    color: #ff4757;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ff4757;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ff4757;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 50%, #c44569 100%);
    color: white;
    padding: 150px 0 80px;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Downloader Section */
.downloader-section {
    padding: 80px 0;
    background: white;
}

.tool-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.tool-box h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#videoUrl {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#videoUrl:focus {
    outline: none;
    border-color: #ff4757;
}

.download-btn {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 50%, #c44569 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff4757;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Section */
.result {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.video-info h4 {
    margin-bottom: 15px;
    color: #333;
}

.video-details {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.video-thumbnail {
    flex-shrink: 0;
}

.video-thumbnail img {
    width: 200px;
    height: auto;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.video-meta {
    flex: 1;
}

.video-details p {
    margin-bottom: 5px;
}

/* Responsive thumbnail */
@media (max-width: 768px) {
    .video-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .video-thumbnail img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
}

.download-links {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.download-link {
    display: block;
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 50%, #c44569 100%);
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.download-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.download-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.download-text {
    font-size: 16px;
    font-weight: 600;
}

.quality-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.quality-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.file-size {
    font-size: 11px;
    opacity: 0.8;
}

.media-type {
    font-size: 10px;
    opacity: 0.7;
    font-style: italic;
}

.download-options-container h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.download-option {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.quality-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.quality-low { background: #ffc107; color: #000; }
.quality-medium { background: #28a745; color: white; }
.quality-high { background: #007bff; color: white; }
.quality-ultra { background: #dc3545; color: white; }
.quality-default { background: #6c757d; color: white; }

.format-info {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
}

.size-info {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.availability-info {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.download-text {
    font-weight: 600;
    font-size: 14px;
}

/* Error Styles */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-top: 20px;
}

/* Article Section */
.article-section {
    padding: 80px 0;
    background: white;
}

.main-article {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.main-article h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.main-article h3 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #444;
}

.main-article h4 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #555;
}

.main-article p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.main-article ul, .main-article ol {
    margin: 20px 0 20px 30px;
}

.main-article li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #333;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff4757;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #ecf0f1;
}

.footer-section p {
    margin-bottom: 10px;
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(102, 126, 234, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .tool-box {
        padding: 20px;
        margin: 0 10px;
    }
    
    .main-article h2 {
        font-size: 2rem;
    }
    
    .main-article h3 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .downloader-section,
    .article-section,
    .faq-section {
        padding: 60px 0;
    }
    
    .tool-box {
        padding: 15px;
    }
    
    .main-article p,
    .main-article li {
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #ff4757;
    outline-offset: 2px;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.contact-info h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.contact-info > p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ff4757;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-method h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-method p {
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-method a {
    color: #ff4757;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #ff3742;
    text-decoration: underline;
}

.response-time {
    background: #e8f5e8;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.response-time h3 {
    color: #155724;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.response-time p {
    color: #155724;
    margin: 0;
    font-size: 0.9rem;
}

/* Contact Form Styles */
.contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.contact-form-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4757;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.submit-btn {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Form Validation and UX Enhancements */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.2rem;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group.error label {
    color: #dc3545;
}

.form-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.success-icon {
    background: #28a745;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.form-success h3 {
    color: #155724;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.form-success p {
    color: #155724;
    margin: 0;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form Focus Animations */
.form-group.focused label {
    color: #ff4757;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s ease;
}

.form-group input:not(:placeholder-shown),
.form-group select:not([value=""]),
.form-group textarea:not(:placeholder-shown) {
    background: white;
}

/* Enhanced hover effects */
.contact-method,
.faq-item {
    cursor: pointer;
}

.contact-method:hover h3,
.faq-item:hover h3 {
    color: #ff4757;
    transition: color 0.3s ease;
}

/* FAQ Section Styles */
.faq-section {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.faq-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #17a2b8;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-item p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design for Contact Page */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .faq-section {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-info,
    .contact-form-section {
        padding: 1.25rem;
    }
    
    .contact-method {
        padding: 1.25rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-section {
        padding: 2rem 1rem;
    }
    
    .faq-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .contact-info,
    .contact-form-section {
        padding: 1rem;
    }
    
    .contact-method {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem 0.75rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-section {
        padding: 1.5rem 0.75rem;
        margin-top: 2rem;
    }
    
    .faq-item {
        padding: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .downloader-section {
        display: none;
    }
    
    .article-section {
        padding: 0;
    }
    
    body {
        background: white;
    }
}