/* =========================================================
   components.css
   UI Components — Responsive, Mobile First
   ========================================================= */


/* ------------------------------
   CARD COMPONENT
--------------------------------*/

.card {
  background: var(--color-secondary);
  padding: clamp(18px, 3vw, 28px);
  margin-block: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.65);
}


/* ------------------------------
   PRIMARY BUTTON SYSTEM
--------------------------------*/

.btn-wrap {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
}

.btn-wrap-sm {
	position: relative;
	width: 100%;
	max-width: 140px;
	height: 38px;
	overflow: hidden;
	border-radius: 6px;
	margin: auto;
}

.btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .4s ease;
  font-size: 15px;
}

.btn a {
  color: inherit;
  text-decoration: none;
}


/* Base button */
.btn.base {
  background: linear-gradient(
    45deg,
    var(--color-primary-1),
    var(--color-primary-2)
  );
  color: var(--color-white);
  z-index: 1;
}


/* Hover layer */
.btn.hover {
  background: linear-gradient(
    135deg,
    var(--color-secondary-1),
    var(--color-secondary-2)
  );
  color: white;
  transform: translateY(100%);
  z-index: 2;
}


/* Hover animation */
.btn-wrap:hover .hover {
  transform: translateY(0);
}

.btn-wrap:hover .base {
  transform: translateY(-100%);
}


/* Small version hover */
.btn-wrap-sm:hover .hover {
  transform: translateY(0);
}

.btn-wrap-sm:hover .base {
  transform: translateY(-100%);
}


/* ------------------------------
   BUTTON GROUP
--------------------------------*/

.group-btn {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


/* ------------------------------
   SECONDARY BUTTON
--------------------------------*/

.btn.secondary {
  background: linear-gradient(
    135deg,
    var(--color-secondary-1),
    var(--color-secondary-2)
  );
  color: var(--color-white);
  z-index: 1;
}

.btn.secondary-hover {
  background: linear-gradient(
    45deg,
    var(--color-primary-1),
    var(--color-primary-2)
  );
  color: white;
  transform: translateY(100%);
  z-index: 2;
}

.btn-wrap:hover .secondary-hover {
  transform: translateY(0);
}


/* ------------------------------
   CUSTOM CURSOR
--------------------------------*/

.cursor_dot,
.cursor_outline {
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.cursor_dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(
    45deg,
    var(--color-primary-1),
    var(--color-primary-2)
  );
  border-radius: 50%;
}

.cursor_outline {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-primary-1);
  border-radius: 50%;
  opacity: 0.6;
}


/* ------------------------------
   ROUNDED CTA BUTTON (CIRCLE)
--------------------------------*/

  /* ROUNTED BUTTON  */
.rounded-btn-full {
	width: 250px;
	height: 250px;
	position: absolute;
	top: 75%;
	left: 3%;
}

  .rounded-btn {
    position: relative;
    width: 300px;
    height: 300px;
    cursor: default;
    user-select: none;
  }

  /* The single red background circle, behind icon and text ring */

  .expanding-bg {
	position: absolute;
	top: 25%;
	left: 25%;
	width: 64px;
	height: 64px;
	background-color: var(--color-primary-1);
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(1);
	box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
	transition: width 0.8s ease, height 0.8s ease, box-shadow 0.8s ease;
	z-index: 0;
}
  /* Expanded background when hover icon */
  .center-icon:hover ~ .expanding-bg {
    width: 150px;  /* expand to full container size */
    height: 150px;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.9);
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  
  }

  /* Circular text ring with white border, above red bg */
.circular-text {
	position: absolute;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	border: 1px solid var(--color-secondary-2);
	display: flex;
	justify-content: center;
	align-items: center;
	animation: spin 15s linear infinite;
	z-index: 2;
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: 4px;
	text-transform: uppercase;
	user-select: none;
	cursor: default;
	padding: 5px;
}

  svg {
    width: 300px;
    height: 300px;
    transform: rotate(-90deg);
    user-select: none;
    pointer-events: none;
  }

text {
	fill: white;
	font-weight: 600;
	font-size: 1.7rem;
	letter-spacing: 12px;
	text-transform: uppercase;
	font-family: 'Poppins', sans-serif;
	user-select: none;
	pointer-events: none;
	word-spacing: 3px;
}
    /* Outer icon circle with white border */
.center-icon {
	position: absolute;
	top: 25%;
	left: 25%;
	transform: translate(-50%, -50%);
	width: 110px;
	height: 110px;
	border-radius: 50%;
	border: 1.5px solid rgb(190, 190, 190);
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	box-sizing: border-box;
	background: transparent;
	padding: 12px;
	transition: border-color 0.3s ease;
	z-index: 3;
}
    .center-icon:hover {
      border-color: red;
    }

    /* Inner red circle with arrow */
    .red-circle {
      background-color: var(--color-primary-1);
      border-radius: 50%;
      width: 64px;
      height: 64px;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 0 15px var(--color-primary-1);
      transition: box-shadow 0.3s ease;
      z-index: 4;
    }

    .center-icon:hover .red-circle {
      box-shadow: 0 0 30px var(--color-primary-1);
    }

    .center-icon svg {
      width: 36px;
      height: 36px;
      fill: white;
      user-select: none;
      pointer-events: none;
      z-index: 5;
    }

    @keyframes spin {
      from {
        transform: rotate(0deg);
      } to {
        transform: rotate(360deg);
      }
    }




/* ------------------------------
   HEADING DECORATION
--------------------------------*/

.heading-line {
  width: 100%;
  max-width: 1020px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.line-container {
  position: relative;
  width: 100px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
}

.moving-dot {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 40px;
  background: #ff2b2b;
  transform: translateY(-50%);
  animation: moveDot 4.5s linear infinite;
}

@keyframes moveDot {
  from { left: 0; }
  to { left: 100%; }
}

.title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rotating-box {
  width: 10px;
  height: 10px;
  background: #ff2b2b;
  animation: rotateBox 4.5s linear infinite;
}

@keyframes rotateBox {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}


/* ------------------------------
   RESPONSIVE BREAKPOINTS
--------------------------------*/

/* Tablet */
@media (max-width: 992px) {

  .group-btn {
    justify-content: center;
  }

}


/* Mobile */
@media (max-width: 576px) {

  .btn-wrap {
    max-width: 100%;
  }

  .group-btn {
    flex-direction: row;
    align-items: center;
  }

  .cursor_dot,
  .cursor_outline {
    display: none; /* Disable custom cursor on touch devices */
  }

}