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

/* curson on sec 2 */
#section2,
#timelineCanvas {
    cursor: url("../Cursor/cursorlogo2.png") 24 14, auto !important;
}

/* TEXT SELECTION AND SCROLLBAR */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff0000, #cc0000);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff3333, #990000);
    box-shadow: 0 0 15px rgba(255, 0, 0, 1);
}

/* =========================
        SCROLLBAR (FIREFOX)
========================= */

* {
    scrollbar-width: thin;
    scrollbar-color: #ff0000 rgba(0, 0, 0, 0.8);
}

/* =========================
        TEXT SELECTION
========================= */

::selection {
    background: rgba(233, 38, 38, 0.729);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(235, 34, 34, 0.701);
    color: #ffffff;
}

/* BODY */

html,
body {
    height: 100%;
    width: 100%;
    /* overflow-x: hidden; */
}

nav a {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99;
    font-size: 30px;
    cursor: pointer;
    color: gray;
    font-size: 30px;
}

nav a:hover {
    color: #f30606;
    filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.9));
}













/* section 1 ///////////////////////////////////*/

.section1 {
    height: 100vh;
    width: 100%;
    padding: 80px 0;
    overflow: hidden;
    background:
        linear-gradient(rgb(255, 255, 255) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255, 255, 255) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(39, 108, 219), white);

    background-size: 50px 50px, 50px 50px, 100% 100%;
}

/* headig */

.spidey-title {
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(2.5rem, 7vw, 7rem);
    font-weight: 900;
    letter-spacing: 6px;
    text-align: center;
    color: #fff;

    /* Spider-Man red glow */
    /* text-shadow:
        0 0 5px #ff1a1a,
        0 0 15px #ff1a1a,
        0 0 30px rgba(255, 0, 0, 0.8),
        4px 4px 0 #7a0000; */

    text-shadow:
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        5px 5px 10px rgba(0, 0, 0, 0.8);
}

.pulse {
    animation: pulse 3.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.archives {
    display: inline-block;
    height: fit-content;
    width: fit-content;
    padding: 12px;
    background-color: rgb(195, 34, 34);
    -webkit-text-stroke: 0;
    text-shadow: none;
    transform: skewX(-10deg);
}

/* Swiper */

.spidey-carousel {
    margin-top: 100px;
    width: 100%;
    max-width: 1200px;
    padding: 50px 0 80px;
}

/* Slides */
/* can be modified */
.spidey-carousel .swiper-slide {
    width: 320px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
}

.spidey-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* Mobile */

@media (max-width: 600px) {

    .spidey-carousel .swiper-slide {
        width: 240px;
        height: 340px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}


















/* section2 */

/* glowing-heading css */
#section2 {
    position: relative;
    width: 100%;
    min-height: 300px;
    padding: 10px 30px;
    background: linear-gradient(to bottom, white, rgb(245, 245, 245));

    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; */

    overflow: hidden;
}

#timelineCanvas {
    display: block;
    width: 100%;
    height: 180px;

    margin: auto;

    cursor: default;
}

#punchlinesec2 {
    font-family: monospace;
    position: absolute;
    right: 5%;
    color: red;

    /* padding-left: 50px; */
}

/* span by default inline element hota hai, aur inline elements par height / width normally apply nahi hoti. */
/* Agar height deni hai display: inline-block kar do: */
#punchlinesec2 span:first-child {
    display: inline-block;
    height: 20px;
    padding: 3px 3px 0px;
    /* width: fit-content; */
    color: black;
    background-color: red;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    #section2 {
        min-height: 180px;
    }

    #timelineCanvas {
        height: 110px;
    }

    #punchlinesec2 {
        left: 0;
        right: 0;
        text-align: center;
    }

}














/* section 3 */

#section3 {
    position: relative;
    width: 100%;
    min-height: 65vh;
    padding: 110px 10%;
    background-image: url('../gallery/spidyg2.png');
    background-size: cover;
    background-color: rgb(0, 0, 0);
    color: white;
    overflow: hidden;
    border-radius: 12px;

    /* background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 0, 0, 0.12),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(70, 100, 255, 0.13),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f5f5f6,
            #e9ebf0 50%,
            #f7f7f8
        );*/
}

