@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
@import "tailwindcss";

@theme {
  /*------ ***Fonts*** ------*/
  --font-family-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --text-primary-10:1rem;
  --text-primary-12:1.2rem;
  --text-primary-14:1.4rem;
  --text-primary-16:1.6rem;
  --text-primary-18:1.8rem;
  --text-primary-20:2rem;
  --text-primary-22:2.2rem;
  --text-primary-24:2.4rem;
  --text-heading:6rem;
  
  /*------ ***Colours*** ------*/
  --color-primary: #ef1c25;
  --color-gray: #74747c;
  --color-gray-100:#B3B3BE;
  --color-gray-200:#D9D9D9;

  /* ----- ***Spacings*** ----- */
  --spacing-px:.1rem
  --spacing-1: .4rem;
  --spacing-1.5: .6rem;
  --spacing-2: .8rem;
  --spacing-2.5: 1rem;
  --spacing-3: 1.2rem;
  --spacing-3.5: 1.4rem;
  --spacing-4: 1.6rem;
  --spacing-5: 2rem;
  --spacing-6: 2.4rem;
  --spacing-7: 2.8rem;
  --spacing-8: 3.2rem;
  --spacing-9: 3.6rem;
  --spacing-10: 4rem;
  --spacing-11: 4.4rem;
  --spacing-12: 4.8rem;
  --spacing-16: 6.4rem;
  --spacing-17: 6.8rem;
  --spacing-18: 7.2rem;
  --spacing-19: 7.6rem;
  --spacing-20: 8rem;
  --spacing-21: 8.4rem;
  --spacing-50: 5rem;
  --spacing-100: 10rem;
}

