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

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

:root {
  /**
   * colors
   */

  --raw-seinna: #005b99;
  --sizzling-sunrise: hsl(51, 95%, 54%);
  --scarlet: hsl(13, 96%, 47%);
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 100%);

  /**
   * typography
   */

  --ff-saira-stencil-one: "Saira Stencil One", sans-serif;
  --ff-poppins: "Poppins", sans-serif;
  --ff-roboto: "Roboto", sans-serif;

  --fs-1: 2rem;
  --fs-2: calc(1.813rem + 1vw);
  --fs-3: calc(1.313rem + 1vw);
  --fs-4: 1.4rem;
  --fs-5: 1rem;
  --fs-6: 0.813rem;
  --fs-7: 0.75rem;

  --fw-400: 400;
  --fw-700: 700;

  /**
   * transition
   */

  --transition-1: 0.25s ease-in-out;

  /**
   * spacing
   */

  --section-padding: 80px;

  /**
   * radius
   */

  --radius-4: 4px;
  --radius-12: 12px;
}

/*-----------------------------------*\
 * #THEME COLORS
\*-----------------------------------*/

body.dark_theme {
  --bg-primary: hsl(0, 0%, 12%);
  --bg-secondary: hsl(0, 0%, 19%);
  --color-primary: hsl(0, 0%, 100%);
  --color-secondary: hsl(0, 0%, 62%);
  --card-shadow: hsla(0, 0%, 0%, 0.4);
  --input-bg: hsl(0, 0%, 16%);

  --shadow-1: 10px 10px 40px var(--card-shadow);
}

body.light_theme {
  --bg-primary: hsl(0, 0%, 90%);
  --bg-secondary: hsl(0, 0%, 100%);
  --color-primary: hsl(0, 0%, 12%);
  --color-secondary: hsl(0, 0%, 37%);
  --card-shadow: hsla(0, 0%, 0%, 0.1);
  --input-bg: hsl(0, 0%, 93%);

  --shadow-1: 10px 10px 40px var(--card-shadow);
}

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

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

li {
  list-style: none;
}

a {
  text-decoration: none;
}

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

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

button,
select {
  cursor: pointer;
}

input,
textarea {
  width: 100%;
}

ion-icon {
  pointer-events: none;
}

:is(a, button, select) {
  outline-color: var(--scarlet);
  outline-offset: 3px;
}

::selection {
  background: var(--color-primary);
  color: var(--bg-primary);
}

html {
  font-family: var(--ff-roboto);
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  transition: var(--transition-1);
}

body.active {
  overflow: hidden;
}

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

.container {
  padding-inline: 10px;
}

.h1 {
  font-size: var(--fs-1);
  line-height: 1.2;
  font-weight: 400;
}

.h2,
.h3,
.h4 {
  color: var(--color-primary);
  font-family: var(--ff-poppins);
  line-height: 1.2;
}

.h2 {
  font-size: var(--fs-2);
}

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

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

.w-100 {
  width: 100%;
}

.btn {
  max-width: max-content;
  color: var(--color-primary);
  font-weight: var(--fw-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 25px;
  border: 1px solid transparent;
  border-radius: var(--radius-4);
  transition: var(--transition-1);
  text-align: center;
}

.btn-primary {
  border-color: var(--color-primary);
}

.btn-primary:is(:hover, :focus) {
  background: var(--color-primary);
  color: var(--bg-primary);
}

.btn-secondary {
  background: var(--raw-seinna);
  border-color: var(--raw-seinna);
  color: var(--white);
}

.btn-secondary:is(:hover, :focus) {
  --raw-seinna: #0077b6;
}

.section-subtitle {
  position: relative;
  color: var(--color-secondary);
  text-transform: uppercase;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.section-subtitle::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-secondary);
}

.section-title {
  max-width: 350px;
  margin-bottom: 30px;
}

.section-title-2 {
  color: #0077b6;
  font-size: var(--fs-4);
}

.section-text {
  color: var(--color-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
}

.tooltip {
  position: absolute;
  top: -40px;
  background: var(--raw-seinna);
  min-width: max-content;
  color: var(--white);
  font-size: 15px;
  font-weight: var(--fw-700);
  padding: 5px 10px;
  border-radius: var(--radius-4);
  box-shadow: var(--shadow-1);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-1);
  z-index: 1;
}

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

