/*-----------------------------------*\
  #style.css
\*-----------------------------------*/

/**
 * copyright 2022 codewithsadee
 */

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {
  /**
   * colors
   */

  --prussian-blue: #192334;
  --eerie-black: hsl(210, 11%, 15%);
  --light-red: #e51f30;
  --alice-blue: hsl(203, 100%, 97%);
  --light-gray: hsl(0, 0%, 80%);
  --indigo-dye: hsl(202, 64%, 26%);
  --cultured-1: hsl(0, 0%, 94%);
  --cultured-2: hsl(0, 0%, 95%);
  --cultured-3: hsl(0, 0%, 95%);
  --plutinum: hsl(0, 0%, 91%);
  --black_60: hsla(0, 0%, 0%, 0.6);
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --onyx: hsl(0, 0%, 24%);

  /**
   * typography
   */

  --fs-1: 6rem;
  --fs-2: 5rem;
  --fs-3: 4rem;
  --fs-4: 3rem;
  --fs-5: 2.2rem;
  --fs-6: 2rem;
  --fs-7: 1.8rem;
  --fs-8: 1.5rem;
  --fs-9: 1.4rem;
  --fs-10: 1.2rem;

  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
  --fw-800: 800;

  /**
   * spacing
   */

  --section-padding: 50px;

  /**
   * shadow
   */

  --shadow-1: 2px 0 50px hsla(0, 0%, 0%, 0.2);
  --shadow-2: 0px 40px 60px hsla(202, 75%, 47%, 0.7);
  --shadow-3: 0px 0px 60px hsla(202, 75%, 47%, 0.5);

  /**
   * transition
   */

  --transition: 0.25s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

a,
img,
time,
span,
input,
button,
ion-icon {
  display: block;
}

img {
  height: auto;
}

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input {
  width: 100%;
}

button {
  cursor: pointer;
}

ion-icon {
  pointer-events: none;
}

html {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--white);
  color: var(--onyx);
  font-size: 1.6rem;
  line-height: 1.7;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  width: 100%;
}

:focus-visible {
  outline-offset: 4px;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background-color: var(--cultured-2);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 80%);
  border: 2px solid var(--cultured-2);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 70%);
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

/* Dropdown menu styles */
.navbar-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 160px;
  box-shadow: var(--shadow-1);
  padding: 10px 0;
  z-index: 1000;
  display: none;
  border-radius: 4px;
  margin-top: 4px;
}

.dropdown li {
  padding: 10px 20px;
}

.dropdown li a {
  color: var(--onyx);
  text-decoration: none;
  display: block;
}

.dropdown li:hover {
  background-color: var(--cultured-1);
}

