/* CSS RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* VARIABLES */
:root {
    --primary-color: #111111;
    --secondary-color: #888888;
    --accent-color: #FFFFFF;
    --dark-bg: #000000;
    --light-bg: #1a1a1a;
    --text-light: #f5f5f5;
    --text-dark: #333333;
    --font-family-body: 'Poppins', sans-serif;
    --font-family-heading: 'Lora', serif;
    --artist-color: var(--secondary-color);
    --artist-text-color: #000;
    --project-color: var(--secondary-color);
}

/* DAY MODE VARIABLES */
body.day-mode {
    --primary-color: #FFFFFF;
    --secondary-color: #555555;
    --accent-color: #000000;
    --dark-bg: #f4f4f4;
    --light-bg: #ffffff;
    --text-light: #222222;
    --text-dark: #f5f5f5;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    color: var(--text-light);
    background-color: var(--dark-bg);
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.modal-open, body.nav-open { overflow: hidden; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

a { color: var(--text-light); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); }

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: var(--font-family-heading);
    color: var(--text-light);
    transition: color 0.4s ease;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 50px; }
h3 { font-size: 1.8rem; color: var(--text-light); }
h4 { font-size: 1.4rem; color: var(--text-light); }

p { margin-bottom: 15px; }
ul, ol { margin-bottom: 15px; padding-left: 20px; }

/* HEADER & NAVIGATION */
.main-header {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}
body.day-mode .main-header {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #ddd;
}

.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 40px; z-index: 1001; opacity: 0.9; transition: opacity 0.3s; }
.logo:hover { opacity: 1; }

.main-nav ul { list-style: none; display: flex; align-items: center; padding-left: 0; }
.main-nav ul li { margin-left: 25px; }
.main-nav ul li a {
    color: var(--text-light);
    font-weight: 400;
    padding: 10px 0;
    position: relative;
    letter-spacing: 0.5px;
}
.main-nav ul li a::after {
    content: ''; position: absolute; bottom: 0px; left: 0; width: 0; height: 2px;
    background-color: var(--accent-color); transition: width 0.3s ease;
}
.main-nav ul li a:hover::after, .main-nav ul li a.active::after { width: 100%; }

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-icon { fill: var(--text-light); transition: fill 0.3s ease; }
.theme-icon .light-ray { transition: opacity 0.3s ease; }
body:not(.day-mode) .theme-icon .light-ray { opacity: 0; } /* Hide rays in night mode */
body.day-mode .theme-icon .light-ray { opacity: 1; } /* Show rays in day mode */

.menu-toggle { display: none; background: transparent; border: none; cursor: pointer; z-index: 1001; padding: 10px; }
.menu-toggle span { display: block; width: 25px; height: 3px; background-color: var(--text-light); margin: 5px 0; transition: all 0.3s ease-in-out; }

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(17, 17, 17, 0.95)), url('https://images.unsplash.com/photo-1514320291840-2e0a9bf2a9ae?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80') no-repeat center center/cover;
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; color: #f5f5f5; padding-top: 70px;
}
body.day-mode .hero { background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.95)), url('https://images.unsplash.com/photo-1514320291840-2e0a9bf2a9ae?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80') no-repeat center center/cover; }
body.day-mode .hero h1, body.day-mode .hero .subtitle { color: #222; }
.hero .container { max-width: 800px; }
.hero .subtitle { font-size: 1.4rem; font-weight: 300; margin-bottom: 30px; letter-spacing: 1px; line-height: 1.5; }
.hero-logo { max-height: 120px; margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1)); }
body.day-mode .hero-logo { filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1)); }
.cta-button {
    background-color: transparent; color: var(--accent-color);
    padding: 15px 35px; border-radius: 5px; font-weight: 600; display: inline-block;
    transition: all 0.3s ease; margin-top: 20px; font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); border: 1px solid var(--accent-color);
}
.cta-button:hover { background-color: var(--accent-color); color: var(--dark-bg); transform: translateY(-3px); }

