/* ============================================
   Cisa Assistant — Premium Pink Aesthetic
   ============================================ */

:root {
  --pink-50: #fff5fa;
  --pink-100: #ffe6f1;
  --pink-200: #ffd6e7;
  --pink-300: #ffb6d5;
  --pink-400: #ff8fbf;
  --pink-500: #ff6fae;
  --rose: #ffb6d5;
  --purple: #d4a5ff;
  --soft-white: #fffafd;
  --text: #4a2a3d;
  --text-soft: #7a5a6d;
  --bg: #fff8fb;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(255, 255, 255, 0.75);
  --border: rgba(255, 182, 213, 0.4);
  --shadow: 0 20px 60px -20px rgba(255, 111, 174, 0.35);
  --shadow-soft: 0 10px 30px -10px rgba(255, 111, 174, 0.25);
  --gradient-primary: linear-gradient(135deg, #ffb6d5 0%, #d4a5ff 100%);
  --gradient-bg: linear-gradient(135deg, #fff5fa 0%, #ffe6f1 50%, #f5e6ff 100%);
  --radius: 24px;
  --radius-lg: 32px;
}

[data-theme="dark"] {
  --soft-white: #1a0f17;
  --text: #fde4ef;
  --text-soft: #c9a8b8;
  --bg: #15090f;
  --surface: rgba(60, 25, 45, 0.45);
  --surface-strong: rgba(70, 30, 55, 0.65);
  --border: rgba(255, 182, 213, 0.2);
  --shadow: 0 20px 60px -20px rgba(255, 111, 174, 0.5);
  --gradient-bg: linear-gradient(135deg, #1a0a14 0%, #2a0f1f 50%, #1f0a25 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--gradient-bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.3s ease;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--gradient-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-heart {
  font-size: 4rem;
  color: var(--pink-400);
  animation: heartBeat 1.2s ease-in-out infinite;
}
.loader p {
  margin-top: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--pink-500);
  letter-spacing: 2px;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ===== Cursor Glow ===== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 213, 0.35), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out;
  mix-blend-mode: screen;
}

/* ===== Particles ===== */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== Bubbles ===== */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bubble {
  position: absolute;
  bottom: -100px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), rgba(255, 182, 213, 0.3));
  animation: bubbleUp linear infinite;
  box-shadow: 0 0 20px rgba(255, 182, 213, 0.4);
}
@keyframes bubbleUp {
  0% { transform: translateY(0) translateX(0) scale(0.5); opacity: 0; }
  10% { opacity: 0.8; }
  100% { transform: translateY(-110vh) translateX(50px) scale(1); opacity: 0; }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--pink-500); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--pink-500);
  transition: all 0.3s ease;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.1); box-shadow: var(--shadow-soft); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: inline; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem 0 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 182, 213, 0.5), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 165, 255, 0.4), transparent 50%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--pink-500);
  backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.cursor-blink {
  -webkit-text-fill-color: var(--pink-400);
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--pink-500);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -10px rgba(255, 111, 174, 0.5);
}
.btn-ghost {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--pink-200);
  transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}
.mock-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.floating { animation: float 5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}
.mock-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.mock-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink-300);
}
.mock-header .dot:nth-child(2) { background: var(--purple); }
.mock-header .dot:nth-child(3) { background: var(--pink-400); }
.mock-header p {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-soft);
}
.mock-body { display: flex; flex-direction: column; gap: 0.75rem; }
.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  max-width: 80%;
  animation: fadeInUp 0.5s ease backwards;
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--gradient-primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-bubble.bot {
  align-self: flex-start;
  background: var(--pink-100);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
[data-theme="dark"] .chat-bubble.bot {
  background: rgba(255, 182, 213, 0.15);
  color: var(--text);
}
.chat-bubble.typing {
  display: flex;
  gap: 4px;
  padding: 0.9rem 1rem;
}
.chat-bubble.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink-400);
  animation: typing 1.4s infinite;
}
.chat-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-8px); opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  z-index: 0;
}
.orb-1 {
  width: 250px;
  height: 250px;
  background: var(--pink-300);
  top: -30px;
  left: -30px;
  animation: float 6s ease-in-out infinite;
}
.orb-2 {
  width: 200px;
  height: 200px;
  background: var(--purple);
  bottom: -30px;
  right: -30px;
  animation: float 7s ease-in-out infinite reverse;
}

/* ===== Sections ===== */
.section {
  position: relative;
  padding: 6rem 0;
  z-index: 2;
}
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink-500);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ===== About ===== */
.about-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding: 3rem;
  align-items: center;
}
.about-avatar {
  position: relative;
  width: 220px;
  height: 220px;
}
.about-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--soft-white);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  filter: blur(20px);
  opacity: 0.6;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.8; }
}
.about-meta {
  margin-bottom: 0.75rem;
  color: var(--text-soft);
}
.about-meta strong { color: var(--pink-500); }
.about-desc {
  margin-top: 1rem;
  color: var(--text);
  line-height: 1.8;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 182, 213, 0.2), transparent);
  transition: left 0.6s ease;
}
.feature-card:hover::before { left: 100%; }
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--pink-300);
}
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft);
}
.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.feature-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16/9;
  background: var(--pink-100);
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-slide .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: white;
  font-weight: 600;
}
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--surface-strong);
  backdrop-filter: blur(10px);
  color: var(--pink-500);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
}
.car-btn:hover { background: var(--pink-300); color: white; }
.car-btn.prev { left: 1rem; }
.car-btn.next { right: 1rem; }
.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.dot-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot-indicator.active {
  width: 28px;
  border-radius: 5px;
  background: white;
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.stat-label {
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 0.5rem;
  letter-spacing: 1px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* ===== Contact ===== */
.contact-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem;
  text-align: center;
}
.contact-meta {
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}
.contact-meta strong { color: var(--pink-500); }
.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.contact-btn {
  padding: 0.9rem 1.5rem;
  border-radius: 100px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}
.contact-btn:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.contact-btn .ico { font-size: 1.2rem; }

/* ===== Footer ===== */
.footer { padding: 2rem 1.5rem 3rem; position: relative; z-index: 2; }
.footer-inner {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.heart { color: var(--pink-400); animation: heartBeat 1.5s infinite; display: inline-block; }

/* ===== Scroll Top ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 50;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-5px) scale(1.1); }

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .about-card { grid-template-columns: 1fr; text-align: center; padding: 2rem; }
  .about-avatar { margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: var(--surface-strong);
    backdrop-filter: blur(20px);
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .cursor-glow { display: none; }
  .section { padding: 4rem 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}
