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

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #162561;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
}

/* Company Logo */
.company-logo {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  animation: logoFloat 3s ease-in-out infinite;
}

.company-logo:hover {
  animation: logoPulse 0.6s ease-in-out;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  }
  50% {
    transform: translateY(-10px);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
  }
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
.swiper-slide:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

body {
  background: #162561;
  background-image: radial-gradient(
      circle at 20% 100%,
      rgba(184, 184, 184, 0.1) 0%,
      rgba(184, 184, 184, 0.1) 33%,
      rgba(96, 96, 96, 0.1) 33%,
      rgba(96, 96, 96, 0.1) 66%,
      rgba(7, 7, 7, 0.1) 66%,
      rgba(7, 7, 7, 0.1) 99%
    ),
    linear-gradient(40deg, #040a22, #162561, #202e64, #6f7aa6);
  background-repeat: no-repeat;
  background-size: cover;
}

section {
  display: grid;
  grid-template-columns: 40% 60%;
  place-items: center;
  gap: 60px;
  min-height: 100vh;
  padding: 20px 60px;
}

/* CONTENT */

.content {
  max-width: 2400px;
}

.content h1 {
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  margin-bottom: 36px;
  color: #fff;
}

.content p {
  font-size: clamp(0.9rem, 3vw, 1.25rem);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 30px;
  color: #fff;
}

.button-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.button-group a {
  text-decoration: none;
}

.content button {
  background: #eaeaea;
  color: #202134;
  font-size: clamp(1rem, 4vw, 1.1rem);
  font-weight: 700;
  border: 0;
  outline: 0;
  padding: 16px 32px;
  border-radius: 50px;
  transform: scale(1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.content button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.content button:hover::before {
  width: 300px;
  height: 300px;
}

.btn-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 1;
}

.btn-products {
  background: linear-gradient(135deg, #eaeaea 0%, #f5f5f5 100%);
  color: #162561;
  border: 2px solid rgba(22, 37, 97, 0.2);
}

.btn-products:is(:hover, :focus) {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #6f7aa6 0%, #8891b8 100%);
  color: #fff;
  box-shadow: 0 8px 25px rgba(111, 122, 166, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-contact {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.btn-contact:is(:hover, :focus) {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}

/* SLIDER */

.swiper {
  position: relative;
  width: 60%;
  max-width: 600px;
  height: 550px;
}

.swiper-slide {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  user-select: none;
  border-radius: 20px;
  overflow: hidden;
}

.cost {
  position: absolute;
  top: 8px;
  right: 6px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  padding: 6px 10px;
  color: #fff;
  font-size: clamp(0.8rem, 4vw, 0.9rem);
  font-weight: 600;
}

.dark-text {
  color: #202134;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.overlay {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 300px;
  padding: 15px 20px;
  background: rgba(93, 95, 145, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 0 0 20px 20px;
  overflow-y: auto;
}

/* Custom scrollbar for overlay */
.overlay::-webkit-scrollbar {
  width: 6px;
}

.overlay::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.overlay::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.overlay::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.overlay h2 {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 600;
  margin-top: 10px;
}

.overlay p {
  font-size: clamp(0.8rem, 4vw, 0.9rem);
  font-weight: bold;
  line-height: 1.4;
  margin-top: 10px;
}

.ratings {
  display: flex;
  column-gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
  row-gap: 8px;
}

.ratings span {
  font-size: clamp(0.8rem, 4vw, 0.9rem);
  font-weight: bold;
}

.star {
  color: #afe312;
}

/* Medicine Box UI */
.medicine-box {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: top;
  padding: 40px;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.medicine-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 20px;
}

.medicine-box-1 {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.medicine-box-2 {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.medicine-box-3 {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

.medicine-box-4 {
  background: linear-gradient(135deg, #134e4a 0%, #115e59 100%);
}

.medicine-box-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  position: absolute;
  top: 50px;
}

.medicine-box-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-family: "Comfortaa", sans-serif;
  display: inline;
}

.medicine-box-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 300;
  opacity: 0.9;
  display: inline;
  margin-left: 8px;
}

.medicine-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
  border: 3px solid rgba(255,255,255,0.3);
}

.medicine-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.highlight-feature {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px;
  margin: 3px;
  margin-top: 8px;
  border-radius: 15px;
  font-size: clamp(1.2rem, 3vw, 0.85rem);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.highlight-feature.feature-1 {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.highlight-feature.feature-2 {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(51, 65, 85, 0.4);
}

.highlight-feature.feature-3 {
  background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

.highlight-feature.feature-4 {
  background: linear-gradient(135deg, #134e4a 0%, #14b8a6 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

.highlight-feature:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  position: fixed;
  right: -20px;
  bottom: -30px;
  z-index: 10;
}

.logo img {
  width: 120px;
}

@media (max-width: 890px) {
  .logo {
  right: -10px;
  bottom: -20px;
}
  
 .logo img {
  width: 80px;
  }
}

@media (max-width: 1050px) {
  .swiper {
    width: 450px;
    height: 500px;
  }
}

@media (max-width: 930px) {
  section {
    grid-template-columns: 100%;
    grid-template-rows: 55% 40%;
    grid-template-areas:
      "slider"
      "content";
    place-items: center;
    gap: 64px;
    padding: 60px;
  }

  .swiper {
    grid-area: slider;
  }

  .content {
    grid-area: content;
    text-align: center;
  }

  .content h1 {
    margin-bottom: 20px;
  }
  
  .button-group {
    justify-content: center;
  }
}

@media (max-width: 470px) {
  section {
    padding: 40px 40px 60px;
    display: flex;
    flex-direction: column;
  }
  
  .content {
    order: 1;
  }
  
  .swiper {
    order: 2;
  }

  .swiper {
    width: 300px;
    height: 450px;
  }
  
  .medicine-box-title,
  .medicine-box-subtitle {
    display: none;
  }
  
  .button-group {
    flex-direction: column;
    width: 100%;
  }
  
  .content button {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
  }
}
