:root {
    --primary: #8b5cf6; /* Vibrant Purple */
    --primary-hover: #7c3aed;
    --secondary: #3b82f6; /* Bright Blue */
    --accent: #10b981; /* Success Green */
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-card: rgba(30, 41, 59, 0.7); /* Slate 800 semi-transparent */
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --transition: all 0.25s ease;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadeIn 0.8s ease-out;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Background Effect */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Navbar */
.navbar {
    height: 70px;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1300;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-icon { color: var(--primary); }

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    z-index: 1400;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1e293b;
    border: 1px solid var(--border-glass);
    border-radius: 15px;
    padding: 20px;
    min-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
    backdrop-filter: blur(20px);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.dropdown-item i {
    width: 18px;
    height: 18px;
    color: var(--primary);
    opacity: 0.8;
}

.dropdown-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-item .tool-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}


.sidebar-ad {
    width: 300px;
    position: sticky;
    top: 100px;
}

.ad-link {
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-glass);
}

.ad-link:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.ad-link img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero */
.hero {
    padding: 80px 0;
}

.hero-content {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.gradient-text {
    background: linear-gradient(to right, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tool Wrapper */
.tool-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.converter-card {
    flex: 1;
    padding: 30px;
    border-radius: 20px;
    min-height: 380px;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.drop-zone:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.upload-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.drop-zone h3 { font-size: 1.4rem; margin-bottom: 8px; }
.drop-zone p { color: var(--text-muted); margin-bottom: 25px; }

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-glass);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.btn-large { width: 100%; justify-content: center; font-size: 1.05rem; height: 54px; }

/* Preview */
.preview-section { width: 100%; }

.file-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 20px;
}

.file-details { display: flex; align-items: center; gap: 10px; }
.size-tag { background: rgba(255, 255, 255, 0.07); padding: 2px 8px; border-radius: 5px; font-size: 0.75rem; color: var(--text-muted); }

.preview-container {
    width: 100%;
    min-height: 250px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--border-glass);
}

.preview-container img { 
    max-width: 100%; 
    max-height: 300px; 
    object-fit: contain; 
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.conversion-settings { 
    display: flex; 
    flex-direction: column; 
    gap: 25px; 
    margin-top: 20px;
}

.setting-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 20px; 
}

.setting-row-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.label-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-group label {
    font-weight: 600;
    color: var(--text-main);
}

#quality-value {
    color: var(--primary);
    font-weight: 700;
}

.custom-range {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
    height: 6px;
    border-radius: 10px;
}

.resize-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.custom-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: white;
    padding: 12px;
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
}

.custom-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.input-divider {
    margin-top: 25px;
    color: var(--text-muted);
    opacity: 0.5;
}

.small-icon {
    width: 14px;
    height: 14px;
}

.setting-row-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 10px 0;
}

.setting-row-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.setting-row-checkbox label {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
}

.setting-row label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.select-wrapper {
    position: relative;
    flex: 1;
}

.select-wrapper::after {
    content: '\25BC';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.custom-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: white;
    padding: 12px 40px 12px 15px;
    border-radius: 12px;
    outline: none;
    appearance: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.custom-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.custom-select option {
    background: #1e293b;
    color: white;
    padding: 10px;
}

/* Processing */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.progress-container { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.05); border-radius: 10px; overflow: hidden; margin-top: 20px; }
.progress-bar { width: 0%; height: 100%; background: var(--primary); transition: width 0.3s ease; }

.result-section {
    text-align: center;
}

.success-icon-wrapper { 
    width: 60px; 
    height: 60px; 
    background: rgba(16, 185, 129, 0.1); 
    color: var(--accent); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 15px; 
}

.success-icon {
    width: 32px;
    height: 32px;
}

.result-preview-container {
    width: 100%;
    max-height: 250px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin: 20px 0;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
}

