@font-face {
    font-family: 'YekanBakh';
    src: url('YekanBakhMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --color-bg: #051a10;
    --color-bg-light: #0d2e1f;
    --color-primary: #e53935;
    --color-primary-dark: #b71c1c;
    --color-accent: #00c853;
    --color-gold: #ffd700;
    --color-text: #ffffff;
    --color-text-muted: #b0bec5;
    --color-card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'YekanBakh', sans-serif;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(229, 57, 53, 0.3);
    --gradient-watermelon: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Effects */
.stars {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(1.5px 1.5px at 15% 15%, #fff 1px, transparent 0),
        radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,0.6) 1px, transparent 0),
        radial-gradient(2px 2px at 65% 85%, rgba(255,255,255,0.4) 1px, transparent 0),
        radial-gradient(1px 1px at 85% 25%, #fff 1px, transparent 0);
    z-index: -2;
    opacity: 0.4;
    animation: twinkle 5s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

.glow-bg {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.red-glow {
    background: var(--color-primary);
    top: -300px;
    right: -200px;
}

.green-glow {
    background: var(--color-accent);
    bottom: -300px;
    left: -200px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 30px 0;
}

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

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
}

.brand-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 10px var(--color-primary);
}

.tagline {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

/* Hero */
.hero-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-text .emoji {
    font-family: initial; /* Ensure emoji renders in color */
    -webkit-text-fill-color: initial;
}

.poetic-text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Watermelon Art */
.watermelon-art {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 0 auto 40px;
    filter: drop-shadow(0 20px 30px rgba(229, 57, 53, 0.2));
}

.w-slice {
    width: 200px;
    height: 100px;
    background: #0f4d2a;
    border-radius: 0 0 100px 100px;
    position: relative;
    overflow: hidden;
    animation: float 4s ease-in-out infinite;
}

.w-inner {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 0;
    background: var(--gradient-watermelon);
    border-radius: 0 0 90px 90px;
    border-top: 5px solid rgba(255,255,255,0.8);
}

.w-seeds {
    position: absolute;
    width: 100%;
    height: 100%;
}

.w-seeds span {
    position: absolute;
    background: #000;
    width: 6px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.6;
}

.w-seeds span:nth-child(1) { left: 40%; top: 30%; transform: rotate(-10deg); }
.w-seeds span:nth-child(2) { right: 40%; top: 30%; transform: rotate(10deg); }
.w-seeds span:nth-child(3) { left: 25%; top: 50%; transform: rotate(-25deg); }
.w-seeds span:nth-child(4) { right: 25%; top: 50%; transform: rotate(25deg); }
.w-seeds span:nth-child(5) { left: 50%; top: 60%; transform: translateX(-50%); }
.w-seeds span:nth-child(6) { left: 35%; top: 75%; transform: rotate(-15deg); }

.w-shadow {
    width: 140px;
    height: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    margin: 20px auto 0;
    filter: blur(8px);
    animation: shadowScale 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes shadowScale {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(0.8); opacity: 0.15; }
}

/* Fal Section */
.fal-box {
    background: var(--color-card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.fal-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.fal-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--color-gold);
    font-weight: 700;
}

.fal-intro {
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--gradient-watermelon);
    color: white;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.5);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-icon {
    margin-right: 10px;
}

.pulse-anim {
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

/* Fal Result */
.hidden {
    display: none;
}

.fal-result {
    margin-top: 30px;
    animation: fadeInSlide 0.8s ease-out forwards;
}

.fal-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
}

.fal-poem {
    font-size: 1.3rem;
    line-height: 2.2;
    color: #fff;
    font-weight: 500;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    white-space: pre-line;
}

.fal-source {
    font-size: 0.9rem;
    color: var(--color-gold);
    opacity: 0.8;
}

.btn-text {
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding: 8px 16px;
    gap: 8px;
}

.btn-text:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Links Section */
.links-section {
    width: 100%;
    margin-bottom: 20px;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 250px;
    white-space: nowrap;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nav-btn.btn-glow {
    border-color: rgba(255, 215, 0, 0.3);
    color: #fff;
}

.nav-btn.btn-glow:hover {
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.15);
    border-color: var(--color-gold);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    background: rgba(0,0,0,0.2);
}

.footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer a {
    color: var(--color-primary);
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: var(--color-gold);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 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); }
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.5rem; }
    .nav-container { flex-direction: column; gap: 10px; }
    .fal-box { padding: 30px 20px; }
    .fal-poem { font-size: 1.1rem; }
    .nav-btn { width: 100%; max-width: none; }
}



/* === Premium Fal Button === */
.btn-fal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);

  background: radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.05) 40%, rgba(0,0,0,0) 100%),
              linear-gradient(90deg, rgba(255, 61, 109, 0.95), rgba(255, 151, 0, 0.92));
  color: #fff;

  box-shadow:
    0 14px 30px rgba(255, 61, 109, 0.22),
    0 10px 24px rgba(255, 151, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  cursor: pointer;
  user-select: none;
  transform: translateZ(0);
  transition: transform 160ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.btn-fal .btn-text {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.02rem;
}

.btn-fal .btn-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 200ms ease, background 200ms ease;
}

/* Glow ring */
.btn-fal::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 61, 109, 0.75), rgba(255, 151, 0, 0.65));
  filter: blur(14px);
  opacity: 0.65;
  z-index: -1;
  transition: opacity 220ms ease, filter 220ms ease;
}

/* Shine sweep */
.btn-fal::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  opacity: 0.0;
}

.btn-fal:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow:
    0 18px 40px rgba(255, 61, 109, 0.28),
    0 14px 30px rgba(255, 151, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-fal:hover::before {
  opacity: 0.85;
  filter: blur(16px);
}

.btn-fal:hover::after {
  animation: btnShine 900ms ease forwards;
  opacity: 1;
}

.btn-fal:hover .btn-icon {
  transform: rotate(-8deg) scale(1.05);
  background: rgba(255, 255, 255, 0.18);
}

.btn-fal:active {
  transform: translateY(0px) scale(0.99);
}

.btn-fal:focus-visible {
  outline: none;
  box-shadow:
    0 18px 40px rgba(255, 61, 109, 0.25),
    0 14px 30px rgba(255, 151, 0, 0.18),
    0 0 0 4px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Better on small screens */
@media (max-width: 480px) {
  .btn-fal {
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
  }
  .btn-fal .btn-text {
    font-size: 1rem;
  }
}

@keyframes btnShine {
  0% { left: -60%; opacity: 0; }
  20% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}




/* === Fix Font & Readability for Fal Button === */
.btn-fal {
    font-family: inherit !important;
    /* فونت اصلی قالب */
    font-weight: 800;
    font-size: 1.05rem;

    color: #ffffff !important;
    /* متن کاملاً سفید */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    /* خوانایی روی بک‌گراند */

    letter-spacing: 0.3px;
}

/* متن داخل دکمه */
.btn-fal .btn-text {
    font-family: inherit !important;
    font-weight: 800;
    color: #ffffff;
    opacity: 1;
}

/* آیکن کنار متن */
.btn-fal .btn-icon {
    color: #ffffff;
    font-size: 1rem;
}

/* حالت عادی (قبل از hover) کمی روشن‌تر */
.btn-fal {
    filter: brightness(1.02);
}

/* حالت hover فقط افکت، نه تغییر فونت */
.btn-fal:hover {
    color: #ffffff;
}

/* موبایل */
@media (max-width: 480px) {
    .btn-fal {
        font-size: 1rem;
        font-weight: 700;
    }
}