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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #ff6b35;
    --text-color: #333;
    --light-gray: #e0e0e0;
    --dark-gray: #666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background-image: url('media/image/JPEG/tito_bw_banner.jpg');
    background-size: cover;
    background-position: 35% center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
}

/* Tablet optimization */
@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll;
        background-position: 42% center;
        min-height: 85vh;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: 35% center;
        min-height: 90vh;
        height: auto;
    }
}

/* Small mobile optimization */
@media (max-width: 480px) {
    .hero {
        background-position: 35% center;
        min-height: 85vh;
    }
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    padding: 5rem;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.7);
}

.tagline {
    font-size: 1.5rem;
    color: white;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.7);
}

/* Mobile: hide overlay and text */
@media (max-width: 768px) {
    .hero-overlay {
        background: transparent;
    }
    
    .hero h1,
    .hero .tagline {
        display: none;
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.alt-section {
    background: var(--secondary-color);
}

.band-bg-section {
    background-image: url('media/image/albert_grabs_air.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.band-bg-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 0;
}

.band-bg-section .container {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
    color: #6D1D46;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    object-fit: cover;
}

/* Video Wrapper for responsive embeds */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* Media Section Grid Layout */
#media .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

#media .card:first-child {
    grid-column: 1 / -1; /* Span all columns */
}

/* Mobile: stack all cards */
@media (max-width: 768px) {
    #media .card-grid {
        grid-template-columns: 1fr;
    }
    
    #media .card:first-child {
        grid-column: 1;
    }
}

/* Comics Section Grid Layout */
#comics .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

#comics .card {
    position: relative;
}

#comics img.card-image {
    aspect-ratio: 1 / 1;
    height: auto;
}

/* Mobile: 2 columns for comics */
@media (max-width: 768px) {
    #comics .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small mobile: 1 column for comics */
@media (max-width: 480px) {
    #comics .card-grid {
        grid-template-columns: 1fr;
    }
}

.clickable-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.clickable-image:hover {
    opacity: 0.9;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
    background: none;
    border: none;
    line-height: 1;
}

.video-placeholder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.audio-placeholder {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.comic-placeholder {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--dark-gray);
}

.member-role {
    font-size: 0.85rem;
    padding-top: 0 !important;
    margin-top: -0.5rem;
}

/* Dates Section */
.video-bg-section {
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dates Section Styles */
#dates {
    background-image: url('media/image/albert_grabs_air.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#dates::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.85);
    z-index: 0;
}

#dates .container {
    position: relative;
    z-index: 1;
}

#dates h2 {
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Mobile: disable parallax */
@media (max-width: 768px) {
    #dates {
        background-attachment: scroll;
    }
}

.dates-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.show-flyer-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.show-flyer-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.show-flyer {
    width: 100%;
    height: auto;
    display: block;
}

.date-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.date-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-right: 2rem;
    flex-shrink: 0;
}

.date-box .month {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.date-box .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.date-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.date-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    flex-grow: 1;
}

.date-info p {
    color: var(--dark-gray);
    margin: 0;
    min-width: 150px;
}

.btn {
    background: var(--accent-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.btn:hover {
    background: #e55a2b;
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.copyright {
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(26, 26, 26, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .date-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .date-info p {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }
}

/* Contact Section */
.contact-section {
    background: #000;
}

.contact-section h2 {
    color: #fff !important;
}

#comics h2,
#media h2,
#band h2 {
    color: #000 !important;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}