/* Dropdown indicator styles */
.dropdown-indicator {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.navbar-item[aria-expanded="true"] .dropdown-indicator {
  transform: rotate(225deg);
}

/* Show dropdown on hover or when expanded */
.navbar-item:hover .dropdown,
.navbar-item[aria-expanded="true"] .dropdown {
  display: block;
}

.container {
  padding-inline: 18px;
  max-width: 100%;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.section {
  padding-block: var(--section-padding);
}

.h1,
.h2,
.h3 {
  font-family: "Poppins", sans-serif;
  line-height: 1;
  font-weight: 800;
}

.h1 {
  font-size: 3rem;
  text-transform: none;
}

.h2,
.h3 {
  color: var(--prussian-blue);
}

.h2 {
  font-size: 2rem;
}

.h3 {
  font-size: var(--fs-5);
}

.img-holder {
  background-color: var(--light-gray);
  aspect-ratio: var(--width) / var(--height);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image error handling */
img {
  max-width: 100%;
  height: auto;
}

img:not([src]),
img[src=""],
img[src="#"] {
  opacity: 0;
}

/* Fallback for broken images */
img::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--cultured-1);
  border: 1px dashed var(--light-gray);
}

img::after {
  content: "Image not available";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: var(--onyx);
  text-align: center;
  white-space: nowrap;
}

.section-subtitle {
  color: var(--light-red);
  text-transform: uppercase;
  font-size: var(--fs-6);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  letter-spacing: 3px;
  margin-block-end: 10px;
}

.section-text {
  line-height: 1.4;
}

.btn {
  position: relative;
  color: var(--white);
  background-color: var(--light-red);
  max-width: max-content;
  font-size: var(--fs-9);
  letter-spacing: 1px;
  padding-block: 10px;
  padding-inline: 15px 50px;
}

.btn-2 {
  position: relative;
  color: var(--white);
  background-color: var(--light-red);
  max-width: max-content;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  padding: 10px 15px;
  transition: var(--transition);
}

.btn-2:is(:hover, :focus) {
  background-color: var(--prussian-blue);
  transform: translateY(-2px);
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  transition: var(--transition);
}

.btn::before {
  top: 50%;
  right: 15px;
  width: 25px;
  height: 1px;
  background-color: var(--white);
}

.btn::after {
  top: -6px;
  right: -6px;
  bottom: -6px;
  width: 20px;
  border: 2px solid var(--light-red);
  z-index: -1;
}

.btn:is(:hover, :focus)::before {
  width: 33px;
}

.btn:is(:hover, :focus)::after {
  width: 40px;
}

.grid-list {
  display: grid;
  gap: 30px;
}

.btn-link {
  color: var(--light-red);
  font-size: var(--fs-7);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}

.btn-link > * {
  transform: translateX(-22px);
  transition: var(--transition);
}

.btn-link:is(:hover, :focus) > * {
  transform: translateX(0);
}

.w-100 {
  width: 100%;
}

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header-contact {
  display: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-block: 18px;
  z-index: 4;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(25, 35, 52, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(25, 35, 52, 0.9) 0%,
    rgba(229, 31, 48, 0.1) 100%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.header.active {
  padding-block: 12px;
  background: rgba(25, 35, 52, 0.98);
  box-shadow: 0 8px 32px rgba(25, 35, 52, 0.3);
}

.header.active::before {
  opacity: 1;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  position: relative;
}

/* Logo Enhancement */
.header h1 {
  position: relative;
  z-index: 2;
}

.header h1 img {
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.header h1:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(229, 31, 48, 0.4));
}

/* Navigation Button */
.nav-open-btn {
  color: var(--white);
  font-size: 32px;
  padding: 8px;
  border-radius: 8px;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-open-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--light-red), #ff4757);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-open-btn:is(:hover, :focus)::before {
  opacity: 1;
}

.nav-open-btn:is(:hover, :focus) {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(229, 31, 48, 0.4);
}

.nav-open-btn ion-icon {
  --ionicon-stroke-width: 50px;
  transition: transform 0.3s ease;
}

.nav-open-btn:hover ion-icon {
  transform: rotate(90deg);
}

/* Mobile Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: -350px;
  max-width: 350px;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 4px 0 24px rgba(25, 35, 52, 0.15);
  z-index: 3;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid rgba(25, 35, 52, 0.1);
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--light-red), var(--prussian-blue));
}

.navbar.active {
  visibility: visible;
  transform: translateX(350px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-block-end: 1px solid rgba(25, 35, 52, 0.1);
  padding: 30px 25px;
  background: linear-gradient(
    135deg,
    rgba(25, 35, 52, 0.05) 0%,
    rgba(229, 31, 48, 0.05) 100%
  );
}

.navbar-top .logo {
  color: var(--prussian-blue);
  font-size: 2.8rem;
  font-weight: var(--fw-800);
}

.nav-close-btn {
  font-size: 28px;
  color: var(--prussian-blue);
  padding: 8px;
  border-radius: 8px;
  background: rgba(229, 31, 48, 0.1);
  transition: all 0.3s ease;
}

.nav-close-btn:is(:hover, :focus) {
  background: var(--light-red);
  color: var(--white);
  transform: rotate(90deg) scale(1.1);
}

.nav-close-btn ion-icon {
  --ionicon-stroke-width: 50px;
}

/* Navigation List */
.navbar-list {
  padding: 20px 0;
}

.navbar-item {
  position: relative;
  margin-bottom: 2px;
}

.navbar-item:not(:last-child) {
  border-block-end: none;
}

.navbar-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--light-red);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.navbar-item:hover::before {
  transform: scaleY(1);
}

.navbar-link {
  color: var(--prussian-blue);
  text-transform: uppercase;
  font-weight: var(--fw-600);
  font-size: var(--fs-8);
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.navbar-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(229, 31, 48, 0.1),
    rgba(25, 35, 52, 0.05)
  );
  transition: left 0.4s ease;
  z-index: -1;
}

