/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Base Colors ==========*/
  --bg-color: #0b0f19;
  --bg-color-alt: #131a29;

  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(12px);

  /* Typography Colors */
  --title-color: #f8fafc;
  --text-color: #94a3b8;
  --text-color-light: #64748b;

  /* Modern Developer Gradients */
  --first-color: #3b82f6;
  --first-color-alt: #2563eb;
  --gradient-1: #00f2fe;
  /* Cyber cyan */
  --gradient-2: #4facfe;
  /* Deep blue */
  --gradient-3: #f093fb;
  /* Neon pink */
  --gradient-4: #f5576c;
  /* Vibrant red/pink */

  /*========== Font and typography ==========*/
  --body-font: 'Plus Jakarta Sans', sans-serif;
  --title-font: 'Outfit', sans-serif;

  --biggest-font-size: 2.5rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: .875rem;
  --smaller-font-size: .813rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 3.5rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1.0625rem;
    --small-font-size: .938rem;
    --smaller-font-size: .875rem;
  }
}

/*========== THEME VARIABLES (Light Mode) ==========*/
body.light-theme {
  --bg-color: #f8fafc;
  --bg-color-alt: #f1f5f9;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-hover: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-border-hover: rgba(0, 0, 0, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  --title-color: #0f172a;
  --text-color: #475569;
  --text-color-light: #94a3b8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background .5s cubic-bezier(0.4, 0, 0.2, 1), color .5s ease;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--title-font);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== TYPOGRAPHY & GRADIENTS ===============*/
.text-gradient {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% auto;
  animation: shine 8s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }

  100% {
    background-position: 0% center;
  }
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  width: 100%;
  max-width: 1100px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding-block: 8rem 2rem;
}

.section__title {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: .5rem;
  letter-spacing: -0.5px;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.main {
  overflow: hidden;
}

/*=============== GLASSMORPHISM CARD ===============*/
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* Shine effect on pure hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  transition: 0.7s;
  z-index: 1;
  pointer-events: none;
}

.card:hover::before {
  left: 150%;
}

.card:hover {
  transform: translateY(-10px);
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

body.light-theme .card:hover {
  box-shadow: 0 20px 40px -10px rgba(31, 38, 135, 0.15);
}

/*=============== BACKGROUND EFFECTS ===============*/
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  animation: float 25s infinite ease-in-out alternate;
}

body.light-theme .shape {
  opacity: 0.4;
  filter: blur(120px);
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--gradient-1);
  top: -200px;
  left: -100px;
}

.shape-2 {
  width: 700px;
  height: 700px;
  background: var(--gradient-3);
  bottom: -300px;
  right: -200px;
  animation-delay: -5s;
}

.shape-3 {
  width: 500px;
  height: 500px;
  background: var(--gradient-2);
  top: 20%;
  left: 30%;
  animation-delay: -10s;
  opacity: 0.15;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(60px, 80px) scale(1.1);
  }

  66% {
    transform: translate(-40px, 40px) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  opacity: 0.5;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: all 0.4s ease;
  padding: 1rem 0;
}

