/*=========================================
  BUTTONS
=========================================*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.45);
}

.btn-outline {
  background: var(--surface-color);
  border: 2px solid rgba(14, 165, 233, 0.18);
  color: var(--heading-color);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 16px 34px;
  border-radius: 12px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  transition: 0.35s;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

/*=========================================
  CARD
=========================================*/
.card {
  background: var(--surface-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/*=========================================
  IMAGE
=========================================*/

.img-fluid {
  width: 100%;
  display: block;
}

/*=========================================
  BADGE
=========================================*/

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(25, 158, 220, 0.08);
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
}

/*=========================================
  DIVIDER
=========================================*/

.divider {
  width: 70px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50px;
  margin: 20px auto;
}

/*=========================================
  NAVIGATION
=========================================*/

.nav-list a {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  color: var(--heading-color);
  transition: var(--transition);
}

.nav-list a:hover {
  color: var(--primary-color);
}

/*=========================================
  ACTIVE UNDERLINE
=========================================*/

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-list a:hover::after {
  width: 100%;
}

/*=========================================
  CTA BUTTON
=========================================*/

.header .btn {
  padding: 12px 28px;
  white-space: nowrap;
  min-width: 140px;
}

/*=========================================
  ACTIVE NAVIGATION
=========================================*/

.nav-list a.active {
  color: var(--primary-color);
}

.nav-list a.active::after {
  width: 100%;
}

/*=========================================
  BUTTON SHINE EFFECT
=========================================*/

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transition: left 0.7s ease;
}

.btn-primary:hover::before {
  left: 140%;
}

/*=========================================
  THEME TOGGLE
=========================================*/

.theme-toggle {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #ffffff;
  color: var(--heading-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
}

.theme-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/*--------------------------------------*/
.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/*--------------------------------------*/
.moon-icon {
  display: none;
}

/*=========================================
  THEME ICON SWITCH
=========================================*/
.dark-mode .sun-icon {
  display: none;
}

.dark-mode .moon-icon {
  display: block;
}

body:not(.dark-mode) .sun-icon {
  display: block;
}

body:not(.dark-mode) .moon-icon {
  display: none;
}

/*=========================================
  DARK CARD
=========================================*/

body.dark-mode .card,
body.dark-mode .floating-card {
  background: rgba(30, 41, 59, 0.72);
  color: var(--heading-color);
  box-shadow: 0 20px 60px var(--shadow-color);
}

body.dark-mode .theme-toggle {
  background: var(--surface-color);
  color: var(--heading-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .theme-toggle:hover {
  background: #334155;
}