.header {
  padding-block: 15px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: var(--transition-1);
  z-index: 4;
}

.header.active {
  padding-block: 12px;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-1);
}

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

.logo {
  position: relative;
  min-width: 77px;
  z-index: 2;
}

.logo a {
  color: var(--color-primary);
  font-family: var(--ff-saira-stencil-one);
}

.logo span {
  display: inline-block;
  color: var(--raw-seinna);
  margin-left: 2px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.navbar-actions select {
  color: var(--color-primary);
  width: 45px;
}

.navbar-actions option {
  background: var(--bg-primary);
  color: var(--color-primary);
}

.theme-btn {
  padding: 4px;
  width: 48px;
  background: var(--bg-secondary);
  border-radius: 100px;
  transition: var(--transition-1);
}

.header.active .theme-btn {
  background: var(--bg-primary);
}

.theme-btn .icon {
  position: relative;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50px;
  box-shadow: inset 9px -6px var(--color-primary);
  transition: var(--transition-1);
}

.theme-btn.active .icon {
  left: 20px;
  box-shadow: inset 20px -20px var(--sizzling-sunrise);
}

.nav-toggle-btn {
  position: relative;
  transform: rotate(-55deg);
  transition: var(--transition-1);
  z-index: 2;
}

.nav-toggle-btn.active {
  transform: rotate(-45deg);
}

.nav-toggle-btn span {
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px;
  transition: var(--transition-1);
}

.nav-toggle-btn :is(.one, .three) {
  width: 10px;
}

.nav-toggle-btn .one {
  margin-left: auto;
  transform-origin: left;
}

.nav-toggle-btn .three {
  transform-origin: right;
}

.nav-toggle-btn.active .one {
  transform: rotate(90deg) translateX(-3px);
}

.nav-toggle-btn.active .three {
  transform: rotate(90deg) translateX(3px);
}

.navbar {
  position: fixed;
  background: var(--bg-secondary);
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  visibility: hidden;
  transition: 0.75s cubic-bezier(0.71, 0.01, 0.24, 0.99);
  transition-delay: 0.5s;
  z-index: 1;
}

.navbar.active {
  top: 0;
  visibility: visible;
  transition-delay: 0s;
}

.navbar-list > li {
  margin-block: 20px;
  padding-inline: 50px;
  overflow: hidden;
}

.navbar-link {
  position: relative;
  width: max-content;
  margin-inline: auto;
  color: var(--color-primary);
  font-family: var(--ff-poppins);
  font-size: var(--fs-1);
  padding: 10px;
  transform: translateY(50px);
  transition: 0.75s cubic-bezier(0.68, -0.55, 0.27, 2);
}

.navbar.active .navbar-link {
  transform: translateY(0);
  transition-delay: 0.5s;
}

.navbar-link::before {
  content: "";
  position: absolute;
  top: 80%;
  transform: translateY(-50%);
  left: 0;
  height: 5px;
  width: 0;
  background: var(--raw-seinna);
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus)::before {
  width: 100%;
}

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

main {
  overflow-x: hidden;
}

.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 30px;
  margin-bottom: 40px;
  position: relative;
  gap: 10px;
}

.hero::before {
  content: "";
  display: block;
  height: 20px;
}

.hero-banner {
  max-width: 500px;
  width: 125%;
  margin-bottom: 5px;
}

:is(.hero-social-list, .scroll-down) {
  display: none;
}

.hero-content {
  max-width: 450px;
  margin-top: 30px;
  margin-left: 10px;
  padding-bottom: 10px;
}

.hero-title {
  text-align: center;
  margin-bottom: 15px;
}

body.light_theme .hero-title {
  color: var(--color-primary);
}

.hero .btn-primary {
  margin-inline: auto;
}

body.light_theme .hero .btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--white);
  filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.1));
}

body.light_theme .hero .btn-primary:is(:hover, :focus) {
  background: hsl(0, 0%, 18%);
  border-color: hsl(0, 0%, 18%);
  color: var(--white);
  filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.15));
}

.hero-products-slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin: 20px auto 20px;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

