:root {
    --bg-color: #0d0e15;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --accent: #ff0055;
    --accent-glow: rgba(255, 0, 85, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Allow content to start from top and scroll */
    padding: 4rem 1rem;
    /* Add padding for scroll room */
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* Background Image and Grid */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/2001_locmelis.jpg?v=bda3483');
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: zoomInOut 60s ease-in-out infinite alternate;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="2" height="2" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="black"/></svg>');
    background-repeat: repeat;
    z-index: -1;
    pointer-events: none;
}



@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.container {
    padding: 2rem;
    width: 100%;
    max-width: 600px;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Typography styles */
h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Cyberpunk-ish Glitch effect on hover */
.glitch {
    position: relative;
    transition: all 0.3s ease;
}

.glitch:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #00ffff;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent);
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 83px, 0);
    }

    20% {
        clip: rect(61px, 9999px, 8px, 0);
    }

    40% {
        clip: rect(78px, 9999px, 49px, 0);
    }

    60% {
        clip: rect(54px, 9999px, 7px, 0);
    }

    80% {
        clip: rect(31px, 9999px, 74px, 0);
    }

    100% {
        clip: rect(19px, 9999px, 95px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(27px, 9999px, 7px, 0);
    }

    40% {
        clip: rect(89px, 9999px, 55px, 0);
    }

    60% {
        clip: rect(12px, 9999px, 66px, 0);
    }

    80% {
        clip: rect(81px, 9999px, 33px, 0);
    }

    100% {
        clip: rect(43px, 9999px, 16px, 0);
    }
}

/* Interactive Contact Button */
.contact-btn {
    margin-top: 1.5rem;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-btn:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 40px -5px rgba(255, 0, 85, 0.3);
}

.contact-btn:hover::before {
    left: 100%;
}

.btn-text {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.btn-email {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Bird and Golden Frame */
.bird-container {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 8s ease-in-out infinite;
}

.golden-frame {
    padding: 12px;
    background: linear-gradient(135deg,
            #d4af37 0%,
            #f9f295 25%,
            #e6b800 50%,
            #d4af37 75%,
            #8a6d3b 100%);
    border-radius: 4px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        /* Inner highlight */
        inset 0 0 15px rgba(0, 0, 0, 0.3),
        /* Inner shadow for depth */
        0 0 20px rgba(212, 175, 55, 0.25);
    /* Outer golden glow */
    position: relative;
    display: inline-block;
    line-height: 0;
}

/* Add a 3D bevel look */
.golden-frame::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 2px solid #8a6d3b;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
}

/* Shine overlay */
.golden-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 45%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.1) 55%,
            transparent 100%);
    background-size: 200% 200%;
    animation: shine 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: 4px;
}

@keyframes shine {
    0% {
        background-position: -100% -100%;
    }

    100% {
        background-position: 100% 100%;
    }
}

.bird-img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Concerts Section */
.concerts {
    margin: 1.5rem 0;
    width: 100%;
    max-width: 400px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.concert-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.concert-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.concert-list li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.concert-list li.concert-item-detailed {
    display: block;
    text-align: left;
}

.concert-list li.concert-item-detailed .concert-info-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.concert-details {
    padding-left: 2.5rem;
    /* Shifting details further to the right */
    text-align: left;
}

.concert-list li:last-child {
    border-bottom: none;
}

.date {
    font-weight: 700;
    color: var(--text-primary);
}

.location {
    color: var(--text-secondary);
    font-weight: 300;
}

/* Nav & Sounds Page */
.top-nav {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.klausities-link {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
}

.klausities-link .icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 5px var(--accent));
}

.klausities-link:hover {
    transform: scale(1.1);
    color: #fff;
    text-shadow: 0 0 20px var(--accent);
}

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

.sounds-container {
    max-width: 800px;
    margin-top: 4rem;
}

.full-width {
    width: 100%;
}

/* Audio Player Styles */
.players-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.playlist-card {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
}

.playlist-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.playlist-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Responsive Video Embeds */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    /* Placeholder dark bg before load */
    margin-top: 1rem;
    width: 100%;
}

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

.custom-audio-player {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.now-playing {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.np-label {
    color: var(--accent);
    font-weight: 700;
}

.np-title {
    color: #fff;
    font-weight: bold;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-family: monospace;
}

.progress-bar {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s linear;
}

.html5-audio {
    display: none;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s;
    cursor: pointer;
    /* Added pointer cursor */
}

.track-item.active-track {
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent);
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.play-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
    padding-left: 3px;
    /* visual center for play icon */
}

.play-btn:hover {
    background: var(--accent);
    color: #fff;
}

.play-btn.playing {
    background: var(--accent);
    color: #fff;
    padding-left: 0;
}

.track-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.track-title {
    font-weight: 600;
    color: #fff;
}

.track-length {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.loading-text,
.error-text {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.error-text {
    color: #ff4444;
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 1rem 0 !important;
    }

    .container {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .glass-card {
        padding: 1.5rem 0.2rem !important;
        border-radius: 0 !important;
        /* Edge to edge */
        border-left: none !important;
        border-right: none !important;
    }

    .playlist-card {
        padding: 0.75rem 0.25rem !important;
        border-radius: 4px !important;
    }

    .custom-audio-player {
        padding: 0.75rem 0.25rem !important;
    }

    .contact-btn {
        padding: 0.8rem 1.5rem !important;
    }
}

/* ============================== */
/* BILDES (GALERIJA) SADAĻA       */
/* ============================== */

/* Albumu Saraksts (photos.html) */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.album-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.album-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.album-cover-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.album-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.album-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Konkrēta Albuma Skats (photos_detail.html) */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.photo-thumbnail {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.photo-thumbnail:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px var(--accent-glow);
}

.photo-thumbnail:hover img {
    opacity: 0.8;
}

/* Lightbox Modal Player */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--accent);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    color: white;
    background: transparent;
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

.lightbox-caption {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Social Links */
.social-links {
    margin-top: 2.5rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.social-icon {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 32px;
    height: 32px;
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.social-icon.instagram:hover {
    color: #E1306C;
}

.social-icon.facebook:hover {
    color: #4267B2;
}

.social-icon.youtube:hover {
    color: #FF0000;
}

/* Responsive pielāgojumi galerijām */
@media (max-width: 768px) {
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
}