/* =========================================================
   Oldhouse Studio – Master Stylesheet
   ========================================================= */

:root {
    --bg-dark: #07070a;
    --bg-panel: rgba(255, 255, 255, 0.03);
    --bg-panel-hover: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.1);

    --primary: #9b59b6;
    --primary-glow: rgba(155, 89, 182, 0.5);
    --secondary: #00d2ff;
    --accent: #f1c40f;
    --success: #2ecc71;
    --danger: #e74c3c;

    --text-main: #f8f9fa;
    --text-muted: #a0a0b0;
    --text-secondary: #7c7c90;

    --font-main: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 14px;
    --radius-sm: 8px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Background Patterns */
.bg-pattern {
    background-image:
        radial-gradient(circle at 15% 50%, rgba(155, 89, 182, 0.06), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(0, 210, 255, 0.04), transparent 30%);
    background-attachment: fixed;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.pb-0 {
    padding-bottom: 0 !important;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.subtitle-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-text {
    text-shadow: 0 0 30px var(--primary-glow);
}

/* --- UI Elements --- */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.glass-panel:hover {
    background: var(--bg-panel-hover);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn-primary,
.btn-primary-outline,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8e44ad);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-secondary {
    background: #f1f3f5;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    background: #25D366;
    color: white;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.btn-call:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================================
   Navigation
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(7, 7, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo span {
    color: var(--primary);
}

.logo i {
    color: var(--secondary);
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
    /* Complex CSS filter to convert pure black to pure white */
    filter: invert(1) drop-shadow(0 0 8px rgba(155, 89, 182, 0.3));
    transition: var(--transition);
}

.logo:hover .logo-img {
    filter: invert(1) drop-shadow(0 0 14px rgba(155, 89, 182, 0.5));
    transform: scale(1.03);
}

.footer-logo-img {
    height: 60px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links a {
    margin: 0 1rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-cta {
    display: none;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

/* =========================================================
   Hero Sections
   ========================================================= */
.hero,
.course-hero,
.projects-hero,
.store-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 80px;
    text-align: center;
}

.hero,
.course-hero,
.projects-hero,
.store-hero,
.about-hero {
    background:
        linear-gradient(to bottom, rgba(7, 7, 10, 0.75), var(--bg-dark)),
        url('https://images.unsplash.com/photo-1598653222000-6b7b7a552625?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(155, 89, 182, 0.12), transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-content p {
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.course-hero {
    min-height: 70vh;
}

.projects-hero {
    min-height: 65vh;
}

/* =========================================================
   About Section (Home)
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.features-list {
    margin-top: 1.5rem;
}

.features-list li {
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.features-list i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.image-wrapper {
    min-height: 380px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(0, 210, 255, 0.1));
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.icon-box i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.image-wrapper:hover .icon-box i {
    color: var(--secondary);
}

/* =========================================================
   Services Section (Home)
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.15);
    color: var(--secondary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================================
   Contact / Location Section (Home)
   ========================================================= */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.info-card h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    color: var(--primary);
}

.info-card p,
.info-card address {
    color: var(--text-muted);
    font-style: normal;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hours-list li.closed {
    color: var(--danger);
}

.phone-link {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary) !important;
}

.phone-link:hover {
    color: var(--primary) !important;
}

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
}

/* =========================================================
   About Page
   ========================================================= */
.about-hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 80px;
    text-align: center;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro-text p {
    color: var(--text-muted);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-stat {
    text-align: center;
    padding: 1.5rem 1rem;
}

.about-stat .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.3rem;
}

.about-stat .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.about-services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-service-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 2.5rem;
}

.about-service-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(0, 210, 255, 0.1));
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.about-service-item:hover .about-service-icon {
    color: var(--secondary);
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(155, 89, 182, 0.1));
    transform: scale(1.05);
}

.about-service-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.about-service-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* =========================================================
   Course Page
   ========================================================= */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-module {
    text-align: center;
    position: relative;
}

.module-number {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.module-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.course-module:hover .module-icon {
    transform: scale(1.12);
    color: var(--secondary);
}

.course-module p {
    color: var(--text-muted);
}

.hands-on-banner {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.06), rgba(0, 210, 255, 0.08));
    border-left: 4px solid var(--primary);
}

.hands-on-banner p {
    color: var(--text-muted);
}

.banner-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* =========================================================
   Projects Page
   ========================================================= */

/* Featured Cards */
.featured-card {
    display: flex;
    gap: 0;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.featured-card.row-reverse {
    flex-direction: row-reverse;
}

.featured-image {
    flex: 1;
    min-height: 380px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-info {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-info p {
    color: var(--text-muted);
}

.featured-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(155, 89, 182, 0.2);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: fit-content;
}

.featured-badge.accent {
    background: rgba(0, 210, 255, 0.15);
    color: var(--secondary);
}

.artist-name {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.05rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    padding: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.portfolio-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.portfolio-cover {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.portfolio-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-cover img.poster-img {
    object-fit: contain;
    background-color: #000;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 10, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-overlay i {
    font-size: 3rem;
    color: white;
    transform: scale(0.5);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-cover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-overlay i {
    transform: scale(1);
}

.portfolio-details {
    padding: 1.5rem;
    position: relative;
}

.release-year {
    position: absolute;
    top: -14px;
    right: 1.5rem;
    background: var(--bg-dark);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    border: 1px solid var(--border-light);
}

.portfolio-details h3 {
    font-size: 1.1rem;
}

.portfolio-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* Placeholder for cards without a poster image */
.portfolio-placeholder-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.12), rgba(0, 210, 255, 0.08));
    border-bottom: 1px solid var(--border-light);
}

.portfolio-placeholder-cover i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.6;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-placeholder-cover i {
    color: var(--secondary);
    opacity: 1;
    transform: scale(1.1);
}

/* Listen Section */
.players-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.player-wrapper h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spotify-color {
    color: #1DB954;
}

.youtube-color {
    color: #FF0000;
}

.embed-placeholder {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

/* YouTube thumbnail fallback (when embedding is disabled) */
.yt-thumb-link {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.yt-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.yt-thumb-link:hover .yt-thumb-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.yt-thumb-link:hover .yt-thumb-overlay i {
    transform: scale(1.15);
}

/* =========================================
   STORE SECTION
========================================= */
.store-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding-top: 1rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.product-cover {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-cover img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-badge.accent {
    background: var(--secondary);
    color: var(--light);
}

.product-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.product-header h3 {
    margin-bottom: 0;
    font-size: 1.4rem;
}

.price-tag {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(155, 89, 182, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.product-category {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: auto;
    /* Pushes content below it to the bottom */
}

/* Custom Audio Player Reset */
.audio-player-mini audio {
    filter: invert(1) hue-rotate(180deg) grayscale(1);
    opacity: 0.9;
}

/* Category Differentiation */
.store-category-section {
    margin-bottom: 5rem;
}

.store-category-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-left: 4px solid var(--primary);
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.store-category-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    color: var(--light);
}

.category-intro {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 800px;
    line-height: 1.6;
}

/* Purchase Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--light);
}

.purchase-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--light);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: var(--light);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #f1f3f5;
}

.form-group input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.purchase-form .btn-primary {
    margin-top: 10px;
    font-weight: 600;
}

.product-badge.coming-soon {
    background: #555;
    color: #eee;
    opacity: 0.8;
}

.coming-soon-section {
    padding: 60px 20px;
    text-align: center;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 4rem;
}

.coming-soon-section h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.coming-soon-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Artist Marquee */
.artist-marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.artist-marquee {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.artist-tag {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0 0.8rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #f1f3f5;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    cursor: default;
}

.artist-tag:hover {
    color: var(--text-main);
    -webkit-text-stroke: 0px;
    transform: scale(1.1);
    text-shadow: 0 0 20px var(--primary-glow);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* CTA Section */
.cta-banner {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.06), rgba(0, 210, 255, 0.06));
}

.cta-banner p {
    color: var(--text-muted);
}

/* =========================================================
   Footer
   ========================================================= */
footer {
    border-top: 1px solid var(--border-light);
    padding-top: 4rem;
    background: rgba(0, 0, 0, 0.5);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--text-muted);
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-panel);
    border-radius: 50%;
    margin-right: 8px;
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================================
   Animations
   ========================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 992px) {

    .about-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-card,
    .featured-card.row-reverse {
        flex-direction: column;
    }

    .featured-image {
        min-height: 260px;
    }

    .players-container {
        grid-template-columns: 1fr;
    }

    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 1.2rem;
    }

    /* Mobile Nav */
    .hamburger {
        display: block;
    }

    .desktop-cta {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(7, 7, 10, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 2rem;
        gap: 0.5rem;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        border-left: 1px solid var(--border-light);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        margin: 0;
        padding: 1rem 0;
        font-size: 1.2rem;
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-cta {
        display: inline-flex !important;
        margin-top: 1rem;
        border-bottom: none !important;
        width: auto !important;
    }

    .hero,
    .course-hero,
    .projects-hero {
        min-height: 85vh;
        padding: 100px 1.5rem 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .featured-info {
        padding: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .banner-stats {
        justify-content: center;
    }

    .about-hero {
        min-height: 60vh;
        padding: 100px 1.5rem 60px;
    }

    .about-service-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .about-service-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-primary-outline {
        font-size: 0.9rem;
        padding: 0.7rem 1.4rem;
    }

    .btn-lg {
        padding: 0.85rem 1.8rem;
        font-size: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   AI Assistant Chat Widget
   ========================================================= */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: var(--font-main);
}

.ai-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 25px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ai-chat-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    max-height: 70vh;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.ai-chat-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.ai-chat-header h3::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.ai-close-chat {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.ai-close-chat:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 2px;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-bottom-right-radius: 2px;
}

.ai-chat-input-area {
    padding: 1.2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
}

.ai-chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: white;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.ai-chat-input-area input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.ai-send-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ai-send-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.ai-chat-suggestions {
    padding: 0 1.2rem 0.8rem;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.suggestion-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-chip:hover {
    background: var(--bg-panel-hover);
    color: var(--text-main);
    border-color: var(--secondary);
}

/* Greeting Bubble */
.ai-greeting-bubble {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: rgba(155, 89, 182, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    border-bottom-right-radius: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.4);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9998;
}

.ai-greeting-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

.ai-greeting-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(155, 89, 182, 0.95);
}

.ai-greeting-close {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
}

.ai-greeting-close:hover {
    color: var(--danger);
    border-color: var(--danger);
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .ai-chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .ai-chat-window {
        bottom: 70px;
        right: 0;
        width: calc(100vw - 40px);
        max-width: 350px;
    }
}

/* LUFS Analyzer Styles */
.upload-zone { border: 2px dashed rgba(255,107,53,0.5); padding: 60px 20px; text-align: center; border-radius: 16px; cursor: pointer; transition: all 0.3s ease; background: rgba(255,255,255,0.02); }
.upload-zone:hover, .upload-zone.drag-active { border-color: var(--secondary); background: rgba(255,107,53,0.08); }
.penalty-negative { color: #ff4757; }
.penalty-positive { color: #2ed573; }
.penalty-perfect { color: var(--text-muted); }


/* Tap Tempo Styles */
.tap-button { width: 220px; height: 220px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); border: 3px solid var(--secondary); display: flex; align-items: center; justify-content: center; margin: 0 auto; cursor: pointer; user-select: none; transition: all 0.1s ease; box-shadow: 0 0 30px rgba(255,107,53,0.1); }
.tap-button:active { transform: scale(0.95); box-shadow: 0 0 10px rgba(255,107,53,0.4); }
.tap-text { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: 2px; }
@keyframes tapPulse { 0% { transform: scale(1); box-shadow: 0 0 10px rgba(255,107,53,0.3); } 50% { transform: scale(0.97); box-shadow: 0 0 40px rgba(255,107,53,0.6); } 100% { transform: scale(1); box-shadow: 0 0 10px rgba(255,107,53,0.3); } }
.pulse-animation { animation: tapPulse 0.15s ease-out; }


/* =========================================================
   Tools Page Enhancements & Animations
   ========================================================= */

/* Entrance Animations */
.animate-slide-up {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes slideUpFade {
    to { opacity: 1; transform: translateY(0); }
}

/* Glowing Borders & Hover Cards */
.glow-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}
.glow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--secondary-glow);
    border-color: rgba(255,255,255,0.2);
}
.glow-card.cyan:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(0, 210, 255, 0.4); border-color: rgba(0,210,255,0.4); }
.glow-card.green:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(46, 204, 113, 0.4); border-color: rgba(46,204,113,0.4); }
.glow-card.orange:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(255, 107, 53, 0.4); border-color: rgba(255,107,53,0.4); }

/* Drag Zone Enhancements */
.upload-zone {
    border: 2px dashed rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}
.upload-zone:hover {
    border-color: var(--secondary);
    background: rgba(0, 210, 255, 0.04);
    transform: scale(1.02);
}
.upload-zone.drag-active {
    border-color: #2ed573;
    background: rgba(46, 204, 113, 0.1);
    animation: pulseBorder 1.5s infinite;
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* EQ Visualizer */
.eq-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 40px;
    gap: 4px;
    margin-bottom: 20px;
}
.eq-bar {
    width: 6px;
    background: linear-gradient(to top, var(--secondary), var(--primary));
    border-radius: 3px;
    animation: eqBounce 0.5s infinite alternate ease-in-out;
}
.eq-bar:nth-child(2) { animation-delay: 0.1s; animation-duration: 0.7s; }
.eq-bar:nth-child(3) { animation-delay: 0.3s; animation-duration: 0.4s; }
.eq-bar:nth-child(4) { animation-delay: 0.2s; animation-duration: 0.6s; }
.eq-bar:nth-child(5) { animation-delay: 0.4s; animation-duration: 0.5s; }

@keyframes eqBounce {
    0% { height: 5px; }
    100% { height: 100%; }
}

/* Delay Calculator Grid */
.delay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.delay-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 20px; transition: all 0.3s ease; }
.delay-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.2); }
.delay-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-bottom: 15px; }
.delay-note { font-weight: 800; color: var(--secondary); font-size: 1.2rem; }
.delay-hz { font-size: 0.85rem; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 10px; }
.delay-val-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; }
.delay-label { color: var(--text-muted); }
.delay-ms { font-weight: 700; color: #fff; }

/* Harmonics Table Overhaul */
.harmonic-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.harmonic-table th { color: var(--text-muted); padding: 10px 15px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; border-bottom: none !important; }
.harmonic-table tbody tr { background: rgba(255,255,255,0.02); transition: all 0.2s ease; }
.harmonic-table tbody tr:hover { background: rgba(255,255,255,0.06); transform: scale(1.01); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.harmonic-table td { padding: 15px; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); border-left: none; border-right: none; }
.harmonic-table td:first-child { border-left: 1px solid rgba(255,255,255,0.05); border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.harmonic-table td:last-child { border-right: 1px solid rgba(255,255,255,0.05); border-top-right-radius: 8px; border-bottom-right-radius: 8px; }


/* Tap Button Animation */
.tap-button {
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.tap-button:active, .tap-button.active-tap {
    transform: scale(0.95);
    box-shadow: 0 0 40px var(--secondary);
}
.ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    transform-origin: center;
    animation: rippleAnim 0.6s linear forwards;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(30); opacity: 0; }
}
