/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3.5rem;

  /* ===== Dark Theme (Default) ===== */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-input: rgba(255, 255, 255, 0.06);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(108, 99, 255, 0.4);

  --text-primary: #e4e4e7;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --accent-primary: #6c63ff;
  --accent-primary-rgb: 108, 99, 255;
  --accent-secondary: #00d4ff;
  --accent-secondary-rgb: 0, 212, 255;
  --accent-gradient: linear-gradient(135deg, #6c63ff 0%, #00d4ff 100%);

  --header-bg: rgba(10, 10, 15, 0.8);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(108, 99, 255, 0.15);
  --nav-link-color: #e4e4e7;
  --footer-bg: #06060a;

  /* ===== Typography (Fluid) ===== */
  --body-font: "Inter", sans-serif;
  --big-font-size: clamp(2.5rem, 8vw, 4.5rem);
  --h1-font-size: clamp(2rem, 5vw, 3rem);
  --h2-font-size: clamp(1.5rem, 4vw, 2.25rem);
  --h3-font-size: clamp(1.125rem, 3vw, 1.5rem);
  --normal-font-size: clamp(0.938rem, 1vw + 0.5rem, 1rem);
  --small-font-size: clamp(0.813rem, 1vw + 0.4rem, 0.875rem);
  --smaller-font-size: clamp(0.75rem, 1vw + 0.3rem, 0.813rem);

  /* ===== Spacing ===== */
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  /* ===== Z-index ===== */
  --z-back: -10;
  --z-fixed: 100;
  --z-modal: 200;
}

/* ===== Light Theme ===== */
[data-theme="light"] {
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --bg-input: rgba(0, 0, 0, 0.04);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(108, 99, 255, 0.3);

  --text-primary: #1a1a2e;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --header-bg: rgba(248, 249, 252, 0.85);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(108, 99, 255, 0.1);
  --nav-link-color: #1a1a2e;
  --footer-bg: #1a1a2e;
}

/* Fluid typography handles most scaling, keeping these for specific adjustments if needed */
@media screen and (min-width: 968px) {
  /* Site remains fluid and readable on larger displays */
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, p {
  margin: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  font-family: var(--body-font);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/*===== PRELOADER =====*/
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}
.preloader__spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/*===== LAYOUT =====*/
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0 3rem;
  position: relative;
  z-index: 1;
  scroll-margin-top: var(--header-height);
}

.section-title {
  font-size: var(--h2-font-size);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-6);
}

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

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

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

.nav__theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.nav__theme-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--accent-primary);
}

.nav__toggle {
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.nav__toggle:hover {
  background: var(--bg-card-hover);
}

@media screen and (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    padding: 5rem 2rem 2rem;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-modal);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }
  .nav__menu.show {
    right: 0;
  }
  .nav__item {
    margin-bottom: var(--mb-4);
  }
  .nav__link {
    font-size: 1.1rem;
  }

  /* Overlay when menu is open */
  .nav__menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }
  .nav__menu.show::before {
    opacity: 1;
    pointer-events: auto;
  }
}

.nav__list {
  display: flex;
  gap: 0.25rem;
}

@media screen and (max-width: 767px) {
  .nav__list {
    flex-direction: column;
    gap: 0;
  }
}

.nav__link {
  color: var(--nav-link-color);
  font-weight: 500;
  font-size: var(--small-font-size);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}
.nav__link:hover,
.nav__link.active-link {
  color: var(--accent-primary);
}

.nav__link.active-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
}

@media screen and (max-width: 767px) {
  .nav__link.active-link::after {
    left: 1rem;
    transform: none;
    bottom: auto;
    top: 50%;
    width: 3px;
    height: 20px;
    transform: translateY(-50%);
    left: 0;
  }
}

/*===== HOME =====*/
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  position: relative;
  z-index: 1;
}

.home__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.home__data {
  text-align: center;
  order: 2;
}

.home__greeting {
  font-size: var(--small-font-size);
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--mb-1);
  display: block;
}

