/* Global Styles */
:root {
    --primary-color: #ff0000;
    --secondary-color: #282828;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --dark-gray: #888888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Header Styles */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a i {
    margin-right: 5px;
}

/* Hero Section */
.hero-section {
    background-color: #333333;
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Download Section */
.download-section {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin: -30px auto 40px;
    position: relative;
    z-index: 1;
}

.input-group {
    display: flex;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
}

.input-group button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.input-group button:hover {
    background-color: #e60000;
}

/* Video Info */
.video-info {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

.video-thumbnail {
    width: 160px;
    min-width: 160px;
    margin-right: 20px;
}

.video-thumbnail img {
    width: 100%;
    border-radius: 4px;
}

.video-details h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.video-duration {
    color: var(--dark-gray);
}

/* Download Options */
.download-options h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.format-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.format-btn {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.format-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.format-btn i {
    margin-right: 8px;
}

/* Info Sections */
.info-section {
    margin-bottom: 50px;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.feature i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
}

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }

    .main-nav ul {
        margin-top: 15px;
    }

    .video-info {
        flex-direction: column;
        text-align: center;
    }

    .video-thumbnail {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .input-group button {
        border-radius: 4px;
        padding: 15px;
    }
}