/* ==========================================================================
   Mimyoh Studio Official Website Stylesheet
   Directly matching Figma Desktop (node 11:73) & Mobile specification
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand colors */
  --color-cyan: #1cc2de;
  --color-text-dark: #000000;

  /* Button gradient & glow */
  --btn-start: #0073ff;
  --btn-end: #0da2ff;
  --btn-highlight: #d2eaff;

  /* Footer colors */
  --footer-bg: #333333;
  --footer-divider: rgba(255, 255, 255, 0.25);
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: var(--color-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main Layout Wrapper */
.main-layout {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: clip;
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
}

@media (min-width: 768px) {
  .main-layout {
    background: #ffffff;
  }
}

/* Repeating Background Grid & Sparkle Pattern */
.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('../images/bg-pattern.svg');
  background-repeat: repeat;
  background-size: 20px 20px;
  background-position: 0px 5px;
  transform: translateZ(0);
  will-change: transform;
}

@media (min-width: 768px) {
  .bg-pattern {
    background-size: 54px 54px;
    background-position: 2px 15px;
  }
}

/* ==========================================================================
   Hero Section
   Figma: h-[990px] on 1920px canvas, generous breathing room, centered
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 65vh;
  min-height: 65dvh;
  padding: 60px 24px 40px;
}

@media (min-width: 768px) {
  .hero-section {
    min-height: 85vh;
    min-height: 85dvh;
    padding: 100px 40px 60px;
  }
}

.hero-logo-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .hero-logo-wrapper {
    width: 224px;
    height: 224px;
    margin-bottom: 16px;
  }
}

.hero-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Text below logo at 50% opacity */
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.2;
  color: var(--color-text-dark);
  opacity: 0.5;
  white-space: nowrap;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 48px;
    margin-bottom: 14px;
  }
}

/* All p text at 35% opacity */
p,
.hero-desc,
.section-intro,
.project-desc,
.contact-desc {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  color: var(--color-text-dark);
  opacity: 0.35;
  font-size: 18px;
  line-height: 28px;
}

.hero-desc {
  font-size: 18px;
  line-height: 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.hero-desc p {
  opacity: 1; /* Inherit parent's 0.35 opacity without double-dimming */
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 18px;
    line-height: 24px;
    width: 480px;
  }
}

/* ==========================================================================
   Projects Section
   Figma: max-w-[1280px], h-[457px]
   ========================================================================== */
.projects-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .projects-container {
    padding: 60px 100px 80px;
    gap: 14px;
  }
}

@media (min-width: 1280px) {
  .projects-container {
    padding: 60px 40px 80px;
  }
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: var(--color-cyan);
  width: 100%;
  opacity: 1;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 48px;
  }
}

.section-intro {
  font-size: 19px;
  line-height: 28px;
  width: 100%;
  margin-bottom: 8px;
  opacity: 0.35;
}

@media (min-width: 768px) {
  .section-intro {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 12px;
  }
}

/* Titles like Fairhome and Pop Rush at 50% opacity */
.project-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--color-text-dark);
  opacity: 0.5;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .project-heading {
    font-size: 20px;
    margin-top: 20px;
  }
}

/* Link for Fairhome */
.project-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.project-link:hover {
  color: var(--color-cyan);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-desc {
  font-size: 18px;
  line-height: 28px;
  width: 100%;
  opacity: 0.35;
}

@media (min-width: 768px) {
  .project-desc {
    font-size: 18px;
    line-height: 28px;
  }
}

/* ==========================================================================
   Get in Touch Section
   Figma: h-[527px], centered, vibrant glowing CTA button
   ========================================================================== */
.contact-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 320px;
  padding: 40px 24px 60px;
}

@media (min-width: 768px) {
  .contact-section {
    min-height: 480px;
    padding: 60px 40px 100px;
    gap: 14px;
  }
}

.contact-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  color: var(--color-cyan);
  opacity: 1;
}

@media (min-width: 768px) {
  .contact-title {
    font-size: 42px;
  }
}

.contact-desc {
  font-size: 18px;
  line-height: 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  opacity: 0.35;
}

@media (min-width: 768px) {
  .contact-desc {
    font-size: 16px;
    line-height: 28px;
    width: 494px;
  }
}

/* ==========================================================================
   CTA Button: Enhanced with Scale & Color Transitions for Hover & Click
   ========================================================================== */