.result-preview-container img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.compression-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-item span:first-child {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-item span:last-child {
    font-weight: 700;
    font-size: 1.1rem;
}

.stat-arrow {
    color: var(--text-muted);
    opacity: 0.5;
}

.text-success {
    color: var(--accent);
}

.savings-badge {
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.result-actions .btn-primary,
.result-actions .btn-secondary {
    flex: 1;
    max-width: 250px;
}

@media (max-width: 480px) {
    .result-actions {
        flex-direction: column;
    }
    .result-actions .btn-primary,
    .result-actions .btn-secondary {
        max-width: 100%;
    }
}

/* Popular Tools */
.popular-tools { padding: 100px 0; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.tool-card { 
    padding: 35px 25px; 
    border-radius: 20px; 
    transition: var(--transition); 
    cursor: pointer; 
    text-align: center;
}
.tool-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}
.tool-icon { 
    width: 48px; 
    height: 48px; 
    color: var(--primary); 
    margin-bottom: 20px; 
    transition: var(--transition);
}
.tool-card:hover .tool-icon {
    transform: scale(1.1);
}
.tool-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.tool-card p { font-size: 0.95rem; color: var(--text-muted); }

/* Features V2 */
.features-section { padding: 80px 0; background: rgba(255, 255, 255, 0.01); }
.features-grid-v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.feature-item { 
    display: flex; 
    gap: 25px; 
    align-items: flex-start; 
    padding: 20px;
    border-radius: 15px;
    transition: var(--transition);
}
.feature-item:hover {
    background: rgba(255, 255, 255, 0.03);
}
.feature-item i { color: var(--primary); min-width: 28px; width: 28px; height: 28px; }
.feature-item h3 { font-size: 1.1rem; margin-bottom: 5px; }
.feature-item p { color: var(--text-muted); font-size: 0.95rem; }

/* FAQ */
.faq-section { padding: 60px 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.faq-item h4 { margin-bottom: 10px; color: var(--primary); }
.faq-item p { color: var(--text-muted); }

/* Footer */
.footer { 
    padding: 60px 0 30px; 
    border-top: 1px solid var(--border-glass); 
    margin-top: 60px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 40px; 
}

.footer-logo p { 
    margin-top: 15px; 
    color: var(--text-muted); 
    font-size: 0.9rem; 
}

.footer-links-group h4 { 
    margin-bottom: 20px; 
    font-size: 1rem; 
}

.footer-links-group a { 
    display: block; 
    text-decoration: none; 
    color: var(--text-muted); 
    margin-bottom: 10px; 
    font-size: 0.9rem; 
}

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

.footer-bottom { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted); 
    font-size: 0.85rem; 
    padding-top: 30px; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

.developer-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.developer-link a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ✅ MOBILE RESPONSIVE - YEH SIRF ADD KARO */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;  /* 4 sections ek ke niche ek */
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
    
    .footer-logo, 
    .footer-links-group {
        text-align: center !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
    }
}

/* About Page */
.about-content {
    padding: 60px;
    border-radius: 24px;
    text-align: left;
    margin-top: 40px;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    text-align: center;
}

.about-card i {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Contact Page */
.contact-wrapper {
    /* display: grid;
    grid-template-columns: 1.5fr 1fr; */
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
    padding-right: 300px;
    padding-left: 300px;
}

.contact-card {
    padding: 40px;
    border-radius: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

.info-card i {
    width: 32px;
    height: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}
.hidden { display: none !important; }
.section-header { margin-bottom: 30px; }
.section-header h2 { font-size: 2rem; }

/* Formats */
.supported-formats { margin-top: 30px; }
.format-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.badge-outline { padding: 4px 12px; border: 1px solid var(--border-glass); border-radius: 6px; font-size: 0.8rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 900px) {
    .tool-wrapper { flex-direction: column; }
    .features-grid-v2, .faq-grid, .footer-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.2rem; }
    .nav-links { gap: 15px; }
}

@media (max-width: 600px) {
    .navbar { height: 70px; }
    .navbar .container { position: relative; justify-content: space-between; }
    
    .logo { position: relative; z-index: 1400; }

    .mobile-menu-toggle { display: flex; position: relative; z-index: 1400; }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #0f172a;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 20px 30px;
        gap: 0;
        z-index: 1350;
        overflow-y: auto;
    }
    
    .nav-links.active { display: flex; }

    .nav-links > a {
        display: block;
        padding: 14px 20px;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown { 
        width: 100%; 
        text-align: left;
    }
    
    .dropdown > a {
        justify-content: space-between;
        padding: 14px 20px;
        font-size: 1.05rem;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        width: 100%;
    }

    .dropdown-content {
        position: static !important;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        width: 100%;
        min-width: unset;
        max-width: 100%;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
        display: none;
        overflow: hidden;
    }

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

    .dropdown-grid { 
        display: flex !important;
        flex-direction: column !important;
        gap: 0;
    }

    .dropdown-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        width: 100%;
        box-sizing: border-box;
    }

    .dropdown-item div {
        min-width: 0;
        flex: 1;
    }

    .dropdown-item span {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dropdown-item .tool-desc {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero h1 { font-size: 1.8rem; }
    .glass-card { padding: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
