/* --- General Styling --- */
:root {
    --primary-color: #0d1b2a;
    --secondary-color: #1b263b;
    --accent-color: #3a86ff;
    --text-color: #e0e1dd;
    --light-gray: #778da9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    overflow: hidden;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--white);
}

h1 { font-size: 3.2rem; margin-bottom: 1rem; line-height: 1.2; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

p {
    color: var(--text-color);
    margin-bottom: 1rem;
    max-width: 650px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- Header & Navigation --- */
.main-header {
    background-color: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 5px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    transition: background-color 0.3s;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    vertical-align: middle;
}

.main-nav {
    display: flex;
}
.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 35px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}
.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
}
.header-actions .btn {
    margin-left: 15px;
    padding: 10px 24px;
}

/* --- Mobile Menu --- */
.mobile-menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 1100;
}

.mobile-menu-icon span {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-icon.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


.mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 90px; /* Header height */
    left: -100%; /* Start off-screen */
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--primary-color);
    padding: 20px;
    text-align: center;
    transition: left 0.3s ease-in-out;
    z-index: 999;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav a {
    color: var(--white);
    padding: 15px 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--secondary-color);
}
.mobile-nav a:last-of-type {
    border-bottom: none;
}
.mobile-nav-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.9)), url('https://images.unsplash.com/photo-1511379938547-c1f69419868d?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=3600') center center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero .sub-headline {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
    max-width: 100%;
}

.hero .cta-buttons .btn {
    margin: 10px;
}

/* --- Partners Section --- */
.partners {
    background-color: var(--secondary-color);
    padding: 40px 0;
}

.partners p { 
    text-align: center; 
    margin-bottom: 2rem; 
    color: var(--light-gray); 
    max-width: 100%; 
}

.scroller-wrapper {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller-inner {
    display: flex;
    width: max-content;
    animation: scroll-x 30s linear infinite;
}

.scroller-wrapper:hover .scroller-inner {
    animation-play-state: paused;
}

.scroller-inner img {
    height: 35px;
    margin: 0 40px;
    border-radius: 0;
}

.scroller-inner img[alt="Apple Music"] {
    filter: invert(1);
}

@keyframes scroll-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --- Content Section with Image --- */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.content-layout.reverse .text-content {
    order: 2;
}
.content-layout.reverse .image-content {
    order: 1;
}
.text-content p {
    max-width: 100%;
}
.text-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.image-content {
    position: relative;
}

.image-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--accent-color);
    border-radius: 10px;
    z-index: -1;
    transition: all 0.3s ease;
}
.image-content:hover::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* --- Services Section --- */
#distribution, #artist-support, #contact {
    background-color: var(--secondary-color);
}
#about, #studio-services, #testimonials {
    background-color: var(--primary-color);
}

.services-grid {
    display: grid;
    gap: 25px;
    margin-top: 3rem;
}

.distribution-grid, .studio-grid {
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    background-color: var(--primary-color);
    padding: 35px;
    border-radius: 10px;
    border-bottom: 4px solid var(--accent-color);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
#studio-services .service-card {
     background-color: var(--secondary-color);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card p {
    flex-grow: 1;
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: var(--secondary-color);
    padding: 35px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 40px;
    max-width: 100%;
}

.testimonial-card .quote::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.5;
    font-family: Georgia, serif;
}

.testimonial-card .author h4 {
    color: var(--white);
    margin-bottom: 0;
}

.testimonial-card .author span {
    font-size: 0.9rem;
    color: var(--light-gray);
}
.testimonial-card .author {
    text-align: right;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--primary-color);
    padding: 40px;
    border-radius: 10px;
}

.contact-info p { margin-bottom: 1.5rem; max-width: 100%; }
.contact-info strong { color: var(--white); }

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(58, 134, 255, 0.3);
}

.contact-form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

#form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    display: none;
}
#form-message.success {
    background-color: #28a745;
    color: white;
}
#form-message.error {
    background-color: #dc3545;
    color: white;
}

.g-recaptcha {
    margin-bottom: 20px;
}

/* --- Footer --- */
.main-footer {
    background-color: #000;
    padding: 60px 0;
    color: var(--light-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-grid h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--light-gray); transition: color 0.3s; }
.footer-grid a:hover { color: var(--white); }

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.9rem;
}

/* --- Legal & Signup Pages Specific --- */
.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
}
.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}
.hero-section p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--light-gray);
}
.terms-hero {
    background: linear-gradient(rgba(13, 27, 42, 0.85), rgba(13, 27, 42, 0.98)), url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?q=80&w=2070&auto=format&fit=crop') center center/cover no-repeat;
}
.policy-hero {
    background: linear-gradient(rgba(13, 27, 42, 0.85), rgba(13, 27, 42, 0.98)), url('https://images.unsplash.com/photo-1516131206008-dd041a372122?q=80&w=2070&auto=format&fit=crop') center center/cover no-repeat;
}
.signup-hero {
    background: linear-gradient(rgba(13, 27, 42, 0.85), rgba(13, 27, 42, 0.98)), url('https://images.unsplash.com/photo-1516999654410-482a85e49c1a?q=80&w=2070&auto=format&fit=crop') center center/cover no-repeat;
}


.page-wrapper {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
}

.sidebar-nav {
    position: sticky;
    top: 120px;
    height: calc(100vh - 140px);
}
.sidebar-nav ul {
    list-style: none;
}
.sidebar-nav li a {
    display: block;
    padding: 10px 15px;
    color: var(--light-gray);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}
.sidebar-nav li a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}
.sidebar-nav li a.active {
    background-color: var(--accent-color);
    color: var(--white);
}
.main-content h2 {
    font-size: 1.8rem; 
    margin-top: 3rem; 
    padding-top: 1.5rem;
    border-top: 1px solid var(--secondary-color);
}
.main-content h2:first-of-type {
     margin-top: 0;
     padding-top: 0;
     border-top: none;
}
.main-content p, .main-content li { color: var(--light-gray); }
.main-content strong { color: var(--text-color); }
.main-content ul { padding-left: 20px; }

.form-section {
    padding: 80px 0;
}
.custom-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
}
.form-group { margin-bottom: 25px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--white);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
     outline: none;
     border-color: var(--accent-color);
     box-shadow: 0 0 10px rgba(58, 134, 255, 0.3);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .main-nav, .header-actions {
        display: none;
    }
    .mobile-menu-icon {
        display: flex;
    }
    .content-layout, .content-layout.reverse, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .content-layout .image-content, .content-layout.reverse .image-content { 
        order: 2;
        margin-top: 2rem;
    }
    .content-layout.reverse .text-content { order: 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .page-wrapper { grid-template-columns: 1fr; }
    .sidebar-nav {
        position: static;
        height: auto;
        margin-bottom: 40px;
        border-bottom: 1px solid var(--secondary-color);
        padding-bottom: 20px;
    }
    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero { min-height: auto; padding: 150px 0 100px 0; }
    .scroller-inner img { height: 25px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .studio-grid, .distribution-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-group {
        margin-bottom: 20px; /* Adjust margin for stacked fields */
    }
}

