@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', 'sans-serif';
    background: radial-gradient(circle at left, rgba(0,0,0,0.6), transparent 40%),
                radial-gradient(circle at right, rgba(0,0,0,0.6), transparent 40%),
                linear-gradient(to right, #c40000 50%, #1b2e6b 50%);
}

/* Card */
.card::before{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.card {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    color: white;
    background: linear-gradient(to right, #142a63 50%, #c40000 50%);
    box-shadow: 0 50px 120px rgba(0,0,0,0.7), inset 0 0 40px rgba(0,0,0,0.4);      
}

/* Vertical light -> dark overlay */
.card::after{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08),rgba(0,0,0,0.6));
}

/* Navigation */
nav{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo img{
    height: 50px;
    width: auto;
    display: block;
    cursor: pointer;
}

.menu{
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.menu i{
    font-size: 14px;
    cursor: pointer;
}

.divider{
    width: 1.5px;
    height: 15px;
    background: rgba(255,255,255,0.8);
}

/* Left Social Media Icons */
.social{
    position: absolute;
    left: 66px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 5;
}

.social a{
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: 0.2s ease;
}

.social a:hover{
    opacity: 1;
    transform: translateY(-3px) scale(1.3);
}

/* Hero */
.hero{
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spidey{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Responsive Sizing */
    height: clamp(350px, 85vh, 750px);
    width: auto;
    z-index: 3;
    filter: drop-shadow(0 40px 50px rgba(0,0,0,0.6));
    transition: 0.7s ease;
}

.spidey:hover{
    transform: translate(-50%, -50%) scale(1.2);
}

/* Text */
.text{
    position: relative;
    z-index: 1;
}

.text h1{
    font-weight: 90px;
    letter-spacing: -3px;
    color: #f2f2f2;
    cursor: pointer;
    opacity: 0.8;
    /* Responsive Text */
    font-size: clamp(48px, 8vw, 120px);
    line-height: 0.9;
}

/* Side Arrows */
.carousel-arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 20;
    transition: 0.2s ease;
}

/* Left Carousel (Red) */
.carousel-arrow.left{
    left: 10px;
    background: #c40000;
}
/* Right Carousel (Blue) */
.carousel-arrow.right{
    right: 10px;
    background: #142a63;
}

.carousel-arrow:hover{
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Info Cards */
.info-cards{
    position: absolute;
    bottom: 30px;
    left: 60px;
    right: 60px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    gap: 40px;
}

.info-card{
    cursor: pointer;
    flex: 1;
    display: flex;
    gap: 20px;
    padding: 10px 18px;
    background: rgba(45,45,45,0.35);
    backdrop-filter: blur(2px);
    border-radius: 14px;
    transition: 0.3s ease;
}

.info-number{
    font-size: 32px;
    font-weight: 700;
    opacity: 0.8;
}

.info-text h4{
    font-size: 16px;
    margin-bottom: 4px;
}

.info-text p{
    font-size: 12px;
    opacity: 0.75;
    line-height: 1.5;
}

.info-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

/* RESPONSIVE DESIGN */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    nav {
        padding: 25px 40px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .menu {
        gap: 12px;
        font-size: 12px;
    }
    
    .menu i {
        font-size: 12px;
    }
    
    .divider {
        height: 12px;
    }
    
    .social {
        left: 30px;
        gap: 20px;
    }
    
    .social a {
        font-size: 18px;
    }
    
    .spidey {
        height: clamp(280px, 60vh, 500px);
    }
    
    .spidey:hover {
        transform: translate(-50%, -50%) scale(1.15);
    }
    
    .text h1 {
        font-size: clamp(40px, 10vw, 80px);
        letter-spacing: -2px;
    }
    
    .info-cards {
        left: 40px;
        right: 40px;
        gap: 25px;
        bottom: 25px;
    }
    
    .info-card {
        padding: 8px 14px;
        gap: 15px;
    }
    
    .info-number {
        font-size: 28px;
    }
    
    .info-text h4 {
        font-size: 14px;
    }
    
    .info-text p {
        font-size: 10px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    nav {
        padding: 15px 20px;
    }
    
    .logo img {
        height: 32px;
    }
    
    .menu {
        gap: 8px;
        font-size: 10px;
    }
    
    .menu i {
        font-size: 10px;
    }
    
    .divider {
        height: 10px;
    }
    
    .social {
        left: 15px;
        gap: 15px;
    }
    
    .social a {
        font-size: 16px;
    }
    
    .social a:hover {
        transform: translateY(-2px) scale(1.2);
    }
    
    .spidey {
        height: clamp(220px, 45vh, 350px);
    }
    
    .spidey:hover {
        transform: translate(-50%, -50%) scale(1.1);
    }
    
    .text {
        margin-top: 60px;
    }
    
    .text h1 {
        font-size: clamp(32px, 12vw, 48px);
        letter-spacing: -1px;
        line-height: 1.1;
        text-align: center;
        padding: 0 20px;
    }
    
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .carousel-arrow.left {
        left: 5px;
    }
    
    .carousel-arrow.right {
        right: 5px;
    }
    
    .info-cards {
        flex-direction: column;
        left: 20px;
        right: 20px;
        bottom: 20px;
        gap: 12px;
    }
    
    .info-card {
        padding: 10px 15px;
        gap: 15px;
        backdrop-filter: blur(4px);
    }
    
    .info-number {
        font-size: 26px;
        min-width: 45px;
    }
    
    .info-text h4 {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .info-text p {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .info-card:hover {
        transform: translateY(-4px);
    }
}

/* Small Mobile (375px and below) */
@media (max-width: 375px) {
    nav {
        padding: 12px 15px;
    }
    
    .logo img {
        height: 28px;
    }
    
    .menu {
        gap: 6px;
        font-size: 9px;
    }
    
    .menu i {
        font-size: 9px;
    }
    
    .social {
        left: 12px;
        gap: 12px;
    }
    
    .social a {
        font-size: 14px;
    }
    
    .spidey {
        height: clamp(180px, 40vh, 280px);
    }
    
    .text h1 {
        font-size: clamp(28px, 10vw, 36px);
    }
    
    .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .info-cards {
        gap: 10px;
        bottom: 15px;
    }
    
    .info-card {
        padding: 8px 12px;
        gap: 12px;
    }
    
    .info-number {
        font-size: 22px;
        min-width: 35px;
    }
    
    .info-text h4 {
        font-size: 11px;
    }
    
    .info-text p {
        font-size: 9px;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .card {
        overflow-y: auto;
    }
    
    nav {
        padding: 12px 25px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .social {
        left: 15px;
        gap: 12px;
    }
    
    .social a {
        font-size: 16px;
    }
    
    .spidey {
        height: clamp(180px, 50vh, 300px);
    }
    
    .spidey:hover {
        transform: translate(-50%, -50%) scale(1.1);
    }
    
    .text h1 {
        font-size: clamp(28px, 8vw, 48px);
        margin-top: 40px;
    }
    
    .info-cards {
        flex-direction: row;
        bottom: 15px;
        left: 20px;
        right: 20px;
        gap: 15px;
    }
    
    .info-card {
        padding: 6px 10px;
    }
    
    .info-number {
        font-size: 20px;
    }
    
    .info-text h4 {
        font-size: 10px;
    }
    
    .info-text p {
        font-size: 8px;
        display: none;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .spidey:hover {
        transform: translate(-50%, -50%);
    }
    
    .info-card:hover {
        transform: none;
    }
    
    .carousel-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .info-card:active {
        transform: translateY(-3px);
    }
}

/* iPad Pro and Large Tablets (1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .spidey {
        height: clamp(300px, 70vh, 600px);
    }
    
    .text h1 {
        font-size: clamp(56px, 7vw, 90px);
    }
    
    .info-cards {
        left: 50px;
        right: 50px;
        gap: 30px;
    }
}

/* Fix for very tall screens */
@media (min-height: 900px) {
    .spidey {
        height: clamp(400px, 70vh, 700px);
    }
    
    .info-cards {
        bottom: 50px;
    }
}
