/* ========================================
   JOKI AKADEMIK - STYLE SHEET
   Pastel Pink Theme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --primary: #DFA0D0;
  --primary-dark: #C87AB8;
  --secondary: #F5B0C8;
  --accent: #F8C8C0;
  --light: #FFF0E0;
  --cream: #FFF8F0;
  --dark: #5A2D5A;
  --dark-light: #7B4A7B;
  --text: #4A2040;
  --text-light: #8A6080;
  --white: #FFFFFF;
  --shadow: rgba(223, 160, 208, 0.3);
  --shadow-strong: rgba(90, 45, 90, 0.15);
  --gradient-hero: linear-gradient(135deg, #DFA0D0 0%, #F5B0C8 35%, #F8C8C0 65%, #FFF0E0 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 240, 224, 0.4));
  --gradient-btn: linear-gradient(135deg, #DFA0D0, #F5B0C8);
  --gradient-btn-hover: linear-gradient(135deg, #C87AB8, #E090B0);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* ── Utility ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-btn);
  border-radius: 4px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 16px auto 0;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px var(--shadow);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.navbar.scrolled .logo {
  color: var(--dark);
  text-shadow: none;
}

.navbar .logo span {
  color: var(--light);
  transition: var(--transition);
}

.navbar.scrolled .logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-links a {
  color: var(--text);
  text-shadow: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--light);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.navbar.scrolled .nav-links a::after {
  background: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
  padding: 8px 24px !important;
  border-radius: 50px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-weight: 600 !important;
}

.navbar.scrolled .nav-cta {
  background: var(--gradient-btn) !important;
  color: var(--white) !important;
  border: none !important;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px);
}

.navbar.scrolled .nav-cta:hover {
  background: var(--gradient-btn-hover) !important;
}

.nav-cta::after {
  display: none !important;
}

/* ── Mobile Menu ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

.navbar.scrolled .menu-toggle span {
  background: var(--dark);
}

/* ══════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 120px 24px 80px;
}

/* Animated background shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 176, 200, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(248, 200, 192, 0.1) 0%, transparent 50%);
  animation: heroShimmer 15s ease-in-out infinite;
}

@keyframes heroShimmer {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(2deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(-1deg);
  }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1);
  }
}

/* Floating blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: blobFloat 20s ease-in-out infinite;
}

.hero-blob:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.hero-blob:nth-child(2) {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  top: 60%;
  right: -5%;
  animation-delay: -7s;
}

.hero-blob:nth-child(3) {
  width: 250px;
  height: 250px;
  background: var(--accent);
  bottom: 10%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(40px, -60px) scale(1.1);
  }

  50% {
    transform: translate(-30px, 40px) scale(0.95);
  }

  75% {
    transform: translate(50px, 20px) scale(1.05);
  }
}

/* Geometric decorations */
.hero-geo {
  position: absolute;
  pointer-events: none;
}

.hero-geo.circle-outline {
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 15%;
  right: 10%;
  animation: geoSpin 25s linear infinite;
}

.hero-geo.square-outline {
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  bottom: 20%;
  left: 8%;
  animation: geoSpin 30s linear infinite reverse;
}

.hero-geo.diamond {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  top: 40%;
  left: 5%;
  animation: geoBounce 6s ease-in-out infinite;
  transform: rotate(45deg);
}

@keyframes geoSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes geoBounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(-30px);
  }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out 0.2s both;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(90, 45, 90, 0.2);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero h1 .highlight {
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  z-index: -1;
  animation: highlightGrow 1s ease-out 1.2s both;
}

