* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #EE0F0F;
    --primary-dark: #CC0000;
    --primary-light: #FF3333;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-dark: #2C3E50;
    --text-gray: #6C757D;
    --border-color: #E0E0E0;
    --success-color: #28a745;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Header Styles */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "";
    width: 48px;
    height: 48px;
    background-image: url('assets/icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.25rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #FF5733 0%, #FF7A59 100%);
    color: white;
    padding: 6rem 2rem 10rem;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .highlight {
    color: #FFF;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

/* Converter Widget (Overlapping Hero) */
.converter-widget {
    position: relative;
    margin-top: -6rem;
    z-index: 100;
}

.converter-box {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-width: 900px;
    margin: 0 auto;
}

.widget-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* Converter Section */
.converter-section {
    background: var(--bg-light);
    padding: 3rem 2rem;
}

.converter-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 51, 0.3);
}

.btn-primary:disabled {
    background: var(--text-gray);
    cursor: not-allowed;
    transform: none;
}

.download-info {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Video Info Display */
.video-info {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    display: none;
}

.video-info.show {
    display: block;
}

.video-details {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-thumbnail {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.video-meta h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.video-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Format Tabs */
.format-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.format-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s;
}

.format-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Quality Cards */
.quality-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quality-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.quality-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quality-card h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.quality-card .label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.quality-card .description {
    color: var(--text-gray);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.quality-card .btn-download {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.quality-card .btn-download:hover {
    background: var(--primary-dark);
}

.quality-card .btn-download:disabled {
    background: var(--text-gray);
    cursor: not-allowed;
}

/* Grid Layout / Card Layout */
.grid-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* 3-Column Grid for Why Choose Section */
.grid-section-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Format Table */
.format-table {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.format-table h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.format-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.format-badge {
    padding: 0.6rem 1.2rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s;
}

.format-badge:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    background: var(--bg-light);
    /* margin-top: 4rem; */
    /* padding-top: 4rem; */
    /* border-top: 3px solid rgba(255, 87, 51, 0.15); */
}

/* Content Section */
.content-section {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(255, 87, 51, 0.15);
    border: 2px solid rgba(255, 87, 51, 0.1);
    transition: all 0.3s ease;
}

.content-section:hover {
    box-shadow: 0 8px 30px rgba(255, 87, 51, 0.25);
    border-color: rgba(255, 87, 51, 0.2);
    transform: translateY(-2px);
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.content-section p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-section ul,
.content-section ol {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow: white 2px;
}

.footer-section a.active {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}
.footer-bottom p:hover {
    color: white;
    text-shadow: #F8F9FA;
}
/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top.visible {
    display: flex;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .converter-widget {
        margin-top: -4rem;
    }

    .converter-box {
        padding: 2rem;
    }

    .input-group {
        flex-direction: column;
    }

    .video-details {
        grid-template-columns: 1fr;
    }

    .quality-options {
        grid-template-columns: 1fr;
    }

    .formats-grid {
        grid-template-columns: 1fr;
    }

    .format-badges {
        gap: 1rem;
    }

    .format-badge-large {
        min-width: 100px;
        padding: 1.5rem 2rem;
    }

    .grid-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-section-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .converter-box {
        padding: 1.5rem;
    }

    .format-badge-large {
        min-width: 80px;
        padding: 1.2rem 1.5rem;
    }

    .format-value {
        font-size: 2rem;
    }

    .grid-section {
        grid-template-columns: 1fr;
    }

    .grid-section-3col {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about-section {
    background: var(--bg-white);
    padding: 4rem 2rem;
}

.section-description {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Formats Showcase Section */
.formats-showcase {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 2rem;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.formats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.format-category {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.format-category-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.format-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.format-badge-large {
    position: relative;
    background: linear-gradient(135deg, #FF5733 0%, #FF7A59 100%);
    color: white;
    padding: 2rem 2.5rem;
    border-radius: 15px;
    min-width: 140px;
    max-width: 140px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 87, 51, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.format-badge-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 87, 51, 0.4);
}

.format-badge-large.featured {
    background: linear-gradient(135deg, #E84A2A 0%, #FF5733 100%);
    box-shadow: 0 10px 30px rgba(232, 74, 42, 0.4);
    transform: scale(1.05);
}

.format-badge-large.featured:hover {
    transform: scale(1.1) translateY(-10px);
}

.format-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.format-unit {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.best-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4);
}

/* Contact Page Styles */
.contact-info-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-intro p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.social-links-inline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links-inline a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 87, 51, 0.1);
}

.social-links-inline a:hover {
    background: rgba(255, 87, 51, 0.2);
    transform: translateY(-2px);
}

.contact-note {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8e0 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    margin-top: 2rem;
}

.contact-note h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.contact-note p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Copyright and Tips Section */
.copyright-section {
    background: var(--bg-light);
    padding: 2rem 2rem;
}

.copyright-section .container {
    max-width: 1200px;
}

.copyright-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.copyright-intro h2 {
    font-size: 2.6rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}
.copyright-intro h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.tip-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

.tip-card h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tip-card p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

/* FAQ Section Styles */
.faq-section {
    background-color: var(--bg-light);
    padding: 4rem 2rem;
}

.faq-accordion {
    max-width: 900px;
    margin: 2rem auto 0;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-question:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.faq-question.active {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Mobile Toggle Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 500px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 1rem;
    }

    .header-container {
        position: relative;
        padding: 1rem;
        justify-content: center;
    }

    .logo {
        font-size: 1.8rem;
    }

    .logo::before {
        width: 42px;
        height: 42px;
    }

    .hero-section {
        padding: 4rem 2rem 14rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .converter-widget {
        margin-top: -8rem;
    }

    .converter-box {
        padding: 1.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group input {
        width: 100%;
        border-radius: 8px;
    }

    .input-group button {
        width: 100%;
        border-radius: 8px;
    }

    .grid-section,
    .grid-section-3col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq-accordion {
        padding: 0 0.5rem;
    }

    .faq-question {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.5rem;
    }

    .faq-answer.active {
        padding: 0 1.5rem 1rem 1.5rem;
    }

    .formats-grid {
        grid-template-columns: 1fr;
    }

    .format-badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    .format-badge-large {
        min-width: 120px;
    }

    .video-details {
        flex-direction: column;
    }

    .video-thumbnail {
        width: 100%;
        height: auto;
    }

    .format-tabs {
        flex-direction: column;
    }

    .format-tab {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo::before {
        width: 38px;
        height: 38px;
    }
}