/* ================= HEADER ================= */
.red-hedr {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;



    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);


    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
html{
    scroll-behavior: smooth;
}

.red-hedr#mainHeader {
    font-family: 'Manrope', sans-serif !important;
}

a {
    text-decoration: none;
}


.red-hedr__inner {
    height: 64px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================= LOGO ================= */
.red-hedr__logo {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.red-hedr__logo span {
    color: #ff2d2d;
}

/* ================= NAV DESKTOP ================= */
.red-hedr__nav {
    display: flex;
    align-items: center;
    gap: 80px;
}

.red-hedr__nav-item {
    position: relative;
}

.red-hedr__nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 200;
    display: block;
    padding: 20px 0;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 16px;
}

.red-hedr__nav-link:hover {
    color: #fff;
}

/* ================= MEGA MENU ================= */
.red-hedr__mega {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;

    background-color: #212126;
    background-image: url("./megaMenuBg.jpg");
    background-repeat: no-repeat;
    background-position: top right;
    background-size: cover;
    /* KEY FIX */

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}



.red-hedr__nav-item:hover .red-hedr__mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* When nav is hovered — ONLY if NOT light-bg */
.red-hedr:not(.light-bg):has(.red-hedr__nav-item:hover) {
    background-color: #212126;
}


.red-hedr__mega-inner {
    max-width: 90%;
    margin: 0 auto;
    padding: 40px 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;

    justify-content: center;
    /* centers when items < full row */
    position: relative;
}




/* Separator between cards */
.red-hedr__mega-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ffffff00;
    height: 100%;
    opacity: 0.5;
}

.red-hedr__mega-col {
    position: relative;
}

.red-hedr__mega-col {
    display: flex;
    flex-direction: column;
    /* overflow: hidden; */
    transition: transform 0.3s ease;
    position: relative;
}

.red-hedr__mega-col:hover {
    transform: translateY(-4px);
}


/* Move ONLY the hovered link */
.red-hedr__mega-link:hover {
    transform: translateX(6px);
}

.red-hedr__mega-img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.red-hedr__mega-title-overlay {
    /* background: #7C0202; */
    padding: 6px 20px 10px 20px;
    font-size: 30px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 51px;
    padding-left: 0px;
}


.red-hedr__mega-img {
    width: 100%;
    /* height: 200px; */
    /* object-fit: cover; */
    transition: transform 0.3s ease;
    display: block;
}

.red-hedr__mega-content {
    padding: 14px 0px;
}

.red-hedr__mega-list {
    display: flex;
    flex-direction: column;
}

.red-hedr__mega-link {
    color: #ffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    transition: all 0.2s;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
    position: relative;
}

.red-hedr__mega-link {
    position: relative;
}

/* LIGHT base line (always visible) */
.red-hedr__mega-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(205, 205, 205, 0.4) 0%,
            rgba(75, 0, 234, 0.4) 100%);
}

/* DARK fill line (animated) */
.red-hedr__mega-link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            #CDCDCD 0%,
            #4B00EA 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

/* Hover → fill left to right */
.red-hedr__mega-link:hover::before {
    transform: scaleX(1);
}


/* remove underline from last link */
.red-hedr__mega-link:last-child::after {
    display: none;
}

.red-hedr__mega-link:last-child {
    border-bottom: none;
}

.red-hedr__mega-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 45, 45, 0.3);
}

/* ================= CTA ================= */
.red-hedr__cta {
    font-size: 16px;
    font-weight: 200;
    padding: 10px 22px;
    color: #fff;
    background: linear-gradient(#2a2a2a, #2a2a2a) padding-box, linear-gradient(90deg, #CDCDCD 0%, #4B00EA 100%) border-box;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.red-hedr__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 0, 234, 0.3);
}

/* ================= HAMBURGER ================= */
.red-hedr__menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
    padding: 8px;
}

.red-hedr__menu-btn span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: 0.3s ease;
}

.red-hedr__menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.red-hedr__menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.red-hedr__menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.red-hedr__nav-arrow {
    display: none;
    font-size: 20px;
    transition: transform 0.3s ease;
}

@media (max-width:1450px) {


    .red-hedr__mega-inner {
        max-width: 95%;
    }

    .red-hedr__mega-title-overlay {
        font-size: 17px;
        padding: 11px 20px;
    }


}

.red-hedr.light-bg .red-hedr__logo,
.red-hedr.light-bg .red-hedr__nav-link {
    color: #000;
}

/* ================= LIGHT HEADER MODE ================= */
.red-hedr.light-bg {
    background-color: #EFEFEF !important;
}

/* Logo & top nav links (already present but keeping complete) */
.red-hedr.light-bg .red-hedr__logo,
.red-hedr.light-bg .red-hedr__nav-link {
    color: #000 !important;
}

/* Mega menu background stays dark */
.red-hedr.light-bg .red-hedr__mega-inner {
    background-color: #EFEFEF !important;
}
.red-hedr.light-bg .red-hedr__mega {
    background-color: #EFEFEF !important;
}
.red-hedr.light-bg .red-hedr__mega-title-overlay {
    color: #DD2827 !important;
}

/* Mega menu links text color */
.red-hedr.light-bg .red-hedr__mega-link {
    color: #000 !important;
}

/* Optional: hover clarity */
.red-hedr.light-bg .red-hedr__mega-link:hover {
    color: #000 !important;
}


.red-hedr.light-bg .red-hedr__logo span {
    color: #ff2d2d;
}





.mainBanner {
    position: relative;
}

.mainBanner img {
    width: 100%;
    display: block;
}

