@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Rajdhani', sans-serif;
    background-image: url('images/BG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.legacy-container {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.legacy-box {
    width: 85%;
    max-width: 1200px;
    display: flex;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.legacy-box:hover {
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.3);
}

.legacy-content {
    padding: 30px;
    flex: 1;
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
}

.legacy-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: red;
    font-size: 36px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: left;
    position: relative;
    display: inline-block;
}

.legacy-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff4444 0%, transparent 100%);
    margin: 10px 0 0;
    transition: all 0.4s ease;
}

.legacy-box:hover .legacy-title::after {
    width: 200px;
}

.legacy-text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    color: white;
    font-size: 18px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    max-width: 70%;
}

.highlight {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #ff4444;
}

.legacy-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    background-image: url('images/trophy.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    mask-image: linear-gradient(to left,
            rgba(0, 0, 0, 1) 0%,
            /* rgba(0,0,0,0.7) 50%  */
            rgba(0, 0, 0, 0.5) 70%,
            rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to left,
            rgba(0, 0, 0, 1) 0%,
            /* rgba(0,0,0,0.7) 50%  */
            rgba(0, 0, 0, 0.5) 70%,
            rgba(0, 0, 0, 0) 100%);

    /* filter: ; */
}

.header {
    text-align: center;
    padding: 20px 0;
    width: 100%;
    position: relative;
}

.header h1 {
    font-family: 'Orbitron', sans-serif;
    color: #ff4444;
    font-size: 52px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 10px 0 15px 0;
    letter-spacing: 2px;
}

.header::after {
    content: '';
    display: block;
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #ff4444 50%, transparent 100%);
    margin: 0 auto;
    transition: all 0.4s ease;
}

.header:hover::after {
    width: 500px;
}