.products-slider__track {
  display: flex;
  gap: 15px;
  animation: slideProductsMobile 20s linear infinite;
  width: max-content;
  will-change: transform;
}

.products-slider__track:hover {
  animation-play-state: paused;
}

@keyframes slideProductsMobile {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * (150px + 15px) * 5));
  }
}

.product-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  max-width: 150px;
  text-align: center;
  transition: transform 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.product-slide:hover {
  transform: translateY(-5px);
}

.product-slide__image {
  width: 150px;
  height: 180px;
  min-width: 150px;
  min-height: 180px;
  max-width: 150px;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: var(--bg-secondary);
  display: block;
  aspect-ratio: 5/6;
}

.product-slide__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-slide__title {
  font-size: var(--fs-6);
  color: var(--color-primary);
  font-weight: var(--fw-700);
  margin: 0;
}

body.light_theme .product-slide__title {
  color: var(--raw-seinna);
}

.product-slide__price {
  font-size: var(--fs-7);
  color: var(--raw-seinna);
  font-weight: var(--fw-700);
}

/*-----------------------------------*\
 * #STATS
\*-----------------------------------*/

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

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

.stats-card {
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 25px;
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-1);
  transition: var(--transition-1);
}

.stats-card:is(:hover, :focus) {
  transform: translateY(-5px);
}

.stats-card .card-icon {
  background: var(--raw-seinna);
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.stats-card .card-icon img {
  width: 70%;
  filter: invert(1);
}

.stats-card .card-title {
  width: calc(100% - 95px);
  color: var(--raw-seinna);
  text-align: center;
}

.stats-card .card-title strong {
  display: block;
  color: var(--color-primary);
  font-size: initial;
  line-height: 1.3;
  margin-top: 5px;
}

.stats-card > ion-icon {
  color: var(--color-secondary);
}

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

.about {
  padding-block: 40px;
}

.about-banner {
  max-width: 400px;
  margin-inline: auto;
  margin-bottom: 80px;
}

.about .btn {
  max-width: unset;
  width: 100%;
}

.about .btn-secondary {
  margin-bottom: 10px;
  margin-top: 10px;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.story-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.story-actions .btn {
  width: 100%;
  max-width: unset;
}

.story-book {
  padding-block: var(--section-padding);
  position: relative;
}

.story-book::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(0, 91, 153, 0.12),
      transparent 50%
    ),
    radial-gradient(circle at 80% 70%, rgba(0, 119, 182, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.story-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.story-book .section-subtitle {
  position: relative;
  z-index: 1;
}

.story-book__inner {
  position: relative;
  background: var(--bg-secondary);
  padding: 40px 25px;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.story-book__inner::before,
.story-book__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    transparent 65%
  );
  mix-blend-mode: soft-light;
}

.story-book__inner::after {
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  mix-blend-mode: normal;
}

.story-book__spine {
  position: absolute;
  inset: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent 60%);
  z-index: 0;
}

.story-spread {
  display: grid;
  gap: 25px;
  align-items: stretch;
  position: relative;
  z-index: 1;
  margin-bottom: 35px;
}

.story-spread:last-of-type {
  margin-bottom: 0;
}

.story-page {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92),
    rgba(248, 244, 235, 0.92)
  );
  border-radius: 16px;
  padding: 30px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    0 12px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: hsl(0, 0%, 20%);
  backdrop-filter: blur(6px);
}

body.dark_theme .story-page {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 35, 0.95),
    rgba(25, 25, 30, 0.95)
  );
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 20px rgba(0, 0, 0, 0.4);
}

.story-page::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.08),
    transparent 35%,
    transparent 65%,
    rgba(0, 0, 0, 0.05)
  );
  opacity: 0.4;
}

.story-page::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 18px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.08),
    rgba(255, 255, 255, 0.05)
  );
  opacity: 0.6;
}

.story-spread .story-page:first-child::before {
  right: -9px;
}

.story-spread .story-page:last-child::before {
  left: -9px;
}

.story-page:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    0 18px 35px rgba(0, 0, 0, 0.2);
}

.story-page__heading {
  font-size: var(--fs-7);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--raw-seinna);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  padding-right: 18px;
}

.story-page__heading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
  opacity: 0.6;
}