/* CONTENT SECTIONS */
.content-section { padding: 100px 0; }
.content-section-light { background-color: var(--light-bg); padding: 100px 0; transition: background-color 0.4s ease; }
.section-intro {
    text-align: center;
    max-width: 600px;
    margin: -20px auto 40px auto;
    font-size: 1.1rem;
    opacity: 0.9;
}


/* HISTORY TIMELINE */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-bottom: 20px; }
.timeline::after { content: ''; position: absolute; width: 2px; background-color: var(--secondary-color); top: 0; bottom: 40px; left: 50%; margin-left: -1px; opacity: 0.3; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::after {
    content: ''; position: absolute; width: 18px; height: 18px; background-color: var(--dark-bg);
    border: 3px solid var(--secondary-color); top: 25px; border-radius: 50%; z-index: 1;
    transition: background-color 0.3s, transform 0.3s;
}
.timeline-item:hover::after { background-color: var(--accent-color); transform: scale(1.1); }
.timeline-item:nth-child(odd)::after { right: -9px; }
.timeline-item:nth-child(even)::after { left: -9px; }
.timeline-content {
    padding: 30px;
    background-color: #1c1c1c; /* Kept dark for contrast in both modes */
    border-radius: 6px;
    position: relative;
    border: 1px solid #2a2a2a;
}
body.day-mode .timeline-content { background-color: #e9ecef; border: 1px solid #dee2e6;}
body.day-mode .timeline-content h3, body.day-mode .timeline-content p { color: #212529; }
.timeline-content h3 { margin-bottom: 10px; color: #f5f5f5; }
.timeline-content p { color: #ccc; }

.timeline-ender, .testimonials-ender { text-align: center; margin-top: 40px; }
.history-button {
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-family-body);
    transition: all 0.3s ease;
}
.history-button:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}


/* ARTISTS SECTION */
.artists-grid, .other-artists-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 30px; 
    margin-top: 40px;
}
.artist-card { 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    border-radius: 8px;
    background-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
body.day-mode .artist-card {
    background-color: var(--light-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.artist-card:hover { 
    transform: translateY(-10px); 
    background-color: var(--artist-color);
}
body.day-mode .artist-card:hover {
    background-color: var(--artist-color);
}

.artist-card-img-wrapper {
    width: 100%; 
    aspect-ratio: 1 / 1;
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.artist-card-img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}
.artist-card h4 { 
    margin-top: 20px; 
    margin-bottom: 5px; 
    font-family: var(--font-family-body); 
    font-weight: 600; 
    font-size: 1.2rem; 
    transition: color 0.3s ease;
}
.artist-card:hover h4 {
    color: var(--artist-text-color);
}

.full-width-bar {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
    color: var(--text-light);
}
.full-width-bar:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
body.day-mode .full-width-bar {
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
body.day-mode .full-width-bar:hover {
    color: var(--accent-color);
}

/* GRAVADORA & PROJETOS SECTION */
.card-grid { display: grid; gap: 40px; }
.record-label-grid { grid-template-columns: 1fr; }
.projects-grid { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .record-label-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
.info-card {
    background-color: #1c1c1c; padding: 30px; border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}
.info-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); border-left-color: var(--accent-color); }
body.day-mode .info-card { background-color: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
body.day-mode .info-card:hover { border-left-color: var(--secondary-color); }
.info-card img.album-cover { width: 120px; height: 120px; float: left; margin-right: 20px; border-radius: 4px; }
.info-card h4, .info-card p { color: var(--text-light); }
body.day-mode .info-card h4, body.day-mode .info-card p { color: #333; }

/* PROJETOS - Visual Cards */
.projects-subtitle { text-align: center; font-size: 1.5rem; margin-top: 40px; margin-bottom: 10px; opacity: 0.8; }
.projects-subtitle:first-of-type { margin-top: 0; }
.project-card {
    background-color: transparent;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}
.project-card.side-border { border-left: 5px solid var(--project-color, var(--secondary-color)); }
.project-card.top-border { border-top: 5px solid var(--project-color, var(--secondary-color)); }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.project-logo-wrapper {
    background-color: #1c1c1c; /* Always dark for logo visibility */
    padding: 30px;
    transition: background-color 0.3s ease;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.day-mode .project-logo-wrapper {
    background-color: #ffffff;
}
.project-card:hover .project-logo-wrapper {
    background-color: var(--project-color);
}
.project-logo { max-width: 100%; max-height: 100px; object-fit: contain; }
.project-card-body {
    padding: 30px;
    background-color: #1c1c1c;
    transition: background-color 0.4s ease;
    flex-grow: 1;
}
body.day-mode .project-card-body {
    background-color: #ffffff;
}
.project-card h4 { margin-top: 10px; margin-bottom: 10px; }

.spotify-button {
    display: inline-block; margin-top: 15px; padding: 8px 16px;
    background-color: #1DB954; color: #fff; border-radius: 20px;
    font-weight: 600; font-size: 0.9rem; transition: background-color 0.2s, transform 0.2s;
}
.spotify-button:hover { background-color: #1ed760; transform: scale(1.05); color: #fff; }

/* TESTIMONIALS SECTION */
.testimonial-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}
body.day-mode .testimonial-cta {
    background-color: #fff;
    border: 1px solid #ddd;
}
.testimonial-cta p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.testimonials-grid { 
    display: grid;
    gap: 30px; 
    margin-top: 40px;
    grid-template-columns: 1fr;
}
.testimonials-grid .testimonial-card:nth-child(n+2) { display: none; }

@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid .testimonial-card:nth-child(2) { display: flex; }
    .testimonials-grid .testimonial-card:nth-child(n+3) { display: none; }
}

@media (min-width: 1024px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid .testimonial-card:nth-child(3) { display: flex; }
}

.testimonial-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #2a2a2a;
}
body.day-mode .testimonial-card { background-color: #fff; border: 1px solid #ddd; }
.testimonial-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--secondary-color);
}
.testimonial-card h4 { margin-bottom: 5px; }
.testimonial-card .role { font-size: 0.9rem; color: var(--secondary-color); margin-bottom: 15px; }
.testimonial-card blockquote { font-style: italic; opacity: 0.9; border-left: 3px solid var(--secondary-color); padding-left: 15px; text-align: left;}
.read-more-btn {
    background: none; border: none;
    color: var(--secondary-color); font-weight: 600;
    cursor: pointer; margin-top: 15px; padding: 5px;
    text-decoration: underline; font-size: 0.9rem;
    font-family: var(--font-family-body); transition: color 0.3s ease;
}
.read-more-btn:hover { color: var(--text-light); }

/* FOOTER */
.main-footer {
    background-color: #0a0a0a; color: var(--text-light); padding: 40px 0; text-align: center; border-top: 1px solid #222;
}
body.day-mode .main-footer { background-color: #e9ecef; color: #333; border-top: 1px solid #ddd; }
.main-footer .container { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-logo { height: 30px; opacity: 0.7; }
.footer-text { font-size: 0.9rem; opacity: 0.7; margin-top: 20px; }
.footer-text a { color: var(--secondary-color); font-weight: 600; }
.footer-disclaimer { margin-top: 20px; }
.footer-disclaimer p { font-size: 0.9rem; max-width: 600px; margin: 0 auto 15px auto; opacity: 0.8; }
.legal-button {
    background: transparent; color: var(--secondary-color); border: 1px solid var(--secondary-color);
    padding: 8px 16px; border-radius: 5px; cursor: pointer; font-size: 0.9rem; transition: all 0.3s;
}
.legal-button:hover { background-color: var(--secondary-color); color: var(--text-dark); }
.footer-social { display: flex; justify-content: center; gap: 25px; margin-top: 20px; }
.footer-social a { color: var(--secondary-color); display: inline-block; transition: color 0.3s ease, transform 0.3s ease; }
.footer-social a:hover { color: var(--text-light); transform: scale(1.1); }
body.day-mode .footer-social a:hover { color: var(--accent-color); }
.footer-social svg { width: 28px; height: 28px; fill: currentColor; }


/* MODAL STYLES */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s ease;
}
body.day-mode .modal-overlay { background-color: rgba(255, 255, 255, 0.9); }
.modal-overlay.active { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.modal-content {
    background-color: var(--light-bg);
    padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s ease, border-top-color 0.3s ease;
    border-top: 5px solid var(--artist-color);
}
body.day-mode .modal-content { background-color: #fff; box-shadow: 0 5px 25px rgba(0,0,0,0.1); }
#history-modal .modal-content, #legal-modal .modal-content, #testimonials-modal .modal-content, #other-artists-modal .modal-content { border-top-color: var(--secondary-color); }
#artist-modal { z-index: 2100; } /* Ensure artist detail modal is on top */
#project-modal .modal-content { border-top-color: var(--project-color); }
#project-modal { z-index: 2200; }


.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    font-size: 2.5rem; font-weight: 300; color: #aaa; cursor: pointer; line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { color: var(--text-light); transform: scale(1.1); }

.modal-header { display: flex; align-items: center; gap: 30px; margin-bottom: 30px; }
#artist-modal .modal-header h2 { color: var(--artist-color); }
#project-modal .modal-header h2 { color: var(--project-color); }

/* CONTRAST FIX: Modal titles in dark mode */
body:not(.day-mode) #project-modal .modal-header h2 {
    color: #fff;
}

.modal-header h2 { text-align: left; margin-bottom: 0; font-size: 2.8rem; }
body.day-mode #legal-modal .modal-header h2,
body.day-mode #history-modal .modal-header h2,
body.day-mode #testimonials-modal .modal-header h2,
body.day-mode #testimonial-detail-modal .modal-header h2,
body.day-mode #other-artists-modal .modal-header h2 { color: var(--text-light); }
#history-modal .modal-header h2, #testimonials-modal .modal-header h2, #testimonial-detail-modal .modal-header h2, #other-artists-modal .modal-header h2 { color: var(--text-light); }


.modal-img-wrapper {
    width: 150px; height: 150px; border: 3px solid var(--artist-color);
    background-color: var(--artist-color); /* Corrected: Use artist color for BG */
    padding: 10px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; flex-shrink: 0;
}
#project-modal .modal-img-wrapper {
    border-color: var(--project-color);
    background-color: var(--project-color);
}
#modal-img, #project-modal-img { max-width: 100%; max-height: 100%; object-fit: contain; }

.modal-body h3 { margin-top: 30px; border-bottom: 1px solid var(--secondary-color); padding-bottom: 10px; margin-bottom: 20px; }
.modal-body p { margin-bottom: 1.2em; }
.modal-media { display: grid; grid-template-columns: 1fr; gap: 20px; }
.modal-media iframe { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 5px; border: 0; }
.modal-media .video-item h4 { font-size: 1.2rem; margin-bottom: 10px; }
.modal-media .video-item .video-participants {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    margin-top: -5px;
}


/* MODAL ARTIST-SPECIFIC CONTRAST FIXES */
/* Dre: Name white in dark mode */
body:not(.day-mode) .modal-content[data-artist-id="dre"] #modal-name {
    color: #fff;
}

/* Dom Paulinho Lima: Name dark gray in day mode */
body.day-mode .modal-content[data-artist-id="dompaulinho"] #modal-name {
    color: #333333;
}

/* VamoAê!: Use #ffaa00 for better contrast in both modes */
#artist-modal .modal-content[data-artist-id="vamoae"],
#project-modal .modal-content[data-project-id="vamoae"] { /* Re-using for projects if needed */
    border-top-color: #ffaa00;
}
#artist-modal .modal-content[data-artist-id="vamoae"] #modal-name,
#project-modal .modal-content[data-project-id="vamoae"] #project-modal-name {
    color: #ffaa00;
}
#artist-modal .modal-content[data-artist-id="vamoae"] .modal-img-wrapper,
#project-modal .modal-content[data-project-id="vamoae"] .modal-img-wrapper {
    border-color: #ffaa00;
}


/* OTHER ARTISTS MODAL */
.other-artists-subtitle { margin-top: 40px; font-size: 1.5rem; }
.other-artists-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.other-artists-grid.simple {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.other-artist-card-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.other-artist-card-simple:hover {
    transform: scale(1.5);
    z-index: 10;
    position: relative;
}
.other-artist-card-simple h4 { margin: 0; font-size: 1.1rem; }
.other-artist-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #1c1c1c;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
}

/* CONTRAST FIX FOR OTHER ARTISTS MODAL IN DAY MODE */
.day-mode .other-artist-card-simple h4 {
    color: #f5f5f5;
}


/* LEGAL MODAL TABLE */
.table-container { overflow-x: auto; margin-top: 20px; }
#contracts-table { width: 100%; border-collapse: collapse; text-align: left; }
#contracts-table th, #contracts-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    color: var(--text-light); /* Contrast fix */
}
#contracts-table th { background-color: #2a2a2a; font-weight: 600; }
body.day-mode #contracts-table th, body.day-mode #contracts-table td {
    border-bottom: 1px solid #ddd;
    color: var(--text-light); /* Contrast fix */
}
body.day-mode #contracts-table th { background-color: #f2f2f2; }

