* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
    color: white;
    line-height: 1.6;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 30px;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.4s;
}
header.scrolled {
    background: rgba(0, 0, 0, 0.695);
}
.navbar-content {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    color: #e50914;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
}
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}
.nav-links a:hover {
    color: #aaa;
}
.nav-icons {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 18px;
}
.hamburger {
    display: none;
    border: none;
    background: none;
    color: white;
    font-size: 25px;
    cursor: pointer;
}
.hero {
    height: 600px;
    position: relative;
    background-image: url("pel.jpeg");
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(52, 2, 2, 0.98) 0%,
        rgba(0, 0, 0, 0.82) 22%,
        rgba(0, 0, 0, 0.182) 48%,
        rgba(0, 0, 0, 0.08) 80%,
        rgba(253, 253, 253, 0) 100%
    );
    z-index: 1;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.15) 20%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.78) 72%,
        #000 100%
    );
    z-index: 2;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}
.hero-text {
    width: 430px;
    padding-top: 30px;
}
.hero-label {
    font-size: 12px;
    font-weight: bold;
    color: #aaa;
    margin-bottom: 12px;
}
.hero-text h1 {
    font-size: 55px;
    line-height: 0.95;
    margin-bottom: 20px;
}
.hero-desc {
    color: #ddd;
    font-size: 12px;
    max-width: 400px;
    margin-bottom: 15px;
}
.hero-info {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 15px;
}
.rating {
    color: #f5d000;
    font-size: 16px;
    font-weight: bold;
}
.hero-buttons {
    display: flex;
    gap: 10px;
}
.watch-btn,
.list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: 0.3s;
}
.watch-btn {
    background: #e50914;
    color: white;
}
.watch-btn:hover {
    background: #b20710;
}
.list-btn {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}
.list-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}
.projects {
    background: #000;
    padding: 32px 0 60px;
    margin-top: 0;
    position: relative;
    z-index: 5;
}
.carousel {
    display: flex;
    align-items: center;
    gap: 12px;
}
.carousel-window {
    width: 100%;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease;
    cursor: grab;
    user-select: none;
}
.carousel-track:active {
    cursor: grabbing;
}
.project-card {
    flex: 0 0 calc(33.333% - 10.67px);
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    background: #111;
    border-radius: 3px;
    position: relative;
    transition: transform 0.3s ease;
}
.project-card:hover {
    transform: scale(1.035);
    z-index: 5;
}
.project-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}
.carousel-button {
    width: 40px;
    height: 65px;
    flex-shrink: 0;
    border: none;
    background: rgba(30, 30, 30, 0.9);
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}
.carousel-button:hover {
    background: #e50914;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
}
.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #555;
    transition: 0.3s;
}
.dot.active {
    width: 20px;
    border-radius: 10px;
    background: #e50914;
}
section:not(.hero):not(.projects) {
    padding: 80px 0;
}
section h2 {
    font-size: 28px;
    margin-bottom: 30px;
}
.card {
    background: #141414;
    border-radius: 5px;
    padding: 30px;
    border: 1px solid #222;
    transition: 0.3s;
}
.card:hover {
    border-color: #444;
}
.card h3 {
    margin-bottom: 10px;
}
.card p {
    color: #aaa;
    font-size: 14px;
}
.card small {
    display: block;
    margin-top: 10px;
    color: #e50914;
}
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.skills span {
    padding: 8px 15px;
    background: #222;
    border-radius: 4px;
    font-size: 13px;
    color: #ddd;
}
.social {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.social a {
    color: #e50914;
    text-decoration: none;
}
footer {
    padding: 30px;
    text-align: center;
    background: #111;
    border-top: 1px solid #222;
}
footer p {
    color: #777;
    font-size: 12px;
}
@media (max-width: 900px) {
    .nav-links {
        gap: 15px;
    }
    .nav-icons {
        display: none;
    }
    .hero-text h1 {
        font-size: 45px;
    }
    .project-card {
        flex: 0 0 calc(50% - 8px);
    }
}
@media (max-width: 700px) {
    .navbar-content {
        padding: 0 20px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #000;
        flex-direction: column;
        gap: 20px;
        padding: 25px;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .hero {
        height: 600px;
        background-position: center;
    }
    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.92),
            rgba(0, 0, 0, 0.35)
        );
    }
    .hero::after {
        height: 220px;
    }
    .hero-text {
        width: 100%;
    }
    .hero-text h1 {
        font-size: 40px;
    }
    .hero-desc {
        font-size: 11px;
    }
    .project-card {
        flex: 0 0 100%;
        aspect-ratio: 16 / 9;
        height: auto;
    }
    .carousel-button {
        width: 30px;
        height: 50px;
        font-size: 30px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}
