/* ═══════════════════════════════════════════
       FONTS & RESET (Optimized)
       ═══════════════════════════════════════════ */
@font-face {
  font-family: "Vazir";
  src: url("../fonts/vazir/Vazir-Medium-FD-WOL.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: #0a0a0a;
  color: #fff;
  line-height: 1.8;
  overflow-x: hidden;
  font-family: "Vazir", Arial, Helvetica, sans-serif;
}

:root {
  --gold: #f3be00;
  --gold-light: #ffd966;
  --gold-dark: #b38f00;
  --black: #0a0a0a;
  --black-light: #141414;
  --black-card: #1a1a1a;
  --black-border: #2a2a2a;
  --white: #fff;
  --gray: #888;
  --gray-light: #aaa;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #b38f00, #f3be00);
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
       PRELOADER (Modern & Beautiful)
       ═══════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.6s;
  pointer-events: none;
}
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.preloader-spinner {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(243, 190, 0, 0.15);
  border-top: 3px solid var(--gold);
  border-right: 3px solid var(--gold-light);
  border-radius: 50%;
  animation: preloaderSpin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  box-shadow: 0 0 20px rgba(243, 190, 0, 0.3);
}

@keyframes preloaderSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes pulseText {
  0%,
  100% {
    opacity: 0.5;
    letter-spacing: 2px;
  }
  50% {
    opacity: 1;
    letter-spacing: 6px;
  }
}

/* ═══════════════════════════════════════════
       CURSOR GLOW & PARTICLES
       ═══════════════════════════════════════════ */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(243, 190, 0, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  filter: blur(25px);
  will-change: left, top;
}
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
       NAVIGATION (Responsive Enhanced)
       ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 5px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s;
  background: transparent;
  border-radius: 30px;
}
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(243, 190, 0, 0.15);
  padding: 5px 30px;
  margin: 8px 15px 8px 15px;
  border: 1px solid var(--gold);
  border-radius: 30px;
}
.nav-logo {
  position: relative;
  padding: 0px 0px 60px 50px;
}

.nav-logo img {
  font-size: 1.7rem;
  font-weight: 700;
  color: #f3be00;
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(243, 190, 0, 0.3);
  transition: all 0.3s;
  width: 55px;
  position: absolute;
}
.nav-logo span {
  color: #fff;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
  border-radius: 50px;
}
.nav-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f3be00, #ffd966);
  transition: width 0.35s;
  border-radius: 2px;
}
.nav-links a:hover {
  color: #f3be00;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  width: 30px;
  height: 2px;
  background: #f3be00;
  transition: 0.3s;
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ═══════════════════════════════════════════
       SECTIONS COMMON
       ═══════════════════════════════════════════ */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 30px;
}
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: #fff;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}
.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #f3be00,
    #ffd966,
    transparent
  );
  border-radius: 3px;
}
.section-title p {
  color: #888;
  margin-top: 12px;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════
       HERO
       ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 30% 40%,
      rgba(243, 190, 0, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 60%,
      rgba(243, 190, 0, 0.05) 0%,
      transparent 50%
    );
  animation: slowPulse 12s infinite alternate;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 800;
  margin-bottom: 15px;
  animation: fadeInUp 0.9s forwards;
  opacity: 0;
  transform: translateY(30px);
}
.hero h1 .gold {
  color: #f3be00;
  position: relative;
}
.hero h1 .gold::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, transparent, #f3be00, transparent);
  border-radius: 3px;
  opacity: 0.4;
}
.hero-subtitle {
  font-size: clamp(1rem, 4vw, 1.3rem);
  color: #aaa;
  margin-bottom: 20px;
  animation: fadeInUp 0.9s 0.15s forwards;
  opacity: 0;
  transform: translateY(30px);
}
.hero-typed-text {
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  color: #f3be00;
  margin-bottom: 45px;
  min-height: 35px;
  animation: fadeInUp 0.9s 0.3s forwards;
  opacity: 0;
  transform: translateY(30px);
  font-weight: 500;
}
.hero-typed-text .cursor-blink {
  animation: blink 1s infinite;
  font-weight: 300;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s 0.45s forwards;
  opacity: 0;
  transform: translateY(30px);
}
.btn {
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.4s;
  z-index: -1;
}
.btn:hover::before {
  width: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, #b38f00, #f3be00);
  color: #0a0a0a;
  box-shadow: 0 4px 25px rgba(243, 190, 0, 0.3);
}
.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 35px rgba(243, 190, 0, 0.5);
}
.btn-outline {
  background: transparent;
  color: #f3be00;
  border: 2px solid #f3be00;
}
.btn-outline:hover {
  background: #f3be00;
  color: #0a0a0a;
  transform: translateY(-5px);
}

