:root {
    --luffy-red: #D9381E;
    --ocean-blue: #006994;
    --sand-gold: #F4C430;
    --parchment: #F0E68C;
    --dark-wood: #5D4037;
    --text-dark: #2C2C2C;
    --font-heading: 'Bangers', cursive;
    --font-body: 'Roboto', sans-serif;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 768px) {
    .wanted-poster {
        transform: scale(0.8);
    }

    .nav-links {
        display: none;
        /* In a real app, adding a hamburger menu would be key */
    }

    .poster-header {
        font-size: 3rem;
    }

    .poster-name {
        font-size: 2rem;
    }

    /* Show minimal nav for demo */
    #navbar {
        justify-content: center;
    }

    .logo {
        padding-left: 0;
    }

    .logo::before {
        display: none;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--ocean-blue);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

#app {
    width: 100%;
    min-height: 100vh;
}

/* Navigation */
/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    /* Dark wood texture simulation */
    background: repeating-linear-gradient(90deg, #5D4037 0px, #4E342E 10px, #3E2723 20px);
    border-bottom: 4px solid #FFD700;
    /* Gold trim */
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    color: #FFD700;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #000;
    position: relative;
    padding-left: 30px;
}

/* Pseudo-element for a skull/icon */
.logo::before {
    content: '☠️';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #FFF;
    text-decoration: none;
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
    text-shadow: 1px 1px 2px black;
}

.nav-links a:hover {
    color: #FFD700;
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.1) rotate(-2deg);
}

/* Sections */
#about {
    background-color: #f4d03f;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 20%);
    position: relative;
}

/* Captain's Log container */
#about .content {
    background: #fdf5e6;
    padding: 40px;
    max-width: 800px;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.2);
    border: 2px solid #5D4037;
    position: relative;
    transform: rotate(1deg);
    font-family: 'Playfair Display', serif;
}

/* "Tape" or "Nail" effect */
#about .content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: rgba(200, 50, 50, 0.7);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#about p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #4E342E;
    margin-bottom: 1rem;
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 100px 20px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hero - Wanted Poster */
#hero {
    /* Ocean gradient background */
    background: linear-gradient(180deg, #89CFF0 0%, #005f9e 60%, #003366 100%);
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

/* Wave Animations */
.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    z-index: 1;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('http://front-end-noobs.com/jecko/img/wave-bot.png');
    /* Fallback or use CSS curve */
    background-size: 50% 100%;
    animation: move_wave 10s linear infinite;
    opacity: 0.5;
}

/* Use CSS radial gradients for waves if image fails/unavailable */
.wave {
    background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.4) 10%, transparent 10%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.4) 10%, transparent 10%);
    background-size: 60px 60px;
    background-repeat: repeat-x;
    background-position: 0 100%;
    background-color: transparent;
    /* Override */
}

/* Re-override for a proper wave shape utilizing svg or clip-path is better, let's use a simple SVG data URI for reliability */
.wave {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.2' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 1440px 320px;
}

.wave1 {
    animation: move_wave 20s linear infinite;
    opacity: 0.3;
    z-index: 10;
    bottom: 0;
}

.wave2 {
    animation: move_wave 15s linear infinite;
    opacity: 0.5;
    z-index: 9;
    bottom: -10px;
    animation-delay: -5s;
}

.wave3 {
    animation: move_wave 10s linear infinite;
    opacity: 0.2;
    z-index: 8;
    bottom: -20px;
    animation-delay: -2s;
}

@keyframes move_wave {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.wanted-poster {
    background-color: #f6e6b4;
    /* Base parchment color */
    width: 360px;
    /* Slightly wider */
    padding: 20px 25px 60px 25px;
    /* Large bottom padding for the huge bounty */
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    position: relative;
    /* Create a paper-like border */
    border: none;
    background-image:
        repeating-linear-gradient(#f6e6b4 0 5px, #f0e0b0 5px 7px),
        /* subtle lines */
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10%);
    /* worn spots */
}

/* The actual border lines that appear on Wanted posters */
.wanted-poster::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid #4a2c22;
    pointer-events: none;
}

.poster-header {
    font-family: 'Playfair Display', serif;
    /* Fallback until we load a better one */
    font-weight: 900;
    font-size: 4.5rem;
    color: #4a2c22;
    line-height: 0.8;
    margin-top: 10px;
    margin-bottom: 5px;
    letter-spacing: -2px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
    transform: scaleY(1.3);
    /* Make it tall like the anime font */
}