.story-page__title {
  font-size: var(--fs-4);
  color: hsl(0, 0%, 15%);
  margin-bottom: 18px;
}

body.dark_theme .story-page__title {
  color: var(--color-primary);
}

.story-page p + p {
  margin-top: 15px;
}

.story-page p {
  line-height: 1.75;
}

.story-page--closing {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(236, 247, 255, 0.95)
  );
}

body.dark_theme .story-page--closing {
  background: linear-gradient(
    135deg,
    rgba(35, 40, 50, 0.95),
    rgba(30, 35, 45, 0.95)
  );
}

.story-page--closing::before {
  background: linear-gradient(
    90deg,
    rgba(0, 91, 153, 0.2),
    rgba(255, 255, 255, 0)
  );
}

.story-footer-actions {
  padding-block: 50px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.story-footer-actions .story-actions {
  margin-top: 0;
}

/*-----------------------------------*\
 * #SKILLS
\*-----------------------------------*/

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

.section-title--skill {
  max-width: 2500px;
}

.skills-content {
  margin-bottom: 50px;
}

.skills-toggle {
  background: var(--bg-secondary);
  position: relative;
  width: max-content;
  margin-inline: auto;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 100px;
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.skills-toggle::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  bottom: 5px;
  width: 93px;
  background: var(--raw-seinna);
  border-radius: 100px;
  transition: var(--transition-1);
  z-index: -1;
}

.skills-toggle.active::before {
  left: 98px;
  width: 94px;
}

.toggle-btn {
  color: var(--color-primary);
  font-family: var(--ff-poppins);
  padding: 5px 25px;
  transition: var(--transition-1);
}

.toggle-btn.active {
  color: var(--white);
}

.skills-box.active .skills-list,
.skills-box .tools-list {
  display: none;
}

.skills-box .skills-list,
.skills-box.active .tools-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.skill-card {
  position: relative;
  background: var(--bg-secondary);
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-1);
  cursor: help;
}

.skill-card:hover .tooltip {
  transform: translateY(0);
  opacity: 1;
}

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

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

.project-list > li {
  margin-bottom: 25px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-12);
  box-shadow: 2px 4px 6px hsla(0, 0%, 0%, 0.2);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: var(--transition-1);
}

.project-card:is(:hover, :focus)::after {
  background: hsla(0, 0%, 100%, 0.1);
  backdrop-filter: blur(0.5px);
}

.project-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
}

.project-card .card-title {
  margin-bottom: 10px;
}

.project-card :is(.card-title, .publish-date) {
  background: var(--bg-primary);
  padding: 6px 12px;
  width: max-content;
  box-shadow: var(--shadow-1);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-1);
}

.project-card .publish-date {
  font-size: var(--fs-6);
  color: var(--color-primary);
  transition-delay: 0s;
}

.project-card:is(:hover, :focus) :is(.card-title, .publish-date) {
  transform: translateY(0);
  opacity: 1;
}

.project-card:is(:hover, :focus) .publish-date {
  transition-delay: 0.1s;
}

.load-more {
  font-size: var(--fs-4);
  color: var(--raw-seinna);
  text-decoration: underline;
  margin-inline: auto;
}

/*-----------------------------------*\
 * #CONTACT
\*-----------------------------------*/

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

.contact-content {
  margin-bottom: 50px;
}

.contact-list-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item-icon {
  font-size: 25px;
  color: var(--color-primary);
}

.contact-item-icon ion-icon {
  --ionicon-stroke-width: 40px;
}

.contact-item-title {
  margin-bottom: 10px;
}

.contact-list-item .contact-info {
  color: var(--color-secondary);
  font-style: normal;
  line-height: 1.6;
  transition: var(--transition-1);
}

.contact-info:not(address):is(:hover, :focus) {
  color: var(--color-primary);
}

.contac-social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding-inline: 40px;
}

.contact-social-link {
  position: relative;
  background: var(--color-primary);
  color: var(--bg-primary);
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: var(--transition-1);
}

.contact-social-link:is(:hover, :focus) {
  background: var(--raw-seinna);
  color: var(--white);
}

.contact-social-link:is(:hover, :focus) .tooltip {
  transform: translateY(0);
  opacity: 1;
}

.contact-form {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-1);
}

.form-wrapper {
  margin-bottom: 25px;
}

