/* HUB HERO */
.hub-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('assets/img/hubbg.png') center/cover no-repeat;
}

.hub-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hub-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: -1;
}

.hub-hero-content h1 {
    font-size: 3rem;
}

/* HUB INTRO */
.hub-intro {
    padding: 80px 10%;
    text-align: center;
}

/* RESOURCE GRID */
.hub-resources {
    padding: 80px 10%;
    background: #111;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.hub-card {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s ease;
}

.hub-card:hover {
    transform: translateY(-10px);
    background: #202020;
}

.hub-card i {
    font-size: 40px;
    margin-bottom: 20px;
    color: #ff6b00;
}

.hub-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #ff6b00;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* FEATURED */
.hub-featured {
    padding: 80px 10%;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.featured-item img {
    width: 85%;
    border-radius: 10px;
    margin-bottom: 15px;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #111;
    color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.modal-content button {
    margin-top: 20px;
    padding: 10px 25px;
    background: orange;
    border: none;
    border-radius: 25px;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.modal-content button:hover {
    background: #ff9c33;
}


/* =================================
RESPONSIVE RANGE SYSTEM
================================= */


/* SMALL LAPTOPS
901px — 1200px */
@media (min-width: 901px) and (max-width: 1200px){
.top-bar{
        font-size: 12px;
    }
  .hub-hero-content{
        margin-top: 101px;
    }

    .hub-overlay
        {
            margin-top: 91px;
        }
    .hub-intro,
    .hub-resources,
    .hub-featured{
        padding: 70px 8%;
    }

}


/* TABLETS
769px — 900px */
@media (min-width: 769px) and (max-width: 900px){

    .hub-hero{
        height: 50vh;
    }

    .hub-hero-content h1{
        font-size: 2.5rem;
    }

    .hub-grid{
        grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    }

    .hub-card{
        padding: 35px;
    }
   .top-bar{
        font-size: 12px;
    }
  .hub-hero-content{
        margin-top: 101px;
    }

    .hub-overlay
        {
            margin-top: 91px;
        }

}


/* LARGE PHONES
481px — 768px */
@media (min-width: 481px) and (max-width: 768px){

    .hub-hero{
        height: 45vh;
    }

    .hub-hero-content h1{
        font-size: 2.2rem;
    }

    .hub-intro,
    .hub-resources,
    .hub-featured{
        padding: 60px 8%;
    }

    .hub-grid{
        gap: 30px;
    }

    .hub-card{
        padding: 30px;
    }

    .hub-card i{
        font-size: 34px;
    }
.top-bar{
        font-size: 12px;
    }
  .hub-hero-content{
        margin-top: 101px;
    }

    .hub-overlay
        {
            margin-top: 91px;
        }
}


/* SMALL PHONES
0px — 480px */
@media (max-width: 480px){

    .hub-hero{
        height: 40vh;
    }

    .hub-hero-content h1{
        font-size: 1.8rem;
    }

    .hub-intro,
    .hub-resources,
    .hub-featured{
        padding: 50px 6%;
    }

    .hub-grid{
        gap: 25px;
    }

    .hub-card{
        padding: 25px;
    }

    .hub-card i{
        font-size: 30px;
    }

    .featured-item img{
        width: 100%;
    }

    .modal-content{
        margin: 40% auto;
        padding: 25px;
    }
.top-bar{
        font-size: 12px;
    }
  .hub-hero-content{
        margin-top: 101px;
    }

    .hub-overlay
        {
            margin-top: 91px;
        }
    
    }


    /* =========================================
   MOBILE MODAL FIX
========================================= */

@media(max-width:900px){

    .app-modal{

        padding: 18px;
        overflow-y: auto;
    }

    .app-modal-content{

        width: 100%;
        max-width: 100%;

        grid-template-columns: 1fr;

        max-height: 95vh;

        overflow-y: auto;

        border-radius: 20px;
    }

    .app-image-section{

        padding: 25px 20px 10px 20px;
    }

    .app-preview-image{

        width: 100%;
        max-width: 180px;

        border-radius: 24px;
    }

    .app-modal-body{

        padding: 22px;
    }

    .app-modal-body h2{

        font-size: 42px;

        line-height: 1.1;

        margin-bottom: 18px;
    }

    .app-modal-body p{

        font-size: 15px;

        line-height: 1.7;

        margin-bottom: 25px;
    }

    .app-features{

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .app-feature{

        padding: 14px;
    }

    .app-buttons{

        flex-direction: column;

        width: 100%;
    }

    .download-btn,
    .later-btn{

        width: 100%;

        text-align: center;
    }

    .close-app-modal{

        top: 12px;
        right: 16px;

        font-size: 30px;
    }
}

