/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1DB954;
    --primary-dark: #1ed760;
    --dark-bg: #121212;
    --card-bg: #181818;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border-color: #282828;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(180deg, #121212 0%, #000000 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), #1ed760);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Converter Box */
.converter-box {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 20px;
    color: var(--text-secondary);
    font-size: 20px;
}

.url-input {
    width: 100%;
    padding: 20px 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s;
}

.url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.convert-btn {
    background: linear-gradient(135deg, var(--primary-color), #1ed760);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.convert-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(29, 185, 84, 0.3);
}

.form-hint {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #1ed760);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.step h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
}

/* FAQ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 20px 0;
    color: var(--text-secondary);
}

.faq-question.active + .faq-answer {
    max-height: 300px;
}

/* Track Info Card */
.track-info-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
    border: 1px solid var(--border-color);
}

.track-header {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.track-thumbnail {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.track-details {
    flex: 1;
}

.track-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.track-artist, .track-duration {
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-artist i, .track-duration i {
    color: var(--primary-color);
}

/* Download Options */
.download-options {
    margin: 40px 0;
}

.download-options h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-option {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.download-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.option-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.quality-badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.format-badge {
    background: var(--border-color);
    color: var(--text-secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.download-btn {
    background: linear-gradient(135deg, var(--primary-color), #1ed760);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 185, 84, 0.3);
}

/* Bulk Download */
.bulk-download {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.bulk-download-btn {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.bulk-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

/* Instructions */
.instructions {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid var(--border-color);
}

.instructions h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions ol {
    padding-left: 20px;
    color: var(--text-secondary);
}

.instructions li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-disclaimer {
    font-size: 14px;
    color: #666 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .track-header {
        flex-direction: column;
        text-align: center;
    }
    
    .track-thumbnail {
        width: 150px;
        height: 150px;
    }
    
    .track-title {
        font-size: 1.8rem;
    }
    
    .download-option {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
}
/* Mobile-first responsive styles */
@media (max-width: 768px) {
/* Container adjustments */
.container {
padding: 0 15px;
}

text
/* Navigation mobile styles */
.navbar {
    padding: 12px 0;
}

.logo {
    font-size: 20px;
}

.logo i {
    font-size: 24px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-links a {
    padding: 15px;
    display: block;
    border-radius: 10px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero section mobile */
.hero {
    padding: 60px 0 40px;
}

.hero-title {
    font-size: 2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    padding: 0 10px;
}

/* Converter box mobile */
.converter-box {
    padding: 25px 20px;
    margin: 30px auto;
    border-radius: 15px;
}

.url-input {
    padding: 18px 50px;
    font-size: 15px;
}

.input-icon {
    left: 15px;
    font-size: 18px;
}

.convert-btn {
    padding: 18px 30px;
    font-size: 16px;
    width: 100%;
}

.form-hint {
    font-size: 13px;
    text-align: center;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

/* Features grid mobile */
.features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.feature {
    padding: 25px 20px;
}

.feature i {
    font-size: 35px;
    margin-bottom: 15px;
}

/* Sections mobile */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding: 0 10px;
}

/* Steps mobile */
.steps {
    grid-template-columns: 1fr;
    gap: 30px;
}

.step-number {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

/* FAQ mobile */
.faq-item {
    margin-bottom: 10px;
}

.faq-question {
    padding: 18px;
    font-size: 16px;
}

/* Track info card mobile */
.track-info-card {
    padding: 25px 20px;
    margin: 30px auto;
    border-radius: 15px;
}

.track-header {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    margin-bottom: 30px;
}

.track-thumbnail {
    width: 150px;
    height: 150px;
}

.track-title {
    font-size: 1.5rem;
    line-height: 1.3;
}

.track-artist, .track-duration {
    font-size: 14px;
    justify-content: center;
}

/* Download options mobile */
.download-option {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px 15px;
}

.option-info {
    flex-direction: column;
    gap: 10px;
}

.download-btn {
    width: 100%;
    justify-content: center;
}

/* Bulk download mobile */
.bulk-download {
    margin-top: 30px;
    padding-top: 30px;
}

.bulk-download-btn {
    width: 100%;
    justify-content: center;
}

/* Instructions mobile */
.instructions {
    padding: 25px 20px;
    margin-top: 30px;
}

.instructions h3 {
    font-size: 18px;
}

.instructions ol {
    font-size: 14px;
}

/* Footer mobile */
.footer {
    padding: 30px 0;
    margin-top: 60px;
}

.footer p {
    font-size: 14px;
    padding: 0 10px;
}

.footer-disclaimer {
    font-size: 12px;
    flex-direction: column;
    gap: 5px;
}

/* Utility classes for mobile */
.text-center-mobile {
    text-align: center;
}

.hide-on-mobile {
    display: none;
}

.show-on-mobile {
    display: block;
}
}

/* Very small devices (phones, 480px and down) */
@media (max-width: 480px) {
.hero-title {
font-size: 1.8rem;
}

text
.hero-subtitle {
    font-size: 0.9rem;
}

.converter-box {
    padding: 20px 15px;
}

.url-input {
    padding: 16px 45px;
    font-size: 14px;
}

.convert-btn {
    padding: 16px 20px;
    font-size: 15px;
}

.section-title {
    font-size: 1.6rem;
}

.track-title {
    font-size: 1.3rem;
}

.download-btn {
    padding: 12px 20px;
    font-size: 14px;
}
}

/* Tablet styles (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
.container {
padding: 0 30px;
}

text
.hero-title {
    font-size: 2.8rem;
}

.features-grid {
    grid-template-columns: repeat(2, 1fr);
}

.track-header {
    gap: 20px;
}

.track-thumbnail {
    width: 180px;
    height: 180px;
}

.track-title {
    font-size: 2rem;
}

.menu-toggle {
    display: none;
}
}

/* Landscape mode fixes */
@media (max-height: 500px) and (orientation: landscape) {
.hero {
padding: 40px 0 30px;
}

text
.converter-box {
    margin: 20px auto;
    padding: 20px;
}

.track-info-card {
    margin: 20px auto;
    padding: 20px;
}
}

/* Prevent text size adjustment on orientation change */
html {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-size-adjust: 100%;
}

/* Mobile touch improvements */
@media (hover: none) and (pointer: coarse) {
.convert-btn,
.download-btn,
.bulk-download-btn,
.faq-question,
.nav-links a {
min-height: 44px;
min-width: 44px;
}

text
.url-input {
    font-size: 16px; /* Prevents iOS zoom on focus */
}

/* Improve touch targets */
.feature,
.step,
.download-option {
    cursor: default;
}
}

/* Dark mode preference support */
@media (prefers-color-scheme: dark) {
body {
background: linear-gradient(180deg, #121212 0%, #000000 100%);
}
}

/* Smooth scrolling for mobile */
html {
scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
@media (max-width: 768px) {
::-webkit-scrollbar {
display: none;
}

text
* {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
}

/* Mobile menu overlay fix */
body.menu-open {
overflow: hidden;
}

/* Add these mobile-specific utility classes */
.mobile-only {
display: none;
}

@media (max-width: 768px) {
.mobile-only {
display: block;
}

text
.desktop-only {
    display: none;
}
}

/* Improve mobile loading performance */
img {
content-visibility: auto;
}

/* Mobile form input improvements */
input, button {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius: 0;
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
.hero {
min-height: -webkit-fill-available;
}
}