/* 
   HRaudiopro - Modern Minimalist Audio Engineer Portfolio
   Theme: Elegant Dark (Silver & Gold)
*/

:root {
    /* Color Palette - Premium Dark */
    --bg-main: #0a0a0a;
    --bg-secondary: #121212;
    --bg-card: rgba(26, 26, 26, 0.8);

    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;

    --accent-primary: #d4af37;
    /* Classic Gold */
    --accent-hover: #b8962e;
    --accent-glow: rgba(212, 175, 55, 0.3);

    /* Logo Colors */
    --logo-gold: #d4af37;
    --logo-silver: #e2e8f0;

    --border-subtle: #333333;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-gap: 6rem;
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-base: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Background handled by #bg-fixed */
}

/* Fixed Blurred Background */
#bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: url('../images/Fond site.png') no-repeat center center;
    background-size: cover;
    filter: blur(3px) brightness(0.6);
    transform: scale(1.05);
    /* Prevent blur edges showing */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

a {
    opacity: 1;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Reveal Animation */
.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 4px 15px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    position: relative;
    text-decoration: none;
}

.logo-part-1 {
    font-weight: 700;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.logo-part-2 {
    font-weight: 600;
    margin-left: 2px;
    background: linear-gradient(135deg, #bdc3c7, #ffffff, #bdc3c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    background: rgba(10, 10, 10, 0.4);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.hero-tagline {
    color: var(--logo-gold);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: block;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Services using Flexbox */
.services {
    padding: var(--section-gap) 0;
    background-color: rgba(18, 18, 18, 0.6);
}

.services-grid {
    display: flex;
    /* Flexbox for strict card centering */
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    flex: 0 1 350px;
    max-width: 400px;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--logo-gold);
}

/* Store / Packs */
.store {
    padding: var(--section-gap) 0;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--logo-gold);
}

.product-img {
    height: 200px;
    background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--logo-gold);
    font-size: 3rem;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Contact */
.contact {
    padding: var(--section-gap) 0;
    background-color: rgba(18, 18, 18, 0.6);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--accent-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    padding: 1rem;
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg-main);
}

/* --- V6 New Styles --- */

/* "Who Am I" AI Bubble Trigger */
.bio-assistant-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0d0d0d;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.bio-assistant-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.bio-assistant-bubble::after {
    /* Status Dot */
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    /* Green online status */
    border-radius: 50%;
    border: 2px solid #000;
}

/* Bio Content Popover (Chat Window Style) */
.bio-popover {
    position: fixed;
    bottom: 7rem;
    /* Above the bubble */
    right: 2rem;
    width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--logo-gold);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    z-index: 1999;

    /* Animation State */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Internal styling */
    backdrop-filter: blur(20px);
}

.bio-popover.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.bio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

.bio-header h3 {
    font-size: 1.25rem;
    color: var(--logo-gold);
}

.close-bio {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.close-bio:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .bio-popover {
        right: 1rem;
        width: calc(100% - 2rem);
    }
}

/* V7 Quote Form Styles */
.quote-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .quote-form-container {
        padding: 1.5rem;
    }
}

/* V8 Plugins Toggle Styles */
.plugins-container {
    margin-bottom: 1.5rem;
}

.plugins-toggle {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0;
    transition: color 0.3s ease;
}

.plugins-toggle:hover {
    color: var(--logo-gold);
    text-decoration: underline;
}

.plugins-list {
    display: none;
    /* Hidden by default */
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 8px;
}

.plugins-list.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.plugins-list li {
    margin-bottom: 0.2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* V8.1: Disable Plugin Toggles temporarily */
.plugins-toggle {
    pointer-events: none !important;
    opacity: 0.5;
    cursor: default;
}
/* Footer Legal Links */
.footer-legal-links {
    margin-top: 1rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: var(--text-muted);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-legal-links a:hover {
    opacity: 1;
    color: var(--text-main);
    text-decoration: underline;
}

/* --- V13 PRO POLISH --- */

/* 1. Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a; 
}
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
    border: 1px solid #000;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary); 
}

/* 2. Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #050505;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.loader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--logo-gold);
    animation: fadePulse 2s infinite ease-in-out;
}
.loader-bar {
    width: 150px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.loader-bar::after {
    content: '';
    display: block;
    width: 50%;
    height: 100%;
    background: var(--accent-primary);
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.5; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}
@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* 3. Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    animation: bounce 2s infinite;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.wheel {
    width: 3px;
    height: 6px;
    background: var(--logo-gold);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}
.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}
@keyframes scrollWheel {
    0% {opacity: 1; transform: translateY(0);}
    100% {opacity: 0; transform: translateY(12px);}
}

/* --- V14 TRUST & AUTHORITY --- */

/* Testimonials */
.testimonials {
    padding: var(--section-gap) 0;
    background: transparent;
    text-align: center;
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    max-width: 350px;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.testimonial-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
}

.client-details h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.client-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-section {
    padding: var(--section-gap) 0;
    max-width: 800px; /* Narrower for reading */
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.accordion-item.active {
    border-color: var(--logo-gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.accordion-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
}

.accordion-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
    background: rgba(0,0,0,0.2);
}

.accordion-content p {
    padding: 1.5rem 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Mobile Centering Fixes */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
        text-align: center; /* Force center alignment */
    }
    
    .section-title {
        margin-left: auto;
        margin-right: auto;
    }

    .services-grid, .store-grid, .testimonials-grid {
        justify-content: center;
    }

    /* Ensure cards don't overflow or stick to left */
    .service-card, .product-card, .testimonial-card {
        margin: 0 auto; 
        max-width: 100%; /* Better adaptation */
    }

    .contact-layout {
        text-align: center;
    }
    
    .info-item {
        justify-content: center; /* Center contact icons */
    }

    /* Fix potential bio bubble overlap on small screens */
    .bio-assistant-bubble {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}
