/* =========================
HIFUMI GARAGE SYSTEM
90s OVA × VMAX × VTUBER
========================= */

:root{

--main-red:#d10f2f;
--sub-red:#8a0015;

--silver:#c8c8c8;

--bg-dark:#0b0b0b;
--panel:#161616;

--white:#ffffff;

}

/* =========================
RESET
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{

font-family:
'Noto Sans JP',
sans-serif;

background:#080808;

color:white;

overflow-x:hidden;

line-height:1.8;

}

/* =========================
LOADING
========================= */

#loading-screen{

position:fixed;

inset:0;

background:black;

z-index:9999;

display:flex;

justify-content:center;
align-items:center;

transition:1s;

}

.loading-content{

text-align:center;

color:var(--main-red);

}

.loading-logo{

font-size:2rem;

font-weight:900;

letter-spacing:.15em;

margin-bottom:20px;

}

#loading-text{

color:var(--silver);

letter-spacing:.1em;

}

/* =========================
WEATHER
========================= */

.weather-widget{

position:fixed;

top:95px;
right:20px;

width:220px;

background:rgba(0,0,0,.82);

backdrop-filter:blur(12px);

border:1px solid var(--main-red);

border-radius:8px;

padding:15px;

z-index:500;

}

.weather-title{

color:var(--main-red);

font-size:.75rem;

letter-spacing:.25em;

margin-bottom:10px;

}

#weather-temp{

font-size:2rem;

font-weight:bold;

}

#weather-desc{

color:var(--silver);

}

/* =========================
HEADER
========================= */

header{

position:fixed;

top:0;
left:0;

width:100%;

z-index:1000;

display:flex;

justify-content:space-between;
align-items:center;

padding:20px 50px;

background:rgba(0,0,0,.85);

backdrop-filter:blur(10px);

border-bottom:1px solid #222;

}

.logo{

font-size:1.8rem;

font-weight:900;

color:var(--main-red);

text-shadow:
    0 0 10px rgba(255,0,0,.5);

}

nav{

display:flex;

gap:25px;

}

nav a{

color:white;

text-decoration:none;

font-size:.95rem;

transition:.3s;

}

nav a:hover{

color:var(--main-red);

}

/* =========================
HERO
========================= */

.hero{

position:relative;

min-height:100vh;

background:
linear-gradient(
rgba(0,0,0,.55),
rgba(0,0,0,.75)
),
url("img/hero.jpg");

background-size:cover;
background-position:center;

display:flex;

justify-content:center;
align-items:center;

text-align:center;

}

.hero-content{

position:relative;

z-index:2;

}

.hero-tag{

color:var(--silver);

letter-spacing:.35em;

margin-bottom:15px;

}

.hero h1{

font-size:6rem;

font-weight:900;

color:white;

text-shadow:
0 0 15px rgba(255,0,0,.35);

}

.hero-catch{

margin-top:20px;

font-size:1.4rem;

}

/* =========================
SOCIAL
========================= */

.social-buttons{

margin-top:40px;

}

.social-buttons a,
.social-buttons span{

display:inline-block;

padding:12px 24px;

margin:0 8px;

background:var(--main-red);

color:white;

text-decoration:none;

border-radius:4px;

transition:.3s;

}

.social-buttons a:hover{

transform:translateY(-3px);

background:#ff2345;

}

/* =========================
SECTION
========================= */

section{

max-width:1200px;

margin:auto;

padding:120px 20px;

}

h2{

color:var(--main-red);

margin-bottom:35px;

border-left:5px solid var(--main-red);

padding-left:15px;

letter-spacing:.05em;

}

/* =========================
PANEL
========================= */

.panel{

background:var(--panel);

border:1px solid #333;

border-radius:12px;

padding:30px;

box-shadow:
0 0 20px rgba(255,0,0,.08);

}

/* =========================
PROFILE
========================= */

.profile-image{

width:280px;

max-width:100%;

border-radius:12px;

}

.profile-data{

margin-top:20px;

}

/* =========================
MACHINE
========================= */

.machine-card{

display:grid;

grid-template-columns:
400px 1fr;

gap:30px;

background:var(--panel);

border:1px solid #333;

border-radius:12px;

padding:30px;

}

.machine-card img{

width:100%;

border-radius:10px;

}

.machine-card h3{

color:var(--main-red);

margin-bottom:20px;

font-size:2rem;

}

.machine-card ul{

list-style:none;

}

.machine-card li{

padding:10px 0;

border-bottom:1px solid #2a2a2a;

}

/* =========================
VIDEO
========================= */

.video-grid{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(300px,1fr));

gap:20px;

}

.video-grid iframe{

width:100%;

aspect-ratio:16/9;

border:none;

border-radius:10px;

}

/* =========================
GALLERY
========================= */

.gallery-grid{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(250px,1fr));

gap:20px;

}

.gallery-grid img{

width:100%;

border-radius:10px;

transition:.3s;

}

.gallery-grid img:hover{

transform:scale(1.03);

}

/* =========================
CONTACT
========================= */

.contact-button{

display:inline-block;

margin-top:20px;

padding:14px 28px;

background:var(--main-red);

color:white;

text-decoration:none;

border-radius:5px;

transition:.3s;

}

