:root {
    --hwdm-bg: #000000;
    --hwdm-primary: #A020F0; /* Cyber Purple */
    --hwdm-secondary: #00FFFF; /* Neon Cyan */
    --hwdm-text: #FFFFFF;
    
    /* Dynamic mapped user color (Default Cyber Purple) */
    --neon-glow: #A020F0;
    --neon-accent: #00FFFF;
}

body {
    background-color: var(--hwdm-bg);
    color: var(--hwdm-text);
    overflow-x: hidden;
}

/* Header */
.hwdm-header {
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(160, 32, 240, 0.2);
}

.brand-link {
    text-decoration: none;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    background: linear-gradient(45deg, var(--neon-accent), #fff 50%, var(--neon-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* Hero Section */
.hwdm-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem 2rem;
    overflow: hidden;
}

.chrono-trace-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(160,32,240,0.1) 50%, rgba(0,0,0,1) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(0,255,255,0.05) 21px, transparent 22px);
    z-index: -1;
    animation: traceMove 10s linear infinite;
}

@keyframes traceMove {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 0, 0 100vh; }
}

.hwdm-hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.hero-banner {
    width: 300px;
    max-width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    border: 2px solid var(--neon-accent);
}

.hero-aura {
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    background: var(--neon-glow);
    filter: blur(30px);
    opacity: 0.6;
    z-index: 1;
    border-radius: 30px;
    animation: aura-breathe 4s ease-in-out infinite alternate;
}

@keyframes aura-breathe {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.05); opacity: 0.8; }
}

.hwdm-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--neon-accent);
}

.hwdm-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hwdm-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hwdm-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hwdm-btn.primary {
    background: var(--neon-glow);
    color: #fff;
    box-shadow: 0 0 20px var(--neon-glow);
}

.hwdm-btn.primary:hover {
    box-shadow: 0 0 40px var(--neon-glow);
    transform: translateY(-2px);
}

.hwdm-btn.secondary {
    background: transparent;
    color: var(--neon-accent);
    border: 1px solid var(--neon-accent);
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.hwdm-btn.secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.2), 0 0 20px rgba(0, 255, 255, 0.2);
}

/* Sections */
.hwdm-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hwdm-section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--neon-accent);
    text-shadow: 0 0 10px var(--neon-accent);
}

/* Glassmorphism Grids */
.hwdm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(160, 32, 240, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-glow);
    box-shadow: 0 10px 30px rgba(160, 32, 240, 0.2);
}

.glass-card h3 {
    color: var(--neon-accent);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Gallery Grid */
.hwdm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    background: linear-gradient(180deg, rgba(30,30,30,0.8) 0%, rgba(10,10,10,0.8) 100%);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.gallery-card:hover {
    box-shadow: 0 0 20px var(--neon-accent);
}

.gallery-card h4 {
    color: #fff;
    margin-top: 0;
}

/* Tech Specs */
.tech-specs-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.tech-specs-list li {
    background: rgba(0, 0, 0, 0.8);
    border-left: 4px solid var(--neon-glow);
    padding: 1rem;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Footer */
.hwdm-footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid rgba(160, 32, 240, 0.2);
    margin-top: 4rem;
}

.footer-link {
    color: var(--hwdm-text);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--neon-glow);
}

@media (max-width: 768px) {
    .hwdm-hero {
        padding: 6rem 1rem 2rem 1rem;
    }
    .hwdm-title {
        font-size: 2rem;
    }
    .hwdm-section {
        padding: 3rem 1rem;
    }

    .customizer-panel {
        transform: translateY(-50%) translateX(100%) !important;
    }
    .customizer-panel.active {
        transform: translateY(-50%) translateX(0) !important;
    }
    .close-customizer-btn {
        display: block;
    }
    .customizer-backdrop.active {
        display: block;
    }
}

/* Customizer Mobile Fixes */
.customizer-panel {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.close-customizer-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 10px var(--neon-glow);
    transition: transform 0.2s ease, text-shadow 0.2s ease;
    padding: 0;
    line-height: 1;
    z-index: 502;
}

.close-customizer-btn:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px var(--neon-glow), 0 0 40px var(--neon-glow);
}

.customizer-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    z-index: 499;
}
