/* diplo Common Styles */
/* Import Inter (for Latin) and Noto Sans JP (for Japanese) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* Base typography: use Inter for English text and fall back to Noto Sans JP for Japanese */
html, body, button, input, select, textarea {
  font-family: 'Inter', 'Noto Sans JP', sans-serif !important;
  font-feature-settings: "liga" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
}

:root { 
  --accent: #00c6a7; 
}

html { 
  scroll-behavior: smooth; 
}

/* Enhanced HERO LOGO ANIMATION */
.logo {
  font-size: min(18vw, 200px);
  font-weight: 900;
  letter-spacing: .05em;
  color: var(--accent);
  opacity: 0;
  transform: scale(.6) rotateX(15deg);
  animation: logoPop 1.4s cubic-bezier(.25,.85,.25,1.2) .3s forwards;
}

.logo img {
  width: min(36vw, 400px);
  height: auto;
}

@keyframes logoPop { 
  to { 
    opacity: 1; 
    transform: scale(1) rotateX(0); 
  } 
}

/* Enhanced THUMBNAIL MOTION */
.project-card {
  perspective: 1000px;
  position: relative;
  border-radius: 12px;
  aspect-ratio: 4/3;
  height: auto;
  min-width: 0;
  min-height: 0;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 12px;
  transition: transform 1s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
}

.project-card img,
.project-card .overlay,
.project-card .title {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  border-radius: 12px;
  pointer-events: none;
}

.project-card img {
  object-fit: cover;
  z-index: 1;
  transition: none;
}

.project-card .overlay {
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  z-index: 2;
  transition: opacity 1s cubic-bezier(.25,.8,.25,1);
}

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

.project-card .title {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity 1s cubic-bezier(.25,.8,.25,1);
  padding: 10px 12px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.project-card:hover .title {
  opacity: 1;
}

/* Reveal Animation */
.reveal, .blur-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show, .blur-reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .reveal, .blur-reveal {
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
}

/* DYNAMIC HEADINGS */
.dynamic-heading {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  position: relative;
  display: inline-block;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(15px) rotateX(-10deg);
  filter: blur(2px);
  /* No automatic animation - will be triggered by scroll */
}

.dynamic-heading.animate {
  animation: headingReveal 1.2s cubic-bezier(.25,.85,.25,1) forwards;
}

@media (min-width: 768px) {
  .dynamic-heading {
    font-size: 6rem;
  }
}

.dynamic-heading.animate {
  animation-play-state: running;
}

.dynamic-heading.small {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.dynamic-heading .char {
  display: inline-block;
}

@keyframes headingReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0px);
  }
}

/* Glitch effect for headings */
.dynamic-heading::before,
.dynamic-heading::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.dynamic-heading::before {
  animation: glitch-1 2s infinite linear alternate-reverse;
  color: #ff0000;
  z-index: -1;
}

.dynamic-heading::after {
  animation: glitch-2 3s infinite linear alternate-reverse;
  color: #00ffff;
  z-index: -2;
}

@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(2px, 2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(-2px, 2px); }
}

/* Magnetic effect for headings */
.magnetic-heading {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card img,
.project-card::after,
.project-card .title {
  transition: transform 0.3s cubic-bezier(.25,.8,.25,1), opacity 0.3s cubic-bezier(.25,.8,.25,1);
  backface-visibility: hidden;
}

.project-card .title {
  z-index: 20;
  transform-style: flat;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Tag chips styling */
.works-tags .tag-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: background-color 0.3s;
}

.works-tags .tag-chip:hover,
.works-tags .tag-chip.active {
  background: var(--accent);
}

/* Single post prose styles for images and videos */
.prose img,
.prose iframe,
.prose video,
.prose embed {
  max-width: none !important;
  width: 100% !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.prose iframe[src*="youtube.com"],
.prose iframe[src*="youtu.be"] {
  aspect-ratio: 16 / 9;
  width: 100% !important;
  height: auto !important;
}

.prose .wp-block-embed-youtube,
.prose .wp-block-embed__wrapper,
.prose .video-container,
.prose .video {
  max-width: none !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.prose .wp-block-embed-youtube iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

.prose figure {
  max-width: none !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.prose figure img {
  width: 100% !important;
  max-width: none !important;
}

/* ---- Override: disable gradient scan-line overlay ---- */
section::before {
  content: none !important;
  background: none !important;
  animation: none !important;
}

/* ------------------------------------------------------------------
   Contact Form 7 – Diplo Theme Overrides
   ------------------------------------------------------------------ */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-form label {
  display: block;
  font-weight: 600;
  color: #ffffff;
}

/* Base controls */
.wpcf7-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7-form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);
  outline: none;
}

/* Submit button */
.wpcf7-submit {
  appearance: none;
  cursor: pointer;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.wpcf7-submit:hover {
  transform: translateY(-2px);
  background-color: color-mix(in srgb, var(--accent) 80%, #ffffff 20%);
}

.wpcf7-submit:active {
  transform: translateY(0);
}

/* Validation + response messages */
.wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.wpcf7-response-output {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.wpcf7-form.sent .wpcf7-response-output {
  color: #ffffff;
  background: var(--accent);
  border: none;
}

.wpcf7-form.invalid .wpcf7-response-output {
  color: #ffffff;
  background: #ff6b6b;
  border: none;
}

/* Spinner alignment */
.wpcf7-spinner {
  display: inline-block;
  margin-left: 0.5rem;
}