@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    background-color: black;
    overflow-x: hidden;
}

.title {
    position: relative; 
    font-size: 35px;
    text-align: center;
    padding: 30px;
    z-index: 10;
    color: white;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    height: 100vh;
    width: 250px;
    background-color: white;
    padding: 0.4rem 0.8rem;
    transition: all 0.5s ease;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    margin-top: 2rem;
    padding: 10px;
}

.sidebar ul li {
    list-style-type: none;
    height: 50px;
    width: 90%;
    margin: 0.8rem auto;
    line-height: 50px;
}


.sidebar ul li a {
    color: black;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 0.8rem;
    position: relative; 
    padding: 10px;
    transition: color 0.3s ease; 
}

.sidebar ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: black;
    transition: width 0.8s ease; 
}


.sidebar ul li a:hover::after {
    width: 100%; 
}

#menu-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 200; 
    color: white;
}

#menu-btn.active{
    color: black;
}


.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1);
    z-index: -2;
}

.video-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.video-dim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    opacity: 1;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0px);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.1s linear;
}


@media (max-width: 768px) {
    .video-bg {
        height: auto; 
        min-height: 100vh; 
        object-fit: cover; 
    }
}

.section-gap {
    font-family: DM Sans;
    position: absolute;
    top: 105%;
    left: 50%;
    transform: translate(-50%, -10%);
    text-align: center;
    width: 100%;
}

.main {
    position: relative;
    z-index: 2;
    padding: 20px 0 160px;
}

.section-heading {
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    color: white;
    margin: 0;
    z-index: 10;
    top: 90%
}
.showreel {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    color: white;
    text-transform: uppercase;
    border: 2px solid white;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 3rem; 
    text-decoration: none; 
}
.showreel:hover {
    background-color: white;
    color: black;
    border-color: #fff;
}

.section-heading {
    text-align: center;
    margin-top: 0; 
    margin-bottom: 10px; 
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    position: relative; 
    z-index: 10; 
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    padding: 48px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.grid-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10; 
    border-radius: 10px;
    background: #000;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease; 
    border-radius: 8px; 
}

.grid-item:hover img {
    transform: scale(1.1); 
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
}

.grid-item:hover .overlay {
    opacity: 1; 
}

.overlay p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.overlay a {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.overlay a:hover {
    background: white;
    color: black;
}

@media (max-width: 768px) {
    .title {
        font-size: 25px; 
        padding: 20px;
    }

    .section-heading {
        font-size: 1.8rem; 
    }

    .showreel {
        font-size: 0.9rem; 
        padding: 10px 20px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    }

    .grid-item {
        border-radius: 5px; 
    }

    .sidebar {
        width: 200px; 
    }

    #menu-btn {
        font-size: 1.2rem; 
    }
}

@media (max-width: 768px) {
    .sidebar {
        height: 100vh;
        overflow-y: auto; 
    }
}

@media (max-width: 768px) {
    .video-bg {
        object-fit: cover; 
        height: auto; 
    }

    .video-overlay h1 {
        font-size: 1.5rem; 
    }

    .showreel {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    #menu-btn {
        top: 0.5rem; 
        left: 0.5rem; 
    }

    .sidebar ul li {
        height: 40px; 
        line-height: 40px;
    }

    .sidebar ul li a {
        font-size: 0.9rem; 
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .section-gap {
        top: 110%; 
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 20px;
        padding: 15px;
    }

    .section-heading {
        font-size: 1.5rem;
    }

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

    .showreel {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}
