/* =====================================================
   KRANBLUR - Main Stylesheet
   ===================================================== */

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

/* ─── Design Tokens ─────────────────────────────── */
:root {
  --purple-dark:   #4a1d8c;
  --purple-main:   #6b2fbd;
  --purple-mid:    #7c3aed;
  --purple-light:  #a78bfa;
  --purple-pale:   #ede9fe;
  --cream-bg:      #f5f3ef;
  --cream-card:    #faf9f7;
  --white:         #ffffff;
  --text-dark:     #1e0a3c;
  --text-body:     #4b4b6b;
  --text-light:    #8888aa;
  --bubble-blue:   rgba(147, 197, 253, 0.45);
  --bubble-stroke: rgba(147, 197, 253, 0.6);
  --gold-star:     #facc15;
  --shadow-card:   0 4px 24px rgba(107, 47, 189, 0.10);
  --shadow-btn:    0 4px 16px rgba(107, 47, 189, 0.35);
  --radius-card:   20px;
  --radius-btn:    50px;
  --transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--cream-bg);
  color: var(--text-dark);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Bubbles Background ────────────────────────── */
.bubbles-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--bubble-blue);
  border: 1.5px solid var(--bubble-stroke);
  animation: floatBubble linear infinite;
  opacity: 0;
}

.star-deco {
  position: absolute;
  font-size: 1rem;
  color: var(--gold-star);
  animation: twinkle 3s ease-in-out infinite;
  opacity: 0;
}

@keyframes floatBubble {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) scale(0.85); opacity: 0; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0;   transform: scale(0.8) rotate(0deg); }
  50%       { opacity: 0.9; transform: scale(1.2) rotate(20deg); }
}

/* ─── Navbar ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--purple-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 72px;
  box-shadow: 0 2px 20px rgba(74, 29, 140, 0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  display: flex; align-items: center; gap: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.nav-links a .chevron { font-size: 0.7rem; margin-left: 2px; }

.nav-cta {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white) !important;
  padding: 0.45rem 1.3rem !important;
  border-radius: var(--radius-btn) !important;
  font-weight: 800 !important;
  transition: background var(--transition), color var(--transition) !important;
}

.nav-cta:hover {
  background: var(--white) !important;
  color: var(--purple-dark) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Hero Section ───────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-pale);
  color: var(--purple-main);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--purple-mid);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--purple-mid); }

.hero p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 420px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--purple-dark);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-primary:hover {
  background: var(--purple-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107, 47, 189, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.73rem 1.8rem;
  border-radius: var(--radius-btn);
  border: 2.5px solid var(--purple-dark);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-outline:hover {
  background: var(--purple-pale);
  color: var(--purple-dark);
  transform: translateY(-2px);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image img {
  width: min(480px, 100%);
  animation: heroFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(107, 47, 189, 0.25));
}

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

/* ─── Section Commons ────────────────────────────── */
section { position: relative; z-index: 1; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-body);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-main), var(--purple-light));
  border-radius: 2px;
  margin: 0.8rem auto 0;
}

/* ─── Services Section ───────────────────────────── */
.services {
  padding: 5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.service-card {
  background: var(--cream-card);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1.5px solid rgba(167, 139, 250, 0.18);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(107, 47, 189, 0.18);
  border-color: var(--purple-light);
}

.service-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 1.2rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--purple-dark);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ─── Testimonials ───────────────────────────────── */
.testimonials {
  padding: 5rem 2.5rem;
  background: var(--white);
}

.testimonials-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.testimonial-card {
  background: var(--cream-card);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  border: 1.5px solid rgba(167, 139, 250, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(107, 47, 189, 0.15);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--purple-light);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
}

.testimonial-stars {
  color: var(--gold-star);
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.testimonial-card blockquote {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
  font-style: italic;
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--purple-light);
  line-height: 1;
  margin-bottom: 0.3rem;
  font-family: Georgia, serif;
}

/* ─── Contact Widget ─────────────────────────────── */
.contact-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  background: var(--purple-dark);
  color: #fff;
  border-radius: 20px;
  padding: 1rem 1.2rem;
  min-width: 230px;
  box-shadow: 0 8px 32px rgba(74, 29, 140, 0.45);
  font-size: 0.82rem;
  user-select: none;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.widget-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--purple-mid);
}

.widget-domain {
  font-weight: 900;
  font-size: 0.9rem;
}

.widget-info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: rgba(255,255,255,0.88);
}

.widget-info-row span { font-size: 0.9rem; }

.widget-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.widget-social-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}

.widget-social-btn:hover {
  background: rgba(255,255,255,0.3);
}

.widget-close {
  position: absolute;
  top: 8px; right: 10px;
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.widget-close:hover { color: #fff; }

/* ─── Footer ─────────────────────────────────────── */
.footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}

.footer a { color: var(--purple-light); }
.footer a:hover { text-decoration: underline; }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
}

.footer-brand { font-weight: 900; color: #fff; font-size: 1rem; }

/* ─── Animations (AOS-style manual) ─────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  .hero p { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { width: min(320px, 90vw); }

  .nav-links { display: none; flex-direction: column; position: fixed; top: 72px; inset-inline: 0; background: var(--purple-dark); padding: 1.5rem; gap: 0.5rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .contact-widget { display: none; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 1.2rem; }
  .hero { padding-inline: 1.2rem; }
  .services { padding-inline: 1.2rem; }
  .testimonials { padding-inline: 1.2rem; }
}
