/* =========================
        GLOBAL RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* =========================
        SCROLLBAR (WEBKIT)
========================= */

::-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 BASIC
========================= */


html,
body {
    overflow-x: hidden;
}

.home-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    font-size: 30px;
    cursor: pointer;
    color: grey;
    font-size: 30px;
}

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

.spidy-info {
    position: relative;
}

/* centered SPIDER-MAN TEXT  */
.center-text {
    position: absolute;
    font-size: 30px;
    font-weight: 600;
    color: #ff3333;
    z-index: 10;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation-duration: 3s;
    text-transform: uppercase;
    text-align: center;
    font-family: Impact, sans-serif;
    background: linear-gradient(to bottom,
            #ff3b3b 0%,
            #d90429 35%,
            #7a0000 65%,
            #121111 80%,
            #000000 100%);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px #ffffff20;

    text-shadow:
        0 0 20px rgba(255, 0, 0, 0.4),
        0 10px 25px rgba(0, 0, 0, 0.8);
}

/* centered SPIDER-MAN TEXT : MEDIA QUERI */
/* chota screen se bada screen pe jate */

@media (min-width:600px) {
    .center-text {
        font-size: 30px;
        font-weight: 700;
    }
}

@media (min-width:770px) {
    .center-text {
        font-size: 60px;
        font-weight: 800;
        color: transparent;
        -webkit-text-stroke: 1px #ffffff;
    }
}

@media (min-width:970px) {
    .center-text {
        font-size: 75px;
        font-weight: 800;
        color: transparent;
        -webkit-text-stroke: 1px #ffffff;
    }
}

@media (min-width:1170px) {
    .center-text {
        font-size: 90px;
        font-weight: 800;
        color: transparent;
        -webkit-text-stroke: 1px #ffffff;
    }
}

/* section 1 :Spidey info */

img {
    display: block;
}

.spidy-info {
    height: 100vh;
    width: 100%;
    display: flex;
}

.left,
.right {
    width: 50%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* .left{
    background-image:url('../gallery/spidy7.jpg');

}

.right{
    background-image: url('../gallery/spidy30.png');
} */

.img-scroll {
    position: relative;
}

.img-scroll a{
    cursor:url(../Cursor/cursor1.svg),pointer;
}

.img-scroll p {
    position: absolute;
    bottom: 30px;
    left: 0;
    margin: 10px;
    padding: 10px 20px;
    color: rgb(255, 255, 255);
    font-family: 'amoera', sans-serif;
    font-size: large;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    font-weight: 900;
}

/* div at screen <770 : CHANGE FOR SECTION 1*/
@media (max-width: 770px) {
    .spidy-info {
        flex-direction: column;
        height: 100vh;
        width: 100%;
    }

    .left,
    .right {
        width: 100%;
    }
}

/* SECTION 2  : about spidey */
.section2 {
    height: 100vh;
    width: 100%;
    background-color: black;
}

.about-spidy {
    min-height: 100vh;
    width: 100%;

    position: relative;

    background-image: url("../gallery/whoisspidy2.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;

    padding: 5vw;
    overflow: hidden;
}

/* content */
.about-content {
    position: relative;
    z-index: 2;

    max-width: 1000px;

    color: white;
}

.about-content h1 {
    position: relative;
    font-size: clamp(2rem, 5vw, 5rem);
    margin-bottom: 25px;
    font-weight: 800;
}

.about-content h1::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    top: -1px;
    left: 3px;
    color: red;
    z-index: -9;
}

.about-content p::first-letter {
    font-size: 30px;
    color: red;
}

.about-content p::first-line {
    /* font-size: 30px; */
    color: red;
    font-size: 20px;
}

.about-content p {
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    line-height: 1.9;
    margin-bottom: 20px;

    color: rgba(255, 255, 255, 0.9);
}

/* tablet */
@media (max-width:850px) {

    .about-spidy {
        padding: 80px 40px;
    }

    .about-content h1 {
        font-size: 3rem;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.8;
    }
}

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

    .about-spidy {
        padding: 70px 20px;
    }

    .about-content h1 {
        font-size: 2.2rem;
    }

    .about-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* SECTION 3 spidy-origin */

.spidy-origin {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background-position: center;
    background-image: radial-gradient(rgba(255, 255, 255, 0.424) 1.5px, transparent 0),
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.99),
            rgba(0, 0, 0, 0.75));
    background-size: 25px 25px,cover;
    /* background-color: #000000; */
    padding: 6vw;
    overflow: hidden;
    z-index: 9;
}