@keyframes highlightGrow {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wave divider */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 3;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 8px 30px rgba(90, 45, 90, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(90, 45, 90, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-wa {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
  background: #20BD5A;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.btn-email {
  background: var(--gradient-btn);
  color: var(--white);
  box-shadow: 0 8px 25px var(--shadow);
}

.btn-email:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--shadow);
}

.btn-icon {
  font-size: 1.2rem;
}

/* ══════════════════════════════════════
   SERVICES SECTION
   ══════════════════════════════════════ */
.services {
  padding: 100px 0;
  background: var(--cream);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(223, 160, 208, 0.2);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-btn);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px var(--shadow);
  border-color: rgba(223, 160, 208, 0.4);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.2rem;
  background: var(--gradient-hero);
  color: var(--white);
  box-shadow: 0 8px 25px var(--shadow);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card .service-price {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 20px;
  background: rgba(223, 160, 208, 0.15);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

/* ══════════════════════════════════════
   WHY US SECTION
   ══════════════════════════════════════ */
.why-us {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--light) 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(223, 160, 208, 0.1);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px var(--shadow);
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(223, 160, 208, 0.2), rgba(248, 200, 192, 0.2));
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ══════════════════════════════════════
   PRICING SECTION
   ══════════════════════════════════════ */
.pricing {
  padding: 100px 0;
  background: var(--cream);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(223, 160, 208, 0.15);
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.03);
}

.pricing-card.featured .pricing-badge {
  position: absolute;
  top: 16px;
  right: -30px;
  background: var(--gradient-btn);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 40px;
  transform: rotate(45deg);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px var(--shadow);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.pricing-card .price-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.pricing-card ul {
  text-align: left;
  margin-bottom: 28px;
}

.pricing-card ul li {
  padding: 8px 0;
  font-size: 0.93rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(223, 160, 208, 0.1);
}

.pricing-card ul li:last-child {
  border: none;
}

.pricing-card ul li .check {
  color: #4ADE80;
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ══════════════════════════════════════
   CTA / CONTACT SECTION
   ══════════════════════════════════════ */
.cta {
  padding: 100px 0;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-info {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.95rem;
}

.cta-info-item .info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
  text-align: center;
}

.footer p {
  font-size: 0.9rem;
}

.footer a {
  color: var(--primary);
  font-weight: 500;
}

.footer .footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 12px;
}

.footer .footer-links a:hover {
  color: var(--secondary);
}

/* ══════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--dark) !important;
    font-size: 1.2rem;
    text-shadow: none !important;
  }

  .nav-links a::after {
    background: var(--primary) !important;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-geo {
    display: none;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-info {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ══════════════════════════════════════
   LOADING SCREEN
   ══════════════════════════════════════ */
#loadingScreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#loadingScreen.loaded {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 30px;
  text-shadow: 0 4px 20px rgba(90, 45, 90, 0.2);
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-logo span {
  color: var(--light);
}

@keyframes loaderPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0;
  background: var(--white);
  border-radius: 4px;
  transition: width 0.15s ease;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.loader-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 400;
}

/* ══════════════════════════════════════
   SCROLL PROGRESS BAR
   ══════════════════════════════════════ */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10000;
  background: transparent;
}

.scroll-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-btn);
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--primary);
}

/* ══════════════════════════════════════
   CURSOR TRAIL
   ══════════════════════════════════════ */
#cursorTrail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
}

.trail-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--size);
  height: var(--size);
  background: var(--primary);
  border-radius: 50%;
  opacity: var(--opacity);
  pointer-events: none;
  will-change: transform;
  transition: none;
}

/* ══════════════════════════════════════
   TILT CARD GLARE
   ══════════════════════════════════════ */
.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: background 0.2s ease;
  z-index: 1;
}

/* ══════════════════════════════════════
   STATS / COUNTER SECTION
   ══════════════════════════════════════ */
.stats {
  padding: 70px 0;
  background: var(--gradient-hero);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 30px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* ══════════════════════════════════════
   BACK TO TOP BUTTON
   ══════════════════════════════════════ */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 100px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 6px 25px var(--shadow);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px var(--shadow-strong);
}

/* ══════════════════════════════════════
   RIPPLE EFFECT
   ══════════════════════════════════════ */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.7s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   FLOATING WHATSAPP FAB
   ══════════════════════════════════════ */
#fabWhatsApp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5);
  transition: var(--transition);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  text-decoration: none;
}

#fabWhatsApp.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

#fabWhatsApp:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
}

.fab-icon {
  font-size: 1.6rem;
  z-index: 2;
}

.fab-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid #25D366;
  animation: fabPulse 2s ease-out infinite;
}

@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   TEXT SCRAMBLE
   ══════════════════════════════════════ */
.scramble-char {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

/* ══════════════════════════════════════
   PAGE LOADED BODY STATE
   ══════════════════════════════════════ */
body:not(.page-loaded) {
  overflow: hidden;
}