.contact-button:hover{

background:#ff2040;

}

/* =========================
FOOTER
========================= */

footer{

padding:60px 20px;

text-align:center;

border-top:1px solid #222;

}

.footer-logo{

color:var(--main-red);

font-weight:900;

margin-bottom:10px;

}

/* =========================
RESPONSIVE
========================= */

@media(max-width:900px){

.machine-card{

    grid-template-columns:1fr;
}

.hero h1{

    font-size:4rem;
}

}

@media(max-width:768px){

header{

    flex-direction:column;

    gap:15px;
}

nav{

    flex-wrap:wrap;

    justify-content:center;
}

.hero h1{

    font-size:3rem;
}

.weather-widget{

    position:static;

    width:100%;

    margin:20px auto;
}

}

@media(max-width:480px){

.hero h1{

    font-size:2.4rem;
}

.hero-catch{

    font-size:1rem;
}

}
/* ==========================
FADE IN
========================== */

.fade-in{

opacity:0;

transform:translateY(40px);

transition:
    opacity .8s ease,
    transform .8s ease;

}

.fade-in-show{

opacity:1;

transform:translateY(0);

}

/* ==========================
ACTIVE NAV
========================== */

nav a.active{

color:var(--main-red);

text-shadow:
0 0 8px rgba(255,0,0,.6);

}


/* =========================
PLACEHOLDERS / STATES
========================= */

.placeholder-box{
min-height:220px;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
background:linear-gradient(135deg, rgba(209,15,47,.14), rgba(255,255,255,.04));
border:1px dashed rgba(209,15,47,.6);
border-radius:10px;
color:var(--silver);
padding:24px;
}

.video-placeholder{
aspect-ratio:16/9;
min-height:auto;
}

.is-disabled{
opacity:.62;
cursor:not-allowed;
filter:saturate(.55);
}

.weather-button{
margin-top:12px;
width:100%;
padding:9px 10px;
background:var(--main-red);
color:var(--white);
border:0;
border-radius:4px;
font:inherit;
font-weight:700;
letter-spacing:.08em;
cursor:pointer;
transition:.3s;
}

.weather-button:hover{
background:#ff2345;
}


/* =========================
LATEST MOVIES
========================= */

.movies-fallback{
margin-top:18px;
text-align:right;
}

.movies-fallback a{
color:var(--silver);
text-decoration:none;
border-bottom:1px solid rgba(200,200,200,.55);
transition:.3s;
}

.movies-fallback a:hover{
color:var(--main-red);
border-color:var(--main-red);
}

.video-grid.is-loading{
opacity:.82;
}

/* =========================
LOGO IMAGES
========================= */

.logo{
display:flex;
align-items:center;
}

.header-logo-image{
display:block;
width:auto;
height:54px;
max-width:240px;
object-fit:contain;
filter:drop-shadow(0 0 10px rgba(255,0,0,.45));
}

.hero-logo-title{
margin:0;
line-height:1;
}

.hero-logo-image{
display:block;
width:min(680px, 88vw);
height:auto;
margin:0 auto;
filter:drop-shadow(0 0 18px rgba(255,0,0,.38));
}

@media(max-width:768px){

.header-logo-image{
    height:44px;
    max-width:220px;
}

.hero-logo-image{
    width:min(520px, 92vw);
}

}

@media(max-width:480px){

.header-logo-image{
    height:38px;
    max-width:190px;
}

.hero-logo-image{
    width:min(360px, 94vw);
}

}

/* =========================
VIDEO CARDS
========================= */

.video-card{
display:flex;
flex-direction:column;
min-height:100%;
background:var(--panel);
border:1px solid #333;
border-radius:10px;
overflow:hidden;
color:var(--white);
text-decoration:none;
transition:.3s;
}

.video-card:hover{
transform:translateY(-3px);
border-color:var(--main-red);
box-shadow:0 0 20px rgba(255,0,0,.12);
}

.video-thumb{
width:100%;
aspect-ratio:16/9;
object-fit:cover;
background:#111;
}

.video-title{
display:block;
padding:14px 14px 8px;
font-weight:700;
line-height:1.55;
}

.video-link-label{
display:block;
margin-top:auto;
padding:0 14px 14px;
color:var(--main-red);
font-size:.9rem;
font-weight:700;
}

/* =========================
SUPPORT
========================= */

.support-panel{
text-align:center;
}

.support-button{
display:inline-block;
margin-top:20px;
padding:14px 28px;
background:var(--main-red);
color:var(--white);
text-decoration:none;
border-radius:5px;
font-weight:700;
transition:.3s;
}

.support-button:hover{
transform:translateY(-3px);
background:#ff2040;
box-shadow:0 0 20px rgba(255,0,0,.14);
}

/* =========================
SHOP
========================= */

.shop-panel{
text-align:center;
}

.shop-button{
display:inline-block;
margin-top:20px;
padding:14px 28px;
background:var(--main-red);
color:var(--white);
text-decoration:none;
border-radius:5px;
font-weight:700;
transition:.3s;
}

.shop-button:hover{
transform:translateY(-3px);
background:#ff2040;
box-shadow:0 0 20px rgba(255,0,0,.14);
}
