/* ==========================================
   DIVINE DHARMA
   Global Styles
========================================== */

/* ========= RESET ========= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--gradient-light);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: var(--transition);
}

/* ========= IMAGES ========= */

img {
  max-width: 100%;
  display: block;
}

/* ========= LINKS ========= */

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ========= LIST ========= */

ul {
  list-style: none;
}

/* ========= BUTTON ========= */

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========= INPUT ========= */

input,
textarea,
select {
  font-family: inherit;
  outline: none;
}

/* ========= HEADINGS ========= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
}

h1 {
  font-size: var(--fs-5xl);
}

h2 {
  font-size: var(--fs-4xl);
}

h3 {
  font-size: var(--fs-3xl);
}

p {
  color: var(--color-text-light);
}

/* ========= CONTAINER ========= */

.container {
  width: 92%;

  max-width: var(--container-width);

  margin: auto;
}

/* ========= SECTION ========= */

.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;

  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;

  max-width: 700px;

  margin: 0 auto 60px;

  color: var(--color-text-light);
}

/* ========= GRID ========= */

.grid {
  display: grid;

  gap: 30px;
}

/* ========= FLEX ========= */

.flex {
  display: flex;
}

/* ========= BUTTONS ========= */

.btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 14px 34px;

  border-radius: var(--radius-round);

  font-weight: 600;

  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);

  color: #fff;

  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--gradient-red);

  color: #fff;
}

.btn-secondary:hover {
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid var(--color-secondary);

  color: var(--color-secondary);

  background: transparent;
}

.btn-outline:hover {
  background: var(--color-secondary);

  color: #fff;
}

/* ========= CARD ========= */

.card {
  background: rgba(255, 255, 255, 0.88);

  backdrop-filter: blur(12px);

  border-radius: var(--radius-lg);

  padding: 30px;

  border: 1px solid rgba(255, 255, 255, 0.3);

  box-shadow: var(--shadow-md);

  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
}

/* ========= BADGE ========= */

.badge {
  display: inline-block;

  padding: 8px 18px;

  border-radius: 50px;

  background: rgba(212, 175, 55, 0.15);

  color: var(--color-accent);

  font-weight: 600;

  font-size: var(--fs-sm);
}

/* ========= PAGE LOADER ========= */

#loader {
  position: fixed;

  inset: 0;

  background: var(--color-light);

  z-index: 99999;

  display: flex;

  justify-content: center;

  align-items: center;
}

#loader::before {
  content: '🕉';

  font-size: 60px;

  animation: loaderSpin 1.5s linear infinite;
}

@keyframes loaderSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ========= SCROLL TOP ========= */

#scrollTopBtn {
  position: fixed;

  right: 25px;

  bottom: 25px;

  width: 55px;

  height: 55px;

  border-radius: 50%;

  background: var(--gradient-primary);

  color: #fff;

  font-size: 22px;

  display: flex;

  justify-content: center;

  align-items: center;

  box-shadow: var(--shadow-lg);

  display: none;

  z-index: 999;
}

#scrollTopBtn:hover {
  transform: translateY(-5px);
}

/* ========= TEXT ========= */

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--color-secondary);
}

.text-red {
  color: var(--color-accent);
}

/* ========= MARGIN ========= */

.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 30px;
}
.mt-4 {
  margin-top: 40px;
}
.mt-5 {
  margin-top: 50px;
}

.mb-1 {
  margin-bottom: 10px;
}
.mb-2 {
  margin-bottom: 20px;
}
.mb-3 {
  margin-bottom: 30px;
}
.mb-4 {
  margin-bottom: 40px;
}
.mb-5 {
  margin-bottom: 50px;
}

/* ========= HIDE ========= */

.hide {
  display: none;
}

/* ========= SHOW ========= */

.show {
  display: block;
}

/* ========= CUSTOM SCROLLBAR ========= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #efe8da;
}

::-webkit-scrollbar-thumb {
  background: var(--color-secondary);

  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ========= SELECTION ========= */

::selection {
  background: var(--color-secondary);

  color: #fff;
}

/* ==========================================
   STICKY HEADER
========================================== */

.sticky {
  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  z-index: 9999;

  animation: slideDown 0.35s ease;

  box-shadow: var(--shadow-md);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/* ==========================================
   REVEAL ANIMATION
========================================== */

.reveal {
  opacity: 0;

  transform: translateY(50px);

  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}