/* container */
.origin-container {
    position: relative;
    z-index: 2;
    max-width: 1350px;
    margin: auto;
    color: white;
}

/* heading */
/* .origin-heading {
    margin-bottom: 70px;
} */

.origin-heading h1 {
    position: relative;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.origin-heading h1::before {
    content: "ORIGIN OF SPIDER-MAN";
    position: absolute;
    inset: 0;
    top: -1px;
    left: 3px;
    color: red;
    z-index: -9;
}

.origin-heading p {
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.7);
}

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

/* Origin Box */
.origin-box {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    padding: 40px 30px;
    border-radius: 24px;
    transition: 0.3s ease;
    background: rgb(26, 26, 25);
    padding: 25px;
    border-radius: 25px;
    border-width: 0 35px 35px 0;
    border-right: 5px solid #ff3333;
    border-bottom: 5px solid #ff3333;
    margin: 30px 0;
}

.origin-box:hover {
    transform: translateY(-12px);
}

.origin-box h2 {
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.origin-box span {
    position: absolute;
    top: -20px;
    right: 6px;
    /* display: inline-block; */
    padding: 10px 18px;
    border-top: 2px solid white;
    border-left: 2px solid white;
    background: rgb(220, 20, 20);
    font-size: 0.95rem;
    font-weight: 600;
    transform: skew(-12deg);
}

.origin-box p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
}

/* media section */
.media-evolution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* left side */
.left-media h1 {
    position: relative;
    display: inline-block;
    font-size: clamp(2rem, 4vw, 4rem);
    margin-bottom: 25px;
}

.left-media h1::before {
    content: attr(data-text);
    position: absolute;
    top: 2px;
    left: 4px;
    color: rgb(44, 44, 230);
    z-index: -1;
}

.left-media p {
    font-size: 1.08rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 20px;
}

.blueinbetween {
    color: rgb(68, 68, 255);
    font-size: 18px;
}

/* right side */
.right-media {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.media-item {
    background: rgba(0, 0, 0, 0.45);
    border-left: 15px solid rgb(54, 71, 227);
    border-bottom: 5px solid rgb(54, 71, 227);
    padding: 24px;
    /* rr beech me  -> l r r l */
    border-radius: 0 4px 4px 0;
    transform: skew(-5deg);
    backdrop-filter: blur(8px);
    transition: 0.3s ease;
}

.media-item:hover {
    transform: translateX(10px);
}

.media-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.media-item p {
    font-size: 0.98rem;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.82);
}

/* ========================= */
/* tablet */
/* ========================= */

@media (max-width:950px) {

    .origin-cards {
        grid-template-columns: 1fr;
    }

    .media-evolution {
        grid-template-columns: 1fr;
    }

    .left-media {
        text-align: center;
    }
}

/* ========================= */
/* mobile */
/* ========================= */

@media (max-width:550px) {

    .spidy-origin {
        padding: 80px 20px;
    }

    .origin-heading {
        margin-bottom: 45px;
    }

    .origin-box {
        padding: 30px 22px;
    }

    .origin-box h2 {
        font-size: 1.4rem;
    }

    .left-media h1 {
        font-size: 2.2rem;
    }

    .left-media p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .media-item {
        padding: 20px;
    }

    .media-item h3 {
        font-size: 1.1rem;
    }
}


/* SECTION 4 : history section */

.history-section {
    padding: 100px 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.424) 1.5px, transparent 0),
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.99));
    background-size: 25px 25px,cover;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.spider-icon {
    font-size: 2.8rem;
    animation: spider-move 3s infinite alternate;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #ff3333;
    font-weight: 500;
    letter-spacing: 2px;
}

/* History Card */
.history-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #ff3333;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    max-width: 650px;
}

.year-badge {
    position: absolute;
    top: -20px;
    right: 30px;
    background: #ff3333;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    width: 90px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: skewX(-10deg);
    /* border-radius: 50%; */
    border: 2px solid #fff;
    box-shadow: 0 10px 20px rgba(255, 51, 51, 0.4);
}