.navbar-link:is(:hover, :focus) {
  color: var(--light-red);
  padding-left: 35px;
  transform: translateX(10px);
}

.navbar-link:is(:hover, :focus)::before {
  left: 0;
}

.navbar-link span {
  position: relative;
  z-index: 2;
}

.navbar-link ion-icon {
  font-size: 20px;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.navbar-link:is(:hover, :focus) ion-icon {
  opacity: 1;
  transform: translateX(5px) rotate(45deg);
  color: var(--light-red);
}

/* Header Contact CTA */
.header-contact .btn-2 {
  position: relative;
  overflow: hidden;
  font-weight: var(--fw-600);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(229, 31, 48, 0.3);
  border: 2px solid transparent;
}

.header-contact .btn-2::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.header-contact .btn-2:is(:hover, :focus)::before {
  left: 100%;
}

.header-contact .btn-2:is(:hover, :focus) {
  background: var(--prussian-blue);
  border-color: var(--light-red);
  box-shadow: 0 6px 20px rgba(25, 35, 52, 0.4);
}

/* Overlay Enhancement */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Scroll Indicator */
.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--light-red), #ff4757);
  transition: width 0.3s ease;
}

.header.active::after {
  width: 100%;
}

/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  position: relative;
  min-height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: grid;
  place-content: center;
  padding-block-start: calc(var(--section-padding) + 85px);
  z-index: 1;
}

.hero-content {
  color: var(--white);
  text-align: center;
}

.hero-text {
  margin-block: 20px 15px;
}

.btn-outline {
  max-width: max-content;
  margin-inline: auto;
  font-size: var(--fs-9);
  font-weight: var(--fw-500);
  text-transform: uppercase;
  border: 1px solid var(--white);
  padding: 8px 20px;
  transition: var(--transition);
}

.btn-outline:is(:hover, :focus) {
  background-color: var(--light-red);
  border-color: var(--light-red);
}

.hero-shape {
  position: absolute;
  z-index: -1;
  animation: move 2s ease-in-out infinite alternate;
}

.hero .shape-1 {
  top: 100px;
  left: 30px;
}

.hero .shape-2 {
  bottom: 80px;
  right: 30px;
}

@keyframes move {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(20px);
  }
}

/*-----------------------------------*\
  #TOPICS
\*-----------------------------------*/

#topic-label {
  color: white;
  font-size: 2rem;
}

.topic-card {
  padding: 24px;
  padding-top: 70px;
  border-radius: 8px;
}

.topic-card .card-content {
  margin-block-end: 15px;
}

.topic-card .card-text {
  color: white;
  font-size: 1.4rem;
  margin-block: 15px 20px;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--prussian-blue);
  border-radius: 50%;
  color: white;
}

.slider {
  --slider-items: 1;
  overflow: hidden;
}

.slider-list {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform var(--transition-2);
}

.slider-item {
  min-width: 100%;
}

.slider-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.slider-card:hover,
.slider-card:focus-visible {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.316);
  transform: translateY(-10px); /* move up on hover */
}

.slider-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-image: linear-gradient(0deg, #000d1a, transparent);
}

.slider-list .slider-banner {
  border-radius: 8px;
}

.slider-content {
  position: absolute;
  bottom: 15px;
  left: 15px;
}

.slider-title {
  color: var(--light-red);
  font-weight: 700;
  font-size: 2rem;
  margin-block-end: 5px;
  transition: var(--transition-1);
}

.slider-card:is(:hover, :focus-visible) .slider-title {
  color: var(--light-red);
}

.slider-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #fff;
}

/*-----------------------------------*\
  #TABS
\*-----------------------------------*/

/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about-banner {
  position: relative;
  max-width: 300px;
  margin-block-end: 60px;
}

.about .abs-img-2 {
  display: none;
}

.about .abs-img-1 {
  position: absolute;
  bottom: 40px;
  right: 0;
  animation: move 2s ease-in-out infinite alternate;
}

.about :is(.section-title, .section-text) {
  margin-block-end: 20px;
}

.about-list {
  margin-block-end: 40px;
}

