/* 
? Headings font -  font-family: "Taviraj", serif; 
? body font - font-family: "Figtree", sans-serif; 
* Dark blue: #09131A -- Dark mode header and footer bg --
* light blue: #118AB2
* light green: #2a9d8f
* yellow-ish: #FFD166
* orange-ish-header: #dda15e
* notWhite bg: #fefae0
* notBlack bgn and font: #181818
*/
/*! === Base Reset === */

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

/*! --- Body --- */

body {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: space-between;
   font-family: "Figtree", sans-serif;
   font-size: 1rem;
   background-color: #fefae0; /*? #dfdfdf */
   color: #181818;
   line-height: 1;
   height: 100vh;
   width: 100vw;
   transition: 0.3s ease-in-out;
}

/*! ----- body dark theme -----  */
body.dark {
   background-color: #181818;
   color: #fefae0;
}
/*! ----------------------------  */

/*! --- Header --- */
header {
   width: 100%;
   height: 3.25rem;
   background-color: #dda15e;
   padding: 0.5rem 1rem;
   box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
   position: sticky;
   top: 0;
   z-index: 100;
}

/*! ----- Header dark theme -----  */
body.dark header {
   background-color: #09131a; /* Dark mode header bg */
}
/*! ----------------------------  */
header,
#logo,
#nav-links,
#nav-links li a,
#navbarAndtheme-toggle {
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   align-items: center;
}
/*! --- left side of the header (logo + h1 + h2) ---  */
#logo {
   height: 100%;
   gap: 0.5rem;
}
#logo-img,
#logo a {
   height: 100%;
}

#logo-img {
   transition: transform 0.3s ease-in-out;
}

/* Hover animation */
#logo-img:hover {
   animation: flap 0.3s ease-in-out infinite alternate;
}

/* Flapping keyframes */
@keyframes flap {
   0% {
      transform: rotateY(0deg) scale(1);
   }
   100% {
      transform: rotateY(40deg) scale(1.1);
   }
}
#logo-text {
   height: 100%;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
}
h1,
h4,
h5,
h6 {
   font-family: "Taviraj", serif;
   color: #181818;
   font-weight: 300;
}
h3 {
   font-family: "Taviraj", serif;
   color: #168eab;
   font-weight: 300;
}

/*! ------ header dark theme colors ------  */
body.dark h1,
body.dark h4,
body.dark h5,
body.dark h6 {
   font-family: "Taviraj", serif;
   color: #fefae0; /* Dark mode header text color */
   font-weight: 300;
}
body.dark h3 {
   color: #168eab;
}
/*! ---------------------------------------------  */
#logo-text h1 {
   font-size: 1.125rem;
   font-weight: 500;
}
#logo-text p {
   font-size: 1rem;
   font-weight: 400;
}
/*! --- Right side of the header (nav + dark mode button) ---  */
nav ul {
   gap: 0.75rem;
}
nav ul li {
   list-style: none;
}
nav ul li a {
   display: flex;
   align-items: center;
   gap: 0.375rem;
   color: #181818;
   font-size: 0.8125rem;
   font-weight: 500;
   text-decoration: none;
   background-color: #ffffff;
   padding: 0.5rem 0.875rem;
   border-radius: 1.5rem;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
   transition: all 0.3s ease;
   border: 1px solid transparent;
}
nav ul li img {
   width: 0.875rem;
   height: 0.875rem;
}

nav ul li a:hover {
   transform: translateY(-2px);
   color: #ffffff;
   background-color: #2a9d8f;
   cursor: pointer;
   box-shadow: 0 6px 12px rgba(60, 225, 206, 0.376);
}
nav ul li a:active {
   transition: 0.3s ease;
   background-color: #2a9d8f;
   box-shadow: inset 0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
}
nav ul li.active a {
   background-color: #2a9d8f;
   color: #ffffff;
}
.separator {
   font-size: 1.125rem;
   color: #181818;
   padding: 0 0.5rem;
   opacity: 0.6;
}
/*! ----------- separator dark mode-----------  */
body.dark .separator {
   color: #ffffff;
   opacity: 1;
}
/*! --------------------------------  */
/*! Pill-shaped theme toggle button */
#theme-toggle {
   width: 2.9rem;
   height: 1.5rem;
   background-color: #4b515a;
   border: solid 0.0625rem rgba(122, 122, 122, 0.654);
   box-shadow: 0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
   border-radius: 62rem;
   cursor: pointer;
   padding: 0.125rem 0;
   display: flex;
   align-items: center;
   justify-content: space-between;
   transition: all 0.3s ease;
   overflow: hidden;
   position: relative;
}