.PrimarryBannerText {
    font-family: 'Exo 2', sans-serif;
    font-weight: 200;
    /* Exo 2 Light */
    font-size: 40px;
    line-height: 50px;

    color: #fff;
}

.secondaryBnrText {
    font-family: 'Manrope', sans-serif;
    font-weight: 200;
    color: #fff;
    ;
    font-size: 16px;
    line-height: 24px;
    margin-top: 20px;
}


.bannerText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.bannerBtns {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.bannerBtns a {
    min-width: 220px;

    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 16px;

    line-height: 47px;
    border-radius: 2px;
}

/* Base button */
.Red-bnr-btn {
    min-width: 230px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #000;
    text-decoration: none;

    position: relative;
    background: rgba(255, 255, 255, 0.6);
    /* white bg 60% */
    z-index: 1;
}

/* Gradient border using ::before */
.demo-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    /* top right bottom left = 0 */
    padding: 1px;
    /* border thickness */

    background: linear-gradient(90deg, #CDCDCD 0%, #4B00EA 100%);
    border-radius: 0px;
    /* add if you want rounded corners */

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    z-index: -1;
}

/* Glow */
.demo-btn {
    box-shadow: 0 0 10px rgba(75, 0, 234, 0.35);
    background: #ffffff57;
    color: #fff;
}

/* Hover */
.demo-btn:hover {
    box-shadow: 0 0 14px rgba(75, 0, 234, 0.55);
}

/* Know More (text only) */
.knowMore-link {
    color: #ffffff;
    text-decoration: none;
    position: relative;
}

.knowMore-link:hover::after {
    width: 100%;
}





@media (max-width:1166px) {
    .red-hedr__mega-inner {
        max-width: 90%;
        margin: 0 auto;
        padding: 40px 20px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        position: relative;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {

    /* Enhanced mobile version with nested accordions and professional styling */
    .red-hedr__mega-img {
        display: none;
    }

    .red-hedr__nav-arrow {
        display: block;
        color: #ff2d2d;
        font-size: 14px;
        font-weight: 600;
    }

    .red-hedr__nav-item.active .red-hedr__nav-arrow {
        transform: rotate(180deg);
    }

    .red-hedr__menu-btn {
        display: flex;
    }

    .red-hedr__cta {
        display: none;
    }

    .red-hedr__nav {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        height: calc(100vh - 64px);
        background: linear-gradient(180deg, #0d0f18 0%, #1a1a1f 100%);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .red-hedr__nav.open {
        transform: translateX(0);
    }

    .red-hedr__nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(0, 0, 0, 0.2);
        transition: background 0.2s ease;
    }

    .red-hedr__nav-item.active {
        background: rgba(255, 45, 45, 0.05);
    }

    .red-hedr__nav-link {
        padding: 20px 24px;
        font-size: 16px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #e6e6e6;
        letter-spacing: 0.3px;
    }

    /* Mobile Submenu - Outer Accordion */
    .red-hedr__mega {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: linear-gradient(180deg, #1a1a1f 0%, #212126 100%);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: none;
        box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .red-hedr__nav-item.active .red-hedr__mega {
        max-height: 3000px;
    }

    .red-hedr__mega-inner {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
        max-width: 100%;
    }

    .red-hedr__mega-col {
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 3px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }

    .red-hedr__mega-col:not(:last-child)::after {
        display: none;
    }



    .red-hedr__mega-img-wrapper {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .red-hedr__mega-col.active .red-hedr__mega-img-wrapper {
        max-height: 200px;
    }

    .red-hedr__mega-img {
        height: 160px;
        width: 100%;
        object-fit: cover;
    }

    .red-hedr__mega-title-overlay {
        font-size: 15px;
        font-weight: 500;
        padding: 10px 20px;
        background: linear-gradient(135deg, #7C0202 0%, #a00303 100%);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
        transition: all 0.3s ease;
        letter-spacing: 0.5px;
    }

    .red-hedr__mega-title-overlay::after {
        content: '▼';
        font-size: 12px;
        transition: transform 0.3s ease;
        color: rgba(255, 255, 255, 0.7);
    }

    .red-hedr__mega-col.active .red-hedr__mega-title-overlay {
        background: linear-gradient(135deg, #a00303 0%, #c40404 100%);
    }

    .red-hedr__mega-col.active .red-hedr__mega-title-overlay::after {
        transform: rotate(180deg);
    }

    .red-hedr__mega-content {
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(0, 0, 0, 0.2);
    }

    .red-hedr__mega-col.active .red-hedr__mega-content {
        max-height: 500px;
        padding: 8px 0;
    }

    .red-hedr__mega-list {
        gap: 0;
    }

    .red-hedr__mega-link {
        padding: 14px 20px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
        position: relative;
        padding-left: 36px;
    }

    .red-hedr__mega-link::before {
        content: '›';
        position: absolute;
        left: 20px;
        color: #ff2d2d;
        font-size: 18px;
        font-weight: 600;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .red-hedr__mega-link:hover::before {
        /* opacity: 1; */
        display: none;
    }

    .red-hedr__mega-link:last-child {
        border-bottom: none;
    }

    .red-hedr__mega-link:hover {
        background: rgba(255, 45, 45, 0.08);
        color: #fff;
        padding-left: 40px;
        border-bottom-color: rgba(255, 45, 45, 0.2);
    }

    .red-hedr__mega-link:active {
        background: rgba(255, 45, 45, 0.15);
    }
}

@media (max-width: 900px) {
    .demo-content h1 {
        font-size: 32px;
    }

    .demo-content p {
        font-size: 16px;
    }

    .red-hedr {
        background-color: #000;
    }
}

@media (max-width: 550px) {
    .red-hedr__mega-img-wrapper {
        display: none;
    }
}