/* =========================================================
   GLOBAL
========================================================= */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #111;
    color: white;
    text-align: center;
}


/* =========================================================
   HEADER / NAVBAR
========================================================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    padding: 10px 40px;
    background: black;

    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
}

.logo {
    max-width: 220px;
}

/* NAVBAR */
.navbar {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.navbar li {
    position: relative;
}

.navbar a,
.navbar span {
    display: block;
    padding: 14px 18px;
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* Hover underline animation */
.navbar a::after,
.navbar span::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.navbar li:hover a::after,
.navbar li:hover span::after {
    width: calc(100% - 36px);
}


/* =========================================================
   DROPDOWN
========================================================= */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;

    list-style: none;
    padding: 10px 0;
    margin: 0;

    min-width: 200px;
    background: #111;
    border-radius: 4px;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;

    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li a {
    padding: 10px 16px;
    display: block;
    text-align: left;
}

.dropdown-menu li a:hover {
    background: #333;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* =========================================================
   HERO (HOME PAGE)
========================================================= */
.hero {
    position: relative;
    height: 90vh;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 10px;
}

.hero-content p {
    color: #ccc;
    margin-bottom: 20px;
}

.hero-button {
    padding: 12px 28px;
    border: 2px solid white;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.hero-button:hover {
    background: white;
    color: black;
}


/* =========================================================
   VIDEO PAGE (NETFLIX STYLE)
========================================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;

    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-card img {
    width: 100%;
    display: block;
}

.project-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover video {
    opacity: 1;
}

.project-card:hover {
    transform: scale(1.08);
    z-index: 5;
}

/* Overlay */
.project-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;

    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    opacity: 0;

    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.video-modal {
    position: fixed;        /* THIS makes it a popup */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.9);

    display: none;          /* hidden by default */
    justify-content: center;
    align-items: center;

    z-index: 9999;          /* sits on top of everything */
}

.video-modal video {
    width: 80%;
    max-width: 1000px;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    cursor: pointer;
    color: white;
}

/* =========================================================
   PHOTO GALLERY
========================================================= */
.photo-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: left;
}

.photo-section h3 {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* GRID */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 1000px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CARD */
.photo-card {
    overflow: hidden;
    cursor: pointer;
}

.photo-card img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.photo-card:hover img {
    transform: scale(1.08);
}


/* =========================================================
   LIGHTBOX (CINEMATIC)
========================================================= */
.lightbox {
    position: fixed;
    inset: 0;

    display: none;
    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,0.95);
    z-index: 1000;
}

/* Vignette */
.lightbox::after {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        rgba(0,0,0,0) 60%,
        rgba(0,0,0,0.4)
    );

    pointer-events: none;
}

/* Image */
.lightbox-img {
    max-width: 90%;
    max-height: 80%;

    opacity: 0;
    transform: scale(0.96);

    transition: opacity 0.35s ease, transform 0.35s ease;
}

.lightbox-img.show {
    opacity: 1;
    transform: scale(1);
}

/* Controls */
.close-lightbox {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-controls span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

.lightbox-controls span:hover {
    transform: scale(1.2);
    opacity: 1;
}

.prev { left: 20px; }
.next { right: 20px; }


/* =========================================================
   ABOUT PAGE
========================================================= */
.about-page {
    padding: 60px 40px;
}

.about-container {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.about-image img {
    width: 350px;
    border-radius: 8px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #ccc;
}

/* Responsive */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
}