/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* CSS Variables - Light Theme */
:root {
  --header-height: 3rem;
  --font-semi: 600;
  --font-medium: 500;

  /* Colors - Light */
  --first-color: #4070F4;
  --second-color: #0E2431;
  --third-color: #71DFE7;
  --fourth-color: #009DAE;
  --bg-color: #f8f9fc;
  --card-bg: #ffffff;
  --text-color: #0E2431;
  --text-color-light: #6b7688;
  --border-color: #e8ecf1;
  --shadow-color: rgba(14, 36, 49, .08);
  --header-bg: rgba(255, 255, 255, 0.85);
  --input-bg: #ffffff;
  --footer-bg: #0E2431;
  --footer-text: #ffffff;
  --skill-bar-bg: rgba(0, 157, 174, 0.1);
  --button-border-shine: #0E2431;
  --nav-menu-bg: #ffffff;

  /* Typography */
  --body-font: 'Poppins', sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
}

@media screen and (min-width: 768px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

/* Dark Theme */
body.dark-theme {
  --bg-color: #0d1117;
  --card-bg: #161b22;
  --text-color: #e6edf3;
  --text-color-light: #8b949e;
  --second-color: #e6edf3;
  --border-color: #30363d;
  --shadow-color: rgba(0, 0, 0, .3);
  --header-bg: rgba(13, 17, 23, 0.85);
  --input-bg: #161b22;
  --footer-bg: #010409;
  --footer-text: #e6edf3;
  --skill-bar-bg: rgba(0, 157, 174, 0.15);
  --button-border-shine: #ffffff;
  --nav-menu-bg: #0d1117;
}

/* Margins */
:root {
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
}

/* Z-Index */
:root {
  --z-back: -10;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* ========== Base ========== */
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1, h2, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

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

/* ========== Particles Canvas ========== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.l-main, .l-header, .footer {
  position: relative;
  z-index: 1;
}

/* ========== Section Title ========== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--fourth-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}

.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--fourth-color);
  border-radius: 2px;
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* ========== Layout ========== */
.bd-grid {
  max-width: 1024px;
  display: grid;
  grid-template-columns: 100%;
  grid-column-gap: 2rem;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

/* ========== Header ========== */
.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px var(--shadow-color);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* ========== Navbar ========== */
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}

.nav__logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo-img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.nav__logo {
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav__logo:hover {
  color: var(--fourth-color);
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 75%;
    height: calc(100vh - var(--header-height));
    padding: 2.5rem 2rem;
    background-color: var(--nav-menu-bg);
    border-left: 2px solid var(--fourth-color);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    transition: .4s ease;
    z-index: calc(var(--z-fixed) - 1);
  }

  .nav__link {
    color: var(--text-color);
    font-size: 1.1rem;
  }
}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  position: relative;
  color: var(--text-color-light);
  font-weight: var(--font-medium);
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: var(--fourth-color);
}

.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--fourth-color);
  border-radius: 2px;
}

.nav__toggle {
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav__toggle:hover {
  color: var(--fourth-color);
}

/* ========== Nav Actions (unified design) ========== */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.nav__action-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 32px;
}

.nav__action-btn:hover {
  border-color: var(--fourth-color);
  color: var(--fourth-color);
}

.nav__action-btn i {
  font-size: 1.1rem;
}

/* Language Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px var(--shadow-color);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  z-index: var(--z-tooltip);
  min-width: 120px;
}

.nav__dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-option {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nav__dropdown-option:hover {
  background-color: var(--skill-bar-bg);
}

.nav__dropdown-option.active {
  color: var(--fourth-color);
  font-weight: var(--font-semi);
}

/* Active Menu */
.active::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--fourth-color);
  border-radius: 2px;
}

/* Menu Show */
.show {
  right: 0;
}

/* ========== Home ========== */
.home {
  height: calc(100vh - 3rem);
  row-gap: 1rem;
  position: relative;
}

.home__data {
  align-self: center;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-5);
  line-height: 1.2;
}

.home__title-sub {
  font-size: 0.52em;
  font-weight: 500;
  opacity: 0.85;
  display: block;
  white-space: nowrap;
}

.home__title-color {
  color: var(--fourth-color);
  display: inline-block;
  animation: rubber-band 3s ease-in-out 1 forwards;
  transform-origin: center;
}

@keyframes rubber-band {
  0%, 100% { transform: scaleX(1) scaleY(1); }
  25%       { transform: scaleX(1.18) scaleY(0.88); }
  40%       { transform: scaleX(0.9) scaleY(1.1); }
  55%       { transform: scaleX(1.08) scaleY(0.95); }
  70%       { transform: scaleX(0.97) scaleY(1.03); }
  85%       { transform: scaleX(1.02) scaleY(0.99); }
}