.history-heading {
    font-size: 2.1rem;
    margin: 15px 0 25px;
    color: #fff;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    line-height: 2.1;
    font-size: 1.1rem;
}

.info-list strong {
    color: #ff6666;
}

.origin-box h4 {
    color: #ff6666;
    margin-top: 0;
}

.quote {
    font-size: 1.35rem;
    font-style: italic;
    color: #ffdddd;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    border: 1px dashed #ff6666;
}

.quote-source {
    font-size: 1rem;
    color: #aaa;
    text-align: right;
}

/* Key Elements */
.key-elements {
    margin-top: 60px;
}

.sub-heading {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 35px;
    color: #ff9999;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.element-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(2.5px);
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.element-item:hover {
    transform: translateY(-10px);
    border-color: #ff3333;
    background: rgba(255, 51, 51, 0.1);
}

.element-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.legacy-text {
    text-align: center;
    margin-top: 50px;
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: #ff3333;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .history-card {
        padding: 30px 20px;
    }

    .elements-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes spider-move {
    from {
        transform: rotate(-8deg);
    }

    to {
        transform: rotate(8deg);
    }
}

/* SECTION 5 : 2002 live action break through  */

.live-action-section {
    padding: 100px 0;
    background-image:
    radial-gradient(white 1px, transparent 0),
    radial-gradient(white 2px, transparent 0),
    radial-gradient(rgba(255,255,255,.5) 3px, transparent 0),
    linear-gradient(to bottom,rgba(0, 0, 0, 0.75),rgba(1, 5, 16, 0.99));

background-size:
    30px 30px,
    80px 80px,
    150px 150px,
    cover;

background-position:
    0 0,
    15px 20px,
    50px 30px,
    0 0;
    background-color: rgba(1, 5, 16, 0.99);
    color: #fff;
}

.live-action-section .section-title {
    font-size: 3rem;
    color: #ffdddd;
}

.highlight-box {
    background: rgba(255, 51, 51, 0.15);
    border-left: 5px solid #ff3333;
    padding: 20px;
    margin: 25px 0;
    font-size: 1.15rem;
    font-weight: 500;
}


.why-revolutionary h4 {
    color: #ff6666;
    margin-bottom: 18px;
}

.bullet-list {
    line-height: 2;
    padding-left: 20px;
}

.bullet-list li {
    margin-bottom: 10px;
    position: relative;
}

.bullet-list li::before {
    content: "🕷️";
    position: absolute;
    left: -22px;
    color: #ff3333;
}

/* Era & Bridge */
.era-box {
    color: #f55e5e;
    padding: 35px;
    border-radius: 18px;
    margin-top: 40px;
    border: 2px solid rgba(255, 255, 255);
    backdrop-filter: blur(1px);
}

.glass-box {
    background: rgba(0, 90, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(0, 140, 255, 0.35);
    border-radius: 18px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(0, 120, 255, 0.2);

    color: #ffffff;
    margin-top: 30px;
    padding: 30px;
    transition: 0.3s ease;
}

.glass-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(0, 140, 255, 0.35);
}

.glass-box .movie-item {
    padding: 4px;
}

.bridge-box {
    border: 2px solid white;
}

.sub-heading {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.9rem;
}

.era-legacy {
    margin-top: 20px;
    font-style: italic;
    color: #ffdddd;
    text-align: center;
}

/* Future Extension */

.future-extension {
    padding: 35px;
    margin-top: 40px;
    border: 2px solid blue;
    border-radius: 18px;
    border-color: #509cf3;
    backdrop-filter: blur(1px);
}

.future-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 25px;
}

.extension-content p {
    margin: 18px 0;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .history-card {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 2.4rem;
    }
}

/* footer */

footer {
    height: 100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
    /* border: 1px solid transparent; */
    border-top: 1.5px solid #1a73cd;
}

footer p {
    font-size: smaller;
    color: white;
}

footer p:hover {
    color: #087cf0;
    transition: 0.3s;
}


footer div {
    width: 40%;
    border: 0.5px solid rgb(59, 57, 50);
    margin: 7px 0;
}

@media (min-width:770px) {
    footer div {
        width: 30%;
    }

    ;
}

@media (min-width:970px) {
    footer div {
        width: 20%;
    }

    ;
}