:root {
  --primary-blue: #1a73e8;
  --dark-blue: #0d47a1;
  --light-blue: #e8f0fe;
  --dark-gray: #333333;
  --medium-gray: #5f6368;
  --light-gray: #f8f9fa;
  --accent-orange: #ff6d00;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

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

body {
  font-family: "Poppins", sans-serif;
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
}

.section-title {
  position: relative;
  margin-bottom: 2.5rem;
  color: var(--dark-blue);
}

.section-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: var(--accent-orange);
  transition: width var(--transition-speed) ease;
}

.section-title.text-center:after {
  left: 50%;
  transform: translateX(-50%);
}

.section-title:hover:after {
  width: 100px;
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  padding: 10px 25px;
  font-weight: 500;
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navbar */




.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--dark-blue);
  transition: color var(--transition-speed) ease;
}

.navbar-brand span {
  color: var(--accent-orange);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-gray);
  margin: 0 8px;
  transition: color var(--transition-speed) ease;
  position: relative;
}

.navbar-nav .nav-link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width var(--transition-speed) ease;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
  width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0c0e1a 0%, #1a1040 30%, #0d2137 60%, #0a1628 100%);
  color: white;
  padding: 130px 0 110px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  z-index: 0;
  animation: heroMesh 12s ease-in-out infinite alternate;
}

@keyframes heroMesh {
  0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.1) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(-1deg); opacity: 0.8; }
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 60% at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, black 20%, transparent 70%);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #818cf8, #22d3ee, #a78bfa);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroGrad 4s ease infinite alternate;
}

@keyframes heroGrad {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 6px 16px 6px 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
}

.hero-badge .dot::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0.4;
  animation: heroPing 2s ease-in-out infinite;
}

@keyframes heroPing {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.8); opacity: 0; }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-buttons .btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.hero-buttons .btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 12px;
  font-size: 0.95rem;
  background: transparent;
  transition: all 0.3s ease;
  color: #fff;
}

.hero-buttons .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Hero right panel - illustration */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-glow-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.15);
  animation: heroRing 6s ease-in-out infinite;
}

.hero-glow-ring:nth-child(1) { width: 280px; height: 280px; animation-delay: 0s; }
.hero-glow-ring:nth-child(2) { width: 220px; height: 220px; animation-delay: -2s; border-color: rgba(6, 182, 212, 0.12); }
.hero-glow-ring:nth-child(3) { width: 160px; height: 160px; animation-delay: -4s; border-color: rgba(168, 85, 247, 0.1); }

@keyframes heroRing {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.15) rotate(15deg); opacity: 1; }
}

.hero-card-glow {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  width: 240px;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: heroCardFloat 5s ease-in-out infinite;
}

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