.form-label {
  color: var(--color-primary);
  font-size: var(--fs-7);
  font-family: var(--ff-poppins);
  margin-bottom: 8px;
  margin-left: 5px;
}

.input-wrapper {
  position: relative;
}

.input-field {
  background: var(--input-bg);
  color: var(--raw-seinna);
  padding: 10px;
  padding-left: 40px;
  border-radius: var(--radius-12);
  transition: var(--transition-1);
}

.input-wrapper ion-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--color-secondary);
  font-size: 20px;
  transition: var(--transition-1);
}

textarea.input-field {
  min-height: 60px;
  height: 120px;
  max-height: 200px;
  resize: vertical;
}

.input-field:focus {
  outline: 1px solid;
}

.input-field:focus + ion-icon {
  color: var(--raw-seinna);
}

/* Stripe Elements styling to match input-field */
.stripe-element {
  background: var(--input-bg) !important;
  padding: 10px !important;
  padding-left: 40px !important;
  border-radius: var(--radius-12) !important;
  transition: var(--transition-1) !important;
  min-height: 40px;
  border: none !important;
}

/* Ensure Stripe Elements iframe matches input styling */
.stripe-element iframe {
  background: transparent !important;
}

.stripe-element:focus-within {
  outline: 1px solid;
  outline-color: var(--raw-seinna);
}

/* Additional styling for Stripe Elements to ensure color consistency */
.stripe-element .__PrivateStripeElement {
  background: var(--input-bg) !important;
}

/* Hide Stripe security warnings on localhost (development) */
.stripe-element [data-testid="link-autofill-disabled-message"],
.stripe-element [class*="LinkAutofill"],
.stripe-element [class*="link-autofill"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.contact .btn-primary {
  max-width: unset;
  width: 100%;
  background: var(--color-primary);
  color: var(--bg-primary);
}

.form-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: var(--radius-4);
  text-align: center;
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
}

.form-message:empty {
  display: none;
}

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

.footer {
  background: var(--bg-secondary);
  padding-block: 20px;
  text-align: center;
  box-shadow: var(--shadow-1);
}

.footer .logo {
  margin-bottom: 15px;
}

.copyright {
  color: var(--color-secondary);
  line-height: 1.6;
}

.copyright a {
  display: inline-block;
  color: var(--raw-seinna);
}

/*-----------------------------------*\
 * #GO TO TOP
\*-----------------------------------*/

.go-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition-1);
  z-index: 2;
}

.go-top.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/*-----------------------------------*\
 * #MEDIA QUERIES
\*-----------------------------------*/

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

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

  .container {
    max-width: 550px;
    margin-inline: auto;
  }

  .section-title {
    max-width: 380px;
  }

  /**
   * PROJECT
   */

  .project-list {
    column-count: 2;
    column-gap: 25px;
  }

  .project-list > li:first-child {
    column-span: all;
  }
}

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