#section3 p span {
    background: rgba(180, 0, 0, 0.22);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 100, 100, 0.25);
    box-shadow: 0 8px 30px rgba(120, 0, 0, 0.15);
    margin: 0;
    font-size: x-large;
    line-height: 1.5;
}



#section3 figure {
    height: 200px;
    width: 900px;
    /* background-color: red; */
}

@media (max-width:650px) {
    #section3 p span {
        background: rgba(180, 0, 0, 0.22);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 100, 100, 0.25);
        box-shadow: 0 8px 30px rgba(120, 0, 0, 0.15);
        margin: 0;
        font-size: x-large;
        line-height: normal;
    }
}















/* section 4 //////////////////////////////////*/

#section4 {
    position: relative;
    height: 100vh;
    width: 100%;
    /* background: url(../gallery/spidybg2.png); */
    padding-top: 150px;
    /* justify-content: center; */
    /* align-items: center; */
    /* background: linear-gradient(to bottom, white, red); */
}


/* 3 × 3 BACKGROUND */
#section4::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        url("../gallery/gallerybg3.png"),
        url("../gallery/gallerybg2.png"),
        url("../gallery/gallerybg1.png");

    background-repeat: no-repeat;

    background-size:
        60% 50%,
        60% 50%,
        40% 100%;

    background-position:
        left top,
        left bottom,
        right top;

    z-index: 0;
}

@media (max-width: 600px) {
    #section4::before {
        background-image:
            url("../gallery/gallerybg3.png"),
            url("../gallery/gallerybg2.png");

        background-size:
            100% 50%,
            100% 50%;
    }
}


.splide {
    z-index: 9;
    /* width: calc(100% - 200px); */
    margin: 40px 20px;
    transform: rotate(10deg);
}

/* .splide__slide {
    width: 300px; dont applies here use fixedwdth in js
    height: 300px;
    border: 1px solid rgb(255, 97, 97);
    object-fit: contain; ....
    border-radius: 40px;
} */

/* .splide__slide img{
    height: 300px;
    width: 300px;
    border-radius: 40px;
} */


.splide__slide {
    height: 300px;
    width: 300px;

    border: 1px solid rgb(255, 97, 97);
    border-radius: 40px;

    perspective: 1000px;
}

.flip-card {
    position: relative;
    width: 300px;
    height: 300px;


    transform-style: preserve-3d;
    transition: transform 0.7s ease;
}

.flip-card-front,
.flip-card-back {
    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 40px;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-front img {
    width: 300px;
    height: 300px;

    display: block;
    object-fit: cover;
    border-radius: 40px;
}

.flip-card-back {
    background: transparent;
    color: red;

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

    text-align: center;
    padding: 20px;

    transform: rotateY(180deg);

    /* border-radius: 40px; */
    /* background: rgba(0, 0, 0, 0.3); */

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


.flip-card:hover {
    transform: rotateY(180deg);
    border-radius: 40px;
}


/* Class for the prev arrow */
.splide__arrow--prev {
    left: -60px;
}

/* Class for the next arrow */
.splide__arrow--next {
    right: -60px;
}

/* Class for pagination */
.splide__pagination {
    bottom: -30px;
}

/* for mobile view */

@media (max-width:600px) {
    .splide {
        margin: 0;
        transform: rotate(0deg);
    }
}













/* section5 */

/* section-spidermen */
#section5,
#section6 {
    width: 100%;
    padding: 140px 7%;
}

#section5 {
    background: linear-gradient(to bottom, white, #f3f1ec);
    /* background-color: red; */
}

#section6 {
    background: #e6e3dd;
}

/* heading */
.gallery-heading {
    display: flex;
    gap: 35px;
    margin-bottom: 100px;
}

.gallery-heading>span {
    color: #b5121b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.gallery-heading p {
    margin-bottom: 15px;
    color: #b5121b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 5px;
}

.gallery-heading h2 {
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: .82;
    letter-spacing: -5px;
    font-weight: 900;
}

.gallery-heading em {
    display: block;
    color: #b5121b;
    font-style: normal;
}


/* category */
.category {
    margin-bottom: 130px;
}

