/* Reusable UI Components to reduce HTML utility duplicates */

/* Premium interactive HUD panels (glassmorphism & depth) */
.hud-panel {
    position: relative;
    background-color: rgba(26, 31, 46, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: 8px; /* Rounder for premium feel */
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hud-panel:hover {
    background-color: rgba(26, 31, 46, 0.7);
    box-shadow: 0 20px 50px -12px rgba(0, 119, 230, 0.08), 0 12px 40px -12px rgba(0, 0, 0, 0.6);
    transform: translateY(-4px); /* Subtle premium vertical shift */
}

/* Panel Titles */
.hud-panel-title {
    font-family: 'Montserrat', 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: #0077E6; /* Bleu MAHAVELO */
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0;
}

/* Subtitles/labels */
.panel-subtitle {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #59C13D; /* Vert MAHAVELO */
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Section titles with strong hierarchy */
.section-title {
    font-family: 'Montserrat', 'Space Grotesk', sans-serif;
    font-size: 2.25rem; /* text-4xl */
    color: #F5F5F7;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.75rem; /* text-6xl */
    }
}

/* Section subtitles */
.section-subtitle {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 0.75rem; /* text-xs */
    color: #59C13D; /* Vert MAHAVELO */
    letter-spacing: 0.2em;
    display: block;
    text-transform: uppercase;
    font-weight: 600;
}

/* Custom premium buttons */
.btn-primary {
    background-color: #0077E6; /* Bleu MAHAVELO */
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover {
    background-color: rgba(0, 119, 230, 0.9);
}

.btn-secondary {
    background-color: #59C13D; /* secondary */
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-secondary:hover {
    background-color: rgba(89, 193, 61, 0.9);
}

/* Dynamic Header & Aside Light Theme Adapters */
header.header-light {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.08) !important;
}

header.header-light #header-logo-text {
    color: #0077E6 !important;
}

header.header-light nav a {
    color: #2D3748 !important;
}

header.header-light nav a:hover {
    color: #0077E6 !important;
}

header.header-light #accessible-toggle {
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #2D3748 !important;
}

header.header-light #accessible-toggle:hover {
    color: #0077E6 !important;
    border-color: rgba(0, 119, 230, 0.5) !important;
}

header.header-light #header-cta-btn {
    background-color: #0077E6 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(0, 119, 230, 0.35) !important;
    border: none !important;
}

header.header-light #header-cta-btn:hover {
    background-color: #005bb5 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

aside.aside-light {
    background-color: rgba(255, 255, 255, 0.75) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05) !important;
}

aside.aside-light .nav-dot {
    color: #3C3C3C !important;
}

aside.aside-light .nav-dot:hover,
aside.aside-light .nav-dot.bg-primary\/20 {
    color: #0077E6 !important;
    background-color: rgba(0, 119, 230, 0.08) !important;
}

aside.aside-light p {
    color: #3C3C3C !important;
}

#projects-grid {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
#projects-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