.about-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.about-text {
  font-size: 1.1rem;
  font-family: 500;
}

.about-item:not(:last-child) {
  margin-block-end: 10px;
}

/*-----------------------------------*\
  #ACCORDION
\*-----------------------------------*/

.accordion-card .card-title {
  padding-block-end: 20px;
}

.accordion-btn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion-btn ion-icon {
  min-width: max-content;
  color: var(--light-red);
  margin-block-start: 8px;
  transition: 0.25s ease;
}

.accordion-card.expanded .accordion-btn ion-icon {
  transform: rotate(0.5turn);
}

.accordion-btn .span {
  transition: 0.25s ease;
}

.accordion-content {
  padding-inline-start: 24px;
  max-height: 0;
  overflow: hidden;
}

.accordion-card.expanded .accordion-content {
  max-height: max-content;
  padding-block-end: 20px;
}

/*-----------------------------------*\
  #SERVICE
\*-----------------------------------*/

.service {
  background: linear-gradient(135deg, var(--alice-blue) 0%, #f0f8ff 100%);
  position: relative;
  overflow: hidden;
}

.service::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(229, 31, 48, 0.05) 0%,
    transparent 70%
  );
  z-index: 1;
}

.service .container {
  position: relative;
  z-index: 2;
}

.service :is(.section-subtitle, .section-title, .section-text) {
  text-align: center;
}

.service .section-title {
  margin-block-end: 20px;
  position: relative;
}

.service .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--light-red), var(--prussian-blue));
  border-radius: 2px;
}

.service .section-text {
  margin-block-end: 60px;
  max-width: 600px;
  margin-inline: auto;
}

.service-list {
  display: grid;
  gap: 40px;
  margin-top: 50px;
}

.service-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  padding: 40px 35px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(25, 35, 52, 0.1), 0 1px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--light-red), var(--prussian-blue));
  transition: left 0.4s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle,
    rgba(229, 31, 48, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:is(:hover, :focus-within) {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(229, 31, 48, 0.15),
    0 10px 25px rgba(25, 35, 52, 0.1);
}

.service-card:is(:hover, :focus-within)::before {
  left: 0;
}

.service-card:is(:hover, :focus-within)::after {
  opacity: 1;
}

.service-card .card-icon {
  position: relative;
  margin-block-end: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--light-red), #ff4757);
  border-radius: 50%;
  margin-inline: auto;
  box-shadow: 0 8px 20px rgba(229, 31, 48, 0.3);
  transition: all 0.4s ease;
}

.service-card:is(:hover, :focus-within) .card-icon {
  transform: rotateY(180deg) scale(1.1);
  box-shadow: 0 15px 30px rgba(229, 31, 48, 0.4);
}

.service-card .card-icon img {
  filter: brightness(0) invert(1);
  transition: transform 0.4s ease;
}

.service-card .card-title {
  text-align: center;
  margin-block-end: 20px;
  position: relative;
}

.service-card .card-title .span {
  display: inline-block;
  color: var(--light-red);
  font-size: var(--fs-3);
  font-weight: var(--fw-800);
  margin-inline-end: 15px;
  position: relative;
}

.service-card .card-title .span::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--light-red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:is(:hover, :focus-within) .card-title .span::after {
  transform: scaleX(1);
}

.service-card .card-text {
  margin-block: 15px;
  color: var(--onyx);
  line-height: 1.6;
  position: relative;
}

.service-card .card-text:last-child {
  margin-block-end: 0;
}

.service-card .card-text strong {
  color: var(--prussian-blue);
  font-weight: var(--fw-600);
  position: relative;
}

.service-card .card-text strong::before {
  content: "●";
  color: var(--light-red);
  margin-right: 8px;
  font-size: 0.8em;
}

/* Service card numbering enhancement */
.service-list > li:nth-child(1) .service-card {
  animation: slideInLeft 0.6s ease-out;
}

.service-list > li:nth-child(2) .service-card {
  animation: slideInUp 0.6s ease-out 0.2s both;
}

.service-list > li:nth-child(3) .service-card {
  animation: slideInRight 0.6s ease-out 0.4s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .service-list > li:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 600px;
    margin-inline: auto;
  }
}

@media (min-width: 992px) {
  .service-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-list > li:nth-child(3) {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }
}