.category:last-child {
    margin-bottom: 0;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.category-title span {
    color: #b5121b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.category-title h3 {
    font-size: 14px;
    letter-spacing: 4px;
}


/* cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-card {
    overflow: hidden;
    background: #eeece7;
    border: 1px solid rgba(0, 0, 0, .1);
    transition: .5s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    border-color: rgba(181, 18, 27, .45);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
}


/* image */
.card-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.gallery-card:hover .card-image img {
    transform: scale(1.06);
}


/* content */
.card-content {
    padding: 25px;
}

.card-content>span {
    color: #b5121b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
}

.card-content h4 {
    margin-top: 9px;
    font-size: 1.5rem;
    letter-spacing: -.5px;
}

.card-content p {
    margin-top: 10px;
    color: #686868;
    font-size: 12px;
    line-height: 1.7;
}



/* mobile */
@media (max-width: 800px) {

    #section5,
    #section6 {
        padding: 100px 6%;
    }

    .gallery-heading {
        gap: 18px;
        margin-bottom: 65px;
    }

    .gallery-heading h2 {
        font-size: 3.5rem;
        letter-spacing: -3px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category {
        margin-bottom: 90px;
    }
}


/* small mobile */
@media (max-width: 550px) {

    #section5,
    #section6 {
        padding: 90px 5%;
    }

    .gallery-heading {
        gap: 12px;
        margin-bottom: 50px;
    }

    .gallery-heading h2 {
        font-size: 2.7rem;
    }

    .gallery-heading p {
        letter-spacing: 3px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card-image {
        aspect-ratio: 16 / 11;
    }

    .card-content {
        padding: 20px;
    }

    .category {
        margin-bottom: 75px;
    }
}





/* FOOTER GALLERY */

/* =========================================
        GALLERY FOOTER
========================================= */

.gallery-footer {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;

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

    text-align: center;

    background: linear-gradient(to bottom,
            #e6e3dd,
            #f3f1ec);

    color: #111;

    overflow: hidden;
}


/* =========================================
        GLASS DIVIDER
========================================= */

.gallery-footer-glass-line {
    position: absolute;

    top: 0;
    left: 5%;

    width: 90%;
    height: 1px;

    background: rgba(255, 255, 255, 0.75);

    box-shadow:
        0 1px 5px rgba(255, 255, 255, 0.7),
        0 0 10px rgba(255, 255, 255, 0.3);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* =========================================
        SUBTLE RED GLOW
========================================= */

.gallery-footer::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background: radial-gradient(circle,
            rgba(181, 18, 27, 0.07),
            transparent 70%);

    pointer-events: none;
}


/* =========================================
        TITLE
========================================= */

.gallery-footer-title {
    position: relative;
    z-index: 2;

    text-align: center;
}


/* THE */

.gallery-footer-title span {
    display: block;

    color: #b5121b;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 7px;
}


/* WEB ARCHIVES */

.gallery-footer-title h2 {
    margin-top: 12px;

    font-size: clamp(3rem, 7vw, 7rem);

    line-height: 0.85;

    letter-spacing: -4px;

    font-weight: 900;

    color: rgb(246, 92, 92);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(255, 255, 255);
}


/* =========================================
        SMALL RED LINE
========================================= */

.gallery-footer-line {
    position: relative;
    z-index: 2;

    width: 100px;
    height: 1px;

    margin: 35px 0;

    background: #b5121b;

    box-shadow:
        0 0 6px rgba(181, 18, 27, 0.25);
}


.gallery-footer-info {
    position: relative;
    z-index: 2;

    color: #686868;

    font-size: 11px;

    line-height: 2.2;

    letter-spacing: 0.5px;
}

.gallery-footer-info p {
    margin: 0;
}


/* HEART */

.gallery-footer-info .heart-icon {
    color: #b5121b;

    vertical-align: middle;

    margin-left: 4px;
}


.gallery-footer-bottom {
    position: absolute;

    z-index: 2;

    left: 5%;
    bottom: 25px;

    width: 90%;

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

    color: #999;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 3px;
}


/* =========================================
        MOBILE
========================================= */

@media (max-width: 600px) {

    .gallery-footer {
        height: 50vh;
        min-height: 350px;

        padding: 40px 20px;
    }


    .gallery-footer-title h2 {
        font-size: 3rem;

        letter-spacing: -2px;
    }


    .gallery-footer-line {
        margin: 25px 0;
    }


    .gallery-footer-bottom {
        left: 5%;
        width: 90%;

        font-size: 6px;

        letter-spacing: 1.5px;
    }

}