.home__title {
  font-size: var(--big-font-size);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--mb-1);
  letter-spacing: -1px;
}

.home__title-color {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home__typing-wrapper {
  font-size: var(--h3-font-size);
  color: var(--text-secondary);
  margin-bottom: var(--mb-3);
  min-height: 2rem;
}

.home__typing-text {
  border-right: 2px solid var(--accent-primary);
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.home__subtitle {
  font-size: var(--normal-font-size);
  color: var(--text-secondary);
  margin-bottom: var(--mb-4);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.home__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: var(--mb-4);
}

.home__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  order: 3;
}

.home__social-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}
.home__social-icon:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.3);
}

.home__img {
  justify-self: center;
  order: 1;
  width: 280px;
}

.home__blob {
  fill: var(--accent-primary);
  filter: drop-shadow(0 0 30px rgba(var(--accent-primary-rgb), 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.home__blob-img {
  width: 360px;
}

/*===== BUTTONS =====*/
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: var(--small-font-size);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.button--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3);
}
.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--accent-primary-rgb), 0.4);
}

.button--ghost {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}
.button--ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/*===== ABOUT =====*/
.about__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  text-align: center;
}

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

.about__img-wrapper img {
  width: 280px;
  border-radius: 1.5rem;
  border: 3px solid var(--border-color);
  transition: all 0.4s ease;
}
.about__img-wrapper img:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(var(--accent-primary-rgb), 0.15);
}

/* Decorative glow behind about image */
.about__img-wrapper::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: var(--accent-gradient);
  border-radius: 2rem;
  z-index: -1;
  opacity: 0.15;
  filter: blur(20px);
}

.about__content {
  text-align: center;
}

.about__subtitle {
  font-size: var(--h2-font-size);
  font-weight: 700;
  margin-bottom: var(--mb-2);
  color: var(--text-primary);
}

.about__text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--mb-4);
}

.about__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--mb-4);
}

.about__info-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition: all 0.3s ease;
}
.about__info-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  will-change: transform, box-shadow;
}

.about__info-title {
  font-size: var(--h2-font-size);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.25rem;
}

.about__info-name {
  font-size: var(--smaller-font-size);
  color: var(--text-secondary);
  line-height: 1.4;
}

/*===== SKILLS =====*/
.skills__tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--mb-5);
}

.skills__tab-button {
  padding: 0.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50px;
  font-weight: 600;
  font-size: var(--small-font-size);
  transition: all 0.3s ease;
}
.skills__tab-button.active,
.skills__tab-button:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3);
}

.skills__content {
  display: none;
  animation: fadeIn 0.5s ease;
}
.skills__content.active {
  display: block;
}

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

.skills__subtitle {
  text-align: center;
  font-size: var(--h3-font-size);
  font-weight: 700;
  margin-bottom: var(--mb-1);
  color: var(--text-primary);
}

.skills__text {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--mb-5);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skills__category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}
.skills__category:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  will-change: transform, box-shadow;
}

.skills__category-title {
  font-size: var(--small-font-size);
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.skills__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: var(--smaller-font-size);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}
.skills__item:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3);
}
.skills__item i {
  font-size: 1rem;
}

/*===== EDUCATION =====*/
.education__content {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2.5rem;
  border-left: 2px solid var(--border-color);
  transition: border-color 0.3s ease;
}
.education__content:hover {
  border-left-color: var(--accent-primary);
}
.education__content::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--accent-gradient);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.4);
}

.education__title {
  font-size: var(--h3-font-size);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.education__studies {
  font-size: var(--normal-font-size);
  color: var(--accent-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.education__year {
  font-size: var(--smaller-font-size);
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}

.education__description {
  font-size: var(--small-font-size);
  color: var(--text-secondary);
  line-height: 1.7;
}

/*===== PROJECTS / WORK =====*/
.work__description {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--mb-5);
}

.work__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.work__card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.4s ease;
  display: block;
}
.work__card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.work__card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.work__card:hover .work__card-img {
  transform: scale(1.05);
}

.work__card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

@media screen and (max-width: 767px) {
  .work__card-overlay {
    transform: translateY(0);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.95));
    padding: 1rem;
  }
  .work__card-title {
    font-size: var(--small-font-size);
  }
  .work__card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
  }
}