.hero-card-glow .dots {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.hero-card-glow .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-card-glow .dots span:nth-child(1) { background: #ef4444; }
.hero-card-glow .dots span:nth-child(2) { background: #eab308; }
.hero-card-glow .dots span:nth-child(3) { background: #22c55e; }

.hero-card-glow .line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.hero-card-glow .line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: heroShimmer 2.5s ease-in-out infinite;
}

@keyframes heroShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.hero-card-glow .line:nth-child(4) { width: 85%; }
.hero-card-glow .line:nth-child(5) { width: 65%; }
.hero-card-glow .line:nth-child(6) { width: 75%; }
.hero-card-glow .line:nth-child(7) { width: 50%; height: 12px; background: linear-gradient(90deg, rgba(99,102,241,0.3), rgba(6,182,212,0.3)); }

.hero-card-glow .mt-3 {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-card-glow .tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  background: rgba(99, 102, 241, 0.15);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.visitor-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.visitor-line i {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
}

.visitor-line span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.visitor-line .visitor-count {
  height: 18px;
  display: inline-block;
  filter: brightness(1.2) contrast(1.1);
}

/* Floating geometric shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: heroShapeFloat 8s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 60px; height: 60px;
  background: rgba(99, 102, 241, 0.2);
  top: 10%; left: 5%;
  animation-delay: 0s;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.hero-shape:nth-child(2) {
  width: 40px; height: 40px;
  background: rgba(6, 182, 212, 0.15);
  top: 65%; left: 8%;
  animation-delay: -3s;
  border-radius: 50% 50% 30% 70% / 50% 40% 60% 50%;
}

.hero-shape:nth-child(3) {
  width: 80px; height: 80px;
  background: rgba(168, 85, 247, 0.1);
  top: 20%; right: 15%;
  animation-delay: -5s;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.hero-shape:nth-child(4) {
  width: 35px; height: 35px;
  background: rgba(251, 191, 36, 0.1);
  bottom: 15%; right: 25%;
  animation-delay: -7s;
  border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
}

@keyframes heroShapeFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(15px, -20px) rotate(15deg) scale(1.1); }
  66% { transform: translate(-10px, 10px) rotate(-10deg) scale(0.9); }
}

/* Floating animation for legacy */
.floating-element {
  animation: float 6s ease-in-out infinite;
}

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

/* Hero particle dots */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  animation: heroDotFloat 10s ease-in-out infinite;
}

.hero-dot:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.hero-dot:nth-child(2) { top: 22%; left: 75%; animation-delay: -1.5s; width: 5px; height: 5px; background: rgba(99,102,241,0.4); }
.hero-dot:nth-child(3) { top: 55%; left: 3%; animation-delay: -3s; }
.hero-dot:nth-child(4) { top: 65%; left: 65%; animation-delay: -4s; width: 4px; height: 4px; background: rgba(6,182,212,0.3); }
.hero-dot:nth-child(5) { top: 35%; left: 88%; animation-delay: -5s; }
.hero-dot:nth-child(6) { top: 78%; left: 35%; animation-delay: -6.5s; width: 2px; height: 2px; }
.hero-dot:nth-child(7) { top: 8%; left: 45%; animation-delay: -7s; width: 4px; height: 4px; background: rgba(168,85,247,0.3); }
.hero-dot:nth-child(8) { top: 50%; left: 20%; animation-delay: -8.5s; }

@keyframes heroDotFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-25px) scale(1.5); opacity: 0.8; }
}

/* Carousel Section */
.carousel-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #eef1f8 0%, #f8f9fa 50%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
}

.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--dark-blue);
}

.carousel-title h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.carousel-title p {
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

.carousel-cinematic {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.5s ease;
}

.carousel-cinematic:hover {
  transform: perspective(1000px) rotateX(1deg) rotateY(-1deg);
}

.carousel-item {
  height: 500px;
  position: relative;
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.carousel-item.active .carousel-image {
  transform: scale(1.05);
}

.carousel-caption-custom {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  color: white;
  padding: 0 20px;
}

.carousel-caption-custom h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-caption-custom p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 25px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.carousel-indicators-custom {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.carousel-indicator:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: white;
  transition: left 3s ease;
}

.carousel-indicator.active {
  background-color: white;
  transform: scale(1.3);
}

.carousel-indicator.active:before {
  left: 100%;
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
  backdrop-filter: blur(5px);
}

.carousel-cinematic:hover .carousel-control-prev,
.carousel-cinematic:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

/* Animated floating background shapes */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  animation: bgShapeFloat 20s ease-in-out infinite;
}

.bg-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--primary-blue);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.bg-shape:nth-child(2) {
  width: 300px;
  height: 300px;
  background: var(--accent-orange);
  top: 50%;
  right: -8%;
  animation-delay: -5s;
}

.bg-shape:nth-child(3) {
  width: 250px;
  height: 250px;
  background: var(--primary-blue);
  bottom: 10%;
  left: 30%;
  animation-delay: -10s;
}

.bg-shape:nth-child(4) {
  width: 200px;
  height: 200px;
  background: var(--accent-orange);
  top: 30%;
  left: 50%;
  animation-delay: -15s;
}

@keyframes bgShapeFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(20px, 30px) scale(1.05);
  }
}


