:root {
    --primary: #00ff99;
    --primary-dark: #00cc7a;
    --primary-light: #66ffbb;
    --secondary: #6a00ff;
    --accent: #0099ff;
    --bg-dark: #0a0a1a;
    --bg-darker: #050510;
    --bg-card: rgba(16, 16, 32, 0.7);
    --bg-card-hover: rgba(26, 26, 46, 0.8);
    --text-light: #f0f0f0;
    --text-dim: #a0a0c0;
    --text-muted: #707090;
    --border: rgba(0, 255, 153, 0.2);
    --border-hover: rgba(0, 255, 153, 0.4);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 255, 153, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--accent));
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -150px;
    left: -100px;
    animation: float 25s infinite ease-in-out reverse;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 15s infinite ease-in-out;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 153, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 153, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.1); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 26, 0.8);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 300;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-login:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

/* Main Content */
.main {
    padding: 60px 0;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.hero-title {
    margin-bottom: 24px;
}

.title-main {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    color: var(--text-dim);
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
}

.audio-wave {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    margin-bottom: 20px;
}

.wave-bar {
    width: 8px;
    background: var(--gradient-primary);
    border-radius: 4px;
    animation: wave 1.5s infinite ease-in-out;
}

.wave-bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 90%; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 100%; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 80%; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 100%; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 70%; animation-delay: 0.6s; }
.wave-bar:nth-child(8) { height: 50%; animation-delay: 0.7s; }
.wave-bar:nth-child(9) { height: 30%; animation-delay: 0.8s; }
.wave-bar:nth-child(10) { height: 20%; animation-delay: 0.9s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

.processing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 500;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* Upload Section */
.upload-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.upload-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.upload-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.upload-header {
    text-align: center;
    margin-bottom: 30px;
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 153, 0.5));
}

.upload-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.upload-subtitle {
    color: var(--text-dim);
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 25px;
    background: rgba(10, 10, 26, 0.5);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 153, 0.05);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.upload-placeholder p {
    color: var(--text-dim);
}

.upload-progress {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.upload-info {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.info-item i {
    color: var(--primary);
}

/* Upload Options */
.upload-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.option-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: var(--border-hover);
}

.option-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.option-title i {
    font-size: 1.1rem;
}

.option-group {
    margin-bottom: 20px;
}

.option-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.slider-container {
    margin-bottom: 10px;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.5);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.format-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.format-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-option:hover {
    background: rgba(0, 255, 153, 0.1);
    border-color: var(--primary);
}

.format-option.active {
    background: rgba(0, 255, 153, 0.2);
    border-color: var(--primary);
}

.format-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.format-name {
    font-weight: 500;
}

.quality-options {
    margin-top: 20px;
}

.quality-buttons {
    display: flex;
    gap: 10px;
}

.quality-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.quality-btn:hover {
    background: rgba(0, 255, 153, 0.1);
    border-color: var(--primary);
}

.quality-btn.active {
    background: rgba(0, 255, 153, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

/* Processing Section */
.processing-container {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.wave-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.wave-original,
.wave-processed {
    background: rgba(10, 10, 26, 0.5);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border);
}

.wave-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.wave-original .wave-title {
    color: var(--text-dim);
}

.wave-processed .wave-title {
    color: var(--primary);
}

.wave-visual {
    height: 120px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.wave-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.processing-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
    border: none;
}

.play-btn {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: 0 5px 15px rgba(0, 255, 153, 0.3);
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 153, 0.4);
}

.download-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid var(--border);
}

.download-btn:hover:not(:disabled) {
    background: rgba(0, 255, 153, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

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

.footer-section h4.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon.small {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
}

.footer-description {
    color: var(--text-dim);
    margin-bottom: 25px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
}

.contact-item i {
    color: var(--primary);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .upload-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .title-main {
        font-size: 2.2rem;
    }
    
    .title-sub {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .wave-comparison {
        grid-template-columns: 1fr;
    }
    
    .processing-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        margin-bottom: 60px;
    }
    
    .title-main {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .upload-card,
    .option-card,
    .processing-container {
        padding: 25px 20px;
    }
    
    .upload-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .format-options {
        grid-template-columns: 1fr;
    }
}