.work__card:hover .work__card-overlay {
  transform: translateY(0);
}

.work__card-title {
  font-size: var(--normal-font-size);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.work__card-desc {
  font-size: var(--smaller-font-size);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.work__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.work__card-tag {
  font-size: 0.625rem;
  padding: 0.25rem 0.625rem;
  background: rgba(108, 99, 255, 0.3);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/*===== CONTACT =====*/
.contact__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact__subtitle {
  font-size: var(--h3-font-size);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--mb-2);
}

.contact__text {
  color: var(--text-secondary);
  margin-bottom: var(--mb-4);
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: var(--mb-3);
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition: all 0.3s ease;
}
.contact__info-item:hover {
  border-color: var(--border-color-hover);
  transform: translateX(5px);
}

.contact__icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-primary-rgb), 0.1);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact__icon {
  font-size: 1.75rem;
  color: var(--accent-primary);
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.contact__icon-box:hover {
  background: rgba(var(--accent-primary-rgb), 0.2);
  transform: scale(1.1);
}

.contact__info-title {
  font-size: var(--small-font-size);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.contact__info-subtitle {
  font-size: var(--smaller-font-size);
  color: var(--text-secondary);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__input-group {
  position: relative;
}

.contact__input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.875rem;
  color: var(--text-primary);
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
  outline: none;
  transition: all 0.3s ease;
  resize: vertical;
}
.contact__input::placeholder {
  color: var(--text-muted);
}
.contact__input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

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

.contact__status {
  font-size: var(--small-font-size);
  font-weight: 500;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  display: none;
  text-align: center;
  transition: all 0.3s ease;
}

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

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

.contact__status.sending {
  display: block;
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(108, 99, 255, 0.2);
}

.contact__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/*===== FOOTER =====*/
.footer {
  background: var(--footer-bg);
  color: #fff;
  text-align: center;
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

.footer__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: var(--mb-3);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--mb-4);
}

.footer__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}
.footer__icon:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.3);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  color: rgba(255, 255, 255, 0.4);
}

/*===== SCROLL TO TOP =====*/
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: var(--z-fixed);
  box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.4);
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--accent-primary-rgb), 0.5);
}

/*===== SCROLL REVEAL ANIMATION SETUP =====*/
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/*===== RESPONSIVE =====*/
@media screen and (max-width: 360px) {
  .home__img { width: 180px; }
  .about__info { grid-template-columns: 1fr; }
  .home__title { font-size: 1.75rem; }
  .home__buttons { flex-direction: column; width: 100%; }
  .button { width: 100%; justify-content: center; }
}

@media screen and (min-width: 361px) and (max-width: 575px) {
  .about__info { grid-template-columns: repeat(2, 1fr); }
  .about__info-item:last-child { grid-column: span 2; }
}

@media screen and (min-width: 576px) {
  .home__container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .home__data {
    text-align: left;
    order: 1;
  }
  .home__subtitle {
    margin-left: 0;
  }
  .home__buttons {
    justify-content: flex-start;
  }
  .home__social {
    justify-content: flex-start;
    order: 3;
  }
  .home__img {
    order: 2;
    width: 300px;
  }
  .about__container {
    grid-template-columns: 280px 1fr;
    text-align: left;
  }
  .about__content {
    text-align: left;
  }
  .work__container {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding: 6rem 0 3rem;
  }
  .nav {
    height: calc(var(--header-height) + 1rem);
  }
  .nav__list {
    flex-direction: row;
  }
  .nav__toggle {
    display: none;
  }
  .home {
    padding-top: calc(var(--header-height) + 4rem);
  }
  .home__img {
    width: 380px;
  }
  .about__img-wrapper img {
    width: 300px;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 992px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .home__img {
    width: 420px;
  }
}