/* --- HERO: Concept Image Inspired --- */
#hero-section {
    height: 100vh;
    background: linear-gradient(180deg, #5c0a0a 0%, var(--bg-deep) 100%);
    display: flex; align-items: center; justify-content: center; text-align: center;
}
#hero-section h1 { font-size: clamp(50px, 9vw, 110px); font-weight: 800; letter-spacing: 2px; }
#hero-section h2 { font-family: 'Noto Sans JP'; color: var(--text-dim); font-size: 35px; margin-top: -10px; }

.hero-subtext { font-size: 14px; letter-spacing: 4px; color: var(--accent-red); margin-top: 20px; font-weight: 700; text-transform: uppercase; }
.pcb-trace {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* background-image: url("../source/images/HeroPCB.svg"); -- Using inline SVG now */
    pointer-events: none;
    z-index: 1;

    /* Documentation for colors moved to DOCUMENTATION.md */
    
    --mask-idle: radial-gradient(circle at 50% 50%, transparent 25%, rgba(0, 0, 0, 1) 85%);
    --mask-spotlight: radial-gradient(circle at var(--mouse-x, -100%) var(--mouse-y, -100%), black 0%, transparent 35%);
    
    mask-image: var(--mask-spotlight), var(--mask-idle);
    -webkit-mask-image: var(--mask-spotlight), var(--mask-idle);
    
    mask-composite: source-over;
    -webkit-mask-composite: source-over;
    
    transition: opacity 0.5s ease;
}

.pcb-trace svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Individual path and circle styling */
.pcb-paths-group path, 
.pcb-paths-group circle {
    transition: stroke 0.8s ease, stroke-width 0.8s ease, fill 0.8s ease, filter 0.8s ease;
    stroke: rgba(255, 255, 255, 0.35); /* Visible non-active traces */
}

.pcb-paths-group circle {
    fill: rgba(255, 255, 255, 0.35); /* Visible non-active dots */
    stroke: none;
}

/* The pulse highlight effect applied to the unit */
.pcb-unit.active-pulse path {
    stroke: var(--accent-red);
    stroke-width: 3;
    filter: drop-shadow(0 0 8px var(--accent-red));
}

.pcb-unit.active-pulse circle {
    fill: var(--accent-red);
    filter: drop-shadow(0 0 8px var(--accent-red));
}

/* --- BUTTONS: Modern Soft-Tech --- */
.btn-main {
    display: inline-block; padding: 15px 45px; border-radius: 50px;
    background: var(--text-main); color: var(--bg-deep);
    text-decoration: none; font-weight: 700; margin-top: 35px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-main:hover { transform: translateY(-3px); background: var(--accent-red); color: white; box-shadow: 0 10px 25px rgba(204, 0, 0, 0.3); }

/* --- PRODUCTS: Grid with Labels --- */
#projects-section { background: var(--bg-panel); }
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px; margin-top: 50px;
}
.product-card {
    background: var(--bg-highlight); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 40px; transition: 0.4s; position: relative;
}
.product-card:hover { border-color: var(--accent-red); transform: translateY(-10px); }
.product-label {
    position: absolute; top: 20px; left: 40px; font-size: 10px; 
    font-weight: 800; color: var(--accent-red); opacity: 0.6;
}
.status-tag {
    position: absolute; top: 20px; right: 30px; padding: 4px 10px;
    border-radius: 5px; font-size: 9px; font-weight: 900; background: rgba(255,255,255,0.05);
}
.status-tag.active { color: #00ff88; }
.product-card h3 { margin-top: 10px; font-size: 24px; }
.product-card p { color: var(--text-dim); margin: 15px 0 25px 0; font-size: 14px; }

/* --- AIHA: Professional Layout --- */
#aiha-section { background: transparent; backdrop-filter: blur(3px);}
.aiha-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.aiha-visual-box {
    /* background: radial-gradient(circle, var(--bg-panel) 0%, transparent 70%); */
    /* overflow: scroll; */
    padding: 40px; border-radius: 40px; text-align: center;
}
.aiha-visual-box img { width: 180px; filter: drop-shadow(0 0 40px rgba(230, 22, 74, .6)); }

/* --- PARTNERS CAROUSEL: Concept Alignment --- */
#partners-section { background: var(--bg-panel); }
.carousel-wrapper {
    position: relative; height: 500px; width: 100%;
    display: flex; justify-content: center; align-items: center;
    perspective: 1200px;
}
.partner-card {
    position: absolute; width: 500px; height: 350px;
    background: var(--bg-highlight); border-radius: 25px; overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.7s cubic-bezier(0.2, 1, 0.3, 1);
    opacity: 0; left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
}
.partner-card.active { opacity: 1; transform: translate(-50%, -50%) translateZ(150px); z-index: 10; border-color: var(--accent-red); }
.partner-card.prev { opacity: 0.4; transform: translate(-125%, -50%) rotateY(25deg); z-index: 5; }
.partner-card.next { opacity: 0.4; transform: translate(25%, -50%) rotateY(-25deg); z-index: 5; }
.partner-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.partner-card.active img { opacity: 1; }

.ctrl-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: none; border: 1px solid var(--glass-border); color: white;
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer; z-index: 100;
    transition: 0.3s;
}
.ctrl-arrow:hover { background: white; color: black; }
.arr-left { left: 0; } .arr-right { right: 0; }

/* --- SOCIALS: Minimal & Clean --- */
#socials-section { background: transparent; text-align: center; backdrop-filter: blur(3px);}
.social-flex { display: flex; justify-content: center; gap: 60px; margin-top: 40px; }
.social-item {
    text-decoration: none; color: var(--text-dim); display: flex; align-items: center; gap: 15px;
    font-weight: 700; transition: 0.3s;
}
.social-item:hover { color: var(--accent-red); }
.social-item img { height: 24px; opacity: 0.6; }

@media (max-width: 900px) {
    .aiha-layout { grid-template-columns: 1fr; text-align: center; }
    .partner-card { width: 85%; }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.aiha-visual-box img {
    animation: breathe 5s infinite ease-in-out;
}

.parallax-bg {
    position: fixed;
    top: -10%; /* Extra height to allow for movement */
    left: 0;
    width: 100%;
    height: 120%; 
    background: linear-gradient(180deg, #1c1e29 0%, #12131a 100%);
    /* Replace the SVG below with your actual PCB image file */
    background-image: url("../source/images/HeroPCB.svg");
    background-size: 100%;
    filter: brightness(.6) blur(1px);
    background-attachment: scroll; /* We will move this via JS */
    z-index: -1;
    will-change: transform;
}