/* Back to Top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--dark-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 115, 232, 0.5);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-blue);
}

/* Section divider wave */
.section-divider {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}

.section-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.section-divider .shape-fill {
  fill: var(--light-gray);
}

/* Stats counters */
.stats-row {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.stat-item {
  text-align: center;
  padding: 20px 10px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--medium-gray);
  margin-top: 5px;
}

/* Hover Effects dari ReactBits */
.hover-effect {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hover-effect:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
  z-index: -1;
}

.hover-effect:hover:before {
  left: 100%;
}

/* About Section */
.about-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #f5f7fc 100%);
}

.vision-mission-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 8px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    0 30px 60px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 4px solid var(--primary-blue);
  transition: all var(--transition-speed) ease;
}

.vision-mission-card:hover {
  transform: translateX(10px);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.18),
    0 40px 80px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.18);
}

.image-container {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.hover-zoom {
  transition: transform 0.5s ease;
}

.hover-zoom:hover {
  transform: scale(1.05);
}

/* Services Section */
.services-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f9fa 50%, #eef1f8 100%);
}

.service-card {
  padding: 30px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(26, 115, 232, 0.05) 100%);
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.service-card:hover:before {
  opacity: 1;
}

.service-number {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(26, 115, 232, 0.08);
  line-height: 1;
  z-index: 1;
  transition: all 0.3s ease;
}

.service-card:hover .service-number {
  color: rgba(26, 115, 232, 0.18);
  transform: scale(1.2);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Portfolio Section */
.portfolio-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fc 50%, #f0f3fa 100%);
}

.portfolio-card {
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
}

.portfolio-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.portfolio-card:hover:before {
  opacity: 1;
}

.portfolio-img-container {
  overflow: hidden;
  height: 200px;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 3;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 20px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.portfolio-card:hover .portfolio-overlay-icon {
  transform: translate(-50%, -50%) scale(1);
}

.portfolio-body {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.portfolio-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  line-height: 1.6;
}

.portfolio-desc.expanded {
  -webkit-line-clamp: unset;
}

.portfolio-toggle {
  background: none;
  border: none;
  color: var(--primary-blue);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: none;
  transition: color 0.2s ease;
}

.portfolio-toggle:hover {
  color: var(--dark-blue);
}

.portfolio-toggle.show {
  display: inline-block;
}

/* Portfolio Modal */
.portfolio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-modal.active {
  display: flex;
  opacity: 1;
}

.portfolio-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-modal.active .portfolio-modal-overlay {
  opacity: 1;
}

.portfolio-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-modal.active .portfolio-modal-content {
  transform: scale(1);
}

.portfolio-modal-media {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.portfolio-modal-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: block;
  transition: filter 0.3s ease;
}

.portfolio-modal-media:hover .portfolio-modal-img {
  filter: brightness(0.7);
}

.portfolio-modal-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
  padding-left: 5px;
}

.portfolio-modal-media:hover .portfolio-modal-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.portfolio-modal-video {
  display: none;
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.portfolio-modal-video.show {
  display: block;
}

.portfolio-modal-media.playing .portfolio-modal-img,
.portfolio-modal-media.playing .portfolio-modal-play {
  display: none;
}

.portfolio-modal-close {
  position: absolute;
  top: -50px;
  right: -10px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2d2d2d;
  border: none;
  color: #aab;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  outline: none;
  line-height: 1;
  box-shadow:
    4px 4px 8px rgba(0, 0, 0, 0.5),
    -4px -4px 8px rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.portfolio-modal-close:hover {
  box-shadow:
    inset 3px 3px 6px rgba(0, 0, 0, 0.6),
    inset -3px -3px 6px rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: rotate(90deg);
  outline: none;
}

.portfolio-card {
  cursor: pointer;
}

/* Team Section */
.team-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f9fa 50%, #eef1f8 100%);
}

.team-card {
  text-align: center;
  margin-bottom: 30px;
  transition: all var(--transition-speed) ease;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-img-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--light-blue);
  transition: all var(--transition-speed) ease;
  position: relative;
  z-index: 1;
}