@layer base {
  *{
    @apply box-border p-0 m-0;
  }
  html {
    @apply font-["Poppins"] scroll-smooth ;
    font-size: 62.5%; /* 1rem = 10px for easier calculations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    @apply m-0 p-0 leading-[3rem] text-primary-18 text-gray overflow-x-hidden;
  }

  *,
  *::before,
  *::after {
    @apply box-border;
  }

  *:focus {
    outline: 2px solid var(--color-peerless-red);
    outline-offset: 2px;
  }

  ul,
  ol,
  li {
    @apply p-0 m-0 list-none;
  }

  img,
  svg {
    @apply max-w-full h-auto border-0;
  }

  a {
    @apply no-underline transition-all duration-300 ease-in-out;
  }

  button {
    @apply cursor-pointer border-none bg-transparent;
  }
  ::-moz-selection {
    @apply bg-primary;
    @apply text-white;
    text-shadow: none;
  }
  ::selection {
      @apply bg-primary;
      @apply text-white;
      text-shadow: none;
  }
  h1{
    @apply text-heading;
    @apply leading-[7.2rem];
  }
  h2 {
    @apply text-heading;
    @apply leading-[7.2rem];
  }
}

@layer components {
  .btn-primary {
    @apply bg-[--color-peerless-red] text-white px-6 py-3 rounded-lg font-medium hover:bg-red-700 transition-colors duration-200 focus:ring-2 focus:ring-[--color-peerless-red] focus:ring-offset-2;
  }

  .btn-secondary {
    @apply bg-gray-600 text-white px-6 py-3 rounded-lg font-medium hover:bg-gray-700 transition-colors duration-200 focus:ring-2 focus:ring-gray-500 focus:ring-offset-2;
  }

  .btn-outline {
    @apply border-2 border-[--color-peerless-red] text-[--color-peerless-red] px-6 py-3 rounded-lg font-medium hover:bg-[--color-peerless-red] hover:text-white transition-colors duration-200 focus:ring-2 focus:ring-[--color-peerless-red] focus:ring-offset-2;
  }

  .card {
    @apply bg-white rounded-lg shadow-lg overflow-hidden;
  }

  .card-body {
    @apply p-6;
  }

  .container-padding {
    @apply px-4 sm:px-6 lg:px-8;
  }

  .header-height {
    @apply h-16 md:h-20;
  }

  .section-spacing {
    @apply pt-[--spacing-21] pb-[--spacing-96];
  }

  .section-heading {
    @apply relative font-semibold text-black;
  }

  .section-heading.white {
    @apply text-white;
  }

  .section-heading.thin {
    @apply font-normal;
  }

  .section-heading.medium {
    @apply font-medium;
  }

  .section-heading.blocked .coloured-block {
    @apply block mx-auto mt-6;
  }

  .coloured-block {
    @apply inline-block w-50 h-1.5 rounded-full ml-2.5;
    background: linear-gradient(90deg, #ef1c25 0%, #fedc00 100%);
  }

  .custom-btn {
    @apply block w-max text-primary-18 leading-[2.6rem] font-medium py-3 pl-[3rem] pr-8 text-black rounded-full bg-white relative overflow-hidden no-underline transition-all duration-300 ease-in-out;
  }

  .custom-btn > span{
    @apply flex justify-center items-center gap-x-3 relative z-10;
  }
  .custom-btn object{@apply w-[15px] h-3.5;}

  .bordered-btn {
    @apply border-2 border-black bg-white relative z-[1] py-2.5;
  }
  button.bordered-btn{
    border: 2px solid !important;
  }

  .bordered-btn::after {
    content: "";
    @apply absolute w-0 h-full top-0 right-0 z-[-1] bg-black;
    transition: 0.5s all ease;
  }

  .bordered-btn:hover {
    @apply text-white;
  }

  .bordered-btn:hover::after {
    @apply left-0 w-full;
  }

  .white-btn {
    @apply bg-white relative z-[1];
  }

  .white-btn::after {
    content: "";
    @apply absolute w-0 h-full top-0 right-0 z-[-1];
    background-color: #ef1c25;
    transition: 0.5s all ease;
  }

  .white-btn:hover {
    @apply text-white;
  }

  .white-btn:hover::after {
    @apply left-0 w-full;
  }

  .white-btn:hover object {
    filter: brightness(0) saturate(100%) invert(100%);
  }

  .header-wrap {
    @apply shadow-[0_2px_8px_rgba(0,0,0,0.15)] transition-all duration-700 ease-in-out;
  }

  .header-wrap.sticky-header {
    @apply fixed left-0 top-0 w-full bg-white z-50;
  }

  .hover-gradient-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #ef1c25, #ef1c25 50%, #000 50%);
    background-size: 200% 100%;
    background-position: 100%;
    transition: 0.5s all ease;
  }

  .hover-gradient-text:hover,
  .active-gradient-text {
    background-position: 0%;
  }

  .mobile-menu {
    @apply transition-all duration-300 ease-in-out;
  }

  .mobile-menu.open {
    @apply right-0;
  }

  .footer-link {
    @apply block mb-[1.8rem] text-gray-100 relative transition-all duration-300 ease-in-out;
  }

  .footer-link:last-of-type {
    @apply mb-0;
  }

  .footer-link:hover {
    @apply text-red-600;
  }

  .bottom-bar-link a:not(:last-of-type){
    @apply border-r border-solid border-[#74747C];
  }

  .social-links a svg path{
    @apply fill-white transition-all duration-500;
  }
  .social-links a:hover svg path{
    @apply fill-primary;
  }

  .scroll-dot {
    animation: scrollAnim 1.5s infinite ease-in-out;
  }

  #scrollToTopButton.show {
    @apply block;
  }

  #scrollToTopButton svg {
    @apply -rotate-90;
  }

  .scroll-hidden {
    overflow: auto;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
  }
  
  .scroll-hidden::-webkit-scrollbar {
    display: none; 
  }

  .common-content h2{
    @apply text-black text-[3.6rem] leading-tight my-2.5 font-semibold;
  }
  .common-content p{
    @apply mb-4;
  }
  .common-content ul li{
    @apply list-disc;
    @apply mb-4;
  }
  .common-content ol li{
    list-style-type: lower-alpha;
    @apply mb-4;
  }
  .common-content figure{
    @apply mx-auto mb-10;
  }
}

@layer utilities {
  .custom-scrollbar::-webkit-scrollbar {
    width: 8px;
  }

  .custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
  }

  .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }

  /* Container Style */
  .container {
    @apply w-full;
    @apply max-w-full;
    @apply px-5;
  }
  @media (min-width: 576px) {
    .container {
      @apply max-w-[54rem];
      @apply px-3;
    }
  }
  @media (min-width: 768px) {
    .container {
      @apply max-w-[72rem];
    }
  }
  @media (min-width: 992px) {
    .container {
      @apply max-w-[96rem];
    }
  }
  @media (min-width: 1200px) {
    .container {
      @apply max-w-[114rem];
    }
  }
  @media (min-width: 1400px) {
    .container {
      @apply max-w-[144rem] px-10;
      
    }
  }

  /* Wide Container */
  .container-xl {
    @apply w-full;
    @apply max-w-full;
    @apply px-3;
  }
  @media (min-width: 992px) {
    .container-xl {
      @apply max-w-[96rem];
    }
  }
  @media (min-width: 1200px) {
    .container-xl {
      @apply max-w-[114rem];
    }
  }
  @media (min-width: 1400px) {
    .container-xl {
      @apply max-w-[130rem];
    }
  }
  @media (min-width: 1600px) {
    .container-xl {
      @apply max-w-[162rem];
    }
  }

  .backdrop-blur-sm {
    backdrop-filter: blur(4px);
  }

  .text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .gradient-peerless {
    @apply bg-gradient-to-tr from-[--color-peerless-red] to-[#c41e24];
  }

  .gradient-gold {
    @apply bg-gradient-to-tr from-[--color-peerless-gold] to-[#d97706];
  }

  .mobile-menu-overlay {
    @apply fixed inset-0 bg-black/50 backdrop-blur-sm z-40;
  }

  .mobile-menu-drawer {
    @apply fixed top-0 right-0 h-full w-80 bg-white shadow-2xl z-50;
  }

  .section-spacing{
    @apply pt-21 pb-100;
  }

  .form-group{
    @apply relative pb-2.5 mb-1;
  }
  .form-group label{
    @apply text-primary-18 text-black leading-tight mb-2.5 inline-block;
  }
  .form-group label sup{
    @apply text-primary text-primary-18 -top-0.5;
  }
  .form-control{
    @apply border border-solid border-[#A9ACB3] px-3.5 py-[1.7rem] text-primary-18 leading-[2.7rem] font-normal text-black w-full mb-1 transition-all duration-500;
  }
  .form-control:focus{
    @apply border-black;
  }
  textarea.form-control{
    @apply resize-none h-[17.4rem] overflow-auto;
  }
  .form-control::placeholder{
    @apply text-gray;
  }
  .frm-btn{
    @apply bg-white text-primary-18 leading-normal font-medium text-black pl-[3rem] pr-[6.2rem] py-[1.5rem] border border-solid border-black inline-block cursor-pointer transition-all duration-500;
    background: url(/images/button-arrow.svg) no-repeat right 3rem center;
  }
  .frm-btn:hover{
    @apply  text-white border-black;
    background-color: #000 !important;
  }

  /* Slider Pagination Style */
  .swiper-pagination.custom-pagination{
    position: relative !important;
    @apply pt-5;
  }
  .custom-pagination .swiper-pagination-bullet{
    @apply bg-gray;
    width: 1rem !important;
    height: 1rem !important;
    border-radius: 1rem !important;
    transition: .5s all ease !important;
  }
  .custom-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{
    background: #ef1c25 !important;
    width: 1.6rem !important;
    height: 1rem !important;
    border-radius: 1rem !important;
  }
}

/* =========================
 Keyframe Animations
====================================*/
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes scrollAnim {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

@keyframes fade1 {
  0%, 100% {
    opacity: 0;
  }
  25%, 75% {
    opacity: 1;
  }
}

@keyframes fade2 {
  0%, 100% {
    opacity: 0;
  }
  30%, 70% {
    opacity: 1;
  }
}

@keyframes fade3 {
  0%, 100% {
    opacity: 0;
  }
  20%, 60% {
    opacity: 1;
  }
}

.glow-circle {
  @apply rounded-full opacity-80;
  background: radial-gradient(circle, red 20%, transparent 70%);
  animation: glowBreath 2s infinite ease-in-out;
}
@keyframes glowBreath {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

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

.animate-slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

/* =========================
 Banner Slider Pagination Style 
====================================*/
.banner-swiper-pagination{
  width: max-content !important;
  @apply h-full;
  left: 5rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.banner-swiper-pagination .swiper-pagination-bullet{
  @apply w-5;
  height: 1px !important;
  @apply rounded-none;
  @apply bg-white;
  opacity: 1;
  @apply relative;
  @apply transition-all duration-700;
}
.banner-swiper-pagination .swiper-pagination-bullet::after{
  content: '';
  @apply absolute right-0 top-1/2 -translate-y-1/2 w-full h-2.5 bg-transparent ;
}
.banner-swiper-pagination .swiper-pagination-bullet .bullet-number{
    @apply absolute;
    @apply -right-6;
    @apply top-[-0.7rem];
    @apply opacity-0;
    @apply text-primary-16;
    @apply leading-4;
    @apply font-normal;
    font-family: var(--primary-font);
    @apply text-white;
    @apply transition-all duration-700;
}
.banner-swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{
    @apply w-[4.6rem];
    @apply transition-all duration-700;
    .bullet-number{
        @apply opacity-100;
    }
}

/*=======================
Footer Css 
====================================*/
.footer-links-block{
  h3{
      @apply text-primary-22;
      @apply font-semibold;
      @apply leading-[3.3rem];
      @apply text-white;
      @apply mb-[3.4rem]
  }
  nav a{
      @apply block;
      @apply mb-[1.8rem];
      @apply text-gray-100;
      @apply relative;
      @apply transition-all;

      &:nth-last-of-type{
          @apply mb-0;
      }
      &:hover{
          @apply text-primary;
      }
  }
}

/* =========================
 Home Page Style 
====================================*/
  /* >>> Illuminating Lives Style */
  .images-wrap .images-row > div{
    aspect-ratio: 1/1;
  }

  .column-content-right p strong {
    font-weight: 600;
  }

  .images-row > div.pattern-block{
      @apply flex justify-center items-center;
  }

  .images-row > div.image-block img{
      @apply bg-blend-luminosity;
      @apply grayscale-100;
  }

  .image-block.images-loop {
    @apply relative;
  }
  
  .images-loop-1 .img {
    @apply absolute opacity-0;
    animation: fade1 4s infinite;
  }
  .images-loop-1 .img1 {
    animation-delay: 0s;
  }
  .images-loop-1 .img2 {
    animation-delay: 2s;
  }
  
  .images-loop-2 .img {
    @apply absolute opacity-0;
    animation: fade2 4s infinite;
  }
  .images-loop-2 .img1 {
    animation-delay: 1s;
  }
  .images-loop-2 .img2 {
    animation-delay: 3s;
  }

  .images-loop-3 .img {
    @apply absolute opacity-0;
    animation: fade3 4s infinite;
  }
  .images-loop-3 .img1 {
    animation-delay: 0.5s;
  }
  .images-loop-3 .img2 {
    animation-delay: 2.5s;
  }

/* =========================
 About Us Timeless Style 
====================================*/
.year-list p strong,
.year-list p b {
  font-weight: 600;
}

/* =========================
 Responsive Style 
====================================*/
@media (max-width: 1399px) {
  h1{
    @apply text-[5rem];
    @apply leading-[6.2rem];
  }
  h2{
    @apply text-[4.5rem];
    @apply leading-[6rem]; 
  }
  body{
    @apply text-primary-16;
    @apply leading-6;
  }
}

@media (max-width: 1199px) {
  h2{
    @apply text-[3.7rem];
    @apply leading-[4.5rem]; 
  }
  .custom-btn{
    @apply text-primary-16;
  }

  .footer-link {
    @apply mb-3;
  }
}

@media (max-width: 991px) {
  h1{
    @apply text-[4rem];
    @apply leading-[5.2rem];
  }
  .section-spacing{
    @apply py-50;
  }
  .custom-btn{
    @apply leading-6;
    @apply px-6 py-2;
    @apply w-fit;
    @apply text-center;
  }
  .bordered-btn {
    @apply py-1.5;
  }

  .coloured-block {
    @apply block w-[3rem] h-[5px] mx-auto mt-2.5;
  }
  .coloured-block.inline-sec{
    @apply inline-block ml-[5px];
  }

  .footer-links-block {
    h3 {
        @apply text-primary-18;
        @apply leading-6;
        @apply mb-5;
    }
    nav a {
        @apply mb-3;
        @apply w-max max-w-full;
    }
  }

  .common-content h2{
    @apply text-[3rem];
  }
  .common-content figure{
    @apply  mb-5;
  }
}

@media (max-width: 767px) {
  h1{
    @apply text-[3.4rem];
    @apply leading-[4rem];
  }
  .container-padding {
    @apply px-3;
  }

  h2{
    @apply text-[3rem];
    @apply leading-[4rem]; 
  }

  .custom-btn object{@apply w-[13px] h-3;}

  /* Banner pagination responsive Style */
  .banner-swiper-pagination{
    left: 2rem !important;
    @apply gap-y-3;
    .swiper-pagination-bullet{
        @apply w-4;
      .bullet-number{
          @apply text-primary-12;
          @apply leading-3;
      }
      &.swiper-pagination-bullet-active{
          @apply w-8;
      }
    }
  }

  .form-control{
    @apply px-2.5 py-3 text-primary-16 leading-5 ;
  }
  .form-group label{
    @apply text-primary-16;
  }
  textarea.form-control{
    @apply h-[12rem];
  }
  .frm-btn{
    @apply text-primary-16 pl-5 pr-50 py-3;
    background: url(/images/button-arrow.svg) no-repeat right 2rem center
  }

  /* Footer Style */
  .footer-links-block {
    @apply px-3;
    h3 {
        @apply relative;
    }
    h3::after {
      content: url('/images/down-arrow.svg');
      @apply absolute right-0 top-0 transition-transform duration-300;
    }
    &.open h3::after {
      transform: rotate(180deg);
    }
  }

  .common-content h2{
    @apply text-[2.5rem];
  }
}

@media (max-width: 639px){
  .bottom-bar-link a:not(:last-of-type){
    @apply border-b border-solid border-[#74747C] border-r-0;
  }
}

@media print {
  .no-print {
    @apply hidden;
  }

  .print-only {
    @apply block;
  }
}