body.dark #theme-toggle {
   background-color: #bbbbbb;
}

/*! --------- Slider that moves left/right -------------- */
.slider {
   background-color: #000000;
   border-radius: 50%;
   width: 1.25rem;
   height: 1.25rem;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: transform 0.4s ease, background-color 0.3s ease;
   position: relative;
   z-index: 1;
   transform: translateX(0);
}
#theme-toggle:hover {
   border: solid 0.0625rem rgba(244, 16, 46, 0.654);
   transform: translateY(-1px);
   color: #ffffff;
   cursor: pointer;
   box-shadow: 0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
}
#theme-toggle:active {
   border: solid 0.0625rem rgba(244, 16, 46, 0.654);
   box-shadow: inset 0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
}

body.dark .slider {
   transform: translateX(1.5rem);
   background-color: #ffffff;
}

/*! Both icons exist, but only one is shown at a time */
.sun-icon,
.moon-icon {
   padding: 0.0625rem;
   width: 1.25rem;
   height: 1.25rem;
   position: absolute;
   transition: opacity 0.3s ease;
   pointer-events: none;
}

.sun-icon {
   opacity: 0;
}

body.dark .sun-icon {
   opacity: 1;
}

body.dark .moon-icon {
   opacity: 0;
}
/*! --- Main - section - hero images ---  */
.hero-images {
   width: 75%;
   display: flex;
   flex-direction: row;
   align-items: flex-start;
   justify-content: space-between;
   gap: 1rem;
   margin: 1rem auto 1rem auto;
}
.hero-images img {
   border-radius: 1.25rem;
   box-shadow: 0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
   transition: all 0.3s ease;
}
body.dark .hero-images img {
   box-shadow: 0.25rem 0.25rem 0.25rem rgba(255, 255, 255, 0.25);
}
.vertical-hero-img {
   width: 23%;
   height: auto;
   align-self: flex-end;
}

#hero-text-and-img {
   flex: 1;
   width: 50%;
   max-height: 90%;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: space-between;
   text-align: center;
   align-self: flex-end;
}
#hero-text-and-img h2,
.mobile h2 {
   font-family: "Taviraj", serif;
   font-size: 1.5rem;
   font-weight: 500;
   color: #168eab;
   margin: 1rem auto 1.25rem auto;
}
.desktop p,
.mobile p {
   font-size: 1.25rem;
   color: #181818;
   margin-bottom: 1.25rem;
}

/*! ----- .mobile p dark theme -------  */
body.dark .mobile p,
body.dark #hero-text-and-img p {
   color: #fefae0;
}

.horizontal-hero-img {
   width: 80%;
   height: auto;
}

