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

:root {
    --primary: #e50914;
    --dark: #141414;
    --light: #fff;
    --gray: #808080;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 10%, transparent);
}

.navbar.scrolled {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px var(--primary); }
    50% { text-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.search-box input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 35px 8px 15px;
    border-radius: 4px;
    color: var(--light);
    width: 200px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    width: 250px;
}

.search-icon {
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    fill: var(--light);
    pointer-events: none;
}

.btn-signin, .btn-signup {
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-signin {
    color: var(--light);
    border: 1px solid var(--light);
}

.btn-signin:hover {
    background: rgba(255,255,255,0.1);
}

.btn-signup {
    background: var(--primary);
    color: var(--light);
    border: none;
}

.btn-signup:hover {
    background: #f40612;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light);
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../../uploads/apeimage/bann.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
}

.btn-secondary {
    background: rgba(109,109,110,0.7);
    color: var(--light);
}

.btn-secondary:hover {
    background: rgba(109,109,110,0.9);
}

.content-section {
    padding: 60px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: bold;
}

.content-slider {
    position: relative;
}

.content-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.content-row::-webkit-scrollbar {
    height: 8px;
}

.content-row::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.content-row::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.content-card {
    min-width: 250px;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.content-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.card-overlay p {
    font-size: 14px;
    color: var(--gray);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: var(--light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: -25px;
}

.slider-btn.next {
    right: -25px;
}

.features {
    padding: 80px 0;
    background: rgba(255,255,255,0.02);
}

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

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.08);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

.footer {
    background: #000;
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(20, 20, 20, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .nav-container {
        padding: 20px 20px;
    }

    .container {
        padding: 0 20px;
    }

    .content-row {
        gap: 10px;
    }

    .content-card {
        min-width: 150px;
        height: 220px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