/* ═══════════════════════════════════════════
       ABOUT
       ═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #1e1e1e, #0f0f0f);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 25px 40px -10px #000;
  border: 1px solid rgba(243, 190, 0, 0.2);
  transition: all 0.5s;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image:hover {
  transform: scale(1.02) translateY(-8px);
  border-color: #f3be00;
  box-shadow: 0 30px 50px -5px rgba(243, 190, 0, 0.15);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 30px;
}
.stat-item {
  text-align: center;
  padding: 20px 10px;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid #2a2a2a;
  border-radius: 18px;
  transition: all 0.3s;
}
.stat-item:hover {
  border-color: #f3be00;
  transform: translateY(-6px);
  background: #1a1a1a;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #f3be00;
}
.stat-label {
  font-size: 0.8rem;
  color: #888;
  margin-top: 6px;
}
.about-text h3 {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  margin-bottom: 22px;
  color: #fff;
}
.about-text h3 span {
  color: #f3be00;
}
.about-text p {
  color: #aaa;
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.about-info {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 14px;
  border: 1px solid #2a2a2a;
  transition: 0.3s;
}
.info-item:hover {
  border-color: #f3be00;
  background: #1a1a1a;
}
.info-item .icon {
  color: #f3be00;
  font-size: 1.3rem;
}
.info-item .label {
  color: #888;
  font-size: 0.8rem;
}
.info-item .value {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
       SKILLS
       ═══════════════════════════════════════════ */
.skills-grid {
  display: grid;
  gap: 30px;
}
.skill-category {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(243, 190, 0, 0.1);
  border-radius: 28px;
  padding: 30px;
  transition: all 0.4s;
}
.skill-category:hover {
  border-color: #f3be00;
  transform: translateY(-10px);
  box-shadow:
    0 25px 40px -15px #000,
    0 0 0 1px #f3be00 inset;
}
.skill-category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}
.skill-category-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    145deg,
    rgba(243, 190, 0, 0.15),
    rgba(243, 190, 0, 0.03)
  );
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 1px solid rgba(243, 190, 0, 0.2);
}
.skill-category-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.skill-item {
  margin-bottom: 22px;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.skill-name {
  font-weight: 500;
  color: #fff;
}
.skill-percent {
  color: #f3be00;
  font-weight: 700;
}
.skill-bar {
  height: 8px;
  background: #2a2a2a;
  border-radius: 20px;
  overflow: hidden;
}
.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #b38f00, #f3be00, #ffd966);
  border-radius: 20px;
  width: 0;
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px #f3be00;
}

/* ═══════════════════════════════════════════
       EXPERIENCE (TIMELINE FIXED)
       ═══════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #f3be00, rgba(243, 190, 0, 0.2), #2a2a2a);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 50px;
}
.timeline-item:nth-child(odd) {
  right: 0;
  text-align: left;
}
.timeline-item:nth-child(even) {
  right: 50%;
  text-align: right;
}
.timeline-dot {
  position: absolute;
  top: 5px;
  width: 20px;
  height: 20px;
  background: #f3be00;
  border-radius: 50%;
  border: 4px solid #0a0a0a;
  z-index: 3;
  box-shadow: 0 0 20px #f3be00;
  transition: 0.3s;
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: #fff;
}
.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}
.timeline-card {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(243, 190, 0, 0.15);
  border-radius: 24px;
  padding: 25px;
  transition: all 0.35s;
}
.timeline-card:hover {
  border-color: #f3be00;
  transform: translateY(-8px) scale(1.02);
  background: #1a1a1a;
}
.timeline-date {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(243, 190, 0, 0.08);
  border: 1px solid rgba(243, 190, 0, 0.2);
  border-radius: 40px;
  color: #f3be00;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}
.timeline-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #fff;
}
.timeline-card h4 {
  color: #f3be00;
  margin-bottom: 15px;
  font-weight: 400;
}
.timeline-card p {
  color: #aaa;
  font-size: 0.9rem;
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.timeline-tag {
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #2a2a2a;
  border-radius: 30px;
  font-size: 0.8rem;
  color: #aaa;
}
.timeline-tag:hover {
  background: #f3be00;
  color: #0a0a0a;
  border-color: #f3be00;
}

/* ═══════════════════════════════════════════
       PROJECTS
       ═══════════════════════════════════════════ */
