@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --pink-100: #FFF0F5;
  --pink-200: #FFE4F0;
  --pink-300: #FFB6D3;
  --pink-400: #FF8BBF;
  --pink-500: #FF69B4;
  --pink-600: #E84393;
  --pink-700: #D63384;
  --rose-gold: #B76E79;
  --white: #FFFFFF;
  --cream: #FFF9FB;
  --text-dark: #4A2040;
  --text-medium: #6B3A5D;
  --text-light: #8B5A7D;
  --shadow-pink: rgba(255, 105, 180, 0.2);
  --shadow-soft: rgba(0, 0, 0, 0.06);
  --gradient-hero: linear-gradient(135deg, #f8c8dc 0%, #f4a5c0 30%, #e8789a 70%, #d35d8a 100%);
  --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #FFF0F5 100%);
  --gradient-accent: linear-gradient(135deg, #FF69B4 0%, #E84393 100%);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.8;
}

/* Icons */
.icon-sm { width: 20px; height: 20px; stroke-width: 2.5; }
.icon-lg { width: 44px; height: 44px; stroke-width: 1.5; color: var(--pink-600); }
.card-title .emoji svg { width: 20px; height: 20px; stroke-width: 2; color: var(--pink-500); vertical-align: middle; }

/* Floating Hearts */
.floating-hearts { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.floating-hearts .heart {
  position: absolute; opacity: 0; color: var(--pink-400);
  animation: floatH linear infinite;
}
@keyframes floatH {
  0%   { transform: translateY(105vh) rotate(0) scale(1); opacity: 0; }
  5%   { opacity: .1; }
  50%  { transform: translateY(50vh) rotate(180deg) scale(.8) translateX(25px); }
  95%  { opacity: .08; }
  100% { transform: translateY(-5vh) rotate(360deg) scale(.3) translateX(-15px); opacity: 0; }
}

/* Keyframes */
@keyframes heartbeat { 0%,100%{transform:scale(1)} 14%{transform:scale(1.15)} 28%{transform:scale(1)} 42%{transform:scale(1.1)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes spinSlow { from{transform:rotate(0)} to{transform:rotate(360deg)} }
@keyframes pulseSoft { 0%,100%{opacity:.15;transform:scale(1)} 50%{opacity:.25;transform:scale(1.05)} }
@keyframes sparkle { 0%,100%{opacity:0;transform:scale(.5)} 50%{opacity:1;transform:scale(1)} }
@keyframes wiggle { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-4deg)} 75%{transform:rotate(4deg)} }
@keyframes slideUp { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }
@keyframes badgePop { 0%{transform:scale(0) translateY(20px);opacity:0} 60%{transform:scale(1.1) translateY(0)} 100%{transform:scale(1) translateY(0);opacity:1} }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  background: rgba(255,240,245,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,105,180,.1);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px var(--shadow-pink); }
.nav-container { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 1.5rem; }
.nav-logo { font-size: 1.3rem; font-weight: 800; color: var(--pink-600); text-decoration: none; display: flex; align-items: center; gap: .4rem; }
.nav-logo span { animation: heartbeat 2s infinite; display: inline-flex; }
.nav-links { display: flex; list-style: none; gap: .2rem; }
.nav-links a { text-decoration: none; color: var(--text-medium); padding: .45rem .9rem; border-radius: var(--radius-sm); font-weight: 500; font-size: .82rem; transition: all .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--pink-600); background: rgba(255,105,180,.1); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--pink-600); padding: .4rem; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--gradient-hero);
  position: relative; overflow: hidden; padding: 6rem 1.5rem 4rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 60%, rgba(255,255,255,.25) 0%, transparent 55%),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,.15) 0%, transparent 50%);
}

/* Animated rings */
.hero-ring {
  position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.15);
  animation: spinSlow linear infinite;
}
.hero-ring-1 { width: 500px; height: 500px; top: 50%; left: 50%; margin: -250px 0 0 -250px; animation-duration: 30s; }
.hero-ring-2 { width: 700px; height: 700px; top: 50%; left: 50%; margin: -350px 0 0 -350px; animation-duration: 45s; animation-direction: reverse; border-style: dashed; }
.hero-ring-3 { width: 350px; height: 350px; top: 50%; left: 50%; margin: -175px 0 0 -175px; animation-duration: 20s; }

/* Sparkles */
.hero-sparkle { position: absolute; color: rgba(255,255,255,.5); font-size: 1rem; animation: sparkle 3s ease-in-out infinite; }
.s1 { top: 20%; right: 15%; animation-delay: 0s; }
.s2 { top: 60%; right: 80%; animation-delay: .8s; font-size: 1.4rem; }
.s3 { top: 30%; right: 70%; animation-delay: 1.5s; font-size: .8rem; }
.s4 { top: 75%; right: 25%; animation-delay: 2.2s; font-size: 1.2rem; }

