* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    html, body {
        overflow-x: hidden;
        background-color: #FAF9F6;
        height: 100vh;
        width: 100vw;
        scroll-behavior: smooth;
        overflow-y: auto;
        position: relative;
    }

        .website-content {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

            /* Navigation Bar */
            .navigation-bar {
                width: 100%;
                background-color: ghostwhite;
                position: sticky;
                top: -50px;
                z-index: 1000;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            }

            /* Top Bar */
            .navigation-topbar {
                min-height: 50px;
                max-height: 50px;
                width: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 10px 30px;
                background-color: ghostwhite;
                border-bottom: 1px solid #e0e0e0;
                flex-wrap: wrap;
                gap: 10px;
                transition: all 0.3s ease;
                overflow: hidden;
            }

                .contact-email {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    font-size: 14px;
                    color: #555;
                    transition: color 0.3s;
                }

                .contact-email:hover {
                    color: #D27D2D;
                }

                .social-media-contact {
                    display: flex;
                    align-items: center;
                    gap: 0;
                }

                .social-icon {
                    width: 60px;
                    height: 32px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: transform 0.3s;
                    cursor: pointer;
                    border-right: 1px solid #ddd;
                }

                .social-icon:hover {
                    transform: translateY(-2px);
                }

                .social-icon img {
                    width: 24px;
                    height: 24px;
                }

                .phone-contact {
                    display: flex;
                    align-items: center;
                    gap: 5px;
                    text-decoration: none;
                    color: #555;
                    font-size: 14px;
                    font-weight: 500;
                    padding-left: 15px;
                    transition: color 0.3s;
                }

            .phone-contact:hover {
                color: #D27D2D;
            }

            /* Main Navigation */
            .navigation-menu {
                min-height: 80px;
                width: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 15px 40px;
                background-color: ghostwhite;
            }

                .menu-info {
                    text-align: center;
                }

                .menu-info a {
                    text-decoration: none;
                    color: #333;
                    font-size: 16px;
                    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
                    font-weight: 600;
                    line-height: 1.6;
                    transition: color 0.3s;
                }

            .menu-info a:hover {
                color: #D27D2D;
            }

            /* Hamburger Menu Button */
            .hamburger {
                display: none;
                flex-direction: column;
                gap: 5px;
                cursor: pointer;
                padding: 10px;
            }

                .hamburger span {
                    width: 30px;
                    height: 3px;
                    background-color: #333;
                    transition: 0.3s;
                }

                .hamburger.active span:nth-child(1) {
                    transform: rotate(45deg) translate(5px, 5px);
                }

                .hamburger.active span:nth-child(2) {
                    opacity: 0;
                }

                .hamburger.active span:nth-child(3) {
                    transform: rotate(-45deg) translate(5px, -6px);
                }

            /* Menu Items */
            .menu ul {
                display: flex;
                gap: 40px;
                list-style: none;
                align-items: center;
            }

                .menu ul li {
                    position: relative;
                }

                .menu ul li a,
                .menu ul li p {
                    text-decoration: none;
                    color: #333;
                    font-size: 15px;
                    font-weight: 500;
                    cursor: pointer;
                    padding: 8px 0;
                    transition: color 0.3s;
                    position: relative;
                }

                .menu ul li a::after,
                .menu ul li p::after {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 0;
                    height: 2px;
                    background-color: #D27D2D;
                    transition: width 0.3s;
                }

                .menu ul li a:hover,
                .menu ul li p:hover {
                    color: #D27D2D;
                }

                .menu ul li a:hover::after,
                .menu ul li p:hover::after {
                    width: 100%;
                }

                /* Dropdown Menu */
                .sub-menu {
                    display: none;
                    position: absolute;
                    top: 100%;
                    left: -20px;
                    background-color: white;
                    min-width: 200px;
                    border-radius: 8px;
                    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
                    padding: 10px 0;
                    margin-top: 0;
                    opacity: 0;
                    transform: translateY(-10px);
                    transition: opacity 0.3s, transform 0.3s;
                }

                    .menu ul li:hover .sub-menu {
                        display: block;
                        opacity: 1;
                        transform: translateY(0);
                    }

                    .sub-menu ul {
                        display: flex;
                        flex-direction: column;
                        gap: 0;
                    }

                    .sub-menu ul li {
                        width: 100%;
                    }

                    .sub-menu ul li a {
                        display: block;
                        padding: 12px 24px;
                        font-size: 14px;
                        color: #555;
                        transition: background-color 0.2s, color 0.2s;
                    }

                    .sub-menu ul li a::after {
                        display: none;
                    }

                    .sub-menu ul li a:hover {
                        background-color: #f8f8f8;
                        color: #D27D2D;
                        padding-left: 28px;
                    }

        /* Body Content */
        .body-content {
            width: 100%;
        }

            .first-row {
                min-height: 100vh;
                width: 100%;
                padding: 20px;
                background-image: url('../Picture/Cebu.jpg');
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
            }

                .text-area {
                    text-align: center;
                    color: white;
                    margin-bottom: 50px;
                    animation: fadeInUp 1s ease-out;
                }

                    .text-area h1 {
                        font-size: 56px;
                        font-weight: 700;
                        line-height: 1.3;
                        margin-bottom: 20px;
                        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
                    }

                    .text-area p {
                        font-size: 22px;
                        font-weight: 300;
                        text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
                    }

                .textboxandbutton {
                    animation: fadeInUp 1s ease-out 0.3s both;
                }

                    .textboxandbutton form {
                        display: flex;
                        gap: 15px;
                        justify-content: center;
                        align-items: center;
                        flex-wrap: wrap;
                    }

                    #search_bar {
                        height: 55px;
                        width: 400px;
                        max-width: 90vw;
                        padding: 0 20px;
                        border-radius: 30px;
                        border: none;
                        font-size: 16px;
                        color: #333;
                        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
                        transition: transform 0.3s, box-shadow 0.3s;
                    }

                    #search_bar:focus {
                        outline: none;
                        transform: translateY(-2px);
                        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
                    }

                    #search_button {
                        height: 55px;
                        width: 120px;
                        border-radius: 30px;
                        border: none;
                        background-color: #D27D2D;
                        font-weight: 600;
                        font-size: 16px;
                        color: white;
                        cursor: pointer;
                        box-shadow: 0 4px 15px rgba(210, 125, 45, 0.4);
                        transition: all 0.3s;
                    }

                    #search_button:hover {
                        background-color: #b1651e;
                        transform: translateY(-2px);
                        box-shadow: 0 6px 20px rgba(210, 125, 45, 0.6);
                    }

            /* Developers Section (Second Row) */
            .second-row {
                height: 1000px;
                width: 100%;
                background-image: url('../Picture/Developers.jpg');
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
            }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ========================================
        RESPONSIVE MEDIA QUERIES
        ======================================== */

        /* Tablet */
        @media (max-width: 1024px) {
            .navigation-topbar {
                min-height: 50px;
                padding: 10px 20px;
                font-size: 13px;
                gap: 10px;
            }

                .contact-email {
                    gap: 8px;
                    font-size: 13px;
                }

                .social-icon {
                    width: 50px;
                    height: 30px;
                }

                .social-icon img {
                    width: 22px;
                    height: 22px;
                }

                .phone-contact {
                    gap: 5px;
                    font-size: 13px;
                    padding-left: 12px;
                }

            .navigation-menu {
                min-height: 80px;
                padding: 15px 25px;
            }

                .menu-info a {
                    font-size: 16px;
                }

            .hamburger {
                    display: flex;
                    gap: 5px;
                    padding: 10px;
                }

                .hamburger span {
                    width: 30px;
                    height: 3px;
                }

                .menu {
                    position: fixed;
                    top: 130px;
                    right: -250px;
                    width: 230px;
                    height: calc(100vh - 130px);
                    background-color: white;
                    transition: right 0.3s;
                    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
                    overflow-y: auto;
                    z-index: 1500;
                }

                    .menu.active {
                        right: 0;
                    }

                    .menu ul {
                        flex-direction: column;
                        gap: 0;
                        padding: 20px 0;
                    }

                    .menu ul li {
                        width: 100%;
                        border-bottom: 1px solid #f0f0f0;
                    }

                    .menu ul li a,
                    .menu ul li p {
                        display: block;
                        padding: 15px 30px;
                        font-size: 16px;
                    }

                    .menu ul li a::after,
                    .menu ul li p::after {
                        display: none;
                    }

                        .sub-menu {
                            position: static;
                            box-shadow: none;
                            border-radius: 0;
                            margin-top: 0;
                            padding: 0;
                            background-color: #f8f8f8;
                        }

                        .menu ul li:hover .sub-menu {
                            display: none;
                        }

                        .menu ul li.active .sub-menu {
                            display: block;
                            opacity: 1;
                            transform: none;
                        }

                        .sub-menu ul li a {
                            padding: 12px 50px;
                            font-size: 14px;
                        }

                        .sub-menu ul li a:hover {
                            padding-left: 55px;
                        }

                .first-row {
                    min-height: 90vh;
                    padding: 20px;
                }

                    .text-area {
                        margin-bottom: 50px;
                    }

                        .text-area h1 {
                            font-size: 44px;
                            margin-bottom: 20px;
                        }

                        .text-area p {
                            font-size: 18px;
                        }

                    .textboxandbutton form {
                        gap: 15px;
                    }

                    #search_bar {
                        height: 55px;
                        width: 350px;
                        padding: 0 20px;
                        font-size: 16px;
                    }

                    #search_button {
                        height: 55px;
                        width: 110px;
                        font-size: 16px;
                    }

                    .second-row {
                        height: 800px;
                        min-height: 90vh;
                    }
                }

        /* Phone */
        @media (max-width: 600px) {
            html, body {
                position: relative;
                overflow-x: hidden;
                overflow-y: auto;
            }

            .website-content {
                position: relative;
                padding-top: 0;
            }

            .navigation-topbar {
                display: none;
            }

            .navigation-bar {
                position: sticky;
                top: 0;
                left: 0;
                right: 0;
            }

            .navigation-menu {
                padding: 15px 20px;
                min-height: 70px;
            }

            .menu-info a {
                font-size: 16px;
            }

            .hamburger {
                display: flex;
                gap: 5px;
                padding: 10px;
            }

            .hamburger span {
                width: 30px;
                height: 3px;
            }

            .menu {
                position: absolute; /* Use absolute instead of fixed */
                top: 100%; /* Place it just below the navigation-menu */
                right: -60%; /* Hide it to the right initially */
                width: 60%; /* Only cover half the screen */
                height: calc(100vh - 70px); /* Height excluding navbar */
                background-color: ghostwhite;
                transition: right 0.3s ease;
                box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
                overflow-y: auto;
                z-index: 900; /* lower than navbar */
                border-left: 1px solid #D27D2D;
            }

            .menu.active {
                right: 0;
            }

            .menu ul {
                flex-direction: column;
                gap: 0;
                padding: 20px 0;
            }

            .menu ul li {
                width: 100%;
                border-bottom: 1px solid #f0f0f0;
            }

            .menu ul li a,
            .menu ul li p {
                padding: 14px 25px;
                font-size: 15px;
            }

            .menu ul li a::after,
            .menu ul li p::after {
                display: none;
            }

            .sub-menu {
                position: static;
                box-shadow: none;
                border-radius: 0;
                margin-top: 0;
                padding: 0;
                background-color: #f8f8f8;
            }

            .menu ul li:hover .sub-menu {
                display: none;
            }

            .menu ul li.active .sub-menu {
                display: block;
                opacity: 1;
                transform: none;
            }

            .sub-menu ul li a {
                padding: 10px 40px;
                font-size: 13px;
            }

            .sub-menu ul li a:hover {
                padding-left: 45px;
            }

            .first-row {
                padding: 40px 20px;
                min-height: 85vh;
                background-attachment: scroll;
            }

            .text-area {
                margin-bottom: 40px;
            }

            .text-area h1 {
                font-size: 32px;
                margin-bottom: 15px;
            }

            .text-area p {
                font-size: 16px;
            }

            .textboxandbutton form {
                flex-direction: row;
                gap: 10px;
                width: 100%;
            }

            #search_bar {
                width: 100%;
                flex: 1;
                min-width: 0;
                height: 50px;
                font-size: 15px;
                padding: 0 20px;
            }

            #search_button {
                width: 100px;
                height: 50px;
                flex-shrink: 0;
                font-size: 15px;
            }

            .second-row {
                height: 250px;
                min-height: 32vh;
                background-size: contain;
                background-position: top;
            }
        }

        /* Featured Videos Section */
        .third-row {
            width: 100%;
            min-height: 100vh;
            padding: 80px 20px;
            background-color: #FAF9F6;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .section-title {
            font-size: 20px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-weight: 700;
            color: #333;
            margin-bottom: 30px;
            align-self: flex-start;
            padding-left: 20%;
        }

        .video-carousel {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 30px;
            width: 100%;
        }

        .video-wrapper {
            width: 60%;
            position: relative;
            padding-bottom: 33.75%; /* 16:9 of 60% width */
            height: 0;
            overflow: hidden;
            background-color: #000;
        }

        .video-wrapper video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .carousel-btn {
            background: none;
            border: none;
            font-size: 80px;
            color: #333;
            cursor: pointer;
            line-height: 1;
            transition: color 0.3s;
            padding: 0 10px;
        }

        .carousel-btn:hover {
            color: #D27D2D;
        }

        .video-caption {
            margin-top: 20px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 15px;
            color: #555;
        }

            .custom-controls {
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                background: rgba(0, 0, 0, 0.6);
                display: flex;
                align-items: center;
                gap: 10px;
                padding: 8px 12px;
            }

            .custom-controls button {
                background: none;
                border: none;
                color: white;
                font-size: 16px;
                cursor: pointer;
                transition: color 0.3s;
            }

            .custom-controls button:hover {
                color: #D27D2D;
            }

            .video-wrapper video {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                object-fit: contain;
                cursor: pointer;
            }

            #volume-bar {
                width: 80px;
                cursor: pointer;
                accent-color: #D27D2D;
                height: 4px;
            }

            #progress-bar {
                flex: 1;
                cursor: pointer;
                accent-color: #D27D2D;
                height: 4px;
            }

            #time-display {
                color: white;
                font-size: 12px;
                white-space: nowrap;
                font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            }

                .video-wrapper:fullscreen {
                    width: 100%;
                    height: 100%;
                    padding-bottom: 0;
                    background-color: #000;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                .video-wrapper:fullscreen video {
                    position: relative;
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }

                .video-wrapper:fullscreen .custom-controls {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    z-index: 9999;
                }

                /* For Firefox */
                .video-wrapper:-moz-full-screen {
                    width: 100%;
                    height: 100%;
                    padding-bottom: 0;
                    background-color: #000;
                }

                .video-wrapper:-moz-full-screen video {
                    position: relative;
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }

                .video-wrapper:-moz-full-screen .custom-controls {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    z-index: 9999;
                }

                /* For webkit browsers */
                .video-wrapper:-webkit-full-screen {
                    width: 100%;
                    height: 100%;
                    padding-bottom: 0;
                    background-color: #000;
                }

                .video-wrapper:-webkit-full-screen video {
                    position: relative;
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }

                .video-wrapper:-webkit-full-screen .custom-controls {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    z-index: 9999;
                }

        @media (max-width: 1024px) {
            .video-wrapper {
                width: 75%;
                padding-bottom: 42.18%;
            }

            .section-title {
                padding-left: 12%;
            }
        }

        @media (max-width: 600px) {
            .third-row {
                padding: 40px 20px;
                min-height: auto;
            }

            .section-title {
                font-size: 16px;
                padding-left: 0;
                align-self: center;
            }

            .video-wrapper {
                width: 80%;
                padding-bottom: 45%;
            }

            .carousel-btn {
                font-size: 50px;
            }
        }