/* Hero section with scattered elements */
@media (max-width: 768px) {
  html {
    font-size: 0.85rem;
  }
}
.hero {
  background-image: url("./hero-img-newest.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: calc(100vh - 70px);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 0 auto;
  place-items: center;
}

.stress-free-tag {
  background: hsl(202, 85%, 92%);
  color: white;
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(123, 175, 234, 0.3);
  display: none;
}

.japanese-text {
  font-size: 4rem;
  font-weight: 300;
  color: var(--text-medium);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.main-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  text-shadow: none;
  line-height: 1.2;
  letter-spacing: unset;
  /* color: var(--text-primary); */
  color: var(--primary);
}
/* .nihongo {
  color: var(--primary);
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
    color: var(--primary);

}

.ez {
  color: var(--primary);
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
} */

.subheading {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text-secondary-1);
  line-height: 1.3;
}

.mini-tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-style: italic;
  letter-spacing: 0.5px;
}

.mini-tagline .brand-name {
  color: var(--primary);
  font-weight: 600;
  font-style: normal;
}

.mini-tagline .highlight {
  color: var(--secondary-red);
  font-weight: 600;
  position: relative;
  cursor: pointer;
}

.mini-tagline .highlight .tooltip {
  visibility: hidden;
  opacity: 0;
  background-color: var(--text-dark);
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
  width: 160px;
  font-size: 0.85rem;
  font-weight: 400;
  font-style: normal;
  transition: opacity 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mini-tagline .highlight .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--text-dark) transparent transparent transparent;
}

.mini-tagline .highlight:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  text-shadow: none;
}

.cta-button {
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(66, 153, 225, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(66, 153, 225, 0.4);
  background: linear-gradient(45deg, var(--primary-light), var(--secondary));
}

.image-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.custom-image:hover {
  transform: scale(1.02);
}

.image-placeholder {
  width: 100%;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-align: center;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 25px;
}

.image-placeholder:hover {
  border-color: #4a90e2;
  background: linear-gradient(135deg, #e8f4f8 0%, #b8dce8 100%);
  transform: scale(1.02);
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.floating-char {
  position: absolute;
  font-size: 3rem;
  color: rgba(0, 0, 0, 0.05);
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Tools Section Styles */
.section {
  max-width: 1200px;
  margin: 0 auto 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: unset;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-medium);
  max-width: 500px;
  margin: 0 auto;
}
.tools-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.tool-card-compact {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tool-card-compact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.tool-card-compact:hover::before {
  transform: scaleX(1);
}

.tool-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.tool-icon-compact {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}

.tool-title-compact {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
  line-height: 1.2;
}

.tool-desc-compact {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.3;
}

.cta-compact,
.tools-cta {
  text-align: center;
  margin-top: 20px;
}

.btn-compact,
.tools-button {
  background: linear-gradient(45deg, var(--secondary-2), var(--secondary-1));
  color: white;
  padding: 12px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(214, 67, 67, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(214, 67, 67, 0.3);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    margin-top: 1rem;
  }

  .main-title {
    font-size: 2rem;
  }

  .subheading {
    font-size: 1.3rem;
  }

  .japanese-text {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .mini-tagline {
    font-size: 1rem;
  }
  .custom-image {
    height: auto;
    max-height: 40vh;
  }
  .image-section {
    padding: 4px;
  }
  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

/* Japanese Elements Background */
.japanese-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  filter: blur(1px);
}

/* Main Content */

[data-theme="dark"] .hero-content {
  background-color: hsla(0, 0%, 10%, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
    0 0 15px 5px rgba(255, 255, 255, 0.05),
    0 0 30px 10px rgba(255, 255, 255, 0.03);
}

/* Add a subtle pulse animation to draw attention */
/* @keyframes pulse {
  0% {
    box-shadow: 0 6px 12px rgba(217, 83, 79, 0.4);
  }
  50% {
    box-shadow: 0 8px 16px rgba(217, 83, 79, 0.6);
  }
  100% {
    box-shadow: 0 6px 12px rgba(217, 83, 79, 0.4);
  }
}

.cta-button {
  animation: pulse 2s infinite;
} */

/* Ink Drops */
.ink-drop {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  animation: inkDrop 3s infinite alternate;
}

.ink-drop-sun {
  width: 60px;
  height: 60px;
  background-color: rgba(247, 215, 148, 0.6);
}

.top-left {
  top: 2%;
  left: 2%;
  animation-delay: 0.5s;
}

.bottom-right {
  bottom: 15%;
  right: 12%;
  animation-delay: 1s;
}

.top-right {
  top: 20%;
  right: 15%;
  animation-delay: 1.5s;
}

.ink-drop1 {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 182, 193, 0.6);
}

.ink-drop2 {
  width: 25px;
  height: 25px;
  background-color: rgba(135, 206, 250, 0.6);
}

/* Japanese Characters */
.kanji,
.hiragana {
  position: absolute;
  font-family: "Noto Sans JP", sans-serif;
  opacity: 0;
  animation: fadeIn 2s ease forwards, floatSide 6s ease-in-out infinite;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.kanji {
  font-size: 80px;
  color: rgba(60, 90, 150, 0.4); /* More visible */
}

.kanji1 {
  top: 20%;
  right: 15%;
  animation-delay: 0.3s;
}

.kanji2 {
  bottom: 25%;
  left: 10%;
  animation-delay: 0.6s;
}

.kanji3 {
  top: 65%;
  right: 10%;
  animation-delay: 0.9s;
}

.kanji4 {
  top: 15%;
  left: 7%;
  animation-delay: 1.2s;
}

/* Animations */
@keyframes inkDrop {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translateY(5px) scale(1.15);
    opacity: 0.6;
  }
  100% {
    transform: translateY(10px) scale(1.1);
    opacity: 0.5;
  }
}

@keyframes floatDown {
  0% {
    transform: translateY(-15px) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(30px);
    opacity: 0;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes floatSide {
  0% {
    transform: translateX(0px) rotate(inherit);
  }
  50% {
    transform: translateX(10px) rotate(inherit);
  }
  100% {
    transform: translateX(0px) rotate(inherit);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
}

@media (max-width: 768px) {
  .kanji {
    font-size: 60px;
  }
}

@media (max-width: 480px) {
  .kanji {
    font-size: 50px;
  }
}

/* Section */
.section {
  width: 100%;
  padding: 2rem 0;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

/* Practice tools */
/* Alternative Tools Section */
/* .tools-section-alt {
  background: linear-gradient(135deg, #fafbfc 0%, #e9ecef 100%);
} */

.practice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 25px;
}

.tool-item-list {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-item-list:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transform: translateX(3px);
}

.tool-icon-list {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, var(--bg-light), #e8f4f8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-content-list {
  flex: 1;
}

.tool-title-list {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.tool-desc-list {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.3;
}

.practice-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.clickable-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.clickable-card:hover {
  cursor: pointer;
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.clickable-card:active {
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .tool-card {
    padding: 20px 15px;
  }

  .tool-icon {
    font-size: 1.8rem;
    padding: 12px;
  }

  .tool-title {
    font-size: 1.1rem;
  }

  .tool-description {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .example-text {
    font-size: 0.85rem;
  }

  .tools-section {
    padding: 40px 0;
  }
}
