/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    scroll-padding-top: 80px;
    overflow-y: scroll;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: auto;
    width: 100%;
    max-width: 100%;
    position: relative;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff url('logos/png/efferent official logo-02-cropped.png') no-repeat center 50%;
    background-size: 140% auto;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    pointer-events: none;
    z-index: -1;
}


/* Navigation */
.navbar {
    background: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e5e5;
    left: 0;
    right: 0;
    overflow-x: hidden;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.nav-logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo .logo {
    height: 70px;
    width: auto;
    max-width: 150px;
    padding-top: 5px;
}

.nav-logo-text {
    display: flex;
    align-items: center;
}

.nav-logo-text .logo-text {
    height: 50px;
    width: auto;
    max-width: 200px;
}


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

.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background: #000;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 40px;
    padding: 40px 60px;
    min-height: calc(100vh - 80px);
    position: relative;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0 30px 0;
    color: #000;
}


.hero h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
    padding: 0 20px;
}

/* Page Headers */
.page-header {
    text-align: center;
    padding: 40px 0 30px 0;
    color: #000;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
    margin-top: 40px;
}

.content-section h2 {
    color: #000;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* Music cards - 4 in a single row */
.music-card {
    grid-column: span 1;
}

.music-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 50px !important;
    max-width: 100%;
}

/* Video cards - 2 per row */
.video-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px !important;
}

/* Responsive behavior for smaller screens */
@media (max-width: 1600px) {
    .music-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
    }
    
    /* Center last 2 items on home page only (8 items = 2 remainder in 3-col grid) */
    .home-music-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
    
    .home-music-grid .music-card {
        grid-column: span 2;
    }
    
    .home-music-grid .music-card:nth-child(7) {
        grid-column: 2 / 4;
    }
    
    .home-music-grid .music-card:nth-child(8) {
        grid-column: 4 / 6;
    }
    
    /* Center last 2 items on music page (20 items = 2 remainder in 3-col grid) */
    .music-page-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
    
    .music-page-grid .music-card {
        grid-column: span 2;
    }
    
    .music-page-grid .music-card:nth-child(19) {
        grid-column: 2 / 4;
    }
    
    .music-page-grid .music-card:nth-child(20) {
        grid-column: 4 / 6;
    }
}

@media (max-width: 1024px) {
    .music-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    /* Reset centering logic for smaller screens */
    .home-music-grid,
    .music-page-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .home-music-grid .music-card,
    .music-page-grid .music-card {
        grid-column: span 1 !important;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .music-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Reset centering logic for mobile */
    .home-music-grid,
    .music-page-grid {
        grid-template-columns: 1fr !important;
    }
    
    .home-music-grid .music-card,
    .music-page-grid .music-card {
        grid-column: span 1 !important;
    }
    
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 30px;
    background: #000;
    color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 15px;
}

/* Music cards have even less padding */
.music-card .card-content {
    padding: 10px;
}

/* Embed Styles */
.soundcloud-embed,
.youtube-embed {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
}

.soundcloud-embed iframe,
.youtube-embed iframe {
    width: 100%;
    border: none;
    border-radius: 0;
}

/* Music card embeds - square aspect ratio */
.music-card .soundcloud-embed {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio */
    height: 0;
}

.music-card .soundcloud-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Video card embeds - maintain 16:9 aspect ratio */
.video-card .youtube-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-card .youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Video Titles */
.video-title {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: #000;
}

/* About Page */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
    background: #fff;
    padding: 60px;
    border: 1px solid #e5e5e5;
}

.about-image {
    flex: 0 0 248px;
    align-self: flex-start;
}

.about-image img {
    width: 100%;
    height: auto;
    border: 1px solid #e5e5e5;
    display: block;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #000;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #333;
    font-weight: 400;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 20px 0 60px 0;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.testimonials-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 250px;
}

.testimonial {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.testimonial.active {
    display: block;
    opacity: 1;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    color: #333;
    margin-bottom: 30px;
    font-weight: 400;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-nav {
    background: #000;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 2rem;
    flex-shrink: 0;
}

.testimonial-nav:hover {
    background: #333;
    transform: scale(1.1);
}

.testimonial-nav span {
    line-height: 1;
    margin-top: -3px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.testimonial-dot.active {
    background: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 40px 0;
        border-top: 1px solid #e5e5e5;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .about-layout {
        flex-direction: column;
    }
    
    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        position: static;
    }
    
    .about-text {
        padding: 40px 30px;
    }
    
    .testimonials-container {
        gap: 15px;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .testimonials-wrapper {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    .about-text {
        padding: 30px 20px;
    }
    
    .about-text h2 {
        font-size: 1.5rem;
    }
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.social-links a {
    color: #000;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: #666;
    transform: translateY(-3px);
}

.social-links svg {
    width: 24px;
    height: 24px;
}

.footer-text {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Page transition animations - only for main content */
.main-content {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade out on navigation */
.main-content.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Subtle hover effects */
.card {
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    pointer-events: none;
}

.card:hover::before {
    transform: translateX(100%);
}

/* Focus states for accessibility */
.nav-link:focus,
.card:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Loading states for embeds */
.soundcloud-embed iframe,
.youtube-embed iframe {
    transition: opacity 0.3s ease;
}

/* Typography improvements */
h1, h2, h3 {
    font-weight: 300;
    letter-spacing: -0.5px;
}

/* Clean, minimal button styles */
button, .btn {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    background: #fff;
    color: #000;
}

/* Minimal scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #000;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}