/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

/* Header / Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    filter: blur(60px);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
}

.hero-avatar {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text .role {
    font-size: 1.25rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: block;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Latest News (Timeline) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #e5e5e5;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    width: 100%;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    border-left: 3px solid var(--accent);
}

.timeline-date {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--accent);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1.5rem;
}

/* Discography */
.discography-grid {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 1rem;
    scroll-snap-type: x mandatory;
}

.album-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    perspective: 1000px;
    cursor: pointer;
}

.album-cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease;
    object-fit: cover;
}

.album-card:hover .album-cover {
    transform: rotateY(10deg) scale(1.05);
}

.album-info {
    margin-top: 1rem;
    text-align: center;
}

/* Gallery (Masonry) */
/* Gallery (Tilted Masonry) */
.gallery-grid {
    display: block !important;
    /* Override style.css display: grid */
    column-count: 3;
    column-gap: 1.5rem;
    padding: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);

    /* Reset conflicting styles from style.css */
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    /* Critical override */
    height: auto !important;
    min-height: 0 !important;

    position: relative;
    box-shadow: none !important;
    /* Remove shadow from container */
    overflow: visible !important;
    /* Allow hover effects to exceed bounds */
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(5%);

    /* Visual styles moved to image */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    /* Filter for a slight vintage feel */
    filter: sepia(5%);
}

/* Random tilts using nth-child */
.gallery-item:nth-child(odd) {
    transform: rotate(2deg);
}

.gallery-item:nth-child(2n) {
    transform: rotate(-1.5deg) translateY(10px);
}

.gallery-item:nth-child(3n) {
    transform: rotate(1.5deg) scale(0.98);
}

.gallery-item:nth-child(4n) {
    transform: rotate(-2deg);
}

.gallery-item:nth-child(5n) {
    transform: rotate(1deg) translateY(-5px);
}

/* Hover Effect: Straighten and Pop */
.gallery-item:hover {
    transform: rotate(0) scale(1.03) translateY(-5px) !important;
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
}



/* Guestbook */
.guestbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.guestbook-entry {
    background: #fff;
    padding: 1.5rem;
    border-radius: 2px;
    box-shadow: var(--shadow-sm);
    transform: rotate(-1deg);
    transition: var(--transition);
}

.guestbook-entry:nth-child(even) {
    transform: rotate(1deg);
    background: #fffdf5;
    /* Post-it yellow hint */
}

.guestbook-entry:hover {
    transform: rotate(0) scale(1.02);
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-avatar {
        margin: 0 auto;
        width: 200px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .social-links {
        justify-content: center;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 45px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
    }

    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }

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