/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #03A9F4;
    --secondary-color: #0277BD;
    --accent-color: #00BCD4;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-muted: #777777;
    --bg-dark: #121212;
    --bg-light: #f7f9fc;
    --bg-card: #1a1a1a;
    --border-radius: 5px;
    --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: 16px;
    overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

h2 span {
    color: var(--primary-color);
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Header Styles */
header {
    background-color: #0A0A0A;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0.8rem 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(3, 169, 244, 0.3);
}

.nav-cta:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000F23, #001630);
    padding: 5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    padding: 0 1rem;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.8);
}

.hero-graphics {
    position: absolute;
    opacity: 0.7;
    top: 10%;
    right: 10%;
    transform: translateY(-10%);
    z-index: 0;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(3, 169, 244, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(3, 169, 244, 0.4);
}

.cta-button-secondary {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.cta-button-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

section:nth-child(odd) {
    background-color: #0a0a0a;
}

/* Features Section */
.features {
    background-color: #121212;
}

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

.feature-card {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(3, 169, 244, 0.2);
}

.feature-card svg {
    margin-bottom: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Video Section */
.trending-videos {
    background-color: #0a0a0a;
}

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

.video-card {
    background-color: #1a1a1a;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

.thumbnail {
    position: relative;
    overflow: hidden;
}

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

.video-card h3 {
    padding: 15px;
    font-size: 1rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFD700;
}

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

/* Categories Section */
.categories {
    background-color: #121212;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.category-tag {
    background-color: #1d1d1d;
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.category-tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    text-align: center;
    padding: 4rem 0;
}

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

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #050505;
    padding: 4rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand span {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links h3 {
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-newsletter p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.footer-cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
}

.footer-cta:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-graphics {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #0A0A0A;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.5s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        padding: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.7rem;
    }
    
    .feature-cards, .video-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-button, .cta-button-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
