:root {
  --primary-color: #8b5cf6;
  --secondary-color: #06b6d4;
  --dark-bg: #0a0a0c;
  --font-outfit: "Outfit", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: var(--font-outfit);
}

body {
  cursor: default;
}

/* Premium Glassmorphism */
.glass {
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.text-gradient {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-blob {
  position: fixed;
  width: 500px;
  height: 500px;
  max-width: 100vw;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: -1;
  pointer-events: none;
  opacity: 0.1;
}

.btn-glow:hover {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-premium {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-premium:hover {
  transform: scale(1.05);
  background: transparent;
  color: #0f172a !important;
  box-shadow: 0 0 0 2px #0f172a;
}

.btn-outline-premium {
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-outline-premium:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
  border-color: #0f172a;
}

@keyframes pulse-slow {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}
.animate-pulse-slow {
  animation: pulse-slow 3s infinite ease-in-out;
}

header {
  height: 80px;
  transition: all 0.3s ease;
  z-index: 1000;
}
header.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Scroll to Top Button */
.scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
}
.scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}
.scrollTopBtn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(139, 92, 246, 0.6);
}

.hover-primary {
  transition: color 0.3s ease;
}

/* Mobile Menu Drawer */
#mobileMenu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 85%;
  max-width: 360px;
  background-color: #ffffff;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#mobileMenu.show {
  transform: translateX(0);
}
#menuBackdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
#menuBackdrop.show {
  opacity: 1;
  visibility: visible;
}
body.menu-open {
  overflow: hidden !important;
  height: 100vh;
}

/* Section Spacing */
.section-padding {
  padding: 120px 0;
}

/* Custom Utilities */
.tracking-tight {
  letter-spacing: -0.025em;
}
.bg-darkbg-95 {
  background-color: rgba(255, 255, 255, 0.95);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
}

.pt-80 {
  padding-top: 80px;
}

.hero-underline {
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
  animation: underline-grow 1.5s ease-out forwards;
  transform-origin: center;
}

@keyframes underline-grow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 80%;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero-title {
    line-height: 1.4;
  }
}

.feature-card {
  background: rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: var(--primary-color);
}

.logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  /* Logo is normal in light mode */
  filter: none;
}
/* .logo-img:hover {
  transform: scale(1.05);
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
} */

.footer-logo {
  height: 85px !important;
}

/* Floating Social Sidebar */
.floating-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-item {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-right: none;
  border-radius: 12px 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}
.sidebar-item:hover {
  transform: translateX(-5px);
  width: 60px;
  color: white;
  padding-right: 10px;
}
.sidebar-item.fiverr {
  color: #1dbf73;
}
.sidebar-item.linkedin {
  color: #0077b5;
}
.sidebar-item.whatsapp {
  color: #25d366;
}

/* Dark Mode Overrides */
body.dark-mode {
  background-color: var(--dark-bg);
  color: white;
}
body.dark-mode .bg-blob {
  opacity: 1;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(10, 10, 12, 0) 70%
  );
}
body.dark-mode header.scrolled {
  background-color: rgba(10, 10, 12, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .glass {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
body.dark-mode .logo-img {
  filter: brightness(0) invert(1);
}
body.dark-mode #mobileMenu {
  background-color: #0a0a0c;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}
.text-white {
  color: #0f172a !important;
}
body.dark-mode .text-white {
  color: white !important;
}
body.dark-mode .text-secondary {
  color: #9ca3af !important;
}
body.dark-mode .feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
body.dark-mode .btn-outline-premium {
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
body.dark-mode .btn-outline-premium:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: white;
}
body.dark-mode .sidebar-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}
body.dark-mode .scrollTopBtn {
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
}
body.dark-mode .form-control {
  color: white !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
}
body.dark-mode .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}
body.dark-mode .btn-premium:hover {
  background: transparent;
  color: white !important;
  box-shadow: 0 0 0 2px white;
}
body.dark-mode .text-primary {
  color: var(--primary-color) !important;
}

.border-white-5 {
  border-color: rgba(0, 0, 0, 0.05) !important;
}
body.dark-mode .border-white-5 {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.hero-circle {
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
body.dark-mode .hero-circle {
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Ensure hover colors win specificity battles */
body .hover-primary:hover {
  color: var(--primary-color) !important;
}