/* TESTIMONIALS MODAL CAROUSEL */
.carousel-container { position: relative; overflow: hidden; padding: 20px 0; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-item { flex: 0 0 100%; padding: 0 20px; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0,0,0,0.3); color: white; border: none;
    cursor: pointer; padding: 10px; border-radius: 50%; z-index: 1;
    transition: background-color 0.3s; font-size: 24px; line-height: 1;
    width: 44px; height: 44px;
}
.carousel-btn:hover { background-color: rgba(0,0,0,0.6); }
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }
body.day-mode .carousel-btn { background-color: rgba(255,255,255,0.4); color: #333; }
body.day-mode .carousel-btn:hover { background-color: rgba(255,255,255,0.8); }

/* TESTIMONIAL DETAIL MODAL */
#testimonial-detail-modal { z-index: 3000; }
#testimonial-detail-modal .modal-content { max-width: 600px; border-top-color: var(--secondary-color); }
#testimonial-detail-modal .modal-header h2 { font-size: 2.2rem; }
#testimonial-detail-modal .modal-body p { font-size: 1.1rem; line-height: 1.8; }

/* RESPONSIVE DESIGN */
@media (max-width: 850px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background-color: var(--dark-bg); /* Use dark bg for nav */
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex; justify-content: center; align-items: center;
    }
    body.day-mode .main-nav { background-color: var(--light-bg); }
    body.nav-open .main-nav { transform: translateX(0); }
    .main-nav ul { flex-direction: column; text-align: center; gap: 20px; }
    .main-nav ul li { margin-left: 0; }
    .main-nav ul li a { font-size: 1.5rem; }
    body.nav-open .menu-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .menu-toggle span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    .hero { height: auto; padding: 150px 0 60px 0; }
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after { left: 10px; }
    .modal-header { flex-direction: column; text-align: center; }
    .modal-header h2 { text-align: center; font-size: 2.2rem; }
    .record-label-grid, .projects-grid { grid-template-columns: 1fr; }
    /* This overrides the more specific testimonial grid media queries for the smallest screens */
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* DEVELOPER BADGE */
.dev-badge-container {
    margin-top: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ss-dev-badge--dark {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 12px !important;
  background-color: #1a1a20 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #9aa1a9 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  border: none !important;
  line-height: 1.2 !important;
}
.ss-dev-badge--dark:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}
.ss-dev-badge--dark img {
  height: 16px !important;
  width: auto !important;
  vertical-align: middle !important;
}

.ss-dev-badge--light {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 12px !important;
  background-color: #f0f1f3 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #556070 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  border: none !important;
  line-height: 1.2 !important;
}
.ss-dev-badge--light:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}
.ss-dev-badge--light img {
  height: 16px !important;
  width: auto !important;
  vertical-align: middle !important;
}

/* Theme-based badge visibility */
.ss-dev-badge--light {
    display: none !important;
}
body.day-mode .ss-dev-badge--dark {
    display: none !important;
}
body.day-mode .ss-dev-badge--light {
    display: inline-flex !important;
}