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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0a0a0a;
    min-height: 100vh;
}

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

/* Header */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    margin-right: 10px;
    color: #00d4ff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #00d4ff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad"><stop offset="0%" stop-color="%2300d4ff" stop-opacity="0.1"/><stop offset="100%" stop-color="%2300d4ff" stop-opacity="0"/></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23grad)"/></svg>') center/cover;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.download-form {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.input-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#videoUrl {
    flex: 1;
    border: none;
    padding: 18px 25px;
    font-size: 1rem;
    border-radius: 45px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

#videoUrl::placeholder {
    color: #666;
}

#downloadBtn {
    background: linear-gradient(45deg, #00ff88, #00d4ff, #0099ff);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 45px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4), 0 0 30px rgba(0, 212, 255, 0.3);
    animation: gradientShift 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

#downloadBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

#downloadBtn:hover::before {
    left: 100%;
}

#downloadBtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5), 0 0 40px rgba(0, 212, 255, 0.4);
    background: linear-gradient(45deg, #00ff66, #00e6ff, #0088ff);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4), 0 0 30px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 255, 136, 0.6), 0 0 40px rgba(0, 212, 255, 0.5);
    }
}

#downloadBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Supported Platforms Section */
.supported-platforms-section {
    background: #1a1a1a;
    padding: 60px 0;
    color: white;
    text-align: center;
    z-index: 0;
}

.supported-platforms p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.platform-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.platform-icons i {
    font-size: 2.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.platform-icons i:hover {
    opacity: 1;
    transform: scale(1.1) translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.fa-youtube {
    color: #ff0000;
}

.fa-tiktok {
    color: #ffffff;
}

.fa-instagram {
    color: #e4405f;
}

.fa-facebook {
    color: #1877f2;
}

.fa-twitter {
    color: #1da1f2;
}

.fa-vimeo {
    color: #1ab7ea;
}

/* Download Result */
.download-result {
    background: #1a1a1a;
    padding: 80px 0;
    color: white;
}

.download-result h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

.video-info {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-thumbnail img {
    width: 100%;
    border-radius: 10px;
}

.video-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.video-details p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.quality-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quality-btn {
    padding: 12px 24px;
    border: 2px solid #00d4ff;
    background: transparent;
    color: #00d4ff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.quality-btn .loading {
    width: 15px;
    height: 15px;
    border: 3px solid #00d4ff;
    display: inline-block;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

.quality-btn:hover,
.quality-btn.active {
    background: #00d4ff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.quality-btn.audio-only {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.quality-btn.audio-only .loading {
    width: 15px;
    height: 15px;
    border: 3px solid #ff6b6b;
    display: inline-block;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

.quality-btn.audio-only:hover,
.quality-btn.audio-only.active {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Features Section */
.features {
    background: #0a0a0a;
    padding: 80px 0;
    color: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.feature-card i {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    color: #ccc;
}

/* How It Works */
.how-it-works {
    background: #1a1a1a;
    padding: 80px 0;
    color: white;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.step {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step p {
    color: #ccc;
}

/* Footer */
footer {
    background: #000;
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 1rem;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: #00d4ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .input-container {
        flex-direction: column;
        border-radius: 15px;
        padding: 10px;
    }

    #videoUrl {
        border-radius: 10px;
        margin-bottom: 10px;
    }

    #downloadBtn {
        border-radius: 10px;
    }

    .platform-icons {
        gap: 1.5rem;
    }

    .platform-icons i {
        font-size: 2rem;
        padding: 10px;
    }

    .nav-menu {
        display: none;
    }

    .video-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .quality-options {
        justify-content: center;
    }

    .features-grid,
    .steps {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Glow Effects */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    }
}

.glow-effect {
    animation: glow 2s ease-in-out infinite;
}