.header.scroll-header {
  background-color: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .header.scroll-header {
  background-color: rgba(248, 250, 252, 0.7);
}

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

.nav__logo {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  transition: .3s;
}

.nav__logo:hover {
  transform: scale(1.05);
}

.nav__actions {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
}

.change-theme,
.nav__toggle,
.nav__close {
  cursor: pointer;
  font-size: 1.5rem;
  color: #ffffff;
  transition: .3s;
}

.change-theme:hover,
.nav__toggle:hover,
.nav__close:hover {
  color: var(--first-color);
  transform: rotate(15deg);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: .5rem;
  padding: 1rem 2.5rem;
  border-radius: 4rem;
  font-weight: 600;
  font-family: var(--body-font);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  z-index: -1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(79, 172, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(79, 172, 254, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--title-color);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--first-color);
  background-color: rgba(59, 130, 246, 0.05);
  transform: translateY(-4px);
}

.btn-nav {
  display: none;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* Navigation for mobile */
@media screen and (max-width: 967px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background: rgba(19, 26, 41, 0.95);
    width: 80%;
    height: 100vh;
    padding: 6rem 3rem 0;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-color);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    transition: right .5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  body.light-theme .nav__menu {
    background: rgba(241, 245, 249, 0.95);
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: 500;
  font-size: var(--h2-font-size);
  font-family: var(--title-font);
  transition: all .3s ease;
  display: inline-block;
}

.nav__link:hover {
  color: var(--title-color);
  transform: translateX(10px);
}

.nav__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.show-menu {
  right: 0;
}

.active-link {
  color: var(--first-color);
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/*=============== HOME HERO ===============*/
.home__container {
  padding-top: 5rem;
  row-gap: 4rem;
  min-height: 100vh;
  align-items: center;
}

.home__data {
  text-align: center;
}

.home__greeting {
  display: inline-block;
  font-size: var(--h3-font-size);
  font-family: var(--title-font);
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-color);
  padding: 0.5rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  backdrop-filter: blur(10px);
}

.home__name {
  font-size: var(--biggest-font-size);
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.home__education {
  font-size: var(--h2-font-size);
  color: var(--text-color-light);
  font-weight: 500;
  margin-bottom: 2rem;
}

.home__description {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.home__buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.home__social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
}

.home__social-link {
  display: inline-flex;
  background: var(--glass-bg);
  color: var(--title-color);
  font-size: 1.5rem;
  padding: .8rem;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home__social-link:hover {
  transform: translateY(-5px) scale(1.1);
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

.home__img-wrapper {
  justify-self: center;
  position: relative;
}

/* Beautiful Modern Avatar Placeholder */
.home__blob {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--gradient-1) 0%, var(--gradient-3) 100%);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float-profile 6s ease-in-out infinite alternate;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(79, 172, 254, 0.4);
  padding: 15px;
}

@keyframes float-profile {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-15px);
  }
}

.profile-img-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-color-light);
  font-family: var(--title-font);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.profile-img-placeholder {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-img-placeholder img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.home__blob:hover .profile-img-placeholder i {
  color: var(--first-color);
}

body.light-theme .profile-img-placeholder i {
  color: rgba(0, 0, 0, 0.05);
  text-shadow: none;
}

body.light-theme .profile-img-placeholder {
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 3rem;
}

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 1.5rem;
}

.about__box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.4s ease;
}

.about__box:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-hover);
  background: var(--glass-hover);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about__icon {
  font-size: 2.5rem;
  color: var(--first-color);
  margin-bottom: 1rem;
  display: inline-block;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 242, 254, 0.1));
  padding: 1rem;
  border-radius: 1rem;
  transition: transform 0.3s;
}

.about__box:hover .about__icon {
  transform: scale(1.1) rotate(5deg);
}

.about__title {
  font-size: var(--normal-font-size);
  margin-bottom: .25rem;
}

.about__subtitle {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  font-family: var(--title-font);
}