.cta-talk-button {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 36px;
  padding: 5px 12px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 10px;
  box-shadow:
    0px 42px 107px 0px rgba(87, 177, 255, 0.34),
    0px 24.721px 32.257px 0px rgba(87, 177, 255, 0.19),
    0px 10.268px 13.398px 0px rgba(87, 177, 255, 0.22),
    0px 3.714px 4.846px 0px rgba(87, 177, 255, 0.15);
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s ease,
    filter 0.22s ease;
  overflow: hidden;
  user-select: none;
}

@media (min-width: 768px) {
  .cta-talk-button {
    width: 136px;
    height: 40px;
  }
}

/* Hover state: scale up + vibrant cyan-blue color highlight */
.cta-talk-button:hover {
  transform: translateY(-2px) scale(1.06) !important;
  filter: brightness(1.12) saturate(1.15);
  box-shadow:
    0px 48px 120px 0px rgba(87, 177, 255, 0.55),
    0px 28px 40px 0px rgba(87, 177, 255, 0.35),
    0px 12px 18px 0px rgba(87, 177, 255, 0.30);
}

/* Click/Active state: scale down + rich deeper cobalt blue */
.cta-talk-button:active {
  transform: translateY(1px) scale(0.95) !important;
  filter: brightness(0.90) contrast(1.1);
  box-shadow:
    0px 16px 36px 0px rgba(87, 177, 255, 0.25),
    0px 6px 12px 0px rgba(87, 177, 255, 0.18);
  transition-duration: 0.08s;
}

.btn-bg-gradient {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--btn-start) 0%, var(--btn-end) 100%);
  pointer-events: none;
  transition: background 0.22s ease;
}

.btn-bg-texture {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background-image: url('../images/button-texture.png');
  background-size: 307.2px 307.2px;
  background-position: top left;
  mix-blend-mode: plus-lighter;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.cta-talk-button:hover .btn-bg-texture {
  opacity: 0.55;
}

.btn-text {
  position: relative;
  z-index: 2;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .btn-text {
    font-size: 18px;
  }
}

.btn-highlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0px 1px 18px 0px var(--btn-highlight),
    inset 0px 1px 4px 0px var(--btn-highlight);
  transition: box-shadow 0.22s ease;
}

.cta-talk-button:hover .btn-highlight {
  box-shadow:
    inset 0px 1px 22px 0px #ffffff,
    inset 0px 1px 6px 0px var(--btn-highlight);
}

/* ==========================================================================
   Footer Section
   Footer text at 30% opacity
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
  background-color: var(--footer-bg);
  color: #ffffff;
}

.footer-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
}

@media (min-width: 768px) {
  .footer-container {
    padding: 100px 100px 60px;
    gap: 22px;
  }
}

@media (min-width: 1280px) {
  .footer-container {
    padding: 120px 40px 60px;
  }
}

/* Brand Row: Mark + Company/Email side-by-side */
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.footer-mark-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

@media (min-width: 768px) {
  .footer-mark-wrapper {
    width: 100px;
    height: 100px;
  }
}

.footer-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Footer text at 30% opacity */
.footer-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
  opacity: 0.3;
}

@media (min-width: 768px) {
  .footer-brand-text {
    font-size: 18px;
    line-height: 30px;
  }
}

.footer-company {
  color: inherit;
}

.footer-email {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.footer-email:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Address at 30% opacity */
.footer-address {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 22px;
  color: #ffffff;
  opacity: 0.3;
  width: 100%;
}

@media (min-width: 768px) {
  .footer-address {
    font-size: 16px;
    line-height: 24px;
  }
}

/* Legal Links at 30% opacity */
.footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 22px;
  color: #ffffff;
  opacity: 0.3;
}

@media (min-width: 768px) {
  .footer-legal-links {
    font-size: 16px;
    line-height: 24px;
  }
}

.footer-legal-links a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.footer-legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-dot {
  color: inherit;
  user-select: none;
}

/* Subtle Hairline Divider */
.footer-divider {
  width: 320px;
  max-width: 100%;
  height: 1px;
  background-color: var(--footer-divider);
  margin: 6px 0;
}

@media (min-width: 768px) {
  .footer-divider {
    width: 429px;
  }
}

/* Copyright at 30% opacity */
.footer-copyright {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 22px;
  color: #ffffff;
  opacity: 0.3;
  width: 100%;
}

@media (min-width: 768px) {
  .footer-copyright {
    font-size: 16px;
    line-height: 24px;
  }
}