.container {
    width: 90%;
    max-width: 1200px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.row {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(0.95);
    opacity: 0.7;
}

.row.active {
    transform: scale(1);
    opacity: 1;
    transition-delay: 0.1s;
    filter: blur(0);
}

.row {
    transition:
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.4s ease-out;
}

.card {
    background:
        radial-gradient(circle at 50% 0%,
            rgba(30, 30, 30, 0.9) 0%,
            rgba(16, 16, 16, 0.95) 70%,
            #1a1a1a 100%),
        linear-gradient(145deg, #222222, #2a2a2a);
    /* background-color: black; */
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 350px;
    width: 320px;
    border: 2px solid rgba(255, 0, 0, 0.4);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0);
    color: white;
    position: relative;
    overflow: hidden;
    filter: brightness(1.3);
}

.card:hover {
    transform: translateZ(-8px) scale(1.05);
    border-color: rgba(255, 0, 0, 0.8);
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.3);
    z-index: 10;
}

.card h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    margin: 12px 0 6px 0;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background:linear-gradient(135deg, #ff4444 0%, #cc0000 100%); ;
    padding: 4px 16px;
    border-radius: 30px;
    z-index: 3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.card:hover h2 {
    transform: translateY(0);
}

.line {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #ff4444 50%, transparent 100%);
    margin: 0 0 10px 0;
    z-index: 3;
    border: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.card:hover .line {
    width: 150px;
    height: 4px;
    opacity: 1;
}

.pehla {
    width: 100%;
    height: calc(100% - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pehla img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
    box-shadow: none;
}

.card:hover .pehla img {
    filter: blur(2px);
    transform: none;
    box-shadow: none;
}

.dusra {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    background-color: rgba(20, 20, 20, 0.95);
    overflow: hidden;
}

.laurel-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1;
    margin-top: 20px;
    width: 390px;
    margin-bottom: 30px;
    transform: scale(1.1);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.laurelcontent {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 90%;
    font-size: 15px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
    margin-bottom: 30px;
}

/* .laurelcontent::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4444, transparent);
    transform: translateX(-50%);
    transition: width 0.4s ease 0.3s;
} */

h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.916);;
    background-color:#ff0000 ;
    padding: 4px 8px;
    border-radius: 10px;;
    margin: 0 0 8px 0;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    font-size: 16px;
    transform: scale(0.9);
    transition: all 0.4s ease 0.4s;
    /* filter: brightness(2), contrast(2); */
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
    filter: brightness(1) contrast(1.5);
}

.fixed {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    color: #ffffff;
    margin: 3px auto;
    padding: 2px 4px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    display: block;
    width: fit-content;
    max-width: 90%;
    font-size: 16px;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.fixed:nth-child(1) { transition-delay: 0.45s; }
.fixed:nth-child(2) { transition-delay: 0.5s; }
.fixed:nth-child(3) { transition-delay: 0.55s; }
.fixed:nth-child(4) { transition-delay: 0.6s; }

.card:hover .dusra {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card:hover .laurel-img {
    transform: scale(1);
}

.card:hover .laurelcontent {
    opacity: 1;
    transform: translateY(0);
}

.card:hover .laurelcontent::before {
    width: 80%;
}

.card:hover h3 {
    transform: scale(1);
}

.card:hover .fixed {
    opacity: 1;
    transform: translateX(0);
}

.extra{
    font-size: 14px;
}

.extra2{
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    color: #ffffff;
    margin: 3px auto;
    padding: 2px 4px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    display: block;
    width: fit-content;
    max-width: 90%;
    font-size: 15px;
}

/* .special{
    background-image: url('images/WhatsApp\ Image\ 2025-08-25\ at\ 23.00.40_7c025e0e.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
} */

@media screen and (max-width: 600px) and (orientation: portrait) {
    .legacy-box {
        flex-direction: column;
        min-height: 300px;
        position: relative;
    }

    .legacy-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 15px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
        z-index: 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .legacy-image {
        position: absolute;
        width: 100%;
        height: 100%;
        mask-image: none;
        -webkit-mask-image: none;
        filter: brightness(1.3) contrast(1.3) saturate(1.1);
    }

    .legacy-text {
        max-width: 100%;
        font-size: 14px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.8);
        line-height: 1.4;
    }

    .legacy-title {
        font-size: 20px;
        text-align: center;
        margin-bottom: 12px;
    }

    .container {
        width: 100%;
        padding: 10px;
        gap: 0px;
    }

    .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        margin-bottom: -15px;
    }

    .card {
        width: 90%;
        max-width: 320px;
        height: 300px;
        min-width: 0;
        border-radius: 15px;
    }

    .card h2 {
        font-size: 20px;
        padding: 4px 14px;
        margin: 10px 0 5px;
    }

    .line {
        width: 60px;
        margin-bottom: 8px;
    }

    .laurelcontent {
        margin-top: -10px;
        width: 95%;
    }

    .laurelcontent h3 {
        font-size: 16px;
        padding: 3px 8px;
        margin-bottom: 6px;
    }

    .fixed {
        font-size: 15px;
        padding: 2px 5px;
        margin: 3px auto;
        line-height: 1.3;
    }

    .extra {
        font-size: 15px;
    }

    .extra2 {
        font-size: 15px;
    }

    .header h1 {
        font-size: 28px;
        margin: 5px 0 10px;
    }

    .header::after {
        width: 200px;
        height: 3px;
    }
}

@media screen and (max-width: 900px) and (orientation: landscape) {
    .card {
        width: 240px;
        height: 280px;
    }
    
    .laurelcontent h3 {
        font-size: 16px;
    }
    
    .fixed {
        font-size: 15px;
    }
}

@media screen and (min-width: 601px) and (max-width: 900px) and (orientation: portrait) {
    .card {
        width: 90%;
        max-width: 320px;
        height: 320px;
    }
    
    .laurelcontent h3 {
        font-size: 16px;
    }
    
    .fixed {
        font-size: 15px;
    }
}

@media screen and (max-width: 500px) and (orientation: portrait) {
        .legacy-box {
        flex-direction: column;
        min-height: 350px;
        position: relative;
    }

    .legacy-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 15px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
        z-index: 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .legacy-image {
        position: absolute;
        width: 100%;
        height: 100%;
        mask-image: none;
        -webkit-mask-image: none;
        filter: brightness(1.3) contrast(1.3) saturate(1.1);
    }

    .legacy-text {
        max-width: 100%;
        font-size: 14px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.8);
        line-height: 1.4;
    }

    .legacy-title {
        font-size: 20px;
        text-align: center;
        margin-bottom: 12px;
    }

    .container {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: -25px;
        width: 100%;
    }

    .card {
        width: 95% !important;
        height: 280px;
        margin: 0;
        min-width: 0;
    }

    .card h2 {
        font-size: 20px;
        padding: 3px 12px;
        margin: 8px 0 4px;
    }

    .line {
        width: 50px;
        margin-bottom: 6px;
    }

    .pehla {
        height: calc(100% - 45px);
    }

    .laurelcontent {
        margin-top: -5px;
        padding: 0 5px;
    }

    .laurelcontent h3 {
        font-size: 15px;
        padding: 3px 6px;
        margin-bottom: 4px;
    }

    .fixed {
        font-size: 15px;
        padding: 2px 4px;
        margin: 2px auto;
        line-height: 1.2;
    }

    .extra {
        font-size: 15px;
    }

    .extra2 {
        font-size: 15px;
    }

    .header h1 {
        font-size: 24px;
        margin: 5px 0;
    }

    .header::after {
        width: 180px;
    }
}

@media screen and (min-width: 415px) and (max-width: 500px) and (orientation: portrait) {
        .legacy-box {
        flex-direction: column;
        min-height: 350px;
        position: relative;
    }

    .legacy-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 15px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
        z-index: 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .legacy-image {
        position: absolute;
        width: 100%;
        height: 100%;
        mask-image: none;
        -webkit-mask-image: none;
        filter: brightness(1.3) contrast(1.3) saturate(1.1);
    }

    .legacy-text {
        max-width: 100%;
        font-size: 14px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.8);
        line-height: 1.4;
    }

    .legacy-title {
        font-size: 20px;
        text-align: center;
        margin-bottom: 12px;
    }

    .card {
        height: 290px;
    }
    
    .laurelcontent h3 {
        font-size: 15px;
    }
    
    .fixed {
        font-size: 15px;
    }
}