@media (min-width: 768px) {
  /**
   * HERO PRODUCTS SLIDER
   */

  .hero-products-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 5px;
  }

  .products-slider__track {
    animation: slideProductsTablet 20s linear infinite;
  }

  .product-slide {
    min-width: 150px;
    max-width: 150px;
  }

  @keyframes slideProductsTablet {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-1 * (150px + 15px) * 5));
    }
  }

  .product-slide__image {
    width: 150px;
    height: 180px;
    min-width: 150px;
    min-height: 180px;
    max-width: 150px;
    max-height: 180px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 5/6;
  }

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 720px;
  }

  .section-title {
    max-width: 430px;
  }

  /**
   * STATS
   */

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

  /**
   * ABOUT
   */

  .btn-group {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
  }

  .about .btn {
    max-width: max-content;
    width: auto;
  }

  .about .btn-secondary {
    margin-bottom: 0;
    margin-top: 0;
  }

  .story-actions {
    flex-direction: row;
    justify-content: center;
  }

  .story-actions .btn {
    max-width: max-content;
    width: auto;
  }

  .story-book__inner {
    padding: 70px 90px;
  }

  .story-spread {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .story-page {
    min-height: 320px;
  }

  /**
   * CONTACT
   */

  .contact-form {
    max-width: 450px;
    margin-inline: auto;
  }
}

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

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

  :root {
    /**
     * typography
     */

    --fs-2: 3rem;

    /**
     * spacing
     */

    --section-padding: 150px;
  }

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 980px;
  }

  .section-content {
    position: relative;
    padding-left: 40px;
  }

  .section-subtitle {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(0.75turn) translateX(-100%);
    transform-origin: left top;
    margin-bottom: 0;
  }

  .section-subtitle::after {
    top: 8px;
    left: auto;
    right: calc(100% + 20px);
  }

  /**
   * HEADER
   */

  .header {
    padding-block: 30px;
  }

  .header.active {
    padding-block: 15px;
  }

  .navbar-actions {
    order: 1;
    margin-left: 0;
  }

  .nav-toggle-btn {
    display: none;
  }

  .navbar {
    all: unset;
  }

  .navbar-link {
    transform: translateY(0);
    font-size: unset;
    padding-inline: 5px;
  }

  .navbar-list > li {
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .navbar-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .navbar-link::before {
    height: 2px;
  }

  /**
   * HERO
   */

  .hero {
    position: relative;
    padding-top: 115px;
    padding-bottom: 50px;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .hero-banner {
    max-width: 500px;
    width: 125%;
    height: auto;
    margin-bottom: 30px;
  }

  .hero video {
    height: 100%;
    width: auto;
    margin-inline: auto;
  }

  .hero img {
    height: auto;
    width: 100%;
    margin-inline: auto;
  }

  .hero-products-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px auto 20px;
    padding: 0;
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 5%,
      black 95%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 5%,
      black 95%,
      transparent 100%
    );
  }

  .products-slider__track {
    animation: slideProductsDesktop 20s linear infinite;
  }

  .product-slide {
    min-width: 150px;
    max-width: 150px;
  }

  @keyframes slideProductsDesktop {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-1 * (150px + 15px) * 5));
    }
  }

  .product-slide__image {
    width: 150px;
    height: 180px;
    min-width: 150px;
    min-height: 180px;
    max-width: 150px;
    max-height: 180px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 5/6;
  }

  .hero-content {
    --color-primary: var(--white);
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    filter: drop-shadow(2px 4px 10px var(--black));
    z-index: 2;
    margin-top: 0;
    margin-left: 0;
  }

  .hero-products-slider {
    margin-bottom: 0;
  }

  body.light_theme .hero-content {
    --color-primary: hsl(0, 0%, 12%);
    filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.1));
  }

  .hero .btn-primary:is(:hover, :focus) {
    color: hsl(0, 0%, 12%);
  }

  body.light_theme .hero .btn-primary {
    filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.1));
  }

  body.light_theme .hero .btn-primary:is(:hover, :focus) {
    background: hsl(0, 0%, 18%);
    border-color: hsl(0, 0%, 18%);
    color: var(--white);
    filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.15));
  }

  .hero-social-list {
    display: block;
    position: absolute;
    bottom: 92px;
    left: -30px;
  }

  .hero-social-list::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 13px;
    width: 2px;
    height: 30px;
    background: var(--color-secondary);
  }

  .hero-social-link {
    position: relative;
    color: var(--color-secondary);
    margin-block: 5px;
    padding: 5px;
    font-size: 18px;
    transition: var(--transition-1);
  }

  .hero-social-link:is(:hover, :focus) {
    color: var(--color-primary);
  }

  .hero-social-link .tooltip {
    --trans-x: 10px;

    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(var(--trans-x));
  }

  .hero-social-link:is(:hover, :focus) .tooltip {
    --trans-x: 0;
    opacity: 1;
  }

  .scroll-down {
    display: block;
    position: absolute;
    bottom: 80px;
    right: -30px;
    color: var(--color-secondary);
    font-size: 1.125rem;
    text-transform: uppercase;
    transform: rotate(90deg);
    transform-origin: top right;
  }

  .scroll-down::after {
    content: "";
    position: absolute;
    top: 8px;
    right: -50px;
    width: 30px;
    height: 2px;
    background: var(--color-secondary);
  }

  /**
   * STATS
   */

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

  .stats-card {
    height: 100%;
  }

  /**
   * ABOUT
   */

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

  .about-banner {
    margin-bottom: 0;
  }

  /**
   * SKILLS
   */

  .red {
    color: red;
    margin-bottom: 30px;
  }

  .skills {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    align-items: center;
    gap: 50px;
  }

  .skills-content {
    margin-bottom: 0;
  }

  .skills-toggle {
    margin-inline: 0;
  }

  /**
   * PROJECT
   */

  .project-list {
    column-count: 3;
  }

  .project-list > li:first-child {
    column-span: unset;
    margin: 25px;
    margin-left: 0;
  }

  /**
   * CONTACT
   */

  .contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .contact-content {
    margin-bottom: 0;
  }

  .contact-form {
    width: 100%;
  }

  .contact-list {
    margin-left: -40px;
  }

  /**
   * FOOTER
   */

  .footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer .logo {
    margin-bottom: 0;
  }
}

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

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

  .container {
    max-width: 1150px;
  }

  .section-title {
    max-width: 460px;
  }

  /**
   * HERO
   */

  .hero-social-list {
    left: -80px;
  }

  .scroll-down {
    right: -80px;
  }

  /**
   * ABOUT
   */

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