.hero-content { position: relative; z-index: 2; max-width: 650px; animation: fadeUp .8s ease-out; }

.hero-badge {
  display: inline-block; background: rgba(255,255,255,.2); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3); border-radius: 50px;
  padding: .4rem 1.5rem; font-size: .9rem; font-weight: 600; color: white;
  margin-bottom: 1.5rem; animation: badgePop .6s .3s ease both;
  letter-spacing: 1px;
}

.hero h1 { font-size: 3.2rem; font-weight: 900; color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.1); margin-bottom: 1rem; line-height: 1.4; }
.hero h1 .highlight { background: linear-gradient(135deg,#fff,#FFE4F0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.88); font-weight: 400; margin-bottom: 2rem; line-height: 2; }

.hero-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--white); color: var(--pink-600);
  padding: .9rem 2.2rem; border-radius: 50px; font-size: 1.05rem; font-weight: 700;
  text-decoration: none; font-family: 'Tajawal', sans-serif; border: none; cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  transition: transform .3s, box-shadow .3s;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.18); }

.hero-decoration { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: var(--cream); clip-path: ellipse(55% 100% at 50% 100%); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 1.5rem; position: relative; z-index: 1; }
.section-alt { background: var(--pink-100); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-icon { font-size: 2.8rem; display: flex; justify-content: center; margin-bottom: .8rem; animation: wiggle 3s ease-in-out infinite; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--pink-600); margin-bottom: .4rem; }
.section-header p { font-size: 1rem; color: var(--text-light); max-width: 550px; margin: 0 auto; }
.section-divider { width: 60px; height: 3px; background: var(--gradient-accent); border-radius: 10px; margin: .8rem auto 0; }

/* Container + Grid */
.container { max-width: 1100px; margin: 0 auto; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* Cards */
.card {
  background: var(--gradient-card); border-radius: var(--radius-md); padding: 1.8rem;
  box-shadow: 0 4px 20px var(--shadow-soft), 0 0 0 1px rgba(255,105,180,.06);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
  position: relative; overflow: hidden; will-change: transform;
}
.card::before { content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px; background: radial-gradient(circle, rgba(255,105,180,.06) 0%, transparent 70%); border-radius: 0 0 0 100%; }
.card:hover { box-shadow: 0 12px 40px var(--shadow-pink), 0 0 0 1px rgba(255,105,180,.12); }

.card-title { font-size: 1.25rem; font-weight: 700; color: var(--pink-600); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.5rem; padding: 0 .5rem; }
.cute-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius-sm); overflow: hidden; font-size: .85rem; min-width: 400px; }
.cute-table thead th { background: var(--gradient-accent); color: var(--white); padding: .7rem .8rem; font-weight: 700; text-align: right; font-size: .82rem; white-space: nowrap; }
.cute-table tbody tr { transition: background .2s; }
.cute-table tbody tr:nth-child(even) { background: rgba(255,182,211,.07); }
.cute-table tbody tr:hover { background: rgba(255,105,180,.08); }
.cute-table tbody td { padding: .6rem .8rem; border-bottom: 1px solid rgba(255,105,180,.06); text-align: right; font-size: .82rem; line-height: 1.6; }
.cute-table tbody tr:last-child td { border-bottom: none; }

/* Steps */
.steps-list { list-style: none; counter-reset: step; }
.steps-list li {
  counter-increment: step; display: flex; align-items: flex-start; gap: .8rem;
  padding: .9rem; margin-bottom: .6rem; background: rgba(255,240,245,.5);
  border-radius: var(--radius-sm); border-right: 3px solid var(--pink-400);
  transition: background .25s, transform .25s;
}
.steps-list li:hover { background: rgba(255,182,211,.12); transform: translateX(-4px); }
.steps-list li::before {
  content: counter(step); background: var(--gradient-accent); color: white;
  width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem;
}
.step-content strong { color: var(--pink-600); display: block; margin-bottom: .15rem; }
.step-content small { color: var(--text-light); font-size: .78rem; }

