* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(200deg, #3F1D38, #4D3C77);
    color: #f8fafc;
    line-height: 1.6;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: #f8fafc;
}

ul {
    list-style: none;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #f59e0b, #d97706);
}

.section-subtitle {
    color: #f59e0b;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 600;
}

section {
    padding: 6rem 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.03), transparent 60%);
    z-index: -1;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(to right, #f59e0b, #d97706);
    color: #f8fafc;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-small {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(to right, #f59e0b, #d97706);
    color: #f8fafc;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline {
    background: transparent;
    border: 2px solid #f59e0b;
    box-shadow: none;
}

.glass-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(245, 158, 11, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 1.2rem 0;
    z-index: 100;
    background: rgba(63, 29, 56, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(225, 152, 152, 0.2);
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f8fafc;
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '.';
    color: #f59e0b;
    font-size: 2.5rem;
    position: absolute;
    bottom: -5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #f59e0b, #d97706);
}

.nav-links a:hover, .nav-links a.active {
    color: #f59e0b;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #f59e0b;
}




/* Contact Section */
.contact .section-subtitle {
    text-align: center;
}

.contact .section-title {
    text-align: center;
    color: #f8fafc;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}



.contact-form {
    background: rgba(30, 41, 59, 0.7);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.1);
    width: 100%;
    max-width: 800px;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    color: #f8fafc;
    font-family: inherit;
    resize: none;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #f59e0b;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #B9B4C7;
    font-weight: 500;
}

/* Footer */
footer {
    background: rgba(63, 29, 56, 0.5);
    padding: 2rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(225, 152, 152, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom center, rgba(245, 158, 11, 0.05), transparent 70%);
    z-index: -1;
}

footer p {
    color: #EFE1D1;
    font-size: 1rem;
}

@media screen and (max-width: 991px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #1e293b;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        transform: translateY(0);
    }
}

@media screen and (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
}


/* Converter Styles */
.converter {
    padding: 6rem 0;
    text-align: center;
}

.drop-zone {
    border: 2px dashed rgba(245, 158, 11, 0.5);
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.drop-zone.drag-over {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.drop-zone-text i {
    font-size: 3.5rem;
    color: #f59e0b;
    margin-bottom: 1.5rem;
}

.drop-zone-text p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.drop-zone-text span {
    display: block;
    margin: 1rem 0;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(245, 158, 11, 0.2);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.preview-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: left;
    border: 1px solid rgba(245, 158, 11, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.preview-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.file-info {
    font-size: 0.9rem;
    color: #94a3b8;
}

.file-info p {
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.file-info .file-name {
    font-weight: 600;
    color: #f8fafc;
}

.preview-card .btn-small {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

.action-buttons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.quality-slider {
    margin-top: 2rem;
    text-align: center;
}

.quality-slider label {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 0.8rem;
    display: block;
}

.quality-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 80%;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

.quality-slider input[type="range"]:hover {
    opacity: 1;
}

.quality-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #f59e0b;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #1e293b;
}

.quality-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #f59e0b;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #1e293b;
}
