/* 
  Kaizen No Shinobi — Visual System
  Artistic Direction: Subtle, refined shinobi aesthetic
  Palette: Deep slate, muted bronze, desaturated crimson
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
  --bg-dark: #06060a;
  --bg-nebula: #0b0c10;
  --accent-bronze: #b88746;
  --accent-bronze-glow: rgba(184, 135, 70, 0.12);
  --accent-crimson: #8a2e2e;
  --accent-crimson-glow: rgba(138, 46, 46, 0.08);
  --accent-muted: #6b7280;

  --text-main: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255,255,255,0.45);

  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: 18px;

  --section-padding: clamp(3rem, 8vw, 6rem);
  --container-max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-family: 'Outfit', sans-serif; background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* Typography */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; font-weight:700; line-height:1.05; }
p, span, li, a { font-family: 'Outfit', sans-serif; font-weight: 300; }

.text-gradient { background: linear-gradient(120deg, var(--accent-bronze), #fff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
section { padding: var(--section-padding) 0; position: relative; }

/* Navbar */
.nav-bar { position: fixed; top:0; left:0; width:100%; height:72px; z-index:1000; display:flex; align-items:center; transition: all .28s ease; border-bottom:1px solid transparent; }
.nav-bar.scrolled { background: rgba(6,6,10,0.72); backdrop-filter: blur(var(--glass-blur)); height:64px; border-bottom:1px solid var(--glass-border); }
.nav-inner { display:flex; justify-content:space-between; align-items:center; width:100%; }
.nav-logo { height:44px; transition: transform .22s ease; }
.nav-logo img{ height:44px; }
.nav-logo:hover { transform: translateY(-2px); }
.nav-links { display:flex; gap:1.5rem; list-style:none; align-items:center; }
.nav-link { color:var(--text-dim); text-decoration:none; font-weight:600; font-size:0.95rem; letter-spacing:0.02em; transition: color .22s ease, transform .22s ease; }
.nav-link:hover, .nav-link.active { color:var(--accent-bronze); transform: translateY(-2px); }
.nav-toggle { display:none; background:transparent; border:none; color:var(--text-main); font-size:1.2rem; cursor:pointer; }

/* Hero */
.hero { min-height: calc(100vh - 72px); display:flex; align-items:center; justify-content:center; text-align:center; overflow:hidden; position:relative; background: radial-gradient(circle at center, var(--bg-nebula) 0%, var(--bg-dark) 100%); }

/* Cinematic background image layer (very subtle) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/background.png');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.12;
  filter: contrast(0.9) brightness(0.45) saturate(0.85);
  transform: translateZ(0);
  z-index: 0;
  will-change: transform, opacity;
}

/* Dark cinematic overlay for depth and readable CTAs */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,10,0.45) 0%, rgba(6,6,10,0.65) 40%, rgba(6,6,10,0.82) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content { z-index:2; max-width:880px; padding: 2rem 1rem; }
.hero-logo-main { width:100%; max-width:520px; margin-bottom:1.6rem; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
.hero-tagline { font-size: clamp(0.95rem, 2.6vw, 1.25rem); color: var(--text-dim); margin-bottom:1.8rem; letter-spacing:0.06em; }

/* Emphasize CTA and spacing on hero */
.hero-actions { display:flex; gap:1.25rem; justify-content:center; align-items:center; }
.hero .btn-primary { padding: 0.95rem 1.8rem; font-size: 0.98rem; }

@media (max-width: 768px) {
  .hero::before { opacity: 0.06; background-position: center 20%; }
  .hero::after { background: linear-gradient(180deg, rgba(6,6,10,0.55) 0%, rgba(6,6,10,0.85) 100%); }
  .hero-content { padding: 1rem; }
  .hero-logo-main { max-width: 320px; }
}

.btn-primary { display:inline-block; padding:0.9rem 1.6rem; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12)); color:var(--text-main); text-decoration:none; font-weight:700; border-radius:10px; box-shadow:0 8px 18px rgba(0,0,0,0.58), 0 2px 0 rgba(184,135,70,0.06) inset; transition: transform .22s ease, box-shadow .22s ease; border:1px solid rgba(255,255,255,0.03); }
.btn-primary:hover { transform: translateY(-4px); box-shadow:0 14px 30px rgba(0,0,0,0.6); }
.btn-outline { background:transparent; border:1px solid rgba(184,135,70,0.12); color:var(--accent-bronze); }