@media (max-width: 480px) {
  .service-card {
    padding: 30px 25px;
  }

  .service-card .card-icon {
    width: 70px;
    height: 70px;
  }

  .service-card .card-title .span {
    font-size: var(--fs-4);
    margin-inline-end: 10px;
  }
}

/*-----------------------------------*\
  #FEATURES
\*-----------------------------------*/
.feature-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.feature-column {
  flex: 1 1 280px;
  min-width: 280px;
  max-width: 540px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  padding: 32px 24px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 320px) {
  .feature-column {
    min-width: 100%;
    padding: 20px 16px;
  }
  .feature-flex {
    gap: 20px;
  }
}
.feature-list.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
}

.feature-card:hover,
.feature-card:focus-visible {
  background: #fff;
  box-shadow: 0 4px 24px rgba(229, 31, 48, 0.1);
  transform: translateY(-6px) scale(1.03);
}

.card-icon {
  color: var(--light-red, #e51f30);
  font-size: 1.6rem;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .feature-flex {
    flex-direction: column;
    gap: 24px;
  }
  .feature-column {
    max-width: 100%;
  }
}

/*-----------------------------------*\
  #PROJECT
\*-----------------------------------*/

.project {
  background-color: var(--alice-blue);
}

.project :is(.section-subtitle, .section-title, .section-text) {
  text-align: center;
}

.project .section-text {
  margin-block: 20px 50px;
}

.project-card {
  position: relative;
}

.project-card .action-btn {
  background-color: var(--light-red);
  color: var(--white);
  font-size: 28px;
  padding: 16px;
  position: absolute;
  top: 30px;
  left: 30px;
  opacity: 0;
  transition: var(--transition);
}

.project-card:is(:hover, :focus-within) .action-btn {
  opacity: 1;
}

.project-card .card-tag {
  color: var(--light-red);
  font-size: var(--fs-9);
}

.project-card .card-content {
  position: relative;
  background-color: var(--white);
  padding: 20px 30px;
  margin-block-start: -50px;
  margin-inline-start: 30px;
}

.project-card .h3 {
  font-size: var(--fs-7);
}

.project-card .card-title {
  transition: var(--transition);
}

.card-title a {
  padding-top: 25px;
}

.project-card :is(.card-title, .card-link):is(:hover, :focus) {
  color: var(--light-red);
}

.project-card .card-link {
  color: var(--prussian-blue);
  font-size: var(--fs-10);
  font-weight: var(--fw-600);
  text-transform: uppercase;
  margin-block-start: 5px;
  transition: var(--transition);
}

.project-list {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-block-end: 40px;
  scroll-snap-type: inline mandatory;
}

.project-item {
  min-width: 100%;
  scroll-snap-align: start;
}

.project-list::-webkit-scrollbar {
  height: 15px;
}

.project-list::-webkit-scrollbar-track {
  outline: 2px solid var(--prussian-blue);
}

.project-list::-webkit-scrollbar-thumb {
  border: 3px solid var(--cultured-1);
  background-color: var(--prussian-blue);
}

.project-list::-webkit-scrollbar-button {
  width: calc(25% - 40px);
}

/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/
.blog-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.creative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  list-style: none;
  padding: 0;
}

