/* ===================================
   CV BISIK - BOOTSTRAP ENHANCED STYLES
   =================================== */

/* ============ CUSTOM VARIABLES ============ */
:root {
  /* Primary Colors - Light Mode */
  --primary-color: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-light: #3d8bfd;
  --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);

  /* Light Theme Colors */
  --bg-body: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --border-color: #dee2e6;
  --shadow-sm: rgba(0, 0, 0, 0.075);
  --shadow-md: rgba(0, 0, 0, 0.15);
  --shadow-lg: rgba(0, 0, 0, 0.175);
}

/* ============ DARK MODE THEME ============ */
[data-theme="dark"] {
  /* --- 1. Background Colors (Tetap gelap untuk kontras) --- */
  --bg-body: #121212;
  --bg-secondary: #1f1f1f;
  --bg-card: #2c2c2c;

  /* --- 2. Text Colors (Menyala/Lebih Cerah) --- */
  /* Putih murni, ini yang paling 'menyala' di layar gelap */
  --text-primary: #ffffff;
  /* Abu-abu sangat terang */
  --text-secondary: #f0f0f0;
  /* Abu-abu terang untuk keterangan */
  --text-muted: #b0b0b0;

  /* --- 3. Border & Divider Colors --- */
  --border-color: #404040;

  /* --- 4. Shadows --- */
  --shadow-sm: rgba(0, 0, 0, 0.4);
  --shadow-md: rgba(0, 0, 0, 0.55);
  --shadow-lg: rgba(0, 0, 0, 0.7);

  /* --- 5. Primary Colors - Deep Navy/Indigo --- */
  /* Biru Tua/Navy yang dalam */
  --primary-color: #3b5998; /* Warna Navy yang klasik dan elegan */
  --primary-dark: #2d4373; /* Versi lebih gelap untuk shadow/hover */
  --primary-light: #5275c2; /* Versi lebih terang untuk hover/highlight */
  /* Gradient yang lebih halus */
  --gradient-primary: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);

  /* Opsional: Hover State (bisa disesuaikan) */
  --bg-hover: #333333;
}

/* ============ GLOBAL STYLES ============ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  background-color: var(--bg-body);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth Transitions for Theme Switch */
*,
*::before,
*::after {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Preserve specific transitions for interactive elements */
.btn,
.nav-link,
.card,
.service-card,
.feature-card,
.hover-lift {
  transition: all 0.3s ease !important;
}

/* ============ NAVIGATION ============ */
.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.2rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: white;
  transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
  color: white !important;
}

/* ============ HERO SECTION ============ */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-primary);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    -45deg,
    rgba(13, 110, 253, 0.8),
    rgba(10, 88, 202, 0.9),
    rgba(61, 139, 253, 0.7),
    rgba(13, 110, 253, 0.85)
  );
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
}

/* Smooth flowing gradient animation */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animated glow orbs - Professional & Subtle */
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    transparent 70%
  );
  animation: floatGlow 20s ease-in-out infinite;
  filter: blur(40px);
}

.hero-bg::before {
  width: 600px;
  height: 600px;
  top: -15%;
  left: -10%;
  animation-delay: 0s;
}

.hero-bg::after {
  width: 500px;
  height: 500px;
  bottom: -15%;
  right: -10%;
  animation-delay: 7s;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(30px, -40px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-20px, 30px) scale(0.95);
    opacity: 0.5;
  }
  75% {
    transform: translate(25px, 35px) scale(1.05);
    opacity: 0.7;
  }
}

.hero-image {
  text-align: center;
  animation: float 6s ease-in-out infinite;
}

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

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

/* ============ HOVER EFFECTS ============ */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ============ SERVICE CARDS ============ */
.service-card {
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary-color);
}

.service-icon {
  transition: all 0.3s ease;
}

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

/* ============ ABOUT IMAGE ============ */
.about-img-wrapper {
  position: relative;
}

.floating-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  animation: bounce 2s infinite;
}

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

/* ============ FEATURE CARDS ============ */
.feature-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.feature-number {
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* ============ GRADIENT BACKGROUNDS ============ */
.bg-gradient-primary {
  background: var(--gradient-primary);
}

/* ============ CTA BOX ============ */
.cta-box {
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    transparent 70%
  );
  animation: rotateGlow 25s linear infinite;
  filter: blur(30px);
}

/* Add shimmer effect */
.cta-box::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

