:root {
    --color-primary: #2BBBAD;
    --color-primary-dark: #1f9a8e;
    --color-bg: #0d0d0d;
    --color-surface: #1a1a1a;
    --color-text: #ffffff;
    --color-text-muted: #999999;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background: rgba(13, 13, 13, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header__logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header__logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav__link:hover {
    color: var(--color-text);
}

.nav__link.active {
    color: var(--color-primary);
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

/* ===== One-Pager Section Layout ===== */
section {
    display: block !important; /* All sections are visible on a One-Pager */
    min-height: 100vh;
    scroll-margin-top: 1rem; /* Reduced scroll margin now that header is gone */
    position: relative;
    padding-top: 2rem; /* Reduced from 4rem to move content even higher up */
    padding-bottom: 5rem;
}

section.hero {
    display: flex !important; /* Hero needs flex for centering content */
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
}

/* ===== Right Side Vertical Navbar ===== */
.right-nav {
    position: fixed;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 1000;
    pointer-events: none; /* Let clicks pass through if empty space, but allow clicking items */
}

.right-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    text-decoration: none;
    pointer-events: auto; /* enable clicks on items */
}

.right-nav__label {
    position: absolute;
    right: 2.2rem; /* Position the label fully to the left of the dot */
    white-space: nowrap;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    background: rgba(13, 13, 13, 0.75);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.right-nav__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover effects */
.right-nav__link:hover .right-nav__label {
    opacity: 1;
    transform: translateX(0);
    color: var(--color-text);
}

.right-nav__link:hover .right-nav__dot {
    background: var(--color-primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--color-primary);
}

/* Active State */
.right-nav__link.active .right-nav__dot {
    background: var(--color-primary);
    border-color: var(--color-bg);
    transform: scale(1.4);
    box-shadow: 0 0 15px var(--color-primary);
}

.right-nav__link.active .right-nav__label {
    opacity: 1;
    transform: translateX(0);
    color: var(--color-primary);
}

@media (max-width: 900px) {
    .right-nav {
        right: 1.5rem; /* Move dots closer to the edge on tablets */
        gap: 1.25rem;
    }

    .right-nav__link {
        width: 32px; /* Increase tap target size for touch/mobile devices */
        height: 32px;
    }
}

@media (max-width: 600px) {
    .right-nav {
        right: 1rem; /* Move even closer to the edge on small mobile screens */
        gap: 1rem;
    }

    .right-nav__label {
        display: none !important; /* Hide labels completely on mobile to prevent content overlapping */
    }

    section {
        padding-top: 6rem;
        padding-bottom: 4rem;
        min-height: auto; /* Allow shorter sections on mobile */
    }

    section.hero {
        min-height: 100vh;
    }

    .header {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        position: fixed;
    }
    .header__logo-link {
        display: none !important; /* Hide logo in navbar on mobile so menu doesn't push sections down */
    }
    .nav {
        gap: 1.2rem;
    }
    .nav__link {
        font-size: 0.85rem;
    }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(43, 187, 173, 0.15) 0%, transparent 70%);
    animation: pulse-bg 6s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__logo {
    width: clamp(280px, 50vw, 500px);
    height: auto;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(43, 187, 173, 0.4));
}

.hero__title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--color-primary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.hero__cta {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero__cta:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 0 30px rgba(43, 187, 173, 0.4);
    transform: translateY(-2px);
}

.hero__cta--secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.hero__cta--secondary:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--color-bg);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* ===== Sections ===== */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 3.5rem;
    background: linear-gradient(135deg, var(--color-primary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: block; /* Make it visible for the one pager layout */
}

/* ===== Gigs Section (Bandtool Widget Wrapper) ===== */
.gigs {
    padding-top: 2rem; /* Restored breathing room at the top */
    margin-top: -2rem; /* Pushes it closer to the Hero, but keeps it inside the viewport */
    scroll-margin-top: 2rem; /* Positive margin so the title remains perfectly visible when navigated to */
}

.gigs__iframe-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(43, 187, 173, 0.15);
    background: rgba(26, 26, 26, 0.4);
    box-shadow: 0 8px 30px rgba(43, 187, 173, 0.05);
    padding: 1.5rem;
}