/* Левая и Правая панели */
.myths-left-panel,
.myths-right-panel {
  flex: 1 1 50%; /* Обе колонки занимают по 50% */
}

/* Кнопки-вкладки */
.myth-buttons {
  display: flex;
  flex-wrap: wrap; /* Перенос кнопок на новую строку */
  gap: 10px;
}

.myth-btn {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  background-color: #333;
  color: #f1f1f1;
  border-radius: 20px;
  transition: background-color 0.3s;
}

/* Активная кнопка */
.myth-btn.active {
  background-color: #0077b6; /* Синий цвет из вашего логотипа */
  font-weight: bold;
}

/* Базовые стили для контента */
.myth-content {
  /* Всегда занимаем место, чтобы избежать "прыжков" */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  /* Изначально скрыт, но место занимает */
  opacity: 0;

  /* Не даем кликать по скрытому контенту */
  pointer-events: none;

  /* Добавляем плавный переход */
  transition: opacity 0.5s ease; /* 0.5 секунды, плавное ускорение/замедление */
}

.myths-left-panel {
  position: relative;

  /* ОЧЕНЬ ВАЖНО: Устанавливаем минимальную высоту! 
       Высота должна быть достаточной для самого длинного текста в myth-content */
  min-height: 220px;

  /* Вы можете настроить это значение (400px) на нужную вам высоту */
}