@media (max-width: 320px) {
  .creative-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.blog-card.creative {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(25, 35, 52, 0.09);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.blog-card.creative:hover,
.blog-card.creative:focus-within {
  box-shadow: 0 8px 32px rgba(229, 31, 48, 0.12);
  transform: translateY(-8px) scale(1.025);
}
.blog-card-ribbon {
  position: absolute;
  top: 18px;
  left: -36px;
  background: var(--light-red, #e51f30);
  color: #fff;
  padding: 6px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  transform: rotate(-25deg);
  z-index: 2;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(229, 31, 48, 0.1);
}
.card-banner {
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}
.blog-date {
  position: absolute;
  bottom: 14px;
  left: 18px;
  background: rgba(25, 35, 52, 0.85);
  color: #fff;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.blog-card .card-content {
  padding: 28px 22px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.blog-card .card-title a {
  color: var(--prussian-blue, #192334);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card .card-title a:hover {
  color: var(--light-red, #e51f30);
}
.blog-card .btn-link {
  margin-top: 18px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--light-red, #e51f30);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card .btn-link:hover {
  color: var(--prussian-blue, #192334);
}
/*-----------------------------------*\
  #NEWSLETTER
\*-----------------------------------*/

.newsletter {
  background-color: var(--light-red);
}

.newsletter .img-holder {
  background-color: transparent;
  margin-block-end: 20px;
  max-width: max-content;
}

.newsletter .section-title {
  margin-block-end: 20px;
}

.email-field {
  background-color: var(--white);
  color: var(--eerie-black);
  font-size: var(--fs-9);
  height: 65px;
  padding-inline: 20px;
  margin-block-end: 10px;
  outline: none;
  transition: var(--transition);
}

.email-field:focus {
  box-shadow: 0 2px 2px hsla(0, 0%, 0%, 0.4);
}

.newsletter-btn {
  background-color: var(--prussian-blue);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-weight: var(--fw-700);
  padding: 8px 20px;
}

/*-----------------------------------*\
  #APPOINTMENT
\*-----------------------------------*/

.appoin {
  padding-block-start: 0;
}

.appoin-card .card-banner {
  display: none;
}

.appoin-card .card-content {
  background-color: var(--light-red);
  padding: 80px 15px;
  text-align: center;
  color: #fff;
}

.appoin-card .section-title {
  color: #fff;
}

.appoin-card .section-text {
  margin-block: 15px 55px;
}

.input-field {
  background-color: #fff;
  color: #777777;
  min-height: 56px;
  padding-inline: 25px;
  border-radius: 5px;
  margin-block-end: 20px;
  outline: none;
  outline-offset: 0;
}

.input-field:focus {
  outline: 3px solid hsla(0, 0%, 0%, 0.3);
}

select.input-field {
  appearance: none;
}

select.input-field,
.input-field::placeholder {
  font-family: "Poppins", sans-serif;
  color: hsl(0, 0%, 14%);
  font-weight: 500;
}

.input-field > option {
  color: hsl(0, 0%, 44%);
  font-family: var(--ff-rubik);
}

.input-field.date {
  text-transform: uppercase;
}

.input-field::-webkit-calendar-picker-indicator {
  opacity: 0.85;
}

textarea {
  display: block;
}

input,
select,
textarea {
  width: 100%;
}

input,
select,
button,
textarea {
  background: none;
  border: none;
  font: inherit;
}

textarea.input-field {
  padding-block: 15px;
  min-height: 100px;
  height: 120px;
  max-height: 150px;
  resize: vertical;
}

.form-btn {
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid #fff;
  padding: 13px;
  border-radius: 5px;
  transition: var(--transition);
}

.form-btn:is(:hover, :focus) {
  background-color: var(--white);
  color: hsl(0, 0%, 14%);
}

/*-----------------------------------*\
  #FORM VALIDATION STYLES
\*-----------------------------------*/

.input-field.error {
  border: 2px solid #dc3545;
  background-color: #fff5f5;
}

.input-field.error:focus {
  outline: 3px solid rgba(220, 53, 69, 0.3);
}

.form-message {
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-weight: 500;
  animation: slideInDown 0.3s ease-out;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/*-----------------------------------*\
  #LOADING AND ERROR STATES
\*-----------------------------------*/

/* Loading spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error states */
.error-message {
  color: #dc3545;
  font-size: 1.4rem;
  margin-top: 5px;
  display: block;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --light-red: #000;
    --prussian-blue: #000;
    --white: #fff;
    --black: #000;
  }
}

/* Focus management for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--prussian-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 6px;
}

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  background-color: var(--plutinum);
  color: var(--prussian-blue);
}

.footer-top {
  display: grid;
  gap: 40px;
}

.footer .logo {
  color: var(--prussian-blue);
  font-weight: var(--fw-800);
  font-size: 3.2rem;
}

.footer-text {
  margin-block: 10px 30px;
}

.social-list {
  display: flex;
  gap: 10px;
}

.social-link {
  background-color: var(--indigo-dye);
  color: var(--white);
  font-size: 20px;
  padding: 12px;
  transition: var(--transition);
}

.social-link:is(:hover, :focus) {
  background-color: var(--prussian-blue);
}

.footer-list-title {
  font-size: var(--fs-6);
  max-width: max-content;
  padding-block-end: 10px;
  border-block-end: 3px solid var(--light-red);
  margin-block-end: 20px;
}

.footer-link {
  padding-block: 6px;
}

.footer-bottom {
  padding-block: 40px;
  border-block-start: 1px solid var(--prussian-blue);
  font-size: var(--fs-9);
  color: var(--indigo-dye);
}

.copyright-link {
  display: inline-block;
}

/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 10px;
  right: 20px;
  background-color: var(--eerie-black);
  color: var(--white);
  font-size: 20px;
  padding: 10px;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-top-btn.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-10px);
}

/*-----------------------------------*\
  #MEDIA QUERISE
\*-----------------------------------*/

/**
 * responsive for larger than 540px screen
 */

@media (min-width: 540px) {
  /**
   * REUSED STYLE
   */

  .btn {
    font-size: var(--fs-7);
    padding-inline: 30px 60px;
  }

  /**
   * HEADER
   */

  .header-contact {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: right;
    line-height: 1.2;
    margin-inline-start: auto;
  }

  .header .contact-label {
    text-transform: uppercase;
    font-size: var(--fs-9);
  }

  .header .contact-number {
    font-size: var(--fs-6);
    font-weight: var(--fw-600);
    letter-spacing: 1px;
  }

  .header .contact-icon {
    font-size: 35px;
    opacity: 0.6;
  }

  /**
   * TOPICS
   */

  .topics .section-title {
    font-size: 2rem;
  }

  .slider {
    --slider-items: 2;
  }

  .slider-item {
    min-width: calc(50% - 10px);
  }

  /**
   * ABOUT
   */

  .about .abs-img-2 {
    display: block;
    position: absolute;
    width: 400px;
    bottom: 0;
    left: 50px;
    z-index: -1;
    max-width: 90vw;
  }

  .about .abs-img-1 {
    right: -200px;
    max-width: 90vw;
  }

  /**
   * APPOINTMENT
   */

  .appoin-card .card-content {
    padding-inline: 50px;
  }
}

/**
 * responsive for larger than 640px screen
 */

@media (min-width: 640px) {
  /**
   * REUSED STYLE
   */

  .h1 {
    --fs-3: 5rem;
  }

  .container {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }

  .about-text {
    font-size: 1.4rem;
  }

  /**
   * HEADER
   */

  .header .container {
    max-width: unset;
  }

  .header .logo {
    font-size: 3.5rem;
  }

  /**
   * HERO
   */

  .hero {
    justify-content: flex-start;
  }

  .hero .shape-1 {
    left: 45px;
  }

  .hero-content {
    background-color: transparent;
    text-align: left;
  }

  .hero-text {
    max-width: 30ch;
  }

  .btn-outline {
    margin-inline: 0;
  }
}

/**
 * responsive for larger than 768px screen
 */

@media (min-width: 768px) {
  /**
   * REUSED STYLE
   */

  .container {
    max-width: 720px;
  }

  .h1 {
    --fs-3: 6rem;
  }

  .grid-list {
    grid-template-columns: 1fr 1fr;
  }

  /**
   * HERO
   */

  .hero-text {
    font-size: var(--fs-7);
    max-width: 50ch;
    margin-block-end: 40px;
  }

  .btn-outline {
    font-size: var(--fs-7);
    padding: 12px 30px;
  }

  /**
   * FEATURE
   */

  .feature .container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .feature-banner {
    order: 1;
  }

  /**
   * PROJECT
   */

  .project-list {
    gap: 80px;
  }

  .project-item {
    min-width: calc(50% - 40px);
  }

  /**
   * NEWSLETTER
   */

  .newsletter {
    margin-block-start: 110px;
  }

  .newsletter .container {
    position: relative;
  }

  .newsletter .newsletter-banner {
    position: absolute;
    bottom: -50px;
    left: 0;
    margin-block-end: 0;
    max-width: 90vw;
  }

  .newsletter-content {
    max-width: 355px;
    margin-inline-start: auto;
  }

  .newsletter .section-title {
    --fs-4: 4rem;
  }

  .newsletter-btn {
    font-size: var(--fs-5);
    padding: 10px 30px;
  }

  /**
   * APPOINTMENT
   */

  .appoin-card .card-banner {
    display: block;
  }

  .appoin-card {
    display: flex;
  }

  /**
   * FOOTER
   */

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/**
 * responsive for larger than 992px screen
 */

@media (min-width: 992px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-4: 4.5rem;

    /**
     * spacing
     */

    --section-padding: 120px;
  }

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 960px;
  }

  .h1 {
    font-size: 7rem;
  }

  .section-subtitle {
    --fs-6: 3rem;
  }

  .section-text {
    max-width: 70ch;
    margin-inline: auto;
  }

  .grid-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /**
   * HEADER
   */

  .nav-open-btn,
  .navbar-top,
  .navbar-link > ion-icon {
    display: none;
  }

  .navbar,
  .navbar.active {
    all: unset;
  }

  .navbar-list {
    display: flex;
    gap: 5px;
  }

  .navbar-item:not(:last-child) {
    border-block-end: none;
  }

  .navbar-link {
    color: var(--white);
  }

  .navbar-link:is(:hover, :focus) {
    background-color: transparent;
  }

  .header-contact {
    margin-inline-start: 0;
  }

  /**
   * HERO
   */

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 0;
  }

  /** 
   * TOPICS
   */

  .topic-card {
    display: grid;
    grid-template-columns: 0.3fr 1fr;
    align-items: center;
    gap: 20px;
  }

  /**
   * ABOUT
   */

  .about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
  }

  .about-banner {
    margin-block-end: 0;
  }

  .about .abs-img-1 {
    right: -100px;
  }

  .about :is(.section-title, .section-text) {
    margin-block-end: 35px;
  }

  /**
   * PROJECT
   */

  .project-item {
    min-width: calc(33.33% - 53.33px);
  }

  /**
   * BLOG
   */

  .blog-list {
    grid-template-columns: 1fr 1fr;
  }

  /**
   * NEWSLETTER
   */

  .newsletter {
    padding-block: 30px;
  }

  .newsletter .newsletter-banner {
    bottom: -30px;
  }

  .newsletter-content {
    max-width: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  /**
   * APPOINTMENT
   */

  .appoin-card .input-wrapper {
    display: flex;
    gap: 20px;
  }

  /**
   * FOOTER
   */

  .footer-top {
    grid-template-columns: repeat(4, 1fr);
    justify-items: self-end;
  }

  .copyright {
    text-align: center;
  }
}

/**
 * responsive for larger than 1200px screen
 */

@media (min-width: 1200px) {
  /**
   * REUSED STYLE
   */

  .container {
    max-width: 1180px;
  }

  .h1 {
    --fs-3: 12rem;
  }

  /**
   * HEADER
   */

  .header .contact-number {
    --fs-6: 3rem;
  }

  /**
   * HERO
   */

  .hero {
    padding-block-start: 150px;
    background-position: left;
  }

  .hero-text {
    --fs-7: 2.4rem;
  }

  /**
   * ABOUT
   */

  .about-banner {
    max-width: 370px;
  }

  .about .abs-img-2 {
    width: max-content;
  }

  /**
   * NEWSLETTER
   */

  .newsletter-content {
    max-width: 840px;
    grid-template-columns: 0.8fr 1fr;
  }

  /**
   * APPOINTMENT
   */

  .appoin-card .card-content {
    flex-grow: 1;
  }

  /**
   * FOOTER
   */

  .footer-top {
    padding-block: 60px;
  }
}

/**
 * responsive for large than 1400px screen
 */

@media (min-width: 1400px) {
  /**
   * REUSED STYLE
   */

  .container {
    max-width: 1320px;
  }

  /**
   * FEATURE
   */

  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

/*-----------------------------------*\
  #MOBILE FIXES
\*-----------------------------------*/

@media (max-width: 480px) {
  .container {
    padding-inline: 15px;
  }

  .header .container {
    gap: 15px;
  }

  .about .abs-img-1,
  .about .abs-img-2 {
    display: none !important;
  }

  .hero {
    padding-block-start: calc(var(--section-padding) + 60px);
  }

  .project-item {
    min-width: 100%;
  }

  .slider-item {
    min-width: 100%;
  }

  .feature-column {
    min-width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 320px) {
  .container {
    padding-inline: 10px;
  }

  .section {
    padding-block: 30px;
  }
}