.projects-grid {
display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-content: center;
    justify-content: center;
    align-items: center;
    justify-items: center;
}
.project-card {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(243, 190, 0, 0.1);
  border-radius: 28px;
  overflow: hidden;
  transition: all 0.4s;
}
.project-card:hover {
  border-color: #f3be00;
  transform: translateY(-12px) scale(1.01);
  box-shadow:
    0 35px 50px -20px #000,
    0 0 30px rgba(243, 190, 0, 0.1);
}
.project-image {
  height: 280px;
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.project-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, #1a1a1a);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  opacity: 0;
  transition: 0.4s;
  z-index: 3;
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-link {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #f3be00;
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.4rem;
  transition: 0.3s;
  box-shadow: 0 5px 20px rgba(243, 190, 0, 0.5);
  transform: translateY(20px);
}
.project-card:hover .project-link {
  transform: translateY(0);
}
.project-link:hover {
  background: #fff;
  transform: scale(1.2) rotate(5deg);
}
.project-info {
  padding: 25px;
}
.project-info h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 10px;
}
.project-info p {
  color: #aaa;
  font-size: 0.88rem;
  margin-bottom: 15px;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tech span {
  padding: 4px 12px;
  background: rgba(243, 190, 0, 0.05);
  border: 1px solid rgba(243, 190, 0, 0.2);
  border-radius: 30px;
  font-size: 0.75rem;
  color: #f3be00;
}
.project-tech span:hover {
  background: #f3be00;
  color: #0a0a0a;
}

/* ═══════════════════════════════════════════
       EDUCATION & CERTS
       ═══════════════════════════════════════════ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.edu-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(243, 190, 0, 0.1);
  border-radius: 28px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}
.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 0;
  background: #f3be00;
  transition: all 0.4s;
}
.edu-card:hover {
  border-color: #f3be00;
  transform: translateY(-8px);
}
.edu-card:hover::before {
  height: 100%;
}
.edu-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.edu-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 5px;
}
.edu-card h4 {
  font-size: 0.9rem;
  color: #f3be00;
  margin-bottom: 10px;
}
.edu-card p {
  color: #aaa;
  font-size: 0.88rem;
}
.edu-year {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 12px;
  background: rgba(243, 190, 0, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #f3be00;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.cert-card {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(243, 190, 0, 0.1);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s;
}
.cert-card:hover {
  border-color: #f3be00;
  transform: translateX(-8px);
}
.cert-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(
    135deg,
    rgba(243, 190, 0, 0.15),
    rgba(243, 190, 0, 0.05)
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.cert-info h4 {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 3px;
}
.cert-info p {
  font-size: 0.78rem;
  color: #888;
}

/* ═══════════════════════════════════════════
       CONTACT
       ═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}
.contact-info h3 span {
  color: #f3be00;
}
.contact-info > p {
  color: #aaa;
  margin-bottom: 30px;
  font-size: 0.95rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  transition: all 0.3s;
}
.contact-item:hover {
  border-color: #f3be00;
  transform: translateX(-8px);
  background: #1a1a1a;
}
.contact-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(
    135deg,
    rgba(243, 190, 0, 0.15),
    rgba(243, 190, 0, 0.05)
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-detail h4 {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 3px;
}
.contact-detail p {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}

.contact-form {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid #2a2a2a;
  border-radius: 32px;
  padding: 35px;
}

/* ═══════════════════════════════════════════
       FOOTER & BACK TO TOP
       ═══════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #2a2a2a;
}
footer p {
  color: #888;
  font-size: 0.9rem;
}
footer p .gold {
  color: #f3be00;
  text-decoration: none;
}
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #b38f00, #f3be00);
  color: #0a0a0a;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(243, 190, 0, 0.4);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-8px) scale(1.1);
}

/* ═══════════════════════════════════════════
       ANIMATIONS & REVEAL
       ═══════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes slowPulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.03);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition:
    opacity 0.9s,
    transform 0.9s;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
       RESPONSIVE (Enhanced & Fixed)
       ═══════════════════════════════════════════ */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    right: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-right: 55px;
    padding-left: 15px;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    right: 0;
    text-align: right;
  }
  .timeline-item .timeline-dot {
    right: 10px !important;
    left: auto !important;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transition: all 0.4s;
    border-left: 1px solid #2a2a2a;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links a {
    font-size: 1.1rem;
  }
  .nav-toggle {
    display: flex;
  }
  .navbar {
    padding: 5px 20px;
  }
  .hero-buttons .btn {
    width: auto;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-info {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .navbar {
    padding: 5px 15px;
  }
  .container {
    padding: 0 20px;
  }
  .timeline-item {
    padding-right: 45px;
  }
}

@media (max-width: 360px) {
  .nav-logo {
    font-size: 1.3rem;
  }
}

@media (max-width: 425px) {
  #email-size {
    font-size: 11.5px;
  }
}
@media (max-width: 380px) {
  #email-size {
    font-size: 10px;
  }
}