/* Greeting typing animation */
.home__greeting-wrapper {
  display: inline-block;
  width: max-content;
  vertical-align: bottom;
}

.home__greeting {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--fourth-color);
  animation: typing 1.5s steps(10, end) forwards, blink-caret 0.7s step-end 6;
  width: 0;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--fourth-color); }
}

.home__greeting.typed {
  border-right: none;
  width: 100%;
  animation: none;
}

.home__social {
  display: flex;
  flex-direction: column;
}

.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

.home__social-icon:hover {
  color: var(--fourth-color);
  transform: translateY(-3px);
}

.home__img {
  position: absolute;
  right: 1rem;
  bottom: 4rem;
  width: clamp(180px, 55vw, 295px);
}

.home__side-img {
  display: none;
}

/* Logo bounce animation - no cursor/caret artifacts */
.home__img-logo {
  animation: bounce 3s ease-in-out infinite;
  will-change: transform;
  opacity: 0.45;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-15px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-8px); }
}

/* ========== Buttons ========== */
.button {
  display: inline-block;
  background-color: var(--fourth-color);
  color: #fff;
  padding: .75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: .5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--fourth-color);
  cursor: pointer;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  position: relative;
}

/* Top & right sides */
.button::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 0;
  height: 0;
  border-top: 2px solid var(--button-border-shine);
  border-right: 2px solid var(--button-border-shine);
  border-radius: .5rem;
  transition: width 0.15s ease, height 0.15s ease 0.15s;
}

/* Bottom & left sides */
.button::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 0;
  height: 0;
  border-bottom: 2px solid var(--button-border-shine);
  border-left: 2px solid var(--button-border-shine);
  border-radius: .5rem;
  transition: width 0.15s ease 0.3s, height 0.15s ease 0.45s;
}

.button:hover::before {
  width: calc(100% + 8px);
  height: calc(100% + 8px);
}

.button:hover::after {
  width: calc(100% + 8px);
  height: calc(100% + 8px);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 157, 174, 0.3);
}

/* ========== About ========== */
.about__container {
  row-gap: 2rem;
  text-align: center;
}

.about__subtitle {
  margin-bottom: var(--mb-2);
  color: var(--text-color);
}

.about__img {
  justify-self: center;
}

.about__img img {
  width: 200px;
  border-radius: .5rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about__img img:hover {
  transform: scale(1.03) rotate(1deg);
  box-shadow: 0 8px 30px var(--shadow-color);
}

.about__text {
  color: var(--text-color-light);
  line-height: 1.8;
}

/* ========== Skills ========== */
.skills__container {
  row-gap: 2rem;
  text-align: center;
}

.skills__subtitle {
  margin-bottom: var(--mb-2);
  color: var(--text-color);
}

.skills__text {
  margin-bottom: var(--mb-2);
  color: var(--text-color-light);
  line-height: 1.8;
}

.skills__data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-weight: var(--font-semi);
  padding: .5rem 1rem;
  margin-bottom: var(--mb-2);
  border-radius: .5rem;
  background-color: var(--card-bg);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
}

.skills__data:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--shadow-color);
}

.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: var(--fourth-color);
}

.skills__names {
  display: flex;
  align-items: center;
}

.skills__name {
  color: var(--text-color);
}

.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--fourth-color), var(--third-color));
  height: .25rem;
  border-radius: .5rem;
  z-index: var(--z-back);
}

.skills__azure { width: 50%; }
.skills__html { width: 100%; }
.skills__css { width: 90%; }
.skills__js { width: 80%; }
.skills__react { width: 60%; }
.skills__ux { width: 85%; }

.skills__icon--svg {
  width: 2rem;
  height: 2rem;
  margin-right: var(--mb-2);
  flex-shrink: 0;
}

.skills__percentage {
  color: var(--text-color-light);
}

.skills__lottie-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills__lottie {
  width: 100%;
  max-width: 420px;
}

.skills__container a {
  color: var(--fourth-color);
}

/* ========== Experience ========== */
.experience__container {
  max-width: 700px;
  margin: 0 auto;
}

.experience__timeline {
  position: relative;
  padding-left: 2rem;
}

.experience__timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--fourth-color), var(--third-color), transparent);
}

.experience__item {
  position: relative;
  margin-bottom: 2rem;
}

.experience__dot {
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--fourth-color);
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 0 2px var(--fourth-color);
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience__item:hover .experience__dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 3px var(--fourth-color), 0 0 15px rgba(0, 157, 174, 0.4);
}

.experience__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease, border-color 0.3s ease;
}

.experience__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--shadow-color);
  border-color: var(--fourth-color);
}

.experience__card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* Company logos */
.experience__logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.experience__item:hover .experience__logo {
  transform: scale(1.08);
}

/* 5CA logo as image */
.experience__logo-img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.experience__item:hover .experience__logo-img {
  transform: scale(1.08);
}