/* ============ BUTTONS ============ */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ============ BADGES ============ */
.badge {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============ FOOTER ============ */
footer a:hover {
  color: white !important;
  transform: translateX(5px);
}

footer .btn-outline-light:hover {
  transform: scale(1.1);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ============ RESPONSIVE ADJUSTMENTS ============ */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .hero-wave svg {
    height: 40px;
  }

  .floating-badge {
    top: 10px;
    right: 10px;
  }
}

/* ============ UTILITY CLASSES ============ */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ============ PAGE SPECIFIC STYLES ============ */

/* About Page */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px white, 0 0 0 6px var(--primary-color);
}

/* Services Page */
.service-detail-card {
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.service-detail-card:hover {
  border-left-width: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Gallery Page */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: white;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Contact Page */
.contact-info-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  background: var(--primary-color) !important;
  color: white !important;
  transform: translateY(-5px);
}

.contact-info-card:hover * {
  color: white !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Map Placeholder */
.map-container {
  height: 400px;
  background: #e9ecef;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ LOADING ANIMATION ============ */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

/* ============ SCROLL TO TOP ============ */
#scrollTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#scrollTop.show {
  opacity: 1;
  visibility: visible;
}

#scrollTop:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============ PRELOADER (Optional) ============ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ============ PAGE HEADER SECTION ============ */
.page-header-section {
  min-height: 50vh;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.page-header-section .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
}

/* Floating particles */
.page-header-section .hero-bg::before,
.page-header-section .hero-bg::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.page-header-section .hero-bg::before {
  width: 300px;
  height: 300px;
  top: 20%;
  left: 10%;
  animation: float-particle 15s ease-in-out infinite;
}

.page-header-section .hero-bg::after {
  width: 200px;
  height: 200px;
  bottom: 20%;
  right: 15%;
  animation: float-particle 12s ease-in-out infinite reverse;
}

@keyframes gradientMove {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float-particle {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.2;
  }
  25% {
    transform: translate(20px, -20px) rotate(90deg);
    opacity: 0.4;
  }
  50% {
    transform: translate(-15px, 15px) rotate(180deg);
    opacity: 0.3;
  }
  75% {
    transform: translate(15px, 25px) rotate(270deg);
    opacity: 0.5;
  }
}

/* ============ ANIMATED BACKGROUND PARTICLES ============ */
/* Particles untuk Hero Section */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: float-up 15s ease-in infinite;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  left: 10%;
  animation-duration: 12s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  left: 20%;
  animation-duration: 15s;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  left: 30%;
  animation-duration: 18s;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  left: 40%;
  animation-duration: 14s;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  width: 4px;
  height: 4px;
  left: 50%;
  animation-duration: 16s;
  animation-delay: 3s;
}

.particle:nth-child(6) {
  width: 6px;
  height: 6px;
  left: 60%;
  animation-duration: 13s;
  animation-delay: 5s;
}

.particle:nth-child(7) {
  width: 3px;
  height: 3px;
  left: 70%;
  animation-duration: 17s;
  animation-delay: 2s;
}

.particle:nth-child(8) {
  width: 5px;
  height: 5px;
  left: 80%;
  animation-duration: 14s;
  animation-delay: 4s;
}

.particle:nth-child(9) {
  width: 4px;
  height: 4px;
  left: 90%;
  animation-duration: 15s;
  animation-delay: 1s;
}

.particle:nth-child(10) {
  width: 6px;
  height: 6px;
  left: 95%;
  animation-duration: 16s;
  animation-delay: 3s;
}

@keyframes float-up {
  0% {
    bottom: -10%;
    opacity: 0;
    transform: translateX(0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    bottom: 110%;
    opacity: 0;
    transform: translateX(100px) rotate(360deg);
  }
}

/* Animated waves background */
.waves-background {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E")
    repeat-x;
  animation: wave-animation 20s linear infinite;
}

.wave:nth-child(2) {
  bottom: 10px;
  opacity: 0.5;
  animation: wave-animation 15s linear infinite reverse;
}

.wave:nth-child(3) {
  bottom: 20px;
  opacity: 0.3;
  animation: wave-animation 25s linear infinite;
}

@keyframes wave-animation {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Gradient orbs floating */
.gradient-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: orb-float 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent);
  top: 60%;
  right: 10%;
  animation-delay: 5s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent);
  bottom: 20%;
  left: 50%;
  animation-delay: 10s;
}

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

/* Glowing dots pattern */
.dots-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
  animation: dots-move 20s linear infinite;
  pointer-events: none;
}

