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

/**
 * copyright 2022 codewithsadee
 */





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

:root {

  /**
   * colors
   */

  --raw-seinna: hsl(198, 78%, 14%);
  --sizzling-sunrise: hsl(51, 95%, 54%);
  --scarlet: hsl(13, 96%, 47%);
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 100%);
  --accent: #214453;
  --accent2: #34bfff;
  --medium: 0.6s;
  --ease: cubic-bezier(.47,1.64,.41,.8);

  /**
   * 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(208, 78%, 7%);
  --bg-secondary: hsl(209, 76%, 6%);
  --color-primary: hsl(0, 0%, 100%);
  --color-secondary: hsl(166, 58%, 90%);
  --card-shadow: hsla(0, 0%, 0%, 0.4);
  --input-bg: hsl(0, 0%, 16%);

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

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

}


.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}


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

.hero {
  /* position: absolute; */
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 620px;
  align-items:center;
  gap:32px;
  padding:56px clamp(24px,6vw,80px);
  position:relative;
  /* overflow:hidden; */
  background:
    radial-gradient(700px 400px at 10% 20%, rgba(139,92,246,0.07), transparent 8%),
    radial-gradient(800px 420px at 92% 80%, rgba(0,160,172,0.07), transparent 6%),
    linear-gradient(90deg,var(--bg1) 0%, var(--bg2) 45%, rgba(1,46,51,0.8) 100%);
}
.bubbles {
  position:absolute; inset:0; pointer-events:none; z-index:0; overflow:hidden;
}
.bubble {
  position:absolute;
  border-radius:50%;
  background:radial-gradient(circle at 37% 30%, rgba(0, 255, 255, 0.11) 0%, rgba(200, 206, 235, 0.11) 50%, transparent 100%);
  backdrop-filter: blur(8px);
  opacity: 0.17;
  will-change:transform, opacity;
  animation: bubbleRise linear infinite;
  filter: blur(2.3px);
  z-index:0;
}
@keyframes bubbleRise {
  from { transform: translateY(15vh) scale(1); opacity: 0.19; }
  to   { transform: translateY(-18vh) scale(1.18); opacity: 0.09; }
}
.particles {
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
  overflow:hidden;
}
.particle {
  position:absolute;
  border-radius:50%;
  background:linear-gradient(90deg, rgba(6, 185, 198, 0.9), rgba(138,92,246,0.9));
  opacity:0.06;
  filter:blur(0.6px);
  will-change:transform, opacity;
  animation:floatUp linear infinite;
  z-index:1;
}
@keyframes floatUp {
  from { transform: translateY(8vh) translateX(0) scale(0.9); opacity:0.05; }
  to   { transform: translateY(-12vh) translateX(8vw) scale(1.1); opacity:0.12; }
}

.hero-title {

  font-family: Poppins, Inter, sans-serif;
  font-size: 38px;
  line-height: 1.05;
  margin: 6px 0 12px 0;
  background: linear-gradient(90deg, #fff 0%, var(--accent) 40%, var(--accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  transform: translateY(14px);
  opacity: 1;
  transition:    opacity 0.6s var(--ease), transform var(--medium) var(--ease);
  text-align: center;

}
.hero-title.fade-out {
  opacity: 0;
  transform: translateY(32px);
}

.eyebrow {
  position: relative;
  top:-45%;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(28, 158, 167, 0.24), rgba(8, 1, 24, 0.24));
  color: white;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4px;

}
.hero-title::after {
  content: "|";
  margin-left: 5px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}



/*-----------------------------------*\
 * #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: 999px;
  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(--white);
}

.btn-secondary:is(:hover, :focus) {
  background: var(--accent);
   }

.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-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: 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-secondary);
  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.active {
  color: var(--white);   /* highlight color */
}


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





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

main { overflow-x: hidden; }

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

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


  /* Glow behind image */
  .glow {
    position: absolute;
    top: 30%;
    right: -36%;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 30%, rgba(0,160,172,0.18), rgba(131, 110, 180, 0.06) 40%, transparent 60%);
    filter: blur(26px);
    z-index: 2;
    pointer-events: none;
    opacity: 0.9;
    transform: translate(-50%, -50%);
  }





/*-----------------------------------*\
 * #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: 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-primary);
  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;
}

.toggle-btn-wrap {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.toggle-btn {
  position: relative;
  z-index: 1;
  padding: 8px 32px;
  min-width: 110px;
  background: none; /* transparent by default */
  border: none;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Animated pill background under active */
.toggle-btn.active::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--raw-seinna);
  border-radius: 100px;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.12);
}

/*
.skills-toggle::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  bottom: 5px;
  width: 93px;
  background: var(--white);
  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);
}
/* #skillSet {
  min-width: 320px;
  background-color: #04313b;
  border-radius: 50%;
} */
.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;
}
.skill-logo {
  width: 48px;
  height: 48px;
}