.poster-image-container {
    width: 100%;
    height: 240px;
    background: #2a2a2a;
    border: 3px solid #4a2c22;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.poster-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #333 25%, #444 25%, #444 50%, #333 50%, #333 75%, #444 75%, #444 100%);
    background-size: 20px 20px;
}

.poster-name {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 3rem;
    color: #4a2c22;
    text-transform: uppercase;
    margin: 15px 0 5px;
    letter-spacing: 2px;
    line-height: 1;
}

.poster-bounty {
    font-family: 'Times New Roman', serif;
    /* Classic serif looks more like the numbers */
    font-weight: bold;
    font-size: 1.8rem;
    color: #4a2c22;
    display: flex;
    justify-content: flex-start;
    /* Align numbers authentically */
    align-items: baseline;
    padding-left: 20px;
    /* Indent slightly */
    gap: 10px;
}

.currency {
    font-size: 1.2rem;
    font-weight: normal;
}

.poster-footer {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a2c22;
    letter-spacing: 1px;
}

h2 {
    font-family: var(--font-heading);
    color: var(--sand-gold);
    font-size: 3rem;
    text-shadow: 2px 2px 0px #000;
    margin-bottom: 2rem;
    text-align: center;
}

/* Projects Section */
#projects {
    background-color: #003366;
    /* Deep ocean */
    background-image: repeating-linear-gradient(45deg, #002b55 0px, #002b55 20px, #003366 20px, #003366 40px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

.project-card {
    background: #FFFAF0;
    border: 4px solid #5D4037;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.project-image {
    height: 180px;
    background: #888;
    position: relative;
    overflow: hidden;
}

/* Overlay that looks like a map or bounty cover */
.project-image::after {
    content: 'TOP SECRET';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    color: rgba(200, 0, 0, 0.5);
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    border: 5px solid rgba(200, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 10px;
}

.project-info {
    padding: 20px;
    text-align: center;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #5D4037;
    margin-bottom: 10px;
}

.project-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #444;
}

.project-bounty {
    margin-top: 15px;
    font-weight: bold;
    color: #D9381E;
}

/* Skills Section */
#skills {
    background-color: #4A1C17;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('https://www.transparenttextures.com/patterns/dark-matter.png');
}

.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px;
}

.devil-fruit {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c0392b);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.devil-fruit:hover {
    transform: scale(1.15) rotate(10deg);
}

/* Swirl pattern simulation */
.fruit-swirl {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: transparent;
    transform: rotate(45deg);
}

.devil-fruit::before {
    content: '';
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    background: #2ecc71;
    border-radius: 4px;
    box-shadow: -5px 5px 0 #27ae60;
}

.devil-fruit span {
    font-family: 'Bangers', cursive;
    color: white;
    font-size: 1.2rem;
    text-shadow: 2px 2px 0 #000;
    z-index: 2;
    margin-top: 5px;
}

/* Specific fruit colors */
.skill-js {
    background: radial-gradient(circle at 30% 30%, #f1c40f, #f39c12);
}

.skill-react {
    background: radial-gradient(circle at 30% 30%, #3498db, #2980b9);
}

.skill-css {
    background: radial-gradient(circle at 30% 30%, #9b59b6, #8e44ad);
}

.skill-node {
    background: radial-gradient(circle at 30% 30%, #2ecc71, #27ae60);
}

/* Contact Section */
#contact {
    background-color: #2a2a2a;
    padding-bottom: 50px;
}

.den-den-mushi-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.snail-body {
    position: relative;
    width: 150px;
    height: 120px;
}

/* Very simple CSS Den Den Mushi */
.snail-shell {
    width: 100px;
    height: 90px;
    background: #e17055;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 10px;
    border: 4px solid #333;
    background-image: repeating-radial-gradient(#e17055 0, #e17055 10px, #d63031 10px, #d63031 20px);
}

.snail-head {
    width: 60px;
    height: 80px;
    background: #74b9ff;
    border-radius: 30px;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 4px solid #333;
    z-index: 2;
}

.snail-eye {
    width: 15px;
    height: 30px;
    background: #333;
    position: absolute;
    top: -20px;
    border-radius: 10px;
}

.snail-eye.left {
    left: 10px;
}

.snail-eye.right {
    right: 10px;
}

.snail-eye::after {
    content: '';
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: -15px;
    left: -2px;
    border: 3px solid #333;
}

.snail-receiver {
    font-size: 2rem;
    position: absolute;
    top: -10px;
    left: 20px;
    animation: ring 1s infinite;
    transform-origin: bottom center;
}

@keyframes ring {

    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 5px;
    border: none;
    background: #fdf5e6;
    font-family: 'Roboto', sans-serif;
}

.contact-form button {
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: #FFD700;
    color: #4A1C17;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.contact-form button:hover {
    transform: scale(1.05);
    background: #ffec8b;
}
/* =========================
   FUN INTERACTIVE EFFECTS
   Add at the very bottom
========================= */

/* Wanted poster click pop */
.poster-pop {
    animation: posterPop 0.25s ease;
}

@keyframes posterPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* Devil fruit click pop */
.fruit-pop {
    animation: fruitPop 0.25s ease;
}

@keyframes fruitPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Impact text */
.impact-text {
    position: absolute;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: #FFD700;
    text-shadow: 2px 2px 0 #000;
    pointer-events: none;
    z-index: 9999;
    animation: impactBurst 0.8s ease forwards;
}

@keyframes impactBurst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.6) rotate(-10deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -100px) scale(1.4) rotate(8deg);
    }
}

/* Power unlock message */
.power-message {
    position: fixed;
    top: 40px;
    right: 40px;
    background: #111;
    color: #fff;
    padding: 14px 18px;
    border: 2px solid #FFD700;
    border-radius: 14px;
    font-family: 'Bangers', cursive;
    font-size: 1.4rem;
    z-index: 9999;
    animation: powerPop 1.2s ease forwards;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

@keyframes powerPop {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-15px) scale(1.05);
    }
}

/* Den Den Mushi speech bubble */
.snail-bubble {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 14px;
    font-family: 'Bangers', cursive;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    animation: bubblePop 1.8s ease forwards;
    z-index: 20;
}

.snail-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

@keyframes bubblePop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.8);
    }
    15% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px) scale(1.03);
    }
}

/* Gear 5 mode */
.gear5-mode {
    animation: gearFlash 0.4s ease-in-out infinite alternate;
}

@keyframes gearFlash {
    from {
        filter: hue-rotate(0deg) saturate(1);
    }
    to {
        filter: hue-rotate(35deg) saturate(1.35);
    }
}

/* Section reveal animation */
.section-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.section-show {
    opacity: 1;
    transform: translateY(0);
}
/* =========================
   FUN INTERACTIVE EFFECTS
========================= */

.poster-pop {
    animation: posterPop 0.25s ease;
}

@keyframes posterPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.fruit-pop {
    animation: fruitPop 0.25s ease;
}

@keyframes fruitPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.impact-text {
    position: absolute;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: #FFD700;
    text-shadow: 2px 2px 0 #000;
    pointer-events: none;
    z-index: 9999;
    animation: impactBurst 0.8s ease forwards;
}

@keyframes impactBurst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.6) rotate(-10deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -100px) scale(1.4) rotate(8deg);
    }
}

.power-message {
    position: fixed;
    top: 40px;
    right: 40px;
    background: #111;
    color: #fff;
    padding: 14px 18px;
    border: 2px solid #FFD700;
    border-radius: 14px;
    font-family: 'Bangers', cursive;
    font-size: 1.4rem;
    z-index: 9999;
    animation: powerPop 1.2s ease forwards;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

@keyframes powerPop {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-15px) scale(1.05);
    }
}

.snail-bubble {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 14px;
    font-family: 'Bangers', cursive;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    animation: bubblePop 1.8s ease forwards;
    z-index: 20;
}

.snail-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

@keyframes bubblePop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.8);
    }
    15% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px) scale(1.03);
    }
}

.gear5-mode {
    animation: gearFlash 0.4s ease-in-out infinite alternate;
}

@keyframes gearFlash {
    from {
        filter: hue-rotate(0deg) saturate(1);
    }
    to {
        filter: hue-rotate(35deg) saturate(1.35);
    }
}

.section-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.section-show {
    opacity: 1;
    transform: translateY(0);
}