/* Features grid */
.features-grid { display:grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 330px); gap:1.25rem; margin-top:2.5rem; }
.feature-card { background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.08)); border:1px solid var(--glass-border); backdrop-filter: blur(calc(var(--glass-blur) - 6px)); border-radius:16px; overflow:hidden; position:relative; transition: transform .32s ease, box-shadow .32s ease; }
.feature-card:hover { transform: translateY(-8px); border-color: rgba(184,135,70,0.12); box-shadow: 0 18px 40px rgba(3,6,12,0.6); }
.feature-1{ grid-column: span 8; } .feature-2{ grid-column: span 4; } .feature-3{ grid-column: span 4; } .feature-4{ grid-column: span 8; }
.feature-image{ width:100%; height:100%; object-fit:cover; position:absolute; top:0; left:0; z-index:0; opacity:0.7; transition: transform .8s ease, opacity .4s ease; }
.feature-card:hover .feature-image{ transform: scale(1.06); opacity:0.9; }
.feature-content{ position:relative; z-index:1; padding:2rem; height:100%; display:flex; flex-direction:column; justify-content:flex-end; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); }
.feature-card h3{ font-size:1.6rem; margin-bottom:0.4rem; color:var(--accent-bronze); }
.feature-card p{ font-size:1rem; color:var(--text-dim); }

/* Story */
.story-box{ background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.06)); border:1px solid var(--glass-border); backdrop-filter: blur(calc(var(--glass-blur) - 6px)); padding:3rem; border-radius:20px; margin-top:2.5rem; position:relative; overflow:hidden; }
.story-box::before{ content:''; position:absolute; top:-60%; left:-60%; width:180%; height:180%; background: radial-gradient(circle, var(--accent-bronze-glow) 0%, transparent 60%); z-index:-1; animation: drift 30s linear infinite; }
@keyframes drift { from{ transform: rotate(0deg); } to{ transform: rotate(360deg);} }
.story-content{ max-width:800px; margin:0 auto; }
.story-content h2{ font-size: clamp(1.6rem, 4.5vw, 2.8rem); margin-bottom:1.5rem; text-align:center; }
.story-content p{ font-size:1.03rem; color:var(--text-dim); margin-bottom:1.25rem; text-align:justify; }

/* Gallery */
.gallery-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap:1rem; margin-top:2.5rem; }
.gallery-item{ aspect-ratio:16/9; border-radius:12px; overflow:hidden; border:1px solid var(--glass-border); cursor:pointer; position:relative; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item::after{ content:''; position:absolute; inset:0; background: radial-gradient(circle, transparent 0%, rgba(0,0,0,0.48) 100%); opacity:0; transition: opacity .28s ease; }
.gallery-item:hover::after{ opacity:1; }

/* Footer */
footer{ padding:3rem 0; background: linear-gradient(180deg,#000,#050506); border-top:1px solid var(--glass-border); text-align:center; }
.footer-socials{ display:flex; justify-content:center; gap:1.25rem; margin-bottom:1.75rem; }
.social-link{ color:var(--text-dim); font-size:1rem; transition: color .22s ease, transform .22s ease; text-decoration:none; padding:0.25rem 0.5rem; border-radius:6px; }
.social-link:hover{ color:var(--accent-bronze); transform: translateY(-2px); }
.copyright{ color: rgba(255,255,255,0.32); font-size:0.9rem; letter-spacing:0.08em; }

.reveal{ opacity:0; transform: translateY(30px); transition: all 1s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible{ opacity:1; transform: translateY(0); }

/* Responsive adjustments */
@media (max-width:900px){ .features-grid{ grid-template-rows:none; grid-template-columns: repeat(6,1fr); } }
@media (max-width:768px){ .nav-links{ display:none; position:absolute; top:72px; right:1rem; background: rgba(6,6,10,0.95); padding:1rem; border-radius:12px; flex-direction:column; gap:0.5rem; min-width:200px; } .nav-toggle{ display:block; } .hero{ padding:2rem 0; } .hero-logo-main{ max-width:320px; } .story-box{ padding:1.25rem; } }
