/* ==========================================================================
   Web Flower - Design System & Modern Stylesheet
   Theme: Modern & Stylish (Dark Elegance with Organic Neon & Glassmorphism)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
  /* Color Tokens */
  --bg-primary: #0b0f12;
  --bg-secondary: #12181d;
  --bg-card: rgba(22, 30, 36, 0.65);
  --bg-card-hover: rgba(28, 38, 46, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(16, 185, 129, 0.3);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;

  --accent-emerald: #10b981;
  --accent-mint: #34d399;
  --accent-cyan: #06b6d4;
  --accent-rose: #fb7185;
  --accent-gold: #f59e0b;

  --gradient-brand: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --gradient-accent: linear-gradient(135deg, #34d399 0%, #fb7185 100%);
  --gradient-glow: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0, 0, 0, 0) 70%);

  /* Typography */
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Plus Jakarta Sans', 'Zen Kaku Gothic New', sans-serif;

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);

  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(16, 185, 129, 0.4);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dark: #f8fafc;

  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.15);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Ambient Glows */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.glow-1 { top: -200px; left: -100px; opacity: 0.8; }
.glow-2 { bottom: -200px; right: -100px; opacity: 0.6; }

/* Container & Grid */
.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.serif-title {
  font-family: var(--font-serif);
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent-mint);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .section-title { font-size: 1.85rem; }
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 48px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 12px 0;
  background: rgba(11, 15, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

[data-theme="light"] header.scrolled {
  background: rgba(248, 250, 252, 0.85);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--accent-mint);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 140px 0 60px; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--accent-mint);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.3rem; }
}

.hero-title span {
  display: block;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--accent-mint);
  font-weight: 800;
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.hero-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s ease;
}

.hero-img-wrapper:hover img {
  transform: scale(1.03);
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(18, 24, 29, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .floating-badge {
  background: rgba(255, 255, 255, 0.9);
}

.floating-badge i {
  font-size: 1.8rem;
  color: var(--accent-emerald);
}

.floating-badge strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
}

.floating-badge span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sections Common Padding */
.section {
  padding: 100px 0;
}

/* Strengths Section */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.strength-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.strength-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--transition-smooth);
}

.strength-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card);
}

.strength-card:hover::before {
  opacity: 1;
}

.strength-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  border: 1px solid var(--border-accent);
}

.strength-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.strength-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-glow);
}

.service-tag {
  align-self: flex-start;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 32px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.service-features li i {
  color: var(--accent-mint);
}

/* Portfolio / Works Filter */
.works-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-mint);
}

/* Portfolio Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .works-grid { grid-template-columns: 1fr; }
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card);
}

.work-img-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.work-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-card:hover .work-img-wrapper img {
  transform: scale(1.06);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 18, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-content {
  padding: 28px;
}

.work-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-mint);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.work-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.work-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.work-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.work-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Modal Popup for Work Detail */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-card);
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: var(--accent-rose);
  color: #fff;
}

.modal-body img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  position: relative;
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .price-card.featured { transform: none; }
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.price-header h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-mint);
  margin: 20px 0 8px;
}

.price-amount span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.price-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.price-features li i {
  color: var(--accent-mint);
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

@media (max-width: 992px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .process-grid { grid-template-columns: 1fr; }
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  opacity: 0.8;
}

.process-step h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(16px);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border-accent);
}

.info-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.info-text p, .info-text a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.info-text a:hover {
  color: var(--accent-mint);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(16px);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

[data-theme="light"] .form-control {
  background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-emerald);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-secondary);
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}
