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

/**
 * copyright 2022 codewithsadee
 */





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

:root {

  /**
   * colors
   */

  --raw-seinna: hsl(24, 74%, 58%);
  --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(226, 28%, 8%);
  --bg-secondary: hsl(226, 22%, 13%);
  --color-primary: hsl(210, 15%, 97%);
  --color-secondary: hsl(214, 18%, 60%);
  --card-shadow: hsla(226, 60%, 4%, 0.55);
  --input-bg: hsl(226, 25%, 11%);

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

}

body.light_theme {

  --bg-primary: hsl(220, 20%, 93%);
  --bg-secondary: hsl(220, 20%, 100%);
  --color-primary: hsl(226, 28%, 12%);
  --color-secondary: hsl(220, 15%, 40%);
  --card-shadow: hsla(226, 30%, 20%, 0.12);
  --input-bg: hsl(220, 18%, 96%);

  --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;
  overflow-x: hidden;
}

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

body.active { overflow: hidden; }

/* 背景动画 Canvas */
#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  display: block;
}

/* 深色主题下的背景动画 */
body.dark_theme #background-canvas {
  opacity: 0.92;
}

/* 浅色主题下的背景动画 */
body.light_theme #background-canvas {
  opacity: 0.55;
}

/* 确保内容在背景之上 */
.header,
main,
.footer,
.go-top {
  position: relative;
  z-index: 1;
}





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

.container { width: 100%; max-width: 100%; margin-inline: auto; 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;
  text-shadow: 0 0 35px rgba(138, 180, 248, 0.18);
}

.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);
}

.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(--black);
}

.btn-secondary:is(:hover, :focus) { --raw-seinna: hsl(24, 74%, 64%); }

.section-subtitle {
  position: relative;
  color: #8ab4f8;
  text-transform: uppercase;
  padding-bottom: 5px;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  font-size: var(--fs-7);
  text-shadow: 0 0 20px rgba(138, 180, 248, 0.4);
}

.section-subtitle::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #8ab4f8, #c4b5fd);
}

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

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

.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: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(138, 180, 248, 0.2);
}

.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);
  text-shadow: 0 0 20px rgba(138, 180, 248, 0.25);
}