.experience__logo--freelance {
  background: linear-gradient(135deg, var(--fourth-color), var(--third-color));
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(0, 157, 174, 0.2);
}

.experience__info {
  flex: 1;
  min-width: 0;
}

.experience__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience__role {
  font-size: 1rem;
  font-weight: var(--font-semi);
  color: var(--text-color);
  margin: 0;
}

.experience__date {
  font-size: var(--small-font-size);
  color: var(--fourth-color);
  font-weight: var(--font-medium);
  white-space: nowrap;
}

.experience__company {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  font-weight: var(--font-medium);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.experience__company i {
  font-size: 0.875rem;
  color: var(--fourth-color);
}

.experience__description {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.experience__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.experience__tag {
  font-size: 0.7rem;
  font-weight: var(--font-medium);
  color: var(--fourth-color);
  background-color: var(--skill-bar-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 157, 174, 0.15);
  transition: all 0.3s ease;
}

.experience__tag:hover {
  background-color: var(--fourth-color);
  color: #fff;
  transform: translateY(-1px);
}

.experience__location {
  font-size: 0.75rem;
  color: var(--text-color-light);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.experience__location i {
  font-size: 0.875rem;
  color: var(--text-color-light);
}

/* Experience background */
.experience__container {
  position: relative;
}

/* ========== Contact ========== */
.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  font-family: var(--body-font);
  padding: 1rem;
  border-radius: .5rem;
  border: 1.5px solid var(--border-color);
  background-color: var(--input-bg);
  color: var(--text-color);
  outline: none;
  margin-bottom: var(--mb-4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease, transform 0.3s ease;
}

.contact__input:focus {
  border-color: var(--fourth-color);
  box-shadow: 0 0 0 3px rgba(0, 157, 174, 0.1);
  transform: translateY(-1px);
}

.contact__input::placeholder {
  color: var(--text-color-light);
}

.contact__button {
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
}

.contact__status {
  text-align: center;
  font-size: var(--small-font-size);
  margin-top: var(--mb-2);
  font-weight: var(--font-medium);
  min-height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.contact__status.show {
  opacity: 1;
  transform: translateY(0);
}

.contact__status.success {
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.contact__status.success i {
  font-size: 1.2rem;
  animation: popIn 0.4s ease;
}

.contact__status.error {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.contact__status.error i {
  font-size: 1.2rem;
}

.contact__status.loading {
  color: var(--fourth-color);
  background-color: var(--skill-bar-bg);
  border: 1px solid rgba(0, 157, 174, 0.15);
  opacity: 1;
  transform: translateY(0);
}

@keyframes popIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}


.contact__form {
  overflow: visible;
}

/* ========== Footer (redesigned) ========== */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  transition: background-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fourth-color), var(--third-color), var(--first-color), var(--third-color), var(--fourth-color));
  background-size: 200% 100%;
  animation: gradientSlide 4s ease infinite;
}

@keyframes gradientSlide {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer__container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 3rem 2rem 1.5rem;
}

.footer__top {
  text-align: center;
  margin-bottom: 2rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.footer__tagline {
  color: var(--third-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  letter-spacing: 0.5px;
}

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

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--fourth-color);
  transition: width 0.3s ease;
}

.footer__link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.footer__link:hover::after {
  width: 100%;
}

body.dark-theme .footer__link {
  color: rgba(230, 237, 243, 0.6);
}

body.dark-theme .footer__link:hover {
  color: #e6edf3;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--footer-text);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.footer__icon:hover {
  background: var(--fourth-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 157, 174, 0.4);
}

.footer__bottom {
  text-align: center;
}

.footer__line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  margin-bottom: 1.5rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.3rem;
}

.footer__made {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.footer__heart {
  color: #ef4444;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ========== Tilt effect on cards (CSS only hover) ========== */
.about__img img,
.skills__data,
.experience__card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ========== Media Queries ========== */
/* ========== Extra Small Screens (≤480px) ========== */
@media screen and (max-width: 480px) {
  :root {
    --big-font-size: 1.75rem;
    --h2-font-size: 1.1rem;
    --normal-font-size: 0.875rem;
    --small-font-size: 0.75rem;
  }

  .section {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .section-title {
    margin-bottom: var(--mb-3);
  }

  .nav__menu {
    width: 90%;
    padding: 1.5rem;
  }

  .home {
    height: auto;
    min-height: calc(100vh - 3rem);
    padding-bottom: 8rem;
  }

  .home__img {
    width: clamp(140px, 48vw, 220px);
  }

  .about__img img {
    width: 160px;
  }

  .experience__card {
    padding: 1rem 1.1rem;
  }

  .experience__logo,
  .experience__logo-img {
    width: 38px;
    height: 38px;
  }

  .experience__role {
    font-size: 0.875rem;
  }

  .contact__input {
    padding: 0.75rem;
  }

  .button {
    padding: 0.65rem 1.75rem;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .section-title {
    margin-bottom: var(--mb-6);
  }

  .section-title::after {
    width: 80px;
    top: 3rem;
  }

  .nav {
    height: calc(var(--header-height) + 1rem);
  }

  .nav__list {
    display: flex;
    padding-top: 0;
  }

  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }

  .nav__toggle {
    display: none;
  }

  .nav__link {
    color: var(--text-color);
  }

  .home {
    height: 100vh;
  }

  .home__data {
    align-self: flex-end;
  }

  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }

  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }

  .home__img {
    width: clamp(280px, 38vw, 457px);
    bottom: 15%;
  }

  .home__side-img {
    display: none;
  }

  .about__container, .skills__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }

  .about__img img {
    width: 300px;
  }

  .contact__form {
    width: 460px;
  }

  .contact__container {
    justify-items: center;
  }

  .experience__container {
    max-width: 750px;
  }

  .experience__timeline {
    padding-left: 3rem;
  }

  .experience__dot {
    left: -3rem;
  }

  .experience__logo {
    width: 52px;
    height: 52px;
  }
}

@media screen and (min-width: 1024px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }

  .home {
    position: static;
  }

  .home__img {
    width: clamp(320px, 35vw, 560px);
    right: 3%;
  }

  .home__side-img {
    display: block;
    position: absolute;
    right: 5%;
    top: 50vh;
    transform: translateY(-50%);
    width: clamp(280px, 30vw, 500px);
    pointer-events: none;
    z-index: 0;
  }

  .home__side-img-logo {
    width: 100%;
    opacity: 0.75;
    animation: bounce 3s ease-in-out infinite;
    animation-delay: 0.5s;
    will-change: transform;
  }
}

