:root {
    --primary-color: #026670;
    --accent-color: #9FEDD7;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --hover-color: #f0f0f0;
    --text-secondary: #666;
    --bg-dark: #0f1729;
    --bg-darker: #1a2234;
    --footer-bg: #f8f9fa;
    --footer-text: #666666;
    --footer-link: #4a4a4a;
    --footer-border: #eaeaea;
    --transition-speed: 0.3s;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Header and Navigation */
header {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    z-index: 1002; /* Ensure logo stays above mobile menu */
}

.logo img {
    height: 32px;
    width: auto;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
    background: var(--light-gray);
    outline: none;
}

.nav-link i {
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons .facebook {
    background: #1877f2;
}

.social-icons .twitter {
    background: #1da1f2;
}

.social-icons .whatsapp {
    background: #25d366;
}

.social-icons a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
        visibility: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-container.active {
        transform: translateX(0);
        visibility: visible;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        background: white;
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }

    .nav-link {
        padding: 1rem;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-link i {
        width: 24px;
        text-align: center;
    }

    .social-icons {
        background: white;
        width: 100%;
        padding: 1rem;
        justify-content: center;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Improved touch feedback */
    .nav-link:active {
        background: var(--light-gray);
    }
}

/* Ensure menu works on tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        gap: 1rem;
    }

    nav {
        gap: 0.75rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .social-icons {
        gap: 0.75rem;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
    }
}

/* Converter Container */
.converter-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.upload-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.method-tab {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--light-gray);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.method-tab:hover {
    background: var(--hover-color);
}

.method-tab.active {
    background: var(--primary-color);
    color: white;
}

.converter-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.converter-box.hidden {
    display: none;
}

.drop-zone {
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--light-gray);
    cursor: pointer;
}

.drop-zone.drag-active {
    background: var(--hover-color);
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.drop-zone i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.drop-zone p {
    margin: 1rem 0;
    color: var(--text-color);
}

.drop-zone span {
    display: block;
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.url-input-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.url-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
}

.url-input-wrapper i {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.url-input {
    flex: 1;
    border: none;
    background: none;
    padding: 0.5rem;
    font-size: 1rem;
    color: var(--text-color);
    width: 100%;
}

.url-input:focus {
    outline: none;
}

.preview-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.preview-container.hidden {
    display: none;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.preview-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.preview-header .btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.preview-header .btn-close:hover {
    color: var(--text-color);
    transform: scale(1.1);
}

.image-preview {
    position: relative;
    margin-bottom: 1.5rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.preview-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.preview-loader.hidden {
    display: none;
}

.preview-loader i {
    font-size: 2rem;
    color: var(--primary-color);
}

.image-info {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.image-info p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.image-info i {
    color: var(--primary-color);
    width: 20px;
}

.btn-convert {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-convert:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.btn-convert:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: var(--text-secondary);
    cursor: wait;
}

#toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#toast.show {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Converters Navigation */
.converters-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    margin: 0 auto;
    max-width: 800px;
}

.converter-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    min-width: 120px;
    box-shadow: var(--box-shadow);
}

.converter-link i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.converter-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.converter-link.active {
    background: var(--primary-color);
    color: white;
}

.converter-link.active i {
    color: white;
}

/* Format Selection */
.format-selection {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.format-selection label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.format-selection input[type="radio"] {
    accent-color: var(--primary-color);
}

/* Format Info Section */
.format-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 3rem auto;
    background: #f8f9fa;
    border-radius: 20px;
}

.format-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.format-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.format-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2196F3, #00BCD4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.format-card:hover .format-icon {
    transform: scale(1.1);
}

.format-icon i {
    font-size: 1.5rem;
    color: white;
}

.format-card h3 {
    color: #1a1a1a;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.format-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.format-card {
    animation: fadeInUp 0.6s ease backwards;
}

.format-info .format-card:nth-child(1) { animation-delay: 0.1s; }
.format-info .format-card:nth-child(2) { animation-delay: 0.2s; }
.format-info .format-card:nth-child(3) { animation-delay: 0.3s; }
.format-info .format-card:nth-child(4) { animation-delay: 0.4s; }
.format-info .format-card:nth-child(5) { animation-delay: 0.5s; }
.format-info .format-card:nth-child(6) { animation-delay: 0.6s; }
.format-info .format-card:nth-child(7) { animation-delay: 0.7s; }
.format-info .format-card:nth-child(8) { animation-delay: 0.8s; }

.format-card:nth-child(1) .format-icon { background: linear-gradient(135deg, #FF9800, #FF5722); }
.format-card:nth-child(2) .format-icon { background: linear-gradient(135deg, #4CAF50, #8BC34A); }
.format-card:nth-child(3) .format-icon { background: linear-gradient(135deg, #9C27B0, #E91E63); }
.format-card:nth-child(4) .format-icon { background: linear-gradient(135deg, #2196F3, #03A9F4); }
.format-card:nth-child(5) .format-icon { background: linear-gradient(135deg, #FFC107, #FF9800); }
.format-card:nth-child(6) .format-icon { background: linear-gradient(135deg, #00BCD4, #3F51B5); }
.format-card:nth-child(7) .format-icon { background: linear-gradient(135deg, #795548, #FF5722); }
.format-card:nth-child(8) .format-icon { background: linear-gradient(135deg, #607D8B, #455A64); }

@media (max-width: 1200px) {
    .format-info {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .format-info {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
        margin: 2rem auto;
    }

    .format-card {
        padding: 1.5rem;
    }

    .format-icon {
        width: 40px;
        height: 40px;
    }

    .format-icon i {
        font-size: 1.2rem;
    }

    .format-card h3 {
        font-size: 1.2rem;
    }

    .format-card p {
        font-size: 0.95rem;
    }
}

/* Features section */
.features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

/* Converter Grid Styles */
.converters-nav {
    padding: 2rem;
    background: #0B1120;
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 1400px;
}

.converter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.converter-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #151C30;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    aspect-ratio: 16/9;
    overflow: hidden;
}

.converter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(140deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.converter-card:hover, .converter-card.active {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: #1B2236;
}

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.15);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 22px;
    color: #0EA5E9;
    transition: all 0.3s ease;
}

.converter-card:hover .card-icon,
.converter-card.active .card-icon {
    background: rgba(14, 165, 233, 0.25);
    transform: scale(1.05);
}

.converter-card:hover .card-icon i,
.converter-card.active .card-icon i {
    color: #38BDF8;
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: #94A3B8;
    transition: color 0.3s ease;
    margin: 0;
    line-height: 1.5;
}

.converter-card:hover .card-title,
.converter-card.active .card-title {
    color: #F8FAFC;
}

/* Responsive adjustments */
@media (min-width: 1200px) {
    .converter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .converter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .converter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .converters-nav {
        padding: 1.5rem;
    }
    
    .converter-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .converter-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .converters-nav {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .converter-card {
        padding: 1.5rem 1rem;
        aspect-ratio: 2/1;
    }
    
    .card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 1rem;
    }
    
    .card-icon i {
        font-size: 20px;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
}

/* Footer styles */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    display: block;
    height: 32px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-column p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

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

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-logo img {
        margin: 0 auto 1rem;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        gap: 2rem;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-container.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    nav {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        text-align: center;
    }

    nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        font-size: 1.2rem;
        width: 100%;
    }

    nav a:hover {
        background: var(--light-gray);
        transform: translateY(-2px);
    }

    nav a i {
        margin-right: 10px;
        font-size: 1.4rem;
    }

    .social-icons {
        width: 100%;
        justify-content: center;
        padding-top: 2rem;
        border-top: 1px solid var(--light-gray);
        gap: 2rem;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .converter-container {
        margin: 1rem auto;
    }

    .upload-methods {
        flex-direction: column;
    }

    .url-input-container {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .converters-nav {
        flex-direction: column;
        padding: 1rem 2rem;
    }

    .converter-link {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .converter-link i {
        margin-bottom: 0;
    }

    .format-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1.2rem;
    }

    .logo img {
        height: 28px;
    }

    .method-tab {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .drop-zone {
        padding: 1.5rem;
    }

    .drop-zone i {
        font-size: 2.5rem;
    }

    .preview-header h3 {
        font-size: 1.1rem;
    }

    .image-info p {
        font-size: 0.9rem;
    }

    .btn-convert {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .converter-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .converters-nav {
        padding: 1rem;
    }

    .converter-card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon i {
        font-size: 20px;
    }

    .card-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .converter-grid {
        grid-template-columns: 1fr;
    }
}

/* Tools Dropdown Styling */
.tools-dropdown {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 10;
}

.tool-select {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
    position: relative;
}

.tools-dropdown::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.tools-dropdown.focused::after {
    transform: translateY(-50%) rotate(180deg);
}

.tool-select:hover,
.tools-dropdown.hover .tool-select {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(2, 102, 112, 0.1);
}

.tool-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 102, 112, 0.2);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .tools-dropdown {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .tool-select {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }

    /* Larger touch target on mobile */
    .tools-dropdown::after {
        padding: 1rem;
        right: 0;
    }
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .tools-dropdown {
        margin: 1.5rem auto;
    }

    .tool-select {
        padding: 0.9375rem;
    }
}

/* High DPI Screen Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .tool-select {
        font-weight: 500; /* Slightly bolder text for better readability on high DPI screens */
    }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .tool-select:hover {
        border-color: var(--border-color);
        box-shadow: none;
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Smooth Transitions */
body,
.format-card,
.converter-box,
.drop-zone,
input,
select,
.footer-content,
.footer-column a,
.footer-social a {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.ad-banner {
    width: 100%;
    padding: 2rem 0;
    text-align: center;
    background-color: #1a1a1a;
    margin: 2rem 0;
    border: 2px dashed #333;
}

.ad-banner p {
    color: #ffffff;
    margin: 0;
    font-size: 1.2rem;
}