/* ===== CSS Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Body Design ===== */
body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* ===== Header ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 1000;
    text-align: center;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    left: 0;
    bottom: -5px;
    background: #ffd700;
    transition: width 0.4s;
}

.navbar a:hover {
    color: #ffd700;
}

.navbar a:hover::after {
    width: 100%;
}

/* ===== Main Content ===== */
.main-content {
    margin-top: 80px;
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.5s;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(-50px);
}

.main-content:hover {
    transform: translateY(-60px);
}

/* ===== Headline ===== */
.headline {
    font-size: 2.5em;
    margin-bottom: 25px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* ===== Subtext ===== */
.sub-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #eee;
    opacity: 0.85;
}

/* ===== Input Field ===== */
.input-url {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    border: none;
    border-radius: 15px;
    font-size: 1em;
    color: #333;
    outline: none;
    text-align: center;
    transition: box-shadow 0.4s;
}

.input-url:focus {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* ===== Download Button ===== */
.download-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #fd1d1d, #fcb045);
    color: #fff;
    cursor: pointer;
    transition: background 0.5s, transform 0.3s;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.download-btn:hover {
    background: linear-gradient(135deg, #fcb045, #fd1d1d);
    transform: translateY(-5px);
}

/* ===== Footer ===== */
.footer {
    margin-top: auto;
    padding: 15px 0;
    text-align: center;
    font-size: 0.95em;
    background: rgba(0, 0, 0, 0.6);
    border-top: 2px solid #fff;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* ===== Responsive Design Adjustments ===== */
@media (max-width: 600px) {
    .navbar {
        flex-direction: row;
        justify-content: center;
        text-align: center;
        gap: 15px;
    }

    .main-content {
        margin-top: 100px;
        padding: 30px 20px;
        text-align: center;
        transform: translateY(-40px);
    }

    .headline {
        font-size: 2em;
    }

    .input-url {
        font-size: 1em;
    }

    .download-btn {
        font-size: 1em;
    }
}

/* ===== Download Page Styles ===== */
.download-page {
    margin-top: 120px;
    text-align: center;
    transform: translateY(-30px);
}

.video-info {
    margin-bottom: 30px;
}

.video-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.video-thumbnail:hover {
    transform: scale(1.05);
}

.video-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.download-links .download-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #fd1d1d, #fcb045);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, background 0.4s;
}

.download-links .download-btn:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #fcb045, #fd1d1d);
}