.logo span {
  display: inline-block;
  background: linear-gradient(135deg, #8ab4f8, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  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: rgba(138, 180, 248, 0.2);
  border: 1px solid rgba(138, 180, 248, 0.4);
  border-radius: 100px;
  transition: var(--transition-1);
}

.header.active .theme-btn { background: rgba(138, 180, 248, 0.15); }

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

.theme-btn.active .icon {
  left: 20px;
  box-shadow: inset 20px -20px #c4b5fd;
}

.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: linear-gradient(135deg, #8ab4f8, #c4b5fd);
  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: rgba(10, 20, 40, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(138, 180, 248, 0.2);
  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;
  box-shadow: inset 0 0 50px rgba(138, 180, 248, 0.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;
  background: linear-gradient(135deg, #ffffff, #a0d8ef, #64b5f6);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  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);
  animation: gradientShift 3s ease infinite;
}

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

.navbar-link::before {
  content: "";
  position: absolute;
  top: 70%;
  transform: translateY(-50%);
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(135deg, #8ab4f8, #c4b5fd);
  transition: var(--transition-1);
}

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





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

main { overflow-x: clip; }

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 115px;
  margin-bottom: var(--section-padding);
}

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

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

.hero-content { max-width: 450px; }

.hero-title {
  text-align: center;
  margin-bottom: 30px;
  font-family: var(--ff-saira-stencil-one);
  background: linear-gradient(135deg, #ffffff, #a0d8ef, #64b5f6);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 3s ease infinite;
}

.hero-title span {
  display: inline-block;
  background: linear-gradient(135deg, #8ab4f8, #c4b5fd);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 2px;
  animation: gradientShift 3s ease infinite;
}

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





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

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

.stats-list {
  display: grid;
  gap: 20px;
  padding: 0 10px;
}

.stats-card {
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(138, 180, 248, 0.3);
  border-radius: var(--radius-12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-1);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 140px;
  padding: 25px 20px;
}

.stats-card:is(:hover, :focus) {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 40px rgba(138, 180, 248, 0.25);
}

.stats-card::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -50%;
  width: 60%;
  height: 300%;
  background: linear-gradient(120deg, transparent 30%, hsla(0,0%,100%,0.12) 50%, transparent 70%);
  transform: rotate(25deg);
  transition: transform .6s ease, left .6s ease, top .6s ease;
}

.stats-card:is(:hover, :focus)::after {
  left: 120%;
  top: -50%;
}

.card-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  padding-bottom: 15px;
  flex: 1;
  width: 100%;
}

.card-main-content {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.card-text-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.stats-card .card-icon {
  background: linear-gradient(135deg, rgba(138, 180, 248, 0.9), rgba(196, 181, 253, 0.9));
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(138, 180, 248, 0.3);
  flex-shrink: 0;
}

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

.stats-card .card-title {
  width: 100%;
  text-align: left;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: var(--fw-700);
  background: linear-gradient(135deg, #ffffff, #a0d8ef, #64b5f6, #42a5f5);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 3s ease infinite;
  margin: 0;
}

.stats-card .card-title strong {
  display: inline;
  font-size: inherit;
  background: inherit;
  -webkit-background-clip: inherit;
  background-clip: inherit;
  color: inherit;
  animation: inherit;
}

/* Version Info */
.version-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.version-number {
  color: var(--color-primary);
  font-weight: var(--fw-700);
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
}

.latest-badge {
  background: linear-gradient(135deg, #8ab4f8, #c4b5fd);
  color: var(--bg-primary);
  font-size: clamp(0.6rem, 1.2vw, 0.7rem);
  font-weight: var(--fw-700);
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(138, 180, 248, 0.3);
}

@media (min-width: 768px) {

  .latest-badge {
    padding: 3px 8px;
    font-size: clamp(0.65rem, 1.3vw, 0.75rem);
  }

}

@media (min-width: 992px) {

  .latest-badge {
    padding: 3px 10px;
    font-size: clamp(0.7rem, 1.4vw, 0.8rem);
  }

}

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

/* Download badge as bottom button */
.download-badge {
  position: relative;
  width: 100%;
  text-align: center;
  font-size: clamp(0.85rem, 1.8vw, var(--fs-5));
  font-weight: var(--fw-700);
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, rgba(138, 180, 248, 0.9), rgba(196, 181, 253, 0.9), rgba(138, 180, 248, 0.9));
  background-size: 300% 300%;
  color: var(--black);
  padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 16px);
  border-radius: var(--radius-8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: gradientShift 3s ease infinite;
  margin-top: auto;
  border: 2px solid transparent;
  transition: var(--transition-1);
}

/* Gradient animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.stats-card:is(:hover, :focus) .download-badge {
  filter: brightness(1.05);
  border-color: rgba(138, 180, 248, 0.6);
  box-shadow: 0 4px 12px rgba(138, 180, 248, 0.3);
}

/* Custom radius for download badge */
:root {
  --radius-8: 8px;
}





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

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

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

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

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





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

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

.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 15px;
  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;
}





/*-----------------------------------*\
 * #BLOG
\*-----------------------------------*/

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

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

.blog-post-item > a {
  background: var(--bg-secondary);
  border-radius: var(--radius-12);
  box-shadow: 2px 4px 6px hsl(0deg 0% 0% / 20%);
  overflow: hidden;
}

.blog-banner-box { height: 500px; }

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

.blog-content { padding: 25px 15px; }

.blog-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  color: var(--color-secondary);
  font-size: var(--fs-5);
  margin-bottom: 8px;
}

.blog-item-title {
  --fs-3: calc(1.15rem + 1vw);
  margin-bottom: 8px;
}

.blog-text {
  color: var(--color-secondary);
  line-height: 1.5;
}





/*-----------------------------------*\
 * #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: 28px;
  color: #8ab4f8;
  text-shadow: 0 0 15px rgba(138, 180, 248, 0.5);
  flex-shrink: 0;
}

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

.contact-item-title {
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: var(--fw-700);
  text-shadow: 0 0 10px rgba(138, 180, 248, 0.3);
}

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

.contact-info:not(address):is(:hover, :focus) {
  color: #8ab4f8;
  text-shadow: 0 0 10px rgba(138, 180, 248, 0.5);
}

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

.contact-social-link {
  position: relative;
  background: rgba(138, 180, 248, 0.2);
  backdrop-filter: blur(10px);
  color: #8ab4f8;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: var(--transition-1);
  border: 2px solid rgba(138, 180, 248, 0.3);
  box-shadow: 0 4px 15px rgba(138, 180, 248, 0.2);
}

.contact-social-link:is(:hover, :focus) {
  background: linear-gradient(135deg, #8ab4f8, #c4b5fd);
  color: #0a1428;
  border-color: #8ab4f8;
  box-shadow: 0 6px 20px rgba(138, 180, 248, 0.5);
  transform: translateY(-2px);
}

.contact-social-link:is(:hover, :focus) .tooltip {
  transform: translateY(0);
  opacity: 1;
  background: linear-gradient(135deg, #8ab4f8, #c4b5fd);
  color: #0a1428;
}

.contact-form {
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: var(--radius-12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(138, 180, 248, 0.2);
}

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

.form-label {
  color: #8ab4f8;
  font-size: var(--fs-7);
  font-family: var(--ff-poppins);
  margin-bottom: 8px;
  margin-left: 5px;
  text-shadow: 0 0 10px rgba(138, 180, 248, 0.3);
}

.input-wrapper { position: relative; }

.input-field {
  background: rgba(138, 180, 248, 0.1);
  backdrop-filter: blur(5px);
  color: #ffffff;
  padding: 12px;
  padding-left: 45px;
  border-radius: var(--radius-12);
  transition: var(--transition-1);
  border: 1px solid rgba(138, 180, 248, 0.3);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.input-wrapper ion-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #8ab4f8;
  font-size: 20px;
  transition: var(--transition-1);
  text-shadow: 0 0 10px rgba(138, 180, 248, 0.5);
}

textarea.input-field {
  min-height: 80px;
  height: 150px;
  max-height: 250px;
  resize: vertical;
}

.input-field:focus {
  outline: none;
  border-color: #8ab4f8;
  box-shadow: 0 0 20px rgba(138, 180, 248, 0.3), inset 0 2px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.input-field:focus + ion-icon {
  color: #c4b5fd;
  transform: translateY(-50%) scale(1.1);
  text-shadow: 0 0 15px rgba(196, 181, 253, 0.7);
}

.contact .btn-primary {
  max-width: unset;
  width: 100%;
  background: linear-gradient(135deg, #8ab4f8, #c4b5fd);
  color: #0a1428;
  font-weight: var(--fw-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 25px;
  border: none;
  border-radius: var(--radius-12);
  transition: var(--transition-1);
  box-shadow: 0 4px 15px rgba(138, 180, 248, 0.3);
  cursor: pointer;
}

.contact .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 180, 248, 0.5);
  filter: brightness(1.05);
}

.contact .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(138, 180, 248, 0.3);
}





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

.footer {
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(10px);
  padding-block: 20px;
  text-align: center;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(138, 180, 248, 0.2);
}

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

.copyright {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.copyright a {
  display: inline-block;
  background: linear-gradient(135deg, #8ab4f8, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: var(--transition-1);
}

.copyright a:hover {
  opacity: 0.8;
}





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

.hero-tagline {
  text-align: center;
  color: rgba(190, 215, 255, 0.85);
  font-size: var(--fs-5);
  font-weight: var(--fw-700);
  letter-spacing: 2px;
  margin-top: 14px;
  padding: 0 20px;
  line-height: 2;
  animation: fadeInUp 0.9s ease 0.5s both;
}

body.light_theme .hero-tagline {
  color: rgba(30, 60, 120, 0.7);
}

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




/*-----------------------------------*\
 * #FEATURES
\*-----------------------------------*/

.features { padding-bottom: var(--section-padding); }

.features-header,
.stats-header {
  text-align: center;
  padding-top: var(--section-padding);
  padding-bottom: 40px;
  position: relative;
}

.features-header .section-subtitle,
.stats-header .section-subtitle {
  display: inline-block;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  transform-origin: unset !important;
  margin-inline: auto;
  margin-bottom: 20px;
}

.features-header .section-subtitle::after,
.stats-header .section-subtitle::after {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  top: 100%;
}

.features-header .section-title,
.stats-header .section-title {
  max-width: unset;
  text-align: center;
  margin-inline: auto;
}

.stats-desc {
  max-width: 480px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 0;
}

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

.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 10px;
}

.feature-card {
  background: rgba(10, 20, 40, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(138, 180, 248, 0.15);
  border-radius: var(--radius-12);
  padding: 28px 22px;
  transition: var(--transition-1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #8ab4f8, #c4b5fd);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(138, 180, 248, 0.4);
  box-shadow: 0 14px 40px rgba(138, 180, 248, 0.18);
}

.feature-icon {
  font-size: 34px;
  color: #8ab4f8;
  margin-bottom: 14px;
  display: block;
  text-shadow: 0 0 18px rgba(138, 180, 248, 0.5);
  transition: var(--transition-1);
}

.feature-card:hover .feature-icon {
  color: #c4b5fd;
  text-shadow: 0 0 24px rgba(196, 181, 253, 0.7);
  transform: scale(1.12);
}

.feature-title {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--ff-poppins);
  font-size: var(--fs-5);
  margin-bottom: 8px;
  font-weight: var(--fw-700);
}

.feature-text {
  color: rgba(164, 190, 255, 0.58);
  font-size: var(--fs-7);
  line-height: 1.85;
}

body.light_theme .feature-card {
  background: rgba(240, 245, 255, 0.75);
  border-color: rgba(80, 120, 200, 0.18);
}

body.light_theme .feature-icon { color: hsl(220, 65%, 50%); }

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

body.light_theme .feature-text { color: var(--color-secondary); }




/*-----------------------------------*\
 * #SCROLL REVEAL
\*-----------------------------------*/

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}




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

.go-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(138, 180, 248, 0.2);
  backdrop-filter: blur(10px);
  color: #8ab4f8;
  border: 2px solid rgba(138, 180, 248, 0.4);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(138, 180, 248, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition-1);
  z-index: 2;
}

.go-top ion-icon {
  width: 24px;
  height: 24px;
  stroke: #8ab4f8;
  stroke-width: 2;
  --ionicon-stroke-width: 24px;
}

.go-top:hover {
  background: rgba(138, 180, 248, 0.3);
  border-color: rgba(138, 180, 248, 0.6);
  box-shadow: 0 6px 20px rgba(138, 180, 248, 0.4);
}

.go-top:hover ion-icon {
  stroke: #c4b5fd;
  transform: translateY(-2px);
  transition: var(--transition-1);
}

.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; }



  /**
   * FEATURES
   */

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



  /**
   * PROJECT
   */

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

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

}





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

