@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;
    --radius: 0.5rem;
  }

  .dark {
    --background: 0 0% 3.9%;
    --foreground: 0 0% 98%;
    --card: 0 0% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 0 0% 9%;
    --secondary: 0 0% 14.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 0 0% 83.1%;
  }

  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground;
  }
}

@font-face {
  font-family: "IvyMode-Regular";
  src: url(../../public/fonts/IvyMode-Regular.ttf);
}

@font-face {
  font-family: "Manrope";
  src: url(../../public/fonts/Manrope.ttf);
}

@font-face {
  font-family: "Gill-Sans";
  src: url(../../public/fonts/Gill-Sans.otf);
}
@font-face {
  font-family: "Gill-Sans-Bold";
  src: url(../../public/fonts/Gill-Sans-Bold.otf);
}
.loader {
  position: relative;
  width: 96px;
  height: 96px;
  transform: rotate(45deg);
}

.loader-square {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: 2px;
  border-radius: 0px;
  background: #25406c;
  /* background: white; */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  animation: square-animation 10s ease-in-out infinite both;
}

.loader-square:nth-of-type(0) {
  animation-delay: 0s;
}

.loader-square:nth-of-type(1) {
  animation-delay: -1.4285714286s;
}

.loader-square:nth-of-type(2) {
  animation-delay: -2.8571428571s;
}

.loader-square:nth-of-type(3) {
  animation-delay: -4.2857142857s;
}

.loader-square:nth-of-type(4) {
  animation-delay: -5.7142857143s;
}

.loader-square:nth-of-type(5) {
  animation-delay: -7.1428571429s;
}

.loader-square:nth-of-type(6) {
  animation-delay: -8.5714285714s;
}

.loader-square:nth-of-type(7) {
  animation-delay: -10s;
}
@keyframes square-animation {
  0% {
    left: 0;
    top: 0;
  }

  10.5% {
    left: 0;
    top: 0;
  }

  12.5% {
    left: 32px;
    top: 0;
  }

  23% {
    left: 32px;
    top: 0;
  }

  25% {
    left: 64px;
    top: 0;
  }

  35.5% {
    left: 64px;
    top: 0;
  }

  37.5% {
    left: 64px;
    top: 32px;
  }

  48% {
    left: 64px;
    top: 32px;
  }

  50% {
    left: 32px;
    top: 32px;
  }

  60.5% {
    left: 32px;
    top: 32px;
  }

  62.5% {
    left: 32px;
    top: 64px;
  }

  73% {
    left: 32px;
    top: 64px;
  }

  75% {
    left: 0;
    top: 64px;
  }

  85.5% {
    left: 0;
    top: 64px;
  }

  87.5% {
    left: 0;
    top: 32px;
  }

  98% {
    left: 0;
    top: 32px;
  }

  100% {
    left: 0;
    top: 0;
  }
}

body {
  font-family: "Gill-Sans";
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  .nav {
    a {
      font-family: "Gill-Sans";

      &.active {
        color: #dfc879;
        font-weight: bold;
      }
    }
  }
}
.sticky-nav {
  position: sticky;
  top: 0;
  background-color: #25406c;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.commonBtn {
  font-family: "Gill-Sans";
  font-weight: 500;
  letter-spacing: 1.28px;
  font-size: 14px;
  border: 1px solid #fff;
  padding: 12px 20px;
  color: #fff;

  &:hover {
    background: transparent linear-gradient(180deg, #edd97b 0%, #cea449 100%) 0%
      0% no-repeat padding-box;
    color: #25406c;
    border: 1px solid transparent;
  }
}

.enquire-btn,
.know-more {
  background: transparent;
  color: #25406c;
  border: 2px solid #25406c;
  text-transform: uppercase;
  padding: 15px 30px;
  font-size: 12px;

  &:hover {
    background: transparent linear-gradient(180deg, #edd97b 0%, #cea449 100%) 0%
      0% no-repeat padding-box;
    color: #25406c;
    border: 1px solid transparent;
  }
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-title {
  text-align: center;
  position: relative;

  h2 {
    font-family: "IvyMode-Regular";
    color: #25406c;
    font-size: 3rem;
    line-height: 1;

    @media (max-width: 640px) {
      font-size: 30px;
    }
    @media (max-width: 768px) {
      font-size: 30px;
    }
  }

  p {
    font-family: "Gill-Sans";
    letter-spacing: 2px;
    color: #000000;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
  }

  img {
    margin-top: 10px;
  }
}

input,
textarea {
  &::placeholder {
    font-family: "Gill-Sans";
    font-size: 16px;
  }
}

.quick-link {
  &::after {
    content: "";
    background: url(../../public/images/gold-line.png);
    position: absolute;
    bottom: 0;
    top: auto;
    left: 0%;
    background: #e5cc6f 0% 0% no-repeat padding-box;
    width: 50px;
    height: 2px;
  }
}

.back-to-top {
  svg {
    background: transparent linear-gradient(180deg, #ecd87a 0%, #cda247 100%) 0%
      0% no-repeat padding-box;
    border-radius: 5px;
    color: #000;
    padding: 13px;
    width: 42px;
    height: 42px;
  }
}

.swiper-scrollbar {
  display: none !important;
}

.titlecardWrapper {
  .section-title {
    @media (min-width: 1200px) and (max-width: 1400px) {
      h2 {
        font-size: 3rem;
      }
    }
    @media (min-width: 1401px) {
      h2 {
        font-size: 4.8rem;
        line-height: 1.1;
      }
    }
  }
}