.hero-images img:hover {
   transform: translateY(-5px) scale(1.02);
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
body.dark .hero-images img:hover {
   box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/*! --- Main - section - content ---  */
h3 {
   color: #168eab;
   font-size: x-large;
   font-weight: 500;
   text-align: center;
   margin: 1.5rem auto;
}

.kits-section {
   width: 75%;
   margin: 1rem auto;
   display: flex;
   flex-direction: row;
   align-items: flex-start;
   justify-content: space-between;
}
.kit-card {
   width: 25%;
   height: 100%;
   font-size: 1rem;
   background-color: #ffffff;
   border-radius: 1.25rem;
   padding: 1rem 2rem;
   box-shadow: 0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 0.75rem;
   transition: all 0.3s ease;
}

/*! ----- .kit-card dark theme -------  */
body.dark .kit-card {
   background-color: #1e1e1e;
   color: #fefae0;
   box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
}
/*! ------------------------------------------  */

.kit-card:hover {
   transform: translateY(-8px) scale(1.02);
   box-shadow: 0 12px 24px rgba(60, 225, 206, 0.376);
}

/*! ----- .kit-card img dark theme -------  */
body.dark .kit-card:hover {
   transform: translateY(-8px) scale(1.02);
   box-shadow: 0 12px 24px rgba(60, 225, 206, 0.376);
}
/*! ------------------------------------------  */

.kit-card img {
   width: 2rem;
   height: auto;
   transition: all 0.6s ease;
}
.kit-card:hover img {
   transform: scale(1.1) rotate(90deg);
}
h4 {
   color: #168eab;
   font-weight: 500;
}
/*! ----------.h4 dark theme-------  */
body.dark h4,
body.dark h5 {
   color: #168eab;
   font-weight: 500;
}
/*!--------------------------------  */
.kit-card p {
   font-size: 1rem;
   color: #181818;
   align-self: flex-start;
}
/*! ----- .kit-card p dark theme -------  */
body.dark .kit-card p {
   color: #fefae0;
}

h5 {
   color: #168eab;
   font-size: 1rem;
   font-weight: 500;
   align-self: flex-start;
}

.kit-card button {
   padding: 0.75rem 2rem;
   border-radius: 2rem;
   background: linear-gradient(135deg, #2a9d8f, #118ab2);
   color: #ffffff;
   border: none;
   cursor: pointer;
   font-size: 1rem;
   font-weight: 500;
   transition: all 0.3s ease;
   box-shadow: 0 4px 8px rgba(42, 157, 143, 0.3);
   text-decoration: none;
   display: inline-block;
   text-align: center;
   z-index: 2;
   position: relative;
   overflow: hidden;
}

.kit-card button::before {
   content: "";
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
   transition: left 0.5s ease;
}

.kit-card button:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 16px rgba(42, 157, 143, 0.4);
   background: linear-gradient(135deg, #118ab2, #073b4c);
}

.kit-card button:hover::before {
   left: 100%;
}

.kit-card button:active {
   transform: translateY(0);
   box-shadow: 0 4px 8px rgba(42, 157, 143, 0.3);
}

footer {
   width: 100%;
   height: fit-content;
   background-color: #dda15e;
   padding: 0.5rem 1rem;
   box-shadow: 0 -0.25rem 0.25rem rgba(0, 0, 0, 0.25);
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   align-items: center;
}

/*! ---------- footer dark mode ------  */
body.dark footer {
   background-color: #09131a; /* Dark mode footer bg */
}
/*! --------------------------------  */
#footer-links {
   font-size: 1.125rem;
   display: flex;
   flex-direction: row;
   align-items: center;
   justify-content: center;
   gap: 1rem;
}
#footer-links img {
   height: 1.25rem;
}

/*! --- Mobile styles starts here ---  */
.mobile {
   display: none;
}

@media screen and (max-width: 768px) {
   .desktop {
      display: none;
   }
   .mobile {
      display: block;
   }
   .mobile {
      width: 90%;
      margin: 1rem auto;
   }

   /*! ---- header for mobile ----  */
   header {
      height: auto;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
   }
   #logo-text {
      justify-content: space-around;
   }

   #logo img {
      height: 3rem;
   }
   nav ul {
      gap: 0.25rem;
   }
   nav ul li a {
      padding: 0.25rem 0.5rem;
      font-size: 0.75rem;
   }

   /*! ---- main for mobile ----  */

   .mobile,
   .mobile h2,
   .mobile p {
      text-align: center;
   }
   .mobile h2 {
      font-size: 1.25rem;
      font-weight: 500;
   }
   .mobile p {
      line-height: 1.25rem;
      font-size: 1rem;
   }

   .hero-images {
      align-items: center;
      width: 90%;
      gap: 0.25rem;
      margin-bottom: 2rem;
   }
   #hero-text-and-img {
      align-self: flex-start;
   }
   .kits-section {
      flex-direction: column;
      align-items: center;
      width: 90%;
      gap: 2rem;
      margin: 2rem auto;
   }
   .kit-card {
      width: 70%;
      padding: 1rem;
      text-align: center;
   }

   /*! -----------footer mobile mode-------------  */
   footer {
      flex-direction: column;
      align-items: space-between;
      gap: 1rem;
      padding: 1rem;
      text-align: center;
   }
   #footer-links {
      font-size: 1rem;
      align-items: center;
      justify-content: center;
   }
}