/* EDUCATION */

.edu-section {
  max-width: 950px;
  padding-block: var(--section-padding);
}
/* Header */
/* .edu-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  letter-spacing: -1px;
} */
/* .edu-header p {
  font-size: 1.16rem;
  color: var(--text-section);
  max-width: 680px;
  margin-bottom: 60px;
  position: relative;
  line-height: 1.6;
} */


@keyframes dotPulse {
  0% { box-shadow: 0 0 6px 1.5px #24ede6b2;}
  100% { box-shadow: 0 0 18px 7px #18fff3dd;}
}
/* Card Layout */
.edu-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  justify-content: flex-start;
}
.edu-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 35px 34px 30px 34px;
  min-width: 274px;
  /* max-width: 380px; */
  flex: 1 1 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition);
  backdrop-filter: blur(var(--glass-blur));
  /* border: 1.8px solid rgba(160,246,246,0.06); */
  position: relative;
  overflow: hidden;
}
.edu-card:before {
  content: '';
  display: block;
  position: absolute;
  right: -45px; top: -25px;
  width: 110px; height: 90px;
  background: radial-gradient(circle at top right, #23ede89d 0%, transparent 75%);
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}
.edu-card:hover {
  transform: translateY(-5px) scale(1.035);
  box-shadow: 0 2px 16px 0 #20f7ed32;
  border-color: var(--accent-teal);

}
/* Logo styles */
.edu-logo {
  width: 66px; height: 66px;
  background: #042524;
  border-radius: 13px;
  margin-bottom: 29px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 20px 0 #23eae053;
}
.edu-logo img {
  max-width: 46px; max-height: 46px;
  object-fit: contain;
  display: block;
  margin: auto;
}
.edu-logo.naresh, .edu-logo.kiit {
  width: 54px; height: 54px;
  border-radius: 50%;
   background: var(--bg-secondary);
  box-shadow: 0 2px 24px 0 var(--bg-secondary);
  justify-content: center; align-items: center;
}
.edu-logo.naresh img {
  max-width: 45px; max-height: 45px;
}
/* Institute Name */
.edu-institute {
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -.6px;
  margin-bottom: 7px;
  z-index: 1;
}
.edu-institute.kiit {
  color: var(--white);
  text-transform: uppercase; }
.edu-institute.naresh { color: #fff; }
/* Degree & Details */
.edu-title {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--color-secondary);
}
.edu-major {
  font-size: 1.03rem;
  color: var(--accent-teal);
  font-weight: 500;
  margin-bottom: 15px;
}
/* .edu-detail {
  font-size: .99rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 23px;
  color: var(--color-secondary)
} */
.edu-dates {
  color: #a0aece;
  font-size: .98rem;
  font-weight: 400;
  margin-top: auto;
  letter-spacing: 0.01em;
}
/* Responsive Styles */
@media (max-width: 950px) {
  .edu-section { max-width: 99vw; }
  .edu-header h1 { font-size: 2.19rem; }
  .edu-header p { font-size: 1rem; }
}
@media (max-width: 730px) {
  .edu-card-grid { flex-direction: column; gap: 1.1rem;}
  .edu-card {max-width: 95vw;}
}
@media (max-width: 530px) {
  .edu-section {padding: 0 0.5rem 2rem 0.5rem;}
  .edu-header h1 { font-size: 1.22rem; }
}


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

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


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

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 2px 4px 6px hsla(0, 0%, 0%, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), /* Softer, larger outer shadow */
              0 0 0 1px rgba(0, 0, 0, 0.05); /* Very subtle border/inner shadow for definition */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Add transition to the card itself */
}
.project-card .card-banner img {
  border-radius:10px;
}
.project-card:is(:hover, :focus) .card-banner img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
/* Add a slight lift and stronger shadow on hover */
.project-card:is(:hover, :focus) {
    transform: translateY(-5px); /* Gentle lift effect */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* --- OVERLAY FOR HOVER: Darker and No Blur --- */
/* Removing backdrop-filter: blur(2px) for a professional look (blur can look casual) */
/* The blur can sometimes make the image look low-quality on the initial layer. */
.project-card::after {
  /* Keep: content, position, inset, border-radius */
  background: rgba(0,0,0,0.65); /* Darker overlay for better text contrast */
  /* Remove backdrop-filter: blur(2px); */
  opacity: 0;
  transition: opacity 0.3s ease-in-out; /* Better to define transition explicitly */
}

/* --- HOVER CONTENT: Refined Button Style & Animation --- */
.hover-content {
  /* Keep: position, inset, display, align-items, justify-content, gap, z-index */

  /* Initial state: start buttons further away and slightly smaller */
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out; /* Slower and different ease for a smoother feel */
}

.project-card:is(:hover, :focus) .hover-content {
  opacity: 1;
  transform: scale(1) translateY(0); /* Final state: full size and no translation */
}

/* --- BUTTONS: High Contrast & Professional Finish --- */
.hover-content a {
  /* Use a professional primary color instead of transparent white for better visibility */

  padding: 6px 20px; /* Slightly larger clickable area */
  font-weight: 600; /* Bolder font for emphasis */
  text-transform: uppercase; /* Professional touch */

  background: var(--raw-seinna);
  border: 1px solid var(--raw-seinna);
  color: #fff; /* High contrast white text */
  box-shadow: 0 4px 12px rgba(8, 47, 64,0.25); /* Subtle shadow for depth */

  /* Keep: border-radius, text-decoration, font-size, transition */
}

/* Button hover: Subtle color change and shadow effect */
.hover-content a:hover {
  background: var(--accent); /* Darker blue on hover */
  border-color: var(--accent);
  box-shadow: 0 6px 15px rgba(33, 68, 83,0.4);
  transform: translateY(-2px); /* Micro-interaction: slight upward push */
}
/*-----------------------------------*\
 * #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-secondary);
}

.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-secondary);
  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: 0 10px 28px rgba(0,0,0,0.5);
  /* box-shadow: var(--shadow-1); */
}

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

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