.team-img-container:before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, var(--primary-blue), var(--accent-orange));
  border-radius: 50%;
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.team-card:hover .team-img-container:before {
  opacity: 0.5;
}

.team-card:hover .team-img {
  transform: scale(1.05);
  border-color: var(--primary-blue);
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fc 50%, #f0f3fa 100%);
}

.contact-form {
  padding: 40px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.contact-form:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.contact-form > * {
  position: relative;
  z-index: 1;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.25rem rgba(26, 115, 232, 0.25);
  transform: translateY(-2px);
  transition: all var(--transition-speed) ease;
}

.input-group-text {
  background-color: var(--light-blue);
  border-color: #ced4da;
  transition: all var(--transition-speed) ease;
}

.input-group:focus-within .input-group-text {
  background-color: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: white;
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(26, 115, 232, 0.1) 0%, transparent 50%);
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  z-index: 1;
}

.footer-links h5 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  z-index: 1;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.footer-link {
  color: #bbb;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
  position: relative;
  padding-left: 0;
  transition: padding-left var(--transition-speed) ease;
}

.footer-link:hover {
  color: white;
  padding-left: 10px;
}

.footer-link:before {
  content: "→";
  position: absolute;
  left: -15px;
  opacity: 0;
  transition:
    opacity var(--transition-speed) ease,
    left var(--transition-speed) ease;
}

.footer-link:hover:before {
  left: 0;
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.social-icon:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-blue), var(--accent-orange));
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  z-index: -1;
}

.social-icon:hover {
  transform: translateY(-5px) rotate(5deg);
}

.social-icon:hover:before {
  opacity: 1;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  color: #bbb;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Animasi untuk elemen yang muncul saat scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Glowing effect untuk CTA */
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px var(--primary-blue);
  }
  50% {
    box-shadow:
      0 0 20px var(--primary-blue),
      0 0 30px var(--primary-blue);
  }
}

.btn-primary.glow {
  animation: glow 2s infinite;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-visual {
    min-height: 260px;
  }
  .hero-card-glow {
    width: 200px;
    padding: 22px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-section {
    padding: 110px 0 80px;
  }
  .hero-visual {
    min-height: 220px;
  }
  .hero-glow-ring:nth-child(1) { width: 220px; height: 220px; }
  .hero-glow-ring:nth-child(2) { width: 170px; height: 170px; }
  .hero-glow-ring:nth-child(3) { width: 120px; height: 120px; }

  .section-title {
    font-size: 1.8rem;
  }

  .carousel-item {
    height: 400px;
  }

  .carousel-caption-custom h3 {
    font-size: 1.8rem;
  }

  .carousel-caption-custom p {
    font-size: 0.8rem;
  }

  .contact-form {
    padding: 25px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    opacity: 1;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-section {
    padding: 100px 0 60px;
  }

  .carousel-item {
    height: 350px;
  }

  .carousel-caption-custom h3 {
    font-size: 1.5rem;
  }

  .carousel-caption-custom p {
    font-size: 0.6rem;
  }
}

/* hover button */
/* From Uiverse.io by vikiWayne */
.button {
  padding: 1em 2em;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  letter-spacing: 5px;
  text-transform: uppercase;
  cursor: pointer;
  /* color: #2c9caf; */
  color: #2c9caf;
  transition: all 1000ms;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  outline: 2px solid #2c9caf;
}

button:hover {
  color: #ffffff;
  transform: scale(1.1);
  outline: 2px solid #70bdca;
  /* box-shadow: 4px 5px 17px -4px #268391; */
  box-shadow: 4px 5px 17px -4px #ffffff;
}

button::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  background-color: #ffffff;
  transform: skewX(45deg);
  z-index: -1;
  transition: width 1000ms;
}

button:hover::before {
  width: 250%;
}

/* 3d CaRD */
/* From Uiverse.io by Smit-Prajapati */
.parent {
  width: 100%;
  padding: 0;
  perspective: 1000px;
}

.card {
  padding-top: 50px;
  /* border-radius: 10px; */
  border: 3px solid rgb(255, 255, 255);
  transform-style: preserve-3d;
  background: linear-gradient(135deg, #0000 18.75%, #f3f3f3 0 31.25%, #0000 0), repeating-linear-gradient(45deg, #f3f3f3 -6.25% 6.25%, #ffffff 0 18.75%);
  background-size: 60px 60px;
  background-position:
    0 0,
    0 0;
  background-color: #f0f0f0;
  width: 100%;
  box-shadow: rgba(142, 142, 142, 0.3) 0px 30px 30px -10px;
  transition: all 0.5s ease-in-out;
}

.card:hover {
  background-position:
    -100px 100px,
    -100px 100px;
  transform: rotate3d(0.5, 1, 0, 30deg);
}

.content-box {
  background: var(--primary-blue);
  /* border-radius: 10px 100px 10px 10px; */
  transition: all 0.5s ease-in-out;
  padding: 60px 25px 25px 25px;
  transform-style: preserve-3d;
}

.content-box .card-title {
  display: inline-block;
  color: white;
  font-size: 25px;
  font-weight: 900;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 50px);
}

.content-box .card-title:hover {
  transform: translate3d(0px, 0px, 60px);
}

.content-box .card-content {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #f2f2f2;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 30px);
}

.content-box .card-content:hover {
  transform: translate3d(0px, 0px, 60px);
}

.content-box .see-more {
  cursor: pointer;
  margin-top: 1rem;
  display: inline-block;
  font-weight: 900;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--primary-blue);
  /* border-radius: 5px; */
  background: white;
  padding: 0.5rem 0.7rem;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 20px);
}

