/* 
 * Yamatoro-ya Official Website Styles
 * 2025 Trend: Bento UI, Dark Mode, Neo-morphism/Glassmorphism, Liquid Motion
 */

:root {
  /* Colors */
  --bg-color: #050505;
  /* Deeper dark */
  --bg-gradient: radial-gradient(circle at 50% 50%, #11111a 0%, #050505 100%);
  --text-main: #e0e0e0;
  --text-sub: #a0a0a0;
  --accent-cyan: #00f2ff;
  --accent-lime: #ccff00;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 16px;
  --card-radius: 24px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-base: 'Noto Sans JP', sans-serif;
  --font-english: 'Outfit', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: var(--font-english);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 60px;
  text-align: center;
  /* Text Gradient */
  background: linear-gradient(90deg, var(--accent-cyan), var(--text-main));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.blur-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Canvas Background */
#liquid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Behind content */
  pointer-events: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  background: rgba(13, 13, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo a {
  font-family: var(--font-english);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-sub);
  letter-spacing: 0.1em;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-english);
  font-size: 1rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.contact-btn {
  padding: 8px 20px;
  border: 1px solid var(--accent-cyan);
  border-radius: 50px;
  color: var(--accent-cyan);
}

.contact-btn:hover,
.contact-btn::after {
  /* Override hover effect for button */
  background: var(--accent-cyan);
  color: #000;
  width: auto;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  position: absolute;
  transition: .3s;
}

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}

.mobile-menu-btn span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
  bottom: 0;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 3;
}

.hero-title {
  font-family: var(--font-base);
  /* Japanese font works better for catch copy */
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff 0%, var(--text-sub) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-english);
  font-size: 1.2rem;
  color: var(--accent-cyan);
  letter-spacing: 0.2em;
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-english);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text-main);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-english);
  font-size: 0.9rem;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bento Grid (Works) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 20px;
}

.bento-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-item:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-cyan);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-medium {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-small {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-centered {
  grid-column: 2 / 4;
}

/* Bento Content */
.bento-content {
  z-index: 2;
  position: relative;
}

.bento-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
  transition: opacity 0.4s;
}

.bento-item:hover .bento-bg {
  opacity: 0.3;
}

.bento-category {
  font-size: 0.8rem;
  color: var(--accent-lime);
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-english);
}

.bento-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.bento-desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 15px;
  display: none;
  /* Show only on large or hover if desired, tailored here */
}

.bento-large .bento-desc {
  display: block;
}

.bento-tech span {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-right: 5px;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-profile,
.about-skills,
.service-item,
.contact-wrapper {
  padding: 40px;
}

.about-profile h3,
.about-skills h3,
.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.skill-tag:hover {
  border-color: var(--accent-lime);
  background: rgba(204, 255, 0, 0.1);
}

/* Service */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-lime);
  margin-bottom: 20px;
}

/* Contact Form */
.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-base);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 255, 0.05);
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--accent-cyan);
  color: #000;
  font-size: 1.1rem;
}

.sns-links {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.sns-links a {
  font-size: 2rem;
  color: var(--text-sub);
}

.sns-links a:hover {
  color: var(--text-main);
  transform: scale(1.1);
}

/* Footer */
.footer {
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-sub);
  border-top: 1px solid var(--glass-border);
  background: #0d0d12;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content {
  width: 90%;
  max-width: 600px;
  padding: 40px;
  position: relative;
  background: #1a1a2e;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
    height: 300px;
  }

  .bento-medium {
    grid-column: span 1;
    grid-row: span 1;
    height: 300px;
  }

  .bento-small {
    grid-column: span 1;
    grid-row: span 1;
    height: 300px;
  }

  .about-grid,
  .service-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    /* Fullscreen on mobile */
    height: 100vh;
    background: rgba(13, 13, 18, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 99;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large,
  .bento-medium,
  .bento-small {
    grid-column: span 1;
  }
}