:root {
  /* Professional dark palette inspired by UTC */
  --primary-color: #4F6DF5;
  --primary-hover: #6B85F7;
  --secondary-color: #3A56D4;
  --accent-color: #A7B1D8;
  
  /* Backgrounds – deep, rich dark */
  --bg-primary: #05060B;
  --bg-secondary: #0B0E1A;
  --bg-card: rgba(242, 245, 255, 0.04);
  
  /* Typography */
  --text-primary: #F2F5FF;
  --text-secondary: #A7B1D8;
  --text-muted: #6B7293;
  
  /* Borders & separators */
  --border-color: rgba(242, 245, 255, 0.10);
  --border-light: rgba(242, 245, 255, 0.06);
  
  /* Gradients replaced with solid accent */
  --gradient-1: #4F6DF5;
  --gradient-2: #6B85F7;
  
  /* Shadows – subtle, professional depth */
  --shadow-glow: 0 0 40px rgba(79, 109, 245, 0.15);
  --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.45);
  
  /* Transitions & fonts unchanged */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

/* Remove all browser default focus outlines and hover highlights */
*,
*:focus,
*:focus-visible,
*:focus-within {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* Remove tap highlight on mobile */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

/* Reset & base */
*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

::selection {
  background: var(--primary-color);
  color: #fff;
}

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

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

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

/* Animated background – subtle grain effect */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-primary);
}

.animated-bg:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 80%, rgba(79, 109, 245, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(79, 109, 245, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(107, 133, 247, 0.04) 0%, transparent 40%);
  animation: bgFloat 20s ease-in-out infinite;
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 15s infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0) rotate(0); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(100vh) rotate(0); opacity: 0; }
  10% { opacity: 0.2; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent;
}

.nav.scrolled {
  background: transparent;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  /* border-bottom: 1px solid var(--border-color); */
}

.nav__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.nav__logo i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-smooth);
}

.nav__link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-smooth);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link:hover:after,
.nav__link.active:after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav__toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero__container {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__content {
  z-index: 1;
}

.hero__greeting {
  font-family: var(--font-mono);
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__greeting:before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero__title .gradient-text {
  background: linear-gradient(135deg, #F2F5FF 0%, #A7B1D8 50%, #4F6DF5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typing-text {
  display: inline-block;
  border-right: 3px solid var(--primary-color);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--primary-color); }
}

.hero__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--primary-color);
  border: 2px solid var(--border-color);
  color: #fff;
}

.btn--primary:hover {
  color: #fff;
  background: black;
  border: 2px solid white;
  transform: translateY(-3px);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn--secondary:hover {
  border-color: var(--primary-color);
  background: rgba(79, 109, 245, 0.05);
  transform: translateY(-3px);
}

.hero__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
}

.hero__orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--border-color);
  border-radius: 50%;
  animation: orbit 20s linear infinite;
}

.hero__orbit--2 {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  animation-direction: reverse;
  animation-duration: 15s;
}

.hero__orbit--3 {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  animation-duration: 10s;
}

@keyframes orbit {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.hero__avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(79, 109, 245, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary-color);
  box-shadow: 0 0 40px rgba(79, 109, 245, 0.2);
  animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(79, 109, 245, 0.15); }
  50% { box-shadow: 0 0 50px rgba(79, 109, 245, 0.3); }
}

.hero__tech-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  box-shadow: var(--shadow-card);
  animation: techFloat 3s ease-in-out infinite;
  border: 1px solid var(--border-color);
}

.hero__tech-icon:nth-child(4) { top: 0; left: 50%; transform: translate(-50%); animation-delay: 0s; }
.hero__tech-icon:nth-child(5) { top: 50%; right: 0; transform: translateY(-50%); animation-delay: 0.5s; }
.hero__tech-icon:nth-child(6) { bottom: 0; left: 50%; transform: translate(-50%); animation-delay: 1s; }
.hero__tech-icon:nth-child(7) { top: 50%; left: 0; transform: translateY(-50%); animation-delay: 1.5s; }

@keyframes techFloat {
  0%, 100% { transform: translateY(-50%) translate(0); }
  50% { transform: translateY(-60%) translate(0); }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

.hero__scroll i {
  font-size: 1.2rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%) translateY(0); }
  40% { transform: translate(-50%) translateY(-10px); }
  60% { transform: translate(-50%) translateY(-5px); }
}

