@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(34, 211, 238, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(34, 211, 238, 0.8);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.glow-text {
    animation: glow 3s ease-in-out infinite;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Remove default margin on body */
body {
    margin: 0;
    padding: 0;
}

/* Header styling */
header {
    transition: all 0.3s ease;
}

header.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    line-height: 1.6;
}

/* Album cards with improved hover */
.album-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.album-card:hover {
    box-shadow: 0 25px 50px -12px rgba(34, 211, 238, 0.2);
}

/* Gallery items */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Timeline styling */
.timeline-item {
    transition: all 0.3s ease;
}

.timeline-item:hover {
    padding-left: 40px;
}

/* News cards */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.15);
}

/* Member cards */
.member-card {
    transition: all 0.3s ease;
}

.member-card:hover img {
    filter: brightness(1.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .timeline-item:hover {
        padding-left: 32px;
    }

    .album-card {
        aspect-ratio: auto;
    }

    /* Ensure no horizontal scroll on mobile */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    section {
        padding: 1.25rem;
    }
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #22d3ee;
    outline-offset: 2px;
}

/* Loading state */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Ensure images don't exceed container */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Link styling */
a {
    text-decoration: none;
    color: inherit;
}

a:visited {
    color: inherit;
}

/* Button base styles */
button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Prevent FOUC (Flash of Unstyled Content) */
body {
    visibility: visible;
    opacity: 1;
}