@keyframes dots-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* Scanline effect (subtle) */
.scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(255, 255, 255, 0.02) 50%
  );
  background-size: 100% 4px;
  animation: scanline-animation 8s linear infinite;
  pointer-events: none;
}

@keyframes scanline-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100%;
  }
}

/* Starfield effect */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.star:nth-child(2) {
  top: 40%;
  left: 30%;
  animation-delay: 0.5s;
}
.star:nth-child(3) {
  top: 60%;
  left: 50%;
  animation-delay: 1s;
}
.star:nth-child(4) {
  top: 80%;
  left: 70%;
  animation-delay: 1.5s;
}
.star:nth-child(5) {
  top: 30%;
  left: 90%;
  animation-delay: 2s;
}
.star:nth-child(6) {
  top: 70%;
  left: 20%;
  animation-delay: 2.5s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border-image: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) 1;
}

/* Icon Boxes */
.icon-box {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.icon-box:hover {
  transform: rotate(360deg);
}

/* Foto img Logo */
.logo-cv {
  /* Atur tinggi (height) logo agar sesuai dengan tinggi font H4 */
  height: 1.5em; /* Nilai ini mungkin perlu disesuaikan */
  width: auto; /* Memastikan rasio aspek terjaga */
  /* Opsional: Tambahkan sedikit penyesuaian posisi vertikal */
  vertical-align: middle;
}

/* Stats Counter Animation */
.counter {
  font-size: 3rem;
  font-weight: 700;
}

/* Testimonial Carousel */
.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.2;
}

/* Team Member Card */
.team-member-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.team-member-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 110, 253, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member-card:hover .overlay {
  opacity: 1;
}

/* Portfolio Filter Buttons */
.filter-btn {
  background: transparent;
  border: 2px solid #e9ecef;
  color: #6c757d;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Blog Card */
.blog-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-card .card-img-top {
  height: 250px;
  object-fit: cover;
}

/* Pricing Table */
.pricing-card {
  border: 2px solid #e9ecef;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: white;
}

.accordion-button:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Progress Bar */
.progress {
  height: 10px;
  border-radius: 1rem;
}

.progress-bar {
  background: var(--gradient-primary);
}

/* ============ DARK MODE COMPONENT STYLES ============ */

/* Bootstrap Background Classes */
[data-theme="dark"] .bg-light {
  background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-white {
  background-color: var(--bg-card) !important;
}

/* Bootstrap Text Classes */
[data-theme="dark"] .text-dark {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .text-muted {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .text-secondary {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-white-50 {
  color: var(--text-secondary) !important;
}

/* Cards & Service Cards */
[data-theme="dark"] .card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .pricing-card {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

/* Headings in Dark Mode */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .fw-bold {
  color: var(--text-primary) !important;
}

/* Paragraphs & Text */
[data-theme="dark"] p,
[data-theme="dark"] .lead {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .service-card p,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .card-body p {
  color: var(--text-secondary) !important;
}

/* Shadows */
[data-theme="dark"] .shadow-sm {
  box-shadow: 0 0.125rem 0.25rem var(--shadow-sm) !important;
}

[data-theme="dark"] .shadow {
  box-shadow: 0 0.5rem 1rem var(--shadow-md) !important;
}

[data-theme="dark"] .shadow-lg {
  box-shadow: 0 1rem 3rem var(--shadow-lg) !important;
}

/* Borders */
[data-theme="dark"] .border,
[data-theme="dark"] .service-card,
[data-theme="dark"] .feature-card {
  border-color: var(--border-color) !important;
}

/* Navbar - Keep primary color but adjust for dark mode */
[data-theme="dark"] .navbar.bg-primary {
  background-color: #1e2530 !important;
  border-bottom: 1px solid var(--border-color);
}

/* Stats Section & Other bg-primary sections */
[data-theme="dark"] .bg-primary {
  background-color: #2d3442 !important;
}

[data-theme="dark"] .bg-primary h1,
[data-theme="dark"] .bg-primary h2,
[data-theme="dark"] .bg-primary h3,
[data-theme="dark"] .bg-primary h4,
[data-theme="dark"] .bg-primary h5,
[data-theme="dark"] .bg-primary h6,
[data-theme="dark"] .bg-primary p {
  color: var(--text-primary) !important;
}

/* Dark Mode Hero/Primary Section Animated Gradient */
[data-theme="dark"] .hero-section .hero-bg,
[data-theme="dark"] .page-header-section .hero-bg {
  background: linear-gradient(
    -45deg,
    rgba(107, 127, 168, 0.3),
    rgba(90, 109, 143, 0.4),
    rgba(129, 149, 184, 0.25),
    rgba(107, 127, 168, 0.35)
  );
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
}

/* Dark Mode Glow Orbs - More Subtle */
[data-theme="dark"] .hero-bg::before,
[data-theme="dark"] .hero-bg::after {
  background: radial-gradient(
    circle,
    rgba(129, 149, 184, 0.12) 0%,
    rgba(129, 149, 184, 0.04) 40%,
    transparent 70%
  );
}

/* Footer */
[data-theme="dark"] footer.bg-dark {
  background-color: #0f1117 !important;
  border-top: 1px solid var(--border-color);
}

/* Forms */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: var(--bg-card);
  border-color: var(--primary-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.25rem rgba(107, 127, 168, 0.25);
}

[data-theme="dark"] .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Service Icons & Badges */
[data-theme="dark"] .service-icon {
  background-color: rgba(107, 127, 168, 0.12) !important;
}

[data-theme="dark"] .badge.bg-primary-subtle {
  background-color: rgba(107, 127, 168, 0.18) !important;
  color: var(--primary-light) !important;
}

[data-theme="dark"] .badge.bg-warning {
  background-color: #d4a017 !important;
  color: #1a1d23 !important;
}

/* Icon Boxes */
[data-theme="dark"] .icon-box {
  opacity: 0.95;
}

[data-theme="dark"] .bg-primary-subtle {
  background-color: rgba(107, 127, 168, 0.12) !important;
}

[data-theme="dark"] .bg-success-subtle {
  background-color: rgba(25, 135, 84, 0.15) !important;
}

[data-theme="dark"] .bg-warning-subtle {
  background-color: rgba(212, 160, 23, 0.15) !important;
}

[data-theme="dark"] .bg-danger-subtle {
  background-color: rgba(220, 53, 69, 0.15) !important;
}

/* Map Container */
[data-theme="dark"] .map-container {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color);
}

/* Gallery Overlay */
[data-theme="dark"] .gallery-overlay {
  background: linear-gradient(to top, rgba(26, 29, 35, 0.95), transparent);
}

/* Timeline */
[data-theme="dark"] .timeline::before {
  background: var(--primary-color);
}

[data-theme="dark"] .timeline-dot {
  background: var(--primary-color);
  box-shadow: 0 0 0 4px var(--bg-body), 0 0 0 6px var(--primary-color);
}

/* Service Detail Card */
[data-theme="dark"] .service-detail-card {
  background-color: var(--bg-card) !important;
  border-left-color: var(--primary-color) !important;
}

/* Filter Buttons */
[data-theme="dark"] .filter-btn {
  border-color: var(--border-color);
  color: var(--text-secondary);
  background-color: transparent;
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Accordion */
[data-theme="dark"] .accordion-item {
  background-color: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .accordion-button {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: white;
}

[data-theme="dark"] .accordion-body {
  background-color: var(--bg-card);
  color: var(--text-secondary);
}

/* Contact Info Card Hover */
[data-theme="dark"] .contact-info-card:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

[data-theme="dark"] .contact-info-card:hover * {
  color: white !important;
}

/* Hero Wave - Adjust for dark mode */
[data-theme="dark"] .hero-wave svg path {
  fill: var(--bg-body);
}

/* Pricing Card */
[data-theme="dark"] .pricing-card {
  border-color: var(--border-color);
}

[data-theme="dark"] .pricing-card:hover {
  border-color: var(--primary-color);
}

[data-theme="dark"] .pricing-card.featured {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(107, 127, 168, 0.25);
}

/* ============ DARK MODE TOGGLE BUTTON ============ */
#darkModeToggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

#darkModeToggle:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

#darkModeToggle:active {
  transform: scale(0.95);
}

/* Icon Animation */
#darkModeToggle i {
  transition: transform 0.3s ease;
}

#darkModeToggle:hover i {
  transform: rotate(20deg);
}

/* Dark mode specific toggle styling */
[data-theme="dark"] #darkModeToggle {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

[data-theme="dark"] #darkModeToggle:hover {
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.5);
}

/* ============ CODING SYMBOL PARTICLES ============ */
.code-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.code-particle {
  position: absolute;
  font-family: "Courier New", monospace;
  font-weight: 600;
  animation: floatCodeSubtle 25s linear infinite;
  opacity: 0;
}

/* Subtle Colors - Like Reference Website */
.code-particle:nth-child(1) {
  font-size: 16px;
  left: 10%;
  animation-duration: 28s;
  animation-delay: 0s;
  color: rgba(100, 200, 255, 0.4);
  text-shadow: 0 0 8px rgba(100, 200, 255, 0.3);
}
.code-particle:nth-child(2) {
  font-size: 14px;
  left: 20%;
  animation-duration: 32s;
  animation-delay: 3s;
  color: rgba(255, 220, 100, 0.35);
  text-shadow: 0 0 8px rgba(255, 220, 100, 0.25);
}
.code-particle:nth-child(3) {
  font-size: 20px;
  left: 30%;
  animation-duration: 30s;
  animation-delay: 6s;
  color: rgba(255, 150, 200, 0.4);
  text-shadow: 0 0 8px rgba(255, 150, 200, 0.3);
}
.code-particle:nth-child(4) {
  font-size: 17px;
  left: 40%;
  animation-duration: 34s;
  animation-delay: 2s;
  color: rgba(120, 220, 200, 0.38);
  text-shadow: 0 0 8px rgba(120, 220, 200, 0.28);
}
.code-particle:nth-child(5) {
  font-size: 18px;
  left: 50%;
  animation-duration: 29s;
  animation-delay: 5s;
  color: rgba(255, 180, 100, 0.36);
  text-shadow: 0 0 8px rgba(255, 180, 100, 0.26);
}
.code-particle:nth-child(6) {
  font-size: 22px;
  left: 60%;
  animation-duration: 31s;
  animation-delay: 8s;
  color: rgba(180, 120, 255, 0.4);
  text-shadow: 0 0 8px rgba(180, 120, 255, 0.3);
}
.code-particle:nth-child(7) {
  font-size: 15px;
  left: 70%;
  animation-duration: 33s;
  animation-delay: 4s;
  color: rgba(100, 220, 255, 0.35);
  text-shadow: 0 0 8px rgba(100, 220, 255, 0.25);
}
.code-particle:nth-child(8) {
  font-size: 19px;
  left: 80%;
  animation-duration: 27s;
  animation-delay: 7s;
  color: rgba(150, 200, 255, 0.38);
  text-shadow: 0 0 8px rgba(150, 200, 255, 0.28);
}
.code-particle:nth-child(9) {
  font-size: 17px;
  left: 90%;
  animation-duration: 30s;
  animation-delay: 1s;
  color: rgba(120, 255, 180, 0.36);
  text-shadow: 0 0 8px rgba(120, 255, 180, 0.26);
}
.code-particle:nth-child(10) {
  font-size: 16px;
  left: 15%;
  animation-duration: 32s;
  animation-delay: 5s;
  color: rgba(255, 240, 150, 0.37);
  text-shadow: 0 0 8px rgba(255, 240, 150, 0.27);
}
.code-particle:nth-child(11) {
  font-size: 18px;
  left: 25%;
  animation-duration: 28s;
  animation-delay: 0s;
  color: rgba(255, 140, 140, 0.38);
  text-shadow: 0 0 8px rgba(255, 140, 140, 0.28);
}
.code-particle:nth-child(12) {
  font-size: 21px;
  left: 35%;
  animation-duration: 31s;
  animation-delay: 4s;
  color: rgba(200, 180, 255, 0.4);
  text-shadow: 0 0 8px rgba(200, 180, 255, 0.3);
}
.code-particle:nth-child(13) {
  font-size: 17px;
  left: 45%;
  animation-duration: 33s;
  animation-delay: 7s;
  color: rgba(255, 170, 210, 0.36);
  text-shadow: 0 0 8px rgba(255, 170, 210, 0.26);
}
.code-particle:nth-child(14) {
  font-size: 19px;
  left: 55%;
  animation-duration: 29s;
  animation-delay: 2s;
  color: rgba(160, 200, 255, 0.38);
  text-shadow: 0 0 8px rgba(160, 200, 255, 0.28);
}
.code-particle:nth-child(15) {
  font-size: 16px;
  left: 65%;
  animation-duration: 32s;
  animation-delay: 6s;
  color: rgba(140, 255, 200, 0.37);
  text-shadow: 0 0 8px rgba(140, 255, 200, 0.27);
}
.code-particle:nth-child(16) {
  font-size: 20px;
  left: 75%;
  animation-duration: 30s;
  animation-delay: 8s;
  color: rgba(255, 210, 140, 0.4);
  text-shadow: 0 0 8px rgba(255, 210, 140, 0.3);
}
.code-particle:nth-child(17) {
  font-size: 17px;
  left: 85%;
  animation-duration: 31s;
  animation-delay: 3s;
  color: rgba(255, 160, 150, 0.36);
  text-shadow: 0 0 8px rgba(255, 160, 150, 0.26);
}
.code-particle:nth-child(18) {
  font-size: 18px;
  left: 95%;
  animation-duration: 28s;
  animation-delay: 1s;
  color: rgba(170, 150, 255, 0.38);
  text-shadow: 0 0 8px rgba(170, 150, 255, 0.28);
}

@keyframes floatCodeSubtle {
  0% {
    bottom: -10%;
    opacity: 0;
    transform: translateX(0) rotate(0deg);
  }
  15% {
    opacity: 0.4;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    bottom: 110%;
    opacity: 0;
    transform: translateX(30px) rotate(180deg);
  }
}

/* Dark mode particles keep their vibrant colors */

/* Dark Mode - Darker Blue Tones for Better Visibility */
[data-theme="dark"] .code-particle:nth-child(1) {
  color: rgba(100, 150, 220, 0.65);
  text-shadow: 0 0 10px rgba(100, 150, 220, 0.4);
}
[data-theme="dark"] .code-particle:nth-child(2) {
  color: rgba(200, 180, 120, 0.6);
  text-shadow: 0 0 10px rgba(200, 180, 120, 0.35);
}
[data-theme="dark"] .code-particle:nth-child(3) {
  color: rgba(200, 130, 180, 0.65);
  text-shadow: 0 0 10px rgba(200, 130, 180, 0.4);
}
[data-theme="dark"] .code-particle:nth-child(4) {
  color: rgba(100, 180, 170, 0.62);
  text-shadow: 0 0 10px rgba(100, 180, 170, 0.37);
}
[data-theme="dark"] .code-particle:nth-child(5) {
  color: rgba(220, 160, 100, 0.6);
  text-shadow: 0 0 10px rgba(220, 160, 100, 0.35);
}
[data-theme="dark"] .code-particle:nth-child(6) {
  color: rgba(150, 110, 200, 0.65);
  text-shadow: 0 0 10px rgba(150, 110, 200, 0.4);
}
[data-theme="dark"] .code-particle:nth-child(7) {
  color: rgba(90, 170, 210, 0.6);
  text-shadow: 0 0 10px rgba(90, 170, 210, 0.35);
}
[data-theme="dark"] .code-particle:nth-child(8) {
  color: rgba(120, 160, 220, 0.63);
  text-shadow: 0 0 10px rgba(120, 160, 220, 0.38);
}
[data-theme="dark"] .code-particle:nth-child(9) {
  color: rgba(100, 200, 150, 0.6);
  text-shadow: 0 0 10px rgba(100, 200, 150, 0.35);
}
[data-theme="dark"] .code-particle:nth-child(10) {
  color: rgba(210, 200, 130, 0.62);
  text-shadow: 0 0 10px rgba(210, 200, 130, 0.37);
}
[data-theme="dark"] .code-particle:nth-child(11) {
  color: rgba(210, 120, 120, 0.63);
  text-shadow: 0 0 10px rgba(210, 120, 120, 0.38);
}
[data-theme="dark"] .code-particle:nth-child(12) {
  color: rgba(170, 150, 210, 0.65);
  text-shadow: 0 0 10px rgba(170, 150, 210, 0.4);
}
[data-theme="dark"] .code-particle:nth-child(13) {
  color: rgba(210, 140, 180, 0.6);
  text-shadow: 0 0 10px rgba(210, 140, 180, 0.35);
}
[data-theme="dark"] .code-particle:nth-child(14) {
  color: rgba(130, 170, 220, 0.63);
  text-shadow: 0 0 10px rgba(130, 170, 220, 0.38);
}
[data-theme="dark"] .code-particle:nth-child(15) {
  color: rgba(110, 200, 170, 0.62);
  text-shadow: 0 0 10px rgba(110, 200, 170, 0.37);
}
[data-theme="dark"] .code-particle:nth-child(16) {
  color: rgba(220, 180, 120, 0.65);
  text-shadow: 0 0 10px rgba(220, 180, 120, 0.4);
}
[data-theme="dark"] .code-particle:nth-child(17) {
  color: rgba(220, 140, 130, 0.6);
  text-shadow: 0 0 10px rgba(220, 140, 130, 0.35);
}
[data-theme="dark"] .code-particle:nth-child(18) {
  color: rgba(150, 130, 210, 0.63);
  text-shadow: 0 0 10px rgba(150, 130, 210, 0.38);
}