.input-wrapper { position: relative;
}

.input-field {
  /* background: var(--bg-secondary); */
  color: var(--white);
  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(--color-secondary); }

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





/*-----------------------------------*\
 * #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) {

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

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

  .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: 0;
    height: 100vh;
  }

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

  .hero img {
    height: 100%;
    width: auto;
    margin-inline: auto;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.65));

  }

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

  .stats-card { height: 100%; }



/**
 * ABOUT
 */

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

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

/* ================
   VISUAL (LEFT)
   ================ */
.visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

/* Workstation wrapper (scales on smaller screens) */
.workstation {
  width: 360px;
  max-width: 95%;
  transform-origin: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Monitor frame */
.monitor {
  width: 100%;
  height: 210px;
  background: linear-gradient(180deg, var(--muted-surface), var(--surface));
  border-radius: 10px;
  padding: 12px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 8px 30px rgb(3,6,12), 0 0 30px var(--code-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Screen inside monitor */
.screen {
  width: 100%;
  flex: 1;
  background: linear-gradient(180deg, #061018 0%, #041016 100%);
  border-radius: 6px;
  padding: 14px;
  color: var(--accent2);
  font-family: var(--monospace);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: inset 0 0 18px rgba(0,0,0,0.6), inset 0 0 40px var(--code-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Typed text container */
#typed-container {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Typed text */
#typed {
  display: block;
  width: 100%;
  height: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  will-change: contents;
}

#typed .line {
  display: block;
  white-space: pre;
}

/* Cursor */
.cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: bottom;
  animation: blink 700ms steps(1) infinite;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(35,199,217,0.9);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Monitor stand */
.monitor-stand {
  width: 80px;
  height: 12px;
  background: linear-gradient(180deg, #07121a, #061018);
  margin: 12px auto 0;
  border-radius: 4px 4px 8px 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

/* Keyboard */
.keyboard {
  position: relative;
  margin-top: 18px;
  width: 100%;
  height: 86px;
  background: linear-gradient(180deg, #0b1520 0%, #07101a 100%);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.02);
  box-shadow: 0 10px 28px rgba(0,0,0,0.6);
}

/* Key rows */
.key-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

/* Individual keys */
.key {
  width: 28px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #0f222b, #07151b);
  box-shadow: inset 0 2px 1px rgba(255,255,255,0.02);
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

/* Special key sizes */
.key.wide { width: 78px; border-radius: 6px; }
.key.med { width: 48px; }

/* JS adds "pressed" class */
.key.pressed {
  transform: translateY(3px);
  background: linear-gradient(180deg, #072226, #04313b);
  box-shadow: 0 0 12px rgba(35,199,217,0.08), inset 0 2px 6px rgba(0,0,0,0.6);
}

/* Glow under keyboard */
.keyboard::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 24px;
  bottom: -12px;
  background: radial-gradient(closest-side, #000, transparent);
  filter: blur(18px);
}

/* ==============================
   RESPONSIVE MONITOR IMPROVEMENTS
   ============================== */

/* Tablet (2-column becomes 1-column) */
@media (max-width: 820px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Mobile responsiveness */
@media (max-width: 480px) {

  .workstation {
    transform: scale(0.68);
  }

  .monitor {
    height: 170px;
  }

  .screen {
    font-size: 12px;
    padding: 10px;
  }

  #typed-container {
    max-height: 140px;
    padding-right: 4px;
  }
}

/* Ultra-small phones */
@media (max-width: 360px) {

  .workstation {
    transform: scale(0.58);
  }

  .screen {
    font-size: 11px;
  }

  #typed-container {
    max-height: 120px;
  }
}



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

}