@media (min-width: 768px) {

  /**
   * REUSED STYLE
   */

  .container { max-width: 720px; }

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



  /**
   * STATS
   */

  .stats-list {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 720px;
    margin-inline: auto;
  }



  /**
   * ABOUT
   */

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

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

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



  /**
   * 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: 100px;

  }



  /**
   * 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; }

  .header .container {
    justify-content: center;
    gap: 20px;
  }

  .logo {
    order: 0;
    margin-right: auto;
  }

  .navbar {
    order: 1;
    all: unset;
  }

  .navbar-actions {
    order: 2;
    margin-left: auto;
    margin-right: 0;
  }

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

  .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: 25px;
  }

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



  /**
   * HERO
   */

  .hero {
    position: relative;
    padding-top: 0;
    height: 100vh;
  }

  .hero-banner {
    max-width: unset;
    height: 100%;
    margin-bottom: 0;
  }

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

  .hero-content {
    --color-primary: var(--white);

    position: absolute;
    top: 50%;
    filter: drop-shadow(2px 4px 10px var(--black));
  }

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

  .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);
    max-width: 980px;
    margin-inline: auto;
  }

  .stats-card { height: 100%; }



  /**
   * FEATURES
   */

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




  /**
   * ABOUT
   */

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

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




  /**
   * SKILLS
   */

  .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: 2; }

   /*
   .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; }

}