/* ======================================
   ONE PIECE ADVENTURE - STYLES
   ====================================== */

/* ===== CSS RESET & BASICS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    background: linear-gradient(to bottom,
        #0C1F3F 0%,      /* Deep ocean navy */
        #1E3A8A 40%,     /* Ocean blue */
        #2563EB 70%,     /* Sky blue */
        #60A5FA 100%     /* Light blue */
    );
    color: #FFFFFF;
    position: relative;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== OCEAN WAVES ANIMATION ===== */
.ocean {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    animation-timing-function: cubic-bezier(0.36, 0.45, 0.63, 0.53);
}

.wave1 {
    background: linear-gradient(to bottom,
        rgba(30, 58, 138, 0.3),
        rgba(30, 58, 138, 0.7)
    );
    background-size: 50% 100%;
    animation: wave-animation 12s infinite;
    opacity: 0.7;
    z-index: 3;
}

.wave2 {
    background: linear-gradient(to bottom,
        rgba(37, 99, 235, 0.3),
        rgba(37, 99, 235, 0.6)
    );
    background-size: 50% 100%;
    animation: wave-animation 18s infinite reverse;
    opacity: 0.5;
    z-index: 2;
}

.wave3 {
    background: linear-gradient(to bottom,
        rgba(96, 165, 250, 0.2),
        rgba(96, 165, 250, 0.5)
    );
    background-size: 50% 100%;
    animation: wave-animation 25s infinite;
    opacity: 0.3;
    z-index: 1;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-25%) translateY(-15px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== SHIP SILHOUETTE ===== */
.ship-container {
    position: fixed;
    bottom: 220px;
    left: -150px;
    width: 150px;
    height: 100px;
    z-index: 2;
    animation: ship-sailing 45s linear infinite;
}

.ship {
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 100'%3E%3Cpath d='M 20 70 L 130 70 L 120 85 L 30 85 Z' fill='%231A1A1A' opacity='0.6'/%3E%3Cpath d='M 70 20 L 75 70 L 65 70 Z' fill='%231A1A1A' opacity='0.6'/%3E%3Cpath d='M 75 25 L 120 40 L 120 55 L 75 70 Z' fill='%23FFFFFF' opacity='0.3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    animation: ship-rocking 4s ease-in-out infinite;
}

@keyframes ship-sailing {
    0% {
        left: -150px;
    }
    100% {
        left: 110%;
    }
}

@keyframes ship-rocking {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

/* ===== SEAGULLS ===== */
.seagulls {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.seagull {
    position: absolute;
    width: 30px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cpath d='M 5 10 Q 10 5 15 10 Q 20 5 25 10' stroke='%23FFFFFF' stroke-width='2' fill='none' opacity='0.6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.seagull1 {
    top: 15%;
    left: 10%;
    animation: seagull-fly 35s linear infinite;
}

.seagull2 {
    top: 25%;
    left: -5%;
    animation: seagull-fly 42s linear infinite 5s;
}

.seagull3 {
    top: 18%;
    left: -10%;
    animation: seagull-fly 38s linear infinite 12s;
}

@keyframes seagull-fly {
    0% {
        left: -5%;
        transform: translateY(0);
    }
    25% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-15px);
    }
    100% {
        left: 105%;
        transform: translateY(0);
    }
}

/* ===== FLOATING TREASURE COINS ===== */
.treasure-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.coin {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #FFD700, #F59E0B, #D97706);
    border-radius: 50%;
    border: 2px solid #FFA500;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: float-coin 8s ease-in-out infinite;
}

.coin::before {
    content: '¥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #8B4513;
    font-weight: bold;
    font-size: 18px;
}

.coin1 {
    bottom: -50px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.coin2 {
    bottom: -50px;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.coin3 {
    bottom: -50px;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 11s;
}

.coin4 {
    bottom: -50px;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.coin5 {
    bottom: -50px;
    left: 90%;
    animation-delay: 3s;
    animation-duration: 9s;
}

@keyframes float-coin {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fade-in 1.5s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== CONTENT CARD ===== */
.content-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 700px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    animation: card-entrance 1s ease-out 0.3s both;
}

@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== JOLLY ROGER ===== */
.jolly-roger {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    animation: jolly-roger-wave 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

@keyframes jolly-roger-wave {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* ===== TYPOGRAPHY ===== */
.main-heading {
    font-family: 'Bangers', cursive;
    font-size: 4.5rem;
    line-height: 1;
    color: #FFD700;
    text-shadow:
        3px 3px 0 #1A1A1A,
        5px 5px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.heading-line {
    display: block;
    animation: heading-pop 0.6s ease-out both;
}

.heading-line:nth-child(1) {
    animation-delay: 0.5s;
}

.heading-line:nth-child(2) {
    animation-delay: 0.7s;
}

@keyframes heading-pop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    60% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== DIVIDER ===== */
.divider {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anchor-icon {
    font-size: 2rem;
    color: #FFD700;
    animation: anchor-swing 2s ease-in-out infinite;
}

@keyframes anchor-swing {
    0%, 100% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

/* ===== TAGLINE ===== */
.tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FB923C;
    font-style: italic;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== MESSAGE BOX ===== */
.message-box {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    margin: 2rem 0;
    backdrop-filter: blur(5px);
}

.coming-soon {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: #FFD700;
    text-shadow: 2px 2px 0 #1A1A1A;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

/* ===== EMAIL BUTTON ===== */
.email-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FFD700, #F59E0B);
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 3px solid #FFA500;
    box-shadow:
        0 5px 15px rgba(255, 215, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.email-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 10px 25px rgba(255, 215, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #FFA500, #FF8C00);
}

.email-button:active {
    transform: translateY(-1px) scale(1.02);
}

.treasure-icon {
    font-size: 1.5rem;
    animation: treasure-shimmer 2s ease-in-out infinite;
}

@keyframes treasure-shimmer {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* ===== CALL TO ACTION ===== */
.cta {
    margin-top: 2rem;
}

.cta-text {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: #EF4444;
    text-shadow: 2px 2px 0 #1A1A1A;
    letter-spacing: 0.05em;
    animation: cta-pulse 2s ease-in-out infinite;
}

@keyframes cta-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* ===== FOOTER ===== */
.footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.compass {
    width: 80px;
    height: 80px;
    animation: compass-rotate 20s linear infinite;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.3));
}

@keyframes compass-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 1024px) {
    .main-heading {
        font-size: 3.5rem;
    }

    .content-card {
        padding: 2.5rem 1.5rem;
    }

    .jolly-roger {
        width: 120px;
        height: 120px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .main-content {
        padding: 1rem;
    }

    .content-card {
        padding: 2rem 1.5rem;
        border-width: 2px;
    }

    .jolly-roger {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .main-heading {
        font-size: 2.5rem;
    }

    .coming-soon {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .description {
        font-size: 1rem;
    }

    .email-button {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    .cta-text {
        font-size: 1.4rem;
    }

    .compass {
        width: 60px;
        height: 60px;
    }

    .footer {
        bottom: 10px;
        right: 10px;
    }

    .ocean {
        height: 150px;
    }

    .ship-container {
        bottom: 170px;
        width: 100px;
        height: 70px;
    }

    /* Reduce coin count on mobile */
    .coin4, .coin5 {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .main-heading {
        font-size: 2rem;
    }

    .coming-soon {
        font-size: 1.6rem;
    }

    .message-box {
        padding: 1.5rem 1rem;
    }

    .email-button {
        font-size: 0.85rem;
        padding: 0.7rem 1.2rem;
    }

    .cta-text {
        font-size: 1.2rem;
    }
}

/* Large Screens */
@media (min-width: 1920px) {
    .content-card {
        max-width: 900px;
        padding: 4rem 3rem;
    }

    .main-heading {
        font-size: 5.5rem;
    }

    .jolly-roger {
        width: 180px;
        height: 180px;
    }
}