/* Sections */
.section {
  padding: 6rem 2rem;
  position: relative;
  background: var(--bg-primary);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__subtitle {
  font-family: var(--font-mono);
  color: var(--primary-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section__title .gradient-text {
  color: var(--primary-color);
}

.section__description {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* About */
.about {
  background: var(--bg-secondary);
}

.about__container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image {
  position: relative;
}

.about__image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.about__code-block {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about__code-line {
  display: flex;
  gap: 1rem;
}

.about__line-num {
  color: var(--text-muted);
  user-select: none;
}

.about__code-keyword { color: #c792ea; }
.about__code-string { color: #c3e88d; }
.about__code-function { color: #82aaff; }
.about__code-comment { color: #676e95; }
.about__code-variable { color: #f78c6c; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.about__stat {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.about__stat:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.about__stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.about__stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.about__content {
  padding-left: 1rem;
}

.about__text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about__highlights {
  list-style: none;
  margin: 2rem 0;
}

.about__highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.about__highlight i {
  width: 40px;
  height: 40px;
  background: rgba(79, 109, 245, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1rem;
}

/* Skills */
.skills__container {
  max-width: 1400px;
  margin: 0 auto;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.skills__card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.skills__card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.skills__card:hover:before {
  transform: scaleX(1);
}

.skills__card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.skills__card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skills__card-icon {
  width: 50px;
  height: 50px;
  background: rgba(79, 109, 245, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.skills__card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.skills__item {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-light);
}

.skills__item:hover {
  border-color: var(--primary-color);
  color: var(--text-primary);
  background: rgba(79, 109, 245, 0.1);
}

.skills__item i {
  font-size: 1rem;
}

.skills__progress {
  margin-top: 1.5rem;
}

.skills__progress-item {
  margin-bottom: 1rem;
}

.skills__progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.skills__progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.skills__progress-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
  transition: width 1.5s ease-out;
  position: relative;
}

.skills__progress-fill:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translate(-20px); }
  100% { transform: translate(20px); }
}

/* Terminal */
.terminal {
  background: var(--bg-secondary);
}

.terminal__container {
  max-width: 900px;
  margin: 0 auto;
}

.terminal__window {
  background: #0D1117;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.terminal__header {
  background: #161B22;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.terminal__dots {
  display: flex;
  gap: 0.5rem;
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal__dot--red { background: #ff5f56; }
.terminal__dot--yellow { background: #ffbd2e; }
.terminal__dot--green { background: #27c93f; }

.terminal__title {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 1rem;
}

.terminal__body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
  min-height: 300px;
  background: #0D1117;
  color: #E6EDF3;
}

.terminal__line {
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.terminal__prompt { color: #7ee787; }
.terminal__command { color: #E6EDF3; }
.terminal__output { color: #A1A1AA; margin-left: 1.5rem; }

.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--primary-color);
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 2px;
}

/* Gallery */
.gallery__container {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery__item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.gallery__item:hover {
  transform: scale(1.02);
  border-color: var(--primary-color);
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  opacity: 0.9;
}

.gallery__item:hover .gallery__image {
  transform: scale(1.1);
  opacity: 1;
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 11, 0.95), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery__item:hover .gallery__overlay { opacity: 1; }

.gallery__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.gallery__category { color: var(--primary-color); font-size: 0.85rem; }

/* Contact */
.contact {
  background: var(--bg-secondary);
}

.contact__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact__info { padding-right: 2rem; }

.contact__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact__description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact__details { list-style: none; margin-bottom: 2rem; }

.contact__detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.contact__detail-icon {
  width: 50px;
  height: 50px;
  background: rgba(79, 109, 245, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact__detail-content h4 { color: var(--text-primary); font-size: 1rem; margin-bottom: 0.25rem; }
.contact__detail-content p { font-size: 0.9rem; }

.contact__social { display: flex; gap: 1rem; }

.contact__social-link {
  width: 45px;
  height: 45px;
  background: var(--bg-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.contact__social-link:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.contact__form-wrapper {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

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

.contact__form-group { position: relative; }

.contact__form-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: var(--transition-smooth);
}

.contact__form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 109, 245, 0.15);
}

.contact__form-input::placeholder { color: var(--text-muted); }

.contact__form-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.contact__form-group textarea + .contact__form-icon { top: 1rem; transform: none; }

.contact__form-textarea { min-height: 150px; resize: vertical; padding-top: 1rem; }

.contact__form-submit {
  padding: 1rem 2rem;
  background: var(--primary-color);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact__form-submit:hover {
  transform: translateY(-3px);
  background: #05060B;
}

.contact__form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Footer */
.footer {
  background: var(--bg-primary);
  padding: 4rem 2rem 1rem;
}

.footer__container { max-width: 1400px; margin: 0 auto; }

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand { max-width: 300px; }

.footer__logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer__social { display: flex; gap: 0.75rem; }

.footer__social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.footer__social-link:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer__column-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer__links { list-style: none; }

.footer__link { margin-bottom: 0.75rem; }

.footer__link a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__link a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer__link a i { font-size: 0.75rem; }

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer__contact-item i { color: var(--primary-color); width: 20px; }

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright { color: var(--text-muted); font-size: 0.9rem; }
.footer__copyright span { color: var(--primary-color); }

.footer__back-to-top {
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.footer__back-to-top:hover {
  transform: translateY(-5px);
  border: 2px solid white;
  background: black;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__container { grid-template-columns: 1fr; text-align: center; }
  .hero__content { order: 1; }
  .hero__image { order: 0; }
  .hero__description { margin: 0 auto 2rem; }
  .hero__buttons { justify-content: center; }
  .about__container, .contact__container { grid-template-columns: 1fr; }
  .contact__info { padding-right: 0; text-align: center; }
  .contact__details { display: inline-block; text-align: left; }
  .contact__social { justify-content: center; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(5, 6, 11, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-smooth);
    border-left: 1px solid var(--border-color);
  }
  .nav__menu.active { right: 0; }
  .nav__link { font-size: 1.2rem; color: var(--text-primary); }
  .nav__toggle { display: flex; }
  .hero__image-wrapper { width: 300px; height: 300px; }
  .hero__avatar { width: 150px; height: 150px; font-size: 3.5rem; }
  .hero__tech-icon { width: 40px; height: 40px; font-size: 1.2rem; }
  .about__stats, .skills__grid, .gallery__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { max-width: 100%; }
  .footer__social { justify-content: center; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 1rem; }
  .hero { padding: 7rem 1rem 3rem; }
  .hero__image-wrapper { width: 250px; height: 250px; }
  .hero__avatar { width: 120px; height: 120px; font-size: 3rem; }
  .btn { padding: 0.875rem 1.5rem; font-size: 0.9rem; }
  .contact__form-wrapper { padding: 1.5rem; }
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

#currentYear { color: inherit; font-weight: inherit; }