/* Info boxes */
.info-box { border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.2rem 0; display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; line-height: 1.8; }
.info-box.warning { background: linear-gradient(135deg,#FFF3E0,#FFE0B2); border-right: 3px solid #FF9800; color: #E65100; }
.info-box.tip { background: linear-gradient(135deg,#E8F5E9,#C8E6C9); border-right: 3px solid #4CAF50; color: #2E7D32; }
.info-box.love { background: linear-gradient(135deg,#FFF0F5,#FFE4F0); border-right: 3px solid var(--pink-500); color: var(--pink-700); }
.info-box .box-icon { font-size: 1.3rem; flex-shrink: 0; }

/* Prohibited */
.prohibited-grid { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: .8rem; }
.prohibited-item { background: linear-gradient(135deg,#FFEBEE,#FFCDD2); border-radius: 50px; padding: .5rem 1rem; font-size: .82rem; color: #C62828; font-weight: 600; display: flex; align-items: center; gap: .3rem; transition: transform .25s; }
.prohibited-item:hover { transform: scale(1.05); }

/* Countdown */
.countdown-item { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; background: var(--white); border-radius: var(--radius-sm); margin-bottom: .6rem; box-shadow: 0 2px 10px var(--shadow-soft); transition: border-right-color .3s, transform .3s; border-right: 3px solid transparent; }
.countdown-item:hover { border-right-color: var(--pink-500); transform: translateX(-4px); }
.countdown-badge { background: var(--gradient-accent); color: white; min-width: 52px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .75rem; text-align: center; line-height: 1.2; }
.countdown-text { flex: 1; }
.countdown-text strong { color: var(--text-dark); display: block; font-size: .88rem; }
.countdown-text small { color: var(--text-light); font-size: .75rem; }

/* Golden rules */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.rule-card { background: linear-gradient(145deg,#FFF8E1,#FFECB3); border-radius: var(--radius-sm); padding: 1rem; text-align: center; transition: transform .3s, box-shadow .3s; }
.rule-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255,193,7,.15); }
.rule-card .rule-icon { font-size: 1.8rem; display: block; margin-bottom: .4rem; }
.rule-card p { font-size: .82rem; color: #5D4037; font-weight: 500; line-height: 1.7; }

/* Quote box */
.quote-box { background: var(--gradient-accent); color: white; border-radius: var(--radius-lg); padding: 2rem; text-align: center; margin-top: 1.5rem; position: relative; overflow: hidden; }
.quote-box::before { content: '♥'; position: absolute; top: 8px; right: 16px; font-size: 2.5rem; opacity: .12; }
.quote-box p { font-size: 1.05rem; font-weight: 600; line-height: 2; }

/* ===== FOOTER ===== */
.footer { background: var(--gradient-hero); text-align: center; padding: 3rem 1.5rem; position: relative; z-index: 1; }
.footer p { color: var(--white); font-size: 1.05rem; font-weight: 500; margin-bottom: .3rem; }
.footer .hearts { display: flex; justify-content: center; gap: .8rem; margin-bottom: 1rem; }
.icon-heart-footer { width: 28px; height: 28px; color: white; stroke-width: 2; animation: heartbeat 2s infinite; }
.icon-heart-footer:nth-child(2) { animation-delay: .3s; }
.icon-heart-footer:nth-child(3) { animation-delay: .6s; }
.footer-love { margin-top: 1.2rem !important; font-size: 1.5rem !important; font-weight: 900 !important; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,.12); animation: heartbeat 2.5s infinite; }

/* Scroll to Top */
.scroll-top { position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 999; background: var(--gradient-accent); color: white; border: none; width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 12px var(--shadow-pink); transition: all .3s; opacity: 0; visibility: hidden; transform: translateY(16px); }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-2px) scale(1.08); }

/* Progress bar */
.progress-bar { position: fixed; top: 60px; right: 0; left: 0; height: 3px; background: rgba(255,105,180,.08); z-index: 999; }
.progress-bar .progress { height: 100%; background: var(--gradient-accent); width: 0%; transition: width .08s linear; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 5rem 1.2rem 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: .95rem; }
  .hero-badge { font-size: .8rem; padding: .3rem 1.2rem; }
  .hero-ring-1 { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .hero-ring-2 { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
  .hero-ring-3 { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
  .section { padding: 3rem 1rem; }
  .section-header h2 { font-size: 1.5rem; }
  .section-icon { font-size: 2rem; }
  .icon-lg { width: 36px; height: 36px; }
  .cards-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card { padding: 1.3rem; }
  .card-title { font-size: 1.1rem; }
  .nav-links {
    display: none; position: absolute; top: 60px; right: 0; left: 0;
    background: rgba(255,240,245,.97); backdrop-filter: blur(16px);
    flex-direction: column; padding: .8rem; border-bottom: 1px solid rgba(255,105,180,.1);
    animation: slideUp .3s ease;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .cute-table { font-size: .76rem; }
  .cute-table thead th, .cute-table tbody td { padding: .45rem .5rem; }
  .rules-grid { grid-template-columns: 1fr; }
  .quote-box { padding: 1.5rem; }
  .quote-box p { font-size: .92rem; }
  .countdown-badge { min-width: 44px; font-size: .7rem; }
  .hero-decoration { height: 50px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: .88rem; }
  .nav-logo { font-size: 1.1rem; }
  .section-header h2 { font-size: 1.3rem; }
  .footer-love { font-size: 1.3rem !important; }
}