/* Применяем абсолютное позиционирование только к меняющемуся контенту */
.myth-content {
  position: absolute;
  width: 100%; /* Занимает всю ширину левой панели */
  top: 0; /* Привязываем к верху левой панели */

  /* Остальные стили для плавного перехода (opacity) остаются */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.myth-content.active {
  opacity: 1;
  pointer-events: auto;
  /* Важно: Убираем position: relative; из active, чтобы не было конфликта */
}

/* Активный контент */
.myth-content.active {
  opacity: 1; /* Полностью виден */
  pointer-events: auto; /* Разрешаем взаимодействие */
  position: relative; /* Возвращаем нормальный поток для активного контента */
}

/* Добавьте это, чтобы правая колонка не схлопывалась, когда контент скрыт */
.myths-right-panel {
  position: relative;
  flex: 1 1 50%;
}

/* Отображение активного контента */
.myth-content.active {
  display: block;
}

/* Стиль для текста *Not true!* */
.myth-disclaimer {
  color: #ff4500; /* Красный цвет */
  font-style: italic;
}

/* Медиа-запрос для адаптивности */
@media (max-width: 768px) {
  .myths-section {
    flex-direction: column; /* На маленьких экранах: колонки одна под другой */
  }
}

/*-----------------------------------*\
  #PREVIEW
\*-----------------------------------*/

/* ======================================================= */
/* БАЗОВЫЙ СПИСОК (Вертикальный) */
/* ======================================================= */
.tab-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ======================================================= */
/* БАЗОВАЯ ВКЛАДКА (НЕАКТИВНАЯ) */
/* ======================================================= */
.tab-card {
  color: var(--color-secondary);
  position: relative;
  height: 60px;
  /* background-color: #005B99; */
  border-radius: 10px;
  box-shadow: 3px 3px #005b99;

  /* Используем Flexbox/Block для лучшего контроля, чем Grid */
  display: block;
  text-align: center; /* Центрируем содержимое по горизонтали */

  overflow: hidden;
  cursor: pointer;

  /* АНИМАЦИЯ: Применяется ко всем изменениям (высота, тень, цвет, и т.д.) */
  transition: height 0.5s ease-in-out, box-shadow 0.25s ease;
}

/* ======================================================= */
/* СКРЫТЫЙ ТЕКСТ ВНУТРИ (.w-100) */
/* ======================================================= */
.tab-card .w-100 {
  pointer-events: none;
  opacity: 0;

  /* АНИМАЦИЯ: Плавное появление (opacity) и движение (transform) */
  /* Начинается движение с 10px вниз, скрыт */
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

/* ======================================================= */
/* АКТИВНАЯ ВКЛАДКА (РАСКРЫТА) */
/* ======================================================= */
.tab-card.active {
  height: 40vh;
  box-shadow: none;

  /* Убираем центрирование и добавляем отступы */
  display: block;
  padding: 20px;
}

/* АКТИВНЫЙ ТЕКСТ (.w-100) */
.tab-card.active .w-100 {
  opacity: 1;
  pointer-events: auto;

  /* АНИМАЦИЯ: Сдвигается на место (0px) */
  transform: translateY(0);
  text-align: left;
}

/* ======================================================= */
/* ЗАГОЛОВОК (.tab-text) */
/* ======================================================= */
.tab-text {
  font-size: var(--fs-5);

  /* Позиционирование по центру для неактивной карточки */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* АНИМАЦИЯ: Плавное исчезновение заголовка при открытии */
  transition: opacity 0.25s ease;
}

.tab-card.active .tab-text {
  display: none; /* Мгновенно скрываем, но... */
  opacity: 0; /* ...используем opacity, чтобы переход был менее резким */
}

/*-----------------------------------*\
 * #STRIPE ELEMENTS STYLING
\*-----------------------------------*/

#card-number-element,
#card-expiry-element,
#card-cvc-element {
  background: var(--bg-secondary);
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-12);
  padding: 14px 16px;
  transition: var(--transition-1);
}

#card-number-element:focus,
#card-expiry-element:focus,
#card-cvc-element:focus {
  outline: none;
  border-color: var(--raw-seinna);
  box-shadow: 0 0 0 2px rgba(0, 91, 153, 0.2);
}

#card-number-element.StripeElement--focus,
#card-expiry-element.StripeElement--focus,
#card-cvc-element.StripeElement--focus {
  border-color: var(--raw-seinna);
  box-shadow: 0 0 0 2px rgba(0, 91, 153, 0.2);
}

#card-number-element.StripeElement--invalid,
#card-expiry-element.StripeElement--invalid,
#card-cvc-element.StripeElement--invalid {
  border-color: var(--scarlet);
}

#payment-request-button {
  min-height: 48px;
}

#payment-divider {
  display: none;
}

@media (max-width: 768px) {
  #card-number-element,
  #card-expiry-element,
  #card-cvc-element {
    padding: 12px 14px;
  }
}

/*-----------------------------------*\
 * #TERMS MODAL
\*-----------------------------------*/

.terms-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

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

.terms-modal-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  position: relative;
}

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

.terms-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 1;
  border-radius: var(--radius-12) var(--radius-12) 0 0;
}

.terms-modal-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-1);
  padding: 0;
  line-height: 1;
}

.terms-modal-close:hover {
  background: var(--bg-primary);
  transform: rotate(90deg);
}

.terms-modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

.terms-section {
  margin-bottom: 20px;
}

.terms-section:last-of-type {
  margin-bottom: 0;
}

.terms-modal-footer {
  padding: 20px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-secondary);
  border-radius: 0 0 var(--radius-12) var(--radius-12);
  position: sticky;
  bottom: 0;
}

@media (max-width: 768px) {
  .terms-modal {
    padding: 10px;
  }

  .terms-modal-content {
    max-height: 95vh;
  }

  .terms-modal-header {
    padding: 20px;
  }

  .terms-modal-body {
    padding: 20px;
  }

  .terms-modal-footer {
    padding: 15px 20px;
  }
}
