/* Base Styles */
:root {
    --primary: #E63946;
    --secondary: #457B9D;
    --dark: #1D3557;
    --light: #F1FAEE;
    --accent: #A8DADC;
    --gradient: linear-gradient(45deg, var(--primary), #FF8C69);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
}

section {
    padding: 5rem 0;
}

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

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

button {
    cursor: pointer;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: var(--transition);
}

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

.main-nav ul li a {
    font-weight: 600;
    color: var(--dark);
    padding: 0.5rem;
    position: relative;
}

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

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

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 600px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    color: white;
    padding-top: 80px;
    text-align: center;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    margin: 2rem auto;
    max-width: 600px;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--dark);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--secondary);
}

.popular-searches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.popular-searches span {
    color: rgba(255, 255, 255, 0.8);
}

.popular-searches a {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.popular-searches a:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.categories h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.categories h2 {
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    text-align: center;
    transition: var(--transition);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: #f8f9fa;
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-icon {
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.1rem;
}

/* Trending Section */
.trending {
    background-color: #f8f9fa;
}

.trending h2 {
    text-align: center;
}

.trending h2::after {
    left: 50%;
    transform: translateX(-50%);
}

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

.video-card {
    background: #fff;
    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.15);
}

.video-thumbnail {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-thumbnail svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.video-card h3 {
    padding: 1rem;
    font-size: 1rem;
    margin-bottom: 0;
}

.video-meta {
    padding: 0 1rem 1rem;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.85rem;
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: var(--secondary);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--dark);
    transform: translateY(-3px);
}

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

.features-section h2 {
    text-align: center;
}

.features-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

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

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: #f8f9fa;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* CTA Section */
.cta {
    background: var(--gradient);
    color: white;
    text-align: center;
}

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

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

.cta h2::after {
    display: none;
}

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

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

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

.footer-nav h4, .footer-legal h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-nav ul li, .footer-legal ul li {
    margin-bottom: 0.8rem;
}

.footer-nav ul li a, .footer-legal ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav ul li a:hover, .footer-legal ul li a:hover {
    color: white;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        height: 70vh;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        z-index: 1001;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav ul li {
        margin: 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-btn {
        position: absolute;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