/* ========== 1440p / Large Monitors ========== */
@media screen and (min-width: 1440px) {
  :root {
    --big-font-size: 4.5rem;
    --h2-font-size: 2.25rem;
    --normal-font-size: 1.1rem;
    --small-font-size: 0.95rem;
    --header-height: 3.5rem;
  }

  .bd-grid {
    max-width: 1280px;
  }

  .footer__container {
    max-width: 1280px;
  }

  .experience__container {
    max-width: 900px;
  }

  .home__img {
    width: clamp(400px, 32vw, 620px);
  }

  .home__side-img {
    width: clamp(360px, 28vw, 560px);
  }

  .about__img img {
    width: 360px;
  }

  .skills__lottie {
    max-width: 580px;
  }

  .contact__form {
    width: 560px;
  }

  .section {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
}

/* ========== 4K / Ultra-Wide Monitors ========== */
@media screen and (min-width: 2560px) {
  :root {
    --big-font-size: 6rem;
    --h2-font-size: 3rem;
    --normal-font-size: 1.35rem;
    --small-font-size: 1.15rem;
    --header-height: 4.5rem;
    --mb-1: 0.75rem;
    --mb-2: 1.5rem;
    --mb-3: 2.25rem;
    --mb-4: 3rem;
    --mb-5: 3.75rem;
    --mb-6: 4.5rem;
  }

  .bd-grid {
    max-width: 1920px;
  }

  .footer__container {
    max-width: 1920px;
    padding: 4rem 3rem 2rem;
  }

  .experience__container {
    max-width: 1200px;
  }

  .home__img {
    width: clamp(600px, 28vw, 860px);
  }

  .home__side-img {
    width: clamp(520px, 24vw, 720px);
    right: 18%;
  }

  .about__img img {
    width: 480px;
  }

  .skills__lottie {
    max-width: 780px;
  }

  .contact__form {
    width: 720px;
  }

  .section {
    padding-top: 7rem;
    padding-bottom: 5rem;
  }

  .nav__logo {
    font-size: 1.5rem;
  }

  .nav__logo-img {
    width: 36px;
    height: 36px;
  }

  .nav__action-btn {
    height: 44px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .nav__action-btn i {
    font-size: 1.4rem;
  }

  .section-title::after {
    width: 100px;
    top: 3.75rem;
  }

  .experience__logo,
  .experience__logo-img {
    width: 68px;
    height: 68px;
  }

  .experience__role {
    font-size: 1.25rem;
  }

  .experience__card {
    padding: 1.75rem 2rem;
  }

  .skills__icon {
    font-size: 2.5rem;
  }

  .skills__icon--svg {
    width: 2.5rem;
    height: 2.5rem;
  }

  .footer__title {
    font-size: 2rem;
  }

  .footer__icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }

  ::-webkit-scrollbar {
    width: 12px;
  }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--fourth-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--third-color);
}

/* ========== Selection ========== */
::selection {
  background-color: var(--fourth-color);
  color: #fff;
}

/* ========== Smooth section reveal ========== */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}
