:root {
    --primary-gradient: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
    --secondary-gradient: linear-gradient(135deg, #6e8efb, #a777e3);
    --dark-bg: #0f0c29;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-dark: #333333;
    --text-light: #666666;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

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

.py-80 {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.hide {
    display: none !important;
}

/* Header */
header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
    -webkit-text-fill-color: initial;
    color: #e4405f;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #fd1d1d;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    padding: 120px 0 100px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--white);
    transform: skewY(-2deg);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    box-shadow: var(--shadow-strong);
}

.input-group {
    display: flex;
    background: var(--white);
    padding: 8px;
    border-radius: 50px;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.input-group i {
    padding: 0 15px 0 20px;
    color: var(--text-light);
}

.input-group input {
    flex: 1;
    border: none;
    padding: 12px 10px;
    font-size: 16px;
    outline: none;
    color: #333;
}

.input-group button {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 29, 29, 0.4);
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: none;
}

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

.example-url {
    margin-top: 15px;
    font-size: 13px;
    opacity: 0.7;
}

.error-msg {
    margin-top: 20px;
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
}

.error-msg i {
    margin-right: 10px;
}

/* Download Result */
.result-section {
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.result-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid #eee;
    padding: 30px;
    display: flex;
    gap: 30px;
    box-shadow: var(--shadow-soft);
    border-radius: 20px;
    align-items: center;
}

.preview-img {
    flex: 0 0 200px;
    height: 250px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
}

.preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    flex: 1;
}

.video-info h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dl-btn {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.video-dl {
    background: #00b894;
    color: var(--white);
}

.video-dl:hover {
    background: #00a181;
}

.audio-dl {
    background: #0984e3;
    color: var(--white);
}

.audio-dl:hover {
    background: #0873c4;
}

.copy-btn {
    margin-top: 15px;
    background: none;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
}

/* How it Works */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
}

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

.step-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-num {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    font-weight: 900;
    color: #f0f0f0;
    z-index: 0;
}

.step-card i {
    font-size: 48px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.step-card h3 {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--text-light);
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
}

.feature-item i {
    font-size: 32px;
    color: #e4405f;
    margin-bottom: 20px;
}

.feature-item h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-light);
    background: #fafafa;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
    border-top: 1px solid #eee;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Footer */
footer {
    background: #111;
    color: #ccc;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-content p {
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    margin-top: 30px;
    font-size: 14px;
}

.disclaimer {
    font-size: 12px;
    margin-top: 10px;
    opacity: 0.6;
}

.contact a {
    color: #e4405f;
    text-decoration: none;
    font-size: 14px;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.3s both;
}

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

/* Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .input-group {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
    }

    .input-group input {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .input-group button {
        width: 100%;
    }

    .result-card {
        flex-direction: column;
    }

    .preview-img {
        width: 100%;
        flex: none;
    }
}
