@import url('https://fonts.googleapis.com/css2?family=Caprasimo&display=swap');

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

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #ff3009 0%, #ffa30d 50%, #ff3009 100%);
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        display: flex;
        flex-direction: column;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


.comic-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    min-height: 100vh;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 2;
}

.hero-text {
    flex: 0 0 auto;
    max-width: 600px;
    animation: slideInLeft 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-text h1 {
    font-family: "Caprasimo", serif;
    font-size: clamp(3rem, 12vw, 8rem);
    line-height: 0.95;
    color: #ffffff;
    text-shadow:
        4px 4px 0px #000,
        8px 8px 0px rgba(0, 0, 0, 0.5),
        -2px -2px 0px #ffa30d,
        2px 2px 0px #000,
        -3px -3px 0px #000,
        3px 3px 0px #000;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-weight: 400;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s backwards;
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-image {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInRight {
    0% {
        transform: translateX(100px) rotate(10deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

.image-container {
    position: relative;
    width: 100%;
    max-width: min(550px, 85%);
    min-width: 350px;
}

.image-container img {
    width: 100%;
    height: auto;
    filter: contrast(1.1) saturate(1.2);
}

/* Medium screens - reduce text width */
@media (max-width: 1100px) {
    .hero-text {
        max-width: 450px;
    }

    .hero-content {
        gap: 2rem;
    }
}

/* Switch to vertical layout to prevent overlap */
@media (max-width: 950px) {
    .hero-content {
        flex-direction: column;
        justify-content: center;
        padding: 2rem 1.5rem 4rem;
        text-align: center;
        min-height: auto;
        gap: 1.5rem;
    }

    .hero-text {
        margin-bottom: 0;
        width: 100%;
        max-width: 100%;
        flex-shrink: 0;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 11vw, 5.5rem);
        text-align: center;
    }

    .hero-image {
        flex-shrink: 0;
    }

    .image-container {
        max-width: 450px;
        min-width: 280px;
    }

    .scroll-indicator {
        bottom: 3rem;
    }
}

/* Smaller tablets and phones */
@media (max-width: 768px) {
    .hero-content {
        padding: 1.5rem 1.5rem 4rem;
        gap: 1rem;
        flex: 1;
        min-height: 0;
    }

    .hero-text {
        flex: 0 0 auto;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
    }

    .hero-image {
        flex: 1 1 auto;
        min-height: 0;
    }

    .image-container {
        max-width: min(400px, 60vw);
        min-width: 280px;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1.25rem 1rem 3.5rem;
        justify-content: center;
        gap: 1rem;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 10vw, 3.75rem);
        text-align: center;
    }

    .image-container {
        max-width: min(350px, 65vw);
        min-width: 240px;
    }

    .scroll-indicator {
        bottom: 1.25rem;
    }
}

/* Parallax effect on scroll */
.hero[data-parallax] {
    transition: transform 0.1s ease-out;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    animation: bounce 2s ease-in-out infinite;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.scroll-indicator span {
    font-family: "Caprasimo", serif;
    font-size: 1.2rem;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 4px solid #ffffff;
    border-bottom: 4px solid #ffffff;
    transform: rotate(-45deg);
    box-shadow: -2px 2px 0px #000;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About section */
.about {
    min-height: 100vh;
    background: #ffffff;
    padding: 4rem 2rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about h2 {
    font-family: "Caprasimo", serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: #ff3009;
    text-shadow: 3px 3px 0px #000;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #000;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.inline-right {
    float: right;
    max-width: 280px;
    width: 35%;
    margin: 0 0 1rem 2rem;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .inline-right {
        float: none;
        display: block;
        width: 80%;
        max-width: 280px;
        margin: 0 auto 1.5rem;
    }
}

/* Sheets separator */
.sheets-separator {
    background:
        url('img/SheetRepeat.png') repeat-x center / auto 100%,
        linear-gradient(to bottom, #ffffff 30%, #6b6b6b 55%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.sheets-img {
    display: block;
    width: 90%;
    min-width: 1080px;
}

@media (orientation: landscape) and (max-width: 1024px) {
    .sheets-img {
        width: 120%;
        min-width: 120vw;
    }
}

/* Why section */
.why {
    background: #1a1a1a;
    padding: 4rem 2rem;
}

.why-content {
    max-width: 900px;
    margin: 0 auto;
}

.why h2 {
    font-family: "Caprasimo", serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: #eea031;
    text-shadow: 3px 3px 0px #000;
    margin-bottom: 2rem;
    text-transform: uppercase;
    line-height: 1.1;
}

.why-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #f0f0f0;
}

.why-text p {
    margin-bottom: 1.5rem;
}

.why-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .why {
        padding: 3rem 1.5rem;
    }

    .why h2 {
        margin-bottom: 1.5rem;
    }

    .why-text {
        font-size: 1.1rem;
    }
}

/* Lightbox */
.lightbox-trigger {
    color: #ff3009;
    text-decoration: underline;
    cursor: pointer;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-indicator span {
        font-size: 1rem;
    }

    .scroll-arrow {
        width: 24px;
        height: 24px;
    }

    .about {
        padding: 3rem 1.5rem;
    }

    .about h2 {
        margin-bottom: 1.5rem;
    }

    .about-text {
        font-size: 1.1rem;
    }
}