.content-box .see-more:hover {
  transform: translate3d(0px, 0px, 60px);
}

.date-box {
  position: absolute;
  top: 30px;
  right: 30px;
  height: 60px;
  width: 60px;
  background: white;
  border: 1px solid var(--primary-blue);
  /* border-radius: 10px; */
  padding: 10px;
  transform: translate3d(0px, 0px, 80px);
  box-shadow: rgba(100, 100, 111, 0.2) 0px 17px 10px -10px;
}

.date-box span {
  display: block;
  text-align: center;
}

.date-box .month {
  color: var(--primary-blue);
  font-size: 9px;
  font-weight: 700;
}

.date-box .date {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-blue);
}

/* loading buku */

/* From Uiverse.io by Nawsome */
.loader {
  --background: linear-gradient(135deg, #23c4f8, #275efe);
  --shadow: rgba(39, 94, 254, 0.28);
  --text: #6c7486;
  --page: rgba(255, 255, 255, 0.36);
  --page-fold: rgba(255, 255, 255, 0.52);
  --duration: 3s;
  width: 200px;
  height: 140px;
  position: relative;
}

.loader:before,
.loader:after {
  --r: -6deg;
  content: "";
  position: absolute;
  bottom: 8px;
  width: 120px;
  top: 80%;
  box-shadow: 0 16px 12px var(--shadow);
  transform: rotate(var(--r));
}

.loader:before {
  left: 4px;
}

.loader:after {
  --r: 6deg;
  right: 4px;
}

.loader div {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  position: relative;
  z-index: 1;
  perspective: 600px;
  box-shadow: 0 4px 6px var(--shadow);
  background-image: var(--background);
}

.loader div ul {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.loader div ul li {
  --r: 180deg;
  --o: 0;
  --c: var(--page);
  position: absolute;
  top: 10px;
  left: 10px;
  transform-origin: 100% 50%;
  color: var(--c);
  opacity: var(--o);
  transform: rotateY(var(--r));
  -webkit-animation: var(--duration) ease infinite;
  animation: var(--duration) ease infinite;
}

.loader div ul li:nth-child(2) {
  --c: var(--page-fold);
  -webkit-animation-name: page-2;
  animation-name: page-2;
}

.loader div ul li:nth-child(3) {
  --c: var(--page-fold);
  -webkit-animation-name: page-3;
  animation-name: page-3;
}

.loader div ul li:nth-child(4) {
  --c: var(--page-fold);
  -webkit-animation-name: page-4;
  animation-name: page-4;
}

.loader div ul li:nth-child(5) {
  --c: var(--page-fold);
  -webkit-animation-name: page-5;
  animation-name: page-5;
}

.loader div ul li svg {
  width: 90px;
  height: 120px;
  display: block;
}

.loader div ul li:first-child {
  --r: 0deg;
  --o: 1;
}

.loader div ul li:last-child {
  --o: 1;
}

.loader span {
  display: block;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 20px;
  text-align: center;
  color: var(--text);
}

@keyframes page-2 {
  0% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  35%,
  100% {
    opacity: 0;
  }

  50%,
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-3 {
  15% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  35% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }

  65%,
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-4 {
  30% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  65%,
  100% {
    opacity: 0;
  }

  80%,
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-5 {
  45% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  65% {
    opacity: 1;
  }

  80%,
  100% {
    opacity: 0;
  }

  95%,
  100% {
    transform: rotateY(0deg);
  }
} 

/* buku */
/* end loading buku */

/* ================= GLASSMORPHISM LAYER ================= */
.glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Glass card mixin applied to all cards */
.service-card,
.portfolio-card,
.team-card,
.contact-form,
.carousel-caption-custom {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 16px !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    0 30px 60px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Floating animation for all cards */
@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-on-scroll.animated.service-card,
.animate-on-scroll.animated.portfolio-card,
.animate-on-scroll.animated.team-card {
  animation: cardFloat 6s ease-in-out infinite;
}

/* Hover: intensify float and glass */
.service-card:hover,
.portfolio-card:hover,
.team-card:hover {
  animation: none;
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.2),
    0 50px 100px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(20px) !important;
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
}

/* ================= DEPTH & 3D SHADOW ================= */
.depth-shadow {
  box-shadow:
    0 10px 25px rgba(0,0,0,0.2),
    0 25px 60px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.2);
}


/* ================== */
/* DARK MODE NAVBAR   */
/* ================== */

body.dark-mode .navbar {
  background: rgba(20,20,20,0.7) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.6);
}

body.dark-mode .navbar-nav .nav-link:hover {
  background: rgba(255,255,255,0.06);
}


.switch {
  width: 60px;
  height: 30px;
  background: rgba(0,0,0,0.1);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 3px;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(10px);
}

.switch span {
  font-size: 14px;
  z-index: 2;
}

.switch::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  left: 3px;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#themeSwitch {
  display: none;
}

#themeSwitch:checked + .switch::before {
  transform: translateX(30px);
}

/* From Uiverse.io by satyamchaudharydev */ 
/* The switch - the box around the slider */
.switch {
  display: block;
  --width-of-switch: 3.5em;
  --height-of-switch: 2em;
  /* size of sliding icon -- sun and moon */
  --size-of-icon: 1.4em;
  /* it is like a inline-padding of switch */
  --slider-offset: 0.3em;
  position: relative;
  width: var(--width-of-switch);
  height: var(--height-of-switch);
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f4f4f5;
  transition: .4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: var(--size-of-icon,1.4em);
  width: var(--size-of-icon,1.4em);
  border-radius: 20px;
  left: var(--slider-offset,0.3em);
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(40deg,#ff0080,#ff8c00 70%);
  ;
 transition: .4s;
}

input:checked + .slider {
  background-color: #303136;
}

input:checked + .slider:before {
  left: calc(100% - (var(--size-of-icon,1.4em) + var(--slider-offset,0.3em)));
  background: #303136;
  /* change the value of second inset in box-shadow to change the angle and direction of the moon  */
  box-shadow: inset -3px -2px 5px -2px #8983f7, inset -10px -4px 0 0 #a3dafb;
}