.about__education {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.edu__item {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
  padding: 2rem;
  z-index: 1;
  /* For glassmorphism */
}

.edu__icon {
  font-size: 3rem;
  color: var(--title-color);
  background: linear-gradient(135deg, var(--gradient-2), var(--gradient-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 1rem;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.edu__title {
  font-size: var(--h3-font-size);
  margin-bottom: .25rem;
}

.edu__institute {
  display: block;
  font-size: var(--normal-font-size);
  color: var(--first-color);
  font-weight: 500;
  margin-bottom: .5rem;
}

.edu__desc,
.edu__date {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  line-height: 1.6;
}

/*=============== PROJECTS (GLASSMORPHISM CARDS) ===============*/
.projects__container {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.project__card {
  display: flex;
  flex-direction: column;
  padding: 0;

  /* Glassmorphism & 3D Setup */
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;

  transform-style: preserve-3d;
  perspective: 1500px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project__card:hover {
  transform: translateY(-15px) rotateX(10deg) rotateY(-5deg) scale(1.03);
  box-shadow:
    -20px 30px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(79, 172, 254, 0.2);
  border-color: rgba(79, 172, 254, 0.5);
  z-index: 10;
}

/* Internal padding wrapper for content */
.project__content {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
  transform: translateZ(40px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.project__img-placeholder {
  height: 220px;
  background: var(--bg-color-alt);
  border-bottom: 1px solid var(--glass-border);
  border-radius: 1.5rem 1.5rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  transform: translateZ(20px);
}

/* Elegant animated overlay for image section */
.project__img-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 254, 0.2));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.project__card:hover .project__img-placeholder {
  background: #1e293b;
}

body.light-theme .project__card:hover .project__img-placeholder {
  background: #e2e8f0;
}

.project__card:hover .project__img-placeholder::before {
  opacity: 1;
}

.project__img-placeholder i {
  font-size: 6rem;
  color: var(--text-color-light);
  opacity: 0.3;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  position: relative;
}

.project__card:hover .project__img-placeholder i {
  transform: scale(1.2) translateY(-10px);
  color: #fff;
  opacity: 1;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.project__title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.project__description {
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-bottom: 1.5rem;
  flex: 1;
  line-height: 1.7;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}

.project__tags span {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  color: var(--title-color);
  font-size: var(--smaller-font-size);
  font-family: var(--title-font);
  padding: .4rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--glass-border);
  transition: 0.3s;
}

.project__card:hover .project__tags span {
  background-color: var(--first-color);
  color: #fff;
  border-color: transparent;
}

.project__buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.project__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  column-gap: .3rem;
  color: var(--title-color);
  font-size: var(--normal-font-size);
  font-weight: 600;
  transition: .3s;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.project__button i {
  font-size: 1.5rem;
  transition: .3s;
  color: var(--first-color);
}

.project__card:hover .project__button {
  border-color: var(--first-color);
  padding-right: 1rem;
}

.project__card:hover .project__button i {
  transform: translateX(.5rem);
}

/*=============== EXPERIENCE ===============*/
.exp__container {
  max-width: 900px;
}

.exp__timeline {
  position: relative;
  padding-left: 3rem;
}

.exp__timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, var(--first-color), var(--gradient-3));
  top: 0;
  bottom: 0;
  left: 0;
  opacity: 0.3;
}

.exp__item {
  position: relative;
  margin-bottom: 4rem;
}

.exp__marker {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--bg-color);
  border: 4px solid var(--first-color);
  border-radius: 50%;
  left: -3.8rem;
  top: .8rem;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.exp__item:hover .exp__marker {
  background-color: var(--gradient-2);
  border-color: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.5);
}

.exp__content {
  padding: 2.5rem;
  z-index: 1;
}

.exp__header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.exp__title {
  font-size: 1.4rem;
}

.exp__company {
  font-size: 1.1rem;
  color: var(--first-color);
  font-weight: 600;
  display: inline-block;
  margin-top: .5rem;
}

.exp__date {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  background-color: rgba(255, 255, 255, 0.03);
  padding: .6rem 1.2rem;
  border-radius: 2rem;
  border: 1px solid var(--glass-border);
  align-self: flex-start;
  font-family: var(--title-font);
}

.exp__description {
  font-size: var(--normal-font-size);
  line-height: 1.7;
}

/*=============== SKILLS ===============*/
.skills__container {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto;
}

.skills__group {
  padding: 2.5rem;
  z-index: 1;
}

.skills__title {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  font-size: var(--h3-font-size);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.skills__title i {
  font-size: 2rem;
  color: var(--title-color);
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skills__box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.skills__data {
  display: flex;
  align-items: center;
  column-gap: 1.2rem;
  padding: 1rem;
  border-radius: 1rem;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.skills__data:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border);
  transform: translateX(10px);
}

.skills__data i {
  font-size: 1.8rem;
  color: var(--first-color);
}

.skills__name {
  font-size: 1.1rem;
  font-weight: 600;
}

.skills__desc {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  margin-top: .3rem;
  font-family: var(--title-font);
}

/*=============== CONTACT ===============*/
.contact {
  padding-bottom: 10rem;
}

.contact__container {
  grid-template-columns: 1fr;
  max-width: 800px;
}

.contact__content {
  text-align: center;
  padding: 4rem 2rem;
  z-index: 1;
}

.contact__title {
  font-size: var(--h1-font-size);
  margin-bottom: 3rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__card {
  background-color: var(--bg-color-alt);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__card:hover {
  border-color: var(--first-color);
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  background: var(--glass-hover);
}

body.light-theme .contact__card {
  background-color: var(--bg-color);
}

.contact__card-icon {
  font-size: 2.5rem;
  color: var(--title-color);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact__card-title,
.contact__card-data {
  display: block;
}

.contact__card-title {
  font-size: var(--normal-font-size);
  font-weight: 600;
  margin-bottom: .5rem;
  font-family: var(--title-font);
}

.contact__card-data {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-bottom: 1.5rem;
}

.contact__button {
  color: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  transition: .3s;
  padding: .5rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--glass-border);
}

.contact__button:hover {
  background: var(--first-color);
  color: #fff;
  border-color: transparent;
}

.contact__button:hover .contact__button-icon {
  transform: translateX(.25rem);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--bg-color-alt);
  border-top: 1px solid var(--border-color);
  padding-block: 5rem 3rem;
  position: relative;
  z-index: 10;
}

body.light-theme .footer {
  background-color: rgba(241, 245, 249, 0.5);
  backdrop-filter: blur(10px);
}

.footer__container {
  text-align: center;
}

.footer__title {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 800;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 2.5rem;
  row-gap: 1rem;
  margin-bottom: 3rem;
}

.footer__link {
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.1rem;
  transition: .3s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-bottom: 4rem;
}

.footer__social-link {
  background-color: transparent;
  color: var(--title-color);
  font-size: 1.8rem;
  padding: .8rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: inline-flex;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer__social-link:hover {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  border-color: transparent;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

.footer__copy {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  font-family: var(--title-font);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 2rem;
  bottom: -30%;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  opacity: .9;
  padding: .6rem;
  border-radius: .5rem;
  display: inline-flex;
  z-index: var(--z-tooltip);
  transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scrollup__icon {
  font-size: 1.8rem;
  color: #fff;
}

.scrollup:hover {
  opacity: 1;
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(79, 172, 254, 0.4);
}

.show-scroll {
  bottom: 3rem;
}

/*=============== ANIMATIONS (Intersection Observer) ===============*/
/* Enhanced, extremely smooth animations */
.observe-me {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
}

/* Special fade-in for hero elements to come from different directions */
.home__data.observe-me {
  transform: translateX(-50px);
}

.home__img-wrapper.observe-me {
  transform: translateX(50px);
}

.observe-me.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-inline: 1rem;
  }

  .home__buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .about__info {
    grid-template-columns: 1fr;
  }

  .exp__timeline {
    padding-left: 2rem;
  }

  .exp__marker {
    left: -2.8rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .about__info {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__info {
    grid-template-columns: repeat(3, 1fr);
    flex-direction: row;
  }
}

@media screen and (min-width: 768px) {
  .section {
    padding-block: 10rem 3rem;
  }

  .exp__container {
    margin-inline: auto;
  }

  .exp__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .exp__date {
    margin-top: 0;
  }

  .home__blob {
    width: 350px;
    height: 350px;
  }
}

/* For large devices - Desktop Layout */
@media screen and (min-width: 968px) {
  .nav {
    height: calc(4.5rem + 2rem);
  }

  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 3.5rem;
  }

  .nav__menu {
    position: relative;
    right: 0;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
  }

  .nav__link {
    font-size: var(--normal-font-size);
  }

  .btn-nav {
    display: inline-flex;
  }

  .home__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    padding-top: 10rem;
    column-gap: 5rem;
  }

  .home__data {
    text-align: left;
  }

  .home__greeting,
  .section__subtitle {
    text-align: left;
    justify-content: flex-start;
  }

  .home__description {
    margin: 0 0 3rem;
    max-width: 100%;
  }

  .home__buttons,
  .home__social {
    justify-content: flex-start;
  }

  .home__blob {
    width: 400px;
    height: 400px;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 5rem;
  }

  .about__data {
    text-align: left;
  }

  .about__info {
    justify-content: flex-start;
  }

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

  .contact__content {
    padding: 5rem 4rem;
  }
}

@media screen and (min-width: 1200px) {
  .container {
    max-width: 1200px;
    margin-inline: auto;
  }

  .section {
    padding-block: 12rem 4rem;
  }
}

/*=============== TYPING CURSOR ===============*/
.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--first-color);
  margin-left: 4px;
  animation: blink 1s infinite;
}

.cursor.typing {
  animation: none;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  49% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}