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

:root {
    --primary-color: #E53935;
    --secondary-color: #424242;
    --text-color: #333;
    --text-light: #666;
    --background-light: #f5f5f5;
    --background-dark: #121212;
    --white: #ffffff;
    --border-radius: 4px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.primary {
    background: var(--primary-color);
    color: var(--white);
}

.primary:hover {
    background: #c62828;
    transform: translateY(-2px);
}

.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary:hover {
    background: rgba(229, 57, 53, 0.1);
}

.outline {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-color);
}

.outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.large {
    padding: 14px 30px;
    font-size: 1.1rem;
}

.center {
    text-align: center;
    margin-top: 2rem;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Trending Videos Section */
.trending {
    padding: 80px 0;
}

.trending h2, .categories h2, .technology h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.video-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background-color: var(--secondary-color);
}

.thumbnail svg {
    width: 100%;
    height: 100%;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 3px 8px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Categories Section */
.categories {
    background-color: var(--background-dark);
    color: var(--white);
    padding: 80px 0;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
}

.category-card:hover {
    background: rgba(229, 57, 53, 0.2);
    transform: translateY(-5px);
}

.category-card svg {
    margin-bottom: 15px;
}

.category-card h3 {
    color: var(--white);
    font-size: 1.1rem;
}

/* Technology Section */
.technology {
    padding: 80px 0;
    background-color: var(--white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tech-card {
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    margin-bottom: 20px;
}

.tech-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tech-card p {
    color: var(--text-light);
}

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

.feature {
    background: var(--background-light);
    padding: 20px;
    border-radius: var(--border-radius);
}

.feature h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c62828 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-section .btn {
    background: var(--white);
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    color: #bbb;
}

.link-group ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-links {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav ul {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .main-nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul li {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .tech-grid,
    .tech-features {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .trending h2, 
    .categories h2, 
    .technology h2,
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
}
