:root {
    --spidey-red: #E63946;
    --spidey-blue: #003049;
    --spidey-light-blue: #457B9D;
    --spidey-dark: #111;
    --spidey-white: #F1FAEE;
    --spidey-yellow: #FFB703;
}

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

body {
    background-color: var(--spidey-dark);
    color: var(--spidey-white);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    /* Halftone Effect */
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 0);
    background-size: 30px 30px;
}

h1, h2, h3, .logo {
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
}

/* Custom Cursor */
.cursor-web {
    width: 20px;
    height: 20px;
    border: 2px solid var(--spidey-red);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    background: rgba(230, 57, 70, 0.2);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: var(--spidey-red);
    border-bottom: 5px solid #000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 2rem;
    color: #000;
    text-shadow: 2px 2px #fff;
}

.logo span {
    color: var(--spidey-white);
    text-shadow: 2px 2px #000;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--spidey-white);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.comic-badge {
    background: var(--spidey-yellow);
    color: #000;
    display: inline-block;
    padding: 5px 15px;
    font-family: 'Bangers';
    transform: rotate(-5deg);
    border: 3px solid #000;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    color: var(--spidey-red);
    text-shadow: 4px 4px #000, 7px 7px var(--spidey-light-blue);
}

.name-hero {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tagline {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 30px;
    border-left: 5px solid var(--spidey-red);
    padding-left: 15px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 80%;
    filter: drop-shadow(10px 10px 0px var(--spidey-red));
    z-index: 2;
    border: 5px solid #fff;
    transform: rotate(3deg);
}

.web-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/spider-web.png');
    opacity: 0.3;
}

/* Buttons */
.btn-spider {
    background: var(--spidey-red);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-family: 'Bangers';
    font-size: 1.5rem;
    border: 3px solid #000;
    box-shadow: 5px 5px 0px #000;
    transition: 0.2s;
    display: inline-block;
    cursor: pointer;
}

.btn-spider:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px #000;
    background: var(--spidey-yellow);
    color: #000;
}

/* Sections */
section {
    padding: 80px 10%;
}

.section-title {
    font-size: 3.5rem;
    color: var(--spidey-red);
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 3px 3px #000;
}

/* Origin Story Panels */
.panel-container {
    display: flex;
    gap: 20px;
}

.comic-panel {
    background: #fff;
    color: #000;
    padding: 30px;
    border: 5px solid #000;
    position: relative;
}

.main-panel {
    flex: 2;
    transform: rotate(-1deg);
}

.side-panel {
    flex: 1;
    background: var(--spidey-blue);
    color: #fff;
    transform: rotate(1deg);
}

.stat-box {
    margin-bottom: 20px;
}

.bar {
    background: #444;
    height: 15px;
    border: 2px solid #000;
    margin-top: 5px;
}

.fill {
    background: var(--spidey-red);
    height: 100%;
}

/* Powers Grid */
.power-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.power-card {
    background: var(--spidey-white);
    color: #000;
    padding: 30px;
    text-align: center;
    border: 4px solid #000;
    transition: 0.3s;
}

.power-card i {
    font-size: 3rem;
    color: var(--spidey-red);
    margin-bottom: 15px;
}

.power-card:hover {
    transform: scale(1.05) rotate(2deg);
    background: var(--spidey-yellow);
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    background: #000;
    border: 5px solid #fff;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.5s;
}

.project-info {
    padding: 20px;
    background: #fff;
    color: #000;
}

.issue-number {
    font-weight: bold;
    color: var(--spidey-red);
}

.project-card:hover .project-img img {
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Signal */
.signal {
    background: #000;
    border-top: 10px solid var(--spidey-red);
}

.signal-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.signal-text h2 {
    font-size: 3.5rem;
    color: var(--spidey-yellow);
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    background: #222;
    border: 2px solid var(--spidey-red);
    color: white;
    font-family: 'Montserrat';
}

.socials {
    margin-top: 20px;
    font-size: 2rem;
}

.socials a {
    color: var(--spidey-white);
    margin-right: 20px;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--spidey-red);
}

footer {
    text-align: center;
    padding: 40px;
    background: #000;
    border-top: 2px solid #333;
    font-size: 0.9rem;
}

/* Animations */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch:hover {
    animation: glitch 0.3s infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    nav ul {
        margin-top: 15px;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }
    .hero h1 { font-size: 3rem; }
    .panel-container { flex-direction: column; }
    .signal-container { flex-direction: column; text-align: center; }
}
