* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.mm {
    background-color: #030303;
    overflow-x: hidden;
}

/* ============ ORIGINAL SECTION SIZES ============ */
.main-1 {
    background-color: #030303;
    height: 100vh;
    width: 100%;
    background-image: url(./main/wallpaperflare.com_wallpaper\ \(4\).jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.main-2 {
    background-color: #030303;
    height: 270vh;
    width: 100%;
}

.main-3 {
    background-color: #212121;
    height: 80vh;
    width: 100%;
}

.main-4 {
    background-color: #030303;
    height: 80vh;
    width: 100%;
}

.main-6 {
    background-color: #212121;
    color: white;
}

.b1 {
    width: 120px;
}

/* ============ SUBTLE PROFESSIONAL ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-1 h1 {
    animation: fadeInUp 0.8s ease both;
}

.main-1 .text-center .btn {
    animation: fadeInUp 0.8s 0.25s ease both;
}

/* Navbar */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 15px;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 30px);
}

.nav-link:hover {
    color: #ffc107 !important;
}

/* Buttons & cards */
.btn {
    transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
}

.ee:hover {
    background-color: red;
    cursor: pointer;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Footer */
.main-6 a {
    text-decoration: none;
    transition: color 0.25s ease;
}

.main-6 a:hover {
    color: #ffc107 !important;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============ RESPONSIVE (mobile / tablet) ============ */
@media (max-width: 991.98px) {

    .main-1 {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .main-1 br {
        display: none;
    }

    /* Navbar stays pinned at the top of the header */
    .main-1 > .row:first-of-type {
        flex: 0 0 auto;
    }

    /* Hero content fills the space below the navbar and is centred */
    .main-1 > .row:last-of-type {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 32px 0 56px 0;
        margin: 0;
    }

    .main-1 h1 {
        font-size: clamp(1.4rem, 5.5vw, 2.4rem) !important;
    }

    /* Hero "Watch all" button not oversized on small screens */
    .main-1 .text-center .btn {
        font-size: 1rem;
        padding: 0.5rem 1.25rem;
    }

    .main-2,
    .main-3,
    .main-4 {
        height: auto;
    }

    .main-4 {
        padding-bottom: 30px;
    }

    /* Stack all section columns vertically and center them */
    .main-2 .row>div[class*="col-"],
    .main-3 .row>div[class*="col-"],
    .main-4 .row>div[class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center;
    }

    /* Reset offsets / margined columns */
    .main-2 [class*="offset-"] {
        margin-left: 0 !important;
    }

    .main-4 .row.offset-1 {
        margin-left: 0 !important;
    }

    /* Partner logos: vertical breathing room between the stacked logos */
    .main-4 .row.offset-1 > div {
        margin-bottom: 20px;
    }

    /* Center images that sit directly in stacked columns.
       (The !important overrides Bootstrap's me-5 margin so the
       headphones / camera images are perfectly centred.) */
    .main-2 .row>div>img,
    .main-3 .row>div>img,
    .main-4 .row>div>img {
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Cards fill width, centered, smaller images inside */
    .main-2 .card,
    .main-3 .card {
        width: 100% !important;
        max-width: 340px;
        margin: 0 auto 15px auto !important;
        text-align: center;
    }

    /* Product images inside cards small */
    .main-2 .card img,
    .main-3 .card img {
        max-width: 160px !important;
        max-height: 130px;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
        margin-left: auto;
        margin-right: auto;
    }

    /* Keep the small inline icons (heart / cart / arrows) sized */
    .main-2 .card img[width="30px"],
    .main-3 img[width="30px"],
    .main-4 img[width="30px"] {
        max-width: 30px;
        max-height: 30px;
    }

    .main-3 img {
        float: none !important;
    }

    /* Big promo images (headphones / camera / console) scale small */
    .main-2 .col-5 img,
    .main-2 .col-7 img {
        max-width: 260px !important;
        max-height: 220px;
    }

    /* Rent images sized for phone */
    .main-4 img {
        max-width: 160px !important;
        min-width: 0;
        max-height: 150px;
    }

    /* Center the brand logo in the collapsed navbar */
    .navbar {
        position: relative;
        min-height: 72px;
    }

    .navbar-brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        margin-right: 0;
        padding: 0;
    }

    .navbar-brand img {
        width: 110px;
        max-height: 62px;
        height: auto;
    }

    /* Navbar collapse panel */
    .navbar-collapse {
        background: rgba(3, 3, 3, 0.97);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        padding: 14px;
        margin-top: 10px;
        margin-left: 0 !important;
    }

    .navbar-collapse .nav-link {
        margin-left: 0 !important;
        text-align: center;
    }

    .navbar-collapse .form-control {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .navbar-collapse .btn {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 6px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        width: 90px;
    }

    .main-4 img {
        max-width: 140px !important;
        max-height: 130px;
    }

    .main-1 .text-center .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* ============ RESPONSIVE (tablet 992px - 1199px) ============ */
@media (min-width: 992px) and (max-width: 1199.98px) {

    /* Navbar: remove the big offset, shrink links/search/buttons so the
       expanded navbar fits on one row without overflow */
    .navbar-collapse {
        margin-left: 0 !important;
    }

    .navbar-collapse .nav-link {
        margin-left: 8px !important;
        margin-right: 4px !important;
        white-space: nowrap;
    }

    .navbar-collapse .form-control {
        width: 170px !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
    }

    .navbar-collapse .btn {
        margin-left: 6px !important;
        margin-right: 6px !important;
    }

    /* Cards inside grid columns fill their column instead of overflowing it */
    .main-2 .row > div[class*="col-"] > .card,
    .main-3 .row > div[class*="col-"] > .card {
        width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* Top rated products: tighten the extra column margins so all 5 fit */
    .main-2 .row > .col-2 {
        margin-left: 6px !important;
        margin-right: 6px !important;
    }

    /* Product images inside grid-column cards scale down / center */
    .main-2 .row > div[class*="col-"] > .card img,
    .main-3 .row > div[class*="col-"] > .card img {
        max-width: 130px !important;
        max-height: 110px;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
        margin-left: auto;
        margin-right: auto;
    }

    /* Keep the small inline icons (heart / cart) at their size */
    .main-2 .row > div[class*="col-"] > .card img[width="30px"] {
        max-width: 30px;
        max-height: 30px;
    }

    /* Big promo images (headphones / camera / console) scale to column width */
    .main-2 .col-5 img,
    .main-2 .col-7 img {
        max-width: 100% !important;
        height: auto;
    }

    /* Partner logos: remove the wide row offset / margins so all 5 fit */
    .main-4 .row.offset-1 {
        margin-left: 0 !important;
    }

    .main-4 .row > .col-2 {
        margin-left: 6px !important;
        margin-right: 6px !important;
    }

    /* Rent items: stack the label under the image and center it */
    .main-4 .row > .col-4 {
        text-align: center;
    }

    .main-4 .row > .col-4 span {
        display: block;
        margin-top: 8px;
    }

    .main-4 .row > .col-4 img {
        max-width: 190px;
        height: auto;
    }
}