/* Comic Book Background Styles */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Bangers', 'Comic Sans MS', cursive;
}

.comic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ff6b6b 100%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.comic-panel {
    position: absolute;
    border: 4px solid #000;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
    background: white;
    transform: rotate(-2deg);
}

.comic-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.2) saturate(1.3);
}

/* Comic panels positioned across the background */
.panel-1 { top: 8%; left: 3%; width: 180px; height: 180px; transform: rotate(-4deg); }
.panel-2 { top: 12%; right: 5%; width: 170px; height: 170px; transform: rotate(6deg); }
.panel-3 { top: 25%; left: 8%; width: 190px; height: 150px; transform: rotate(-7deg); }
.panel-4 { top: 35%; right: 7%; width: 165px; height: 165px; transform: rotate(5deg); }
.panel-5 { top: 48%; left: 5%; width: 175px; height: 145px; transform: rotate(-3deg); }
.panel-6 { top: 55%; right: 10%; width: 160px; height: 140px; transform: rotate(8deg); }
.panel-7 { top: 68%; left: 12%; width: 185px; height: 185px; transform: rotate(-6deg); }
.panel-8 { top: 75%; right: 8%; width: 170px; height: 150px; transform: rotate(4deg); }
.panel-9 { top: 88%; left: 6%; width: 180px; height: 180px; transform: rotate(-5deg); }
.panel-10 { top: 95%; right: 15%; width: 165px; height: 165px; transform: rotate(7deg); }
.panel-11 { top: 105%; left: 20%; width: 175px; height: 145px; transform: rotate(-4deg); }
.panel-12 { top: 110%; right: 5%; width: 155px; height: 155px; transform: rotate(6deg); }
.panel-13 { top: 125%; left: 10%; width: 180px; height: 160px; transform: rotate(3deg); }
.panel-14 { top: 135%; right: 12%; width: 170px; height: 170px; transform: rotate(-8deg); }
.panel-15 { top: 145%; left: 15%; width: 165px; height: 140px; transform: rotate(5deg); }

/* Profile panels in background */
.profile-panel {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid #000;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
    background: white;
    opacity: 0.7;
}

.profile-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-1 { top: 15%; left: 15%; transform: rotate(-10deg); }
.profile-2 { top: 8%; right: 20%; transform: rotate(12deg); }
.profile-3 { bottom: 25%; left: 8%; transform: rotate(8deg); }
.profile-4 { top: 50%; right: 5%; transform: rotate(-15deg); }
.profile-5 { bottom: 10%; left: 30%; transform: rotate(6deg); }
.profile-6 { top: 70%; right: 30%; transform: rotate(-8deg); }
.profile-7 { top: 35%; left: 25%; transform: rotate(10deg); }

/* Comic text effects */
.comic-text {
    text-shadow:
        3px 3px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        4px 4px 8px rgba(0,0,0,0.5);
    color: white;
    font-weight: bold;
    letter-spacing: 2px;
}

.boom-text {
    font-family: 'Impact', 'Bangers', sans-serif;
    font-size: 4rem;
    color: #ff0000;
    text-shadow:
        4px 4px 0 #ffff00,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    transform: rotate(-5deg);
}

/* Halftone dot pattern overlay */
.halftone-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image:
        radial-gradient(circle, rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 8px 8px;
    pointer-events: none;
}

/* Content container */
.content-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 20px;
    padding-top: 20px; /* Account for fixed header */
}

/* Card styles with comic effect */
.comic-card {
    background: white;
    border: 5px solid #000;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.3);
    border-radius: 15px;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.comic-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 15px 15px 0 rgba(0,0,0,0.4);
}

/* Navigation */
.comic-nav {
    background: white;
    border: 5px solid #000;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 15px;
}

.nav-link {
    display: inline-block;
    padding: 15px 30px;
    margin: 5px;
    background: #ff6b6b;
    color: white;
    border: 4px solid #000;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.nav-link:hover {
    background: #ff5252;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 rgba(0,0,0,0.3);
}

.nav-link.active {
    background: #4ecdc4;
}

/* Button styles */
.comic-button {
    padding: 15px 40px;
    background: #ffd700;
    border: 4px solid #000;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    text-transform: uppercase;
    color: #000;
}

.comic-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
}

.comic-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .comic-panel {
        width: 100px !important;
        height: 100px !important;
    }

    .profile-panel {
        width: 50px;
        height: 50px;
    }

    .boom-text {
        font-size: 2rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Large Jeffrey watermark */
.jeffrey-watermark {
    position: fixed;
    bottom: -50px;
    right: -50px;
    width: 500px;
    height: 500px;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    filter: grayscale(0.5);
}

.jeffrey-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .jeffrey-watermark {
        width: 300px;
        height: 300px;
        bottom: -30px;
        right: -30px;
    }
}