#bandtool-gig {
    width: 100%;
    transition: height 0.3s ease;
}

/* ===== Instagram Section ===== */
.instagram-feed {
    padding: 2rem 2rem 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.instagram-feed__subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.instagram-feed__handle {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.instagram-feed__handle:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Instagram Carousel */
.instagram-carousel {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 3.5rem;
}

.instagram-carousel__container {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
}

.instagram-carousel__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.instagram-carousel__item {
    flex: 0 0 33.333%;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .instagram-carousel__item {
        flex: 0 0 50%;
    }
}

@media (max-width: 600px) {
    .instagram-carousel__item {
        flex: 0 0 100%;
    }
}

.instagram-carousel__image-wrapper {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--color-surface);
}

.instagram-carousel__placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.instagram-carousel__placeholder--1 {
    background: linear-gradient(135deg, rgba(43, 187, 173, 0.25), #1a1a1a);
}

.instagram-carousel__placeholder--2 {
    background: linear-gradient(135deg, #1a1a1a, rgba(43, 187, 173, 0.15));
}

.instagram-carousel__placeholder--3 {
    background: linear-gradient(135deg, rgba(43, 187, 173, 0.2), #0d0d0d);
}

.instagram-carousel__placeholder--4 {
    background: linear-gradient(135deg, #0d0d0d, rgba(43, 187, 173, 0.3));
}

.instagram-carousel__placeholder--5 {
    background: linear-gradient(135deg, rgba(43, 187, 173, 0.15), #222);
}

.instagram-carousel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.instagram-carousel__icon {
    width: 36px;
    height: 36px;
    color: var(--color-primary);
}

.instagram-carousel__overlay span {
    font-size: 0.95rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
}

.instagram-carousel__image-wrapper:hover .instagram-carousel__placeholder {
    transform: scale(1.05);
}

.instagram-carousel__image-wrapper:hover .instagram-carousel__overlay {
    opacity: 1;
}

.instagram-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(43, 187, 173, 0.15);
    border: 1.5px solid rgba(43, 187, 173, 0.4);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    padding: 0;
}

.instagram-carousel__arrow:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 0 15px rgba(43, 187, 173, 0.4);
}

.instagram-carousel__arrow--prev {
    left: 0;
}

.instagram-carousel__arrow--next {
    right: 0;
}

.instagram-carousel__arrow svg {
    width: 20px;
    height: 20px;
}

.instagram-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.instagram-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.instagram-carousel__dot.active {
    background: var(--color-primary);
    transform: scale(1.25);
}

.instagram-feed__follow {
    margin-top: 2rem;
}

/* ===== Contact ===== */
.contact {
    padding: 2rem 2rem 8rem 2rem; /* Reduced top padding from 6rem to 2rem and bottom padding to 8rem */
    text-align: center;
    background: var(--color-bg);
}

.contact__text {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact__form-wrapper {
    max-width: 640px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(43, 187, 173, 0.2);
}

.contact__iframe {
    width: 100%;
    height: 500px;
    background: var(--color-bg);
}

/* ===== Footer ===== */
.footer {
    padding: 2rem 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.footer__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.6;
}

.footer__socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer__social-link {
    color: var(--color-text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__social-link:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.footer__social-icon {
    width: 24px;
    height: 24px;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .gigs__list {
        grid-auto-columns: calc(50% - 0.75rem);
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .gigs__list {
        grid-auto-columns: 100%;
    }

    .gig-card {
        padding: 1.2rem 1rem;
        gap: 1rem;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .contact__iframe {
        height: 400px;
    }
}
