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

/* ================================================================
   RESET & BASE STYLES
================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --bg: #050816;
  --bg2: #0a1024;
  --white: #ffffff;
  --text: #cfd6ff;
  --orange: #ff6a3d;
  --purple: #a855f7;
  --border: rgba(255, 255, 255, 0.1);
  --header-h: 100px;
}

body {
  font-family: "Poppins", sans-serif;
  background: radial-gradient(
    circle at top left,
    #11183b 0%,
    #050816 40%,
    #02040d 100%
  );
  color: var(--white);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.12),
    transparent 70%
  );
  top: -250px;
  right: -250px;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(255, 106, 61, 0.12),
    transparent 70%
  );
  bottom: -250px;
  left: -250px;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: auto;
}

html {
  scroll-padding-top: var(--header-h, 100px);
}

body::before,
body::after {
  animation: ambientMove 14s ease-in-out infinite alternate;
}

body.nav-locked {
  overflow: hidden;
}

/* ================================================================
   SHARED UTILITY COMPONENTS (buttons, glass cards, social icons, section titles)
================================================================ */

.resume-btn,
.primary-btn,
.secondary-btn,
.purple-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  transition: 0.4s ease;
  font-weight: 600;
  font-size: 13px;
}

.resume-btn {
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 1;
  white-space: nowrap;
  padding: 14px 24px;
  border: 1px solid rgba(255, 106, 61, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.resume-text-mobile {
  display: none;
}

.resume-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 106, 61, 0.3);
}

.primary-btn,
.purple-btn {
  padding: 14px 24px;
  color: #ffffff;
  font-size: 13px;
}

.primary-btn {
  background: linear-gradient(90deg, var(--orange), #ff825f);
  box-shadow: 0 15px 35px rgba(255, 106, 61, 0.35);
}

.primary-btn:hover {
  transform: translateY(-6px) scale(1.03);
}

.purple-btn {
  background: linear-gradient(90deg, #9333ea, #c084fc);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.35);
}

.purple-btn:hover {
  transform: translateY(-6px) scale(1.03);
}

.secondary-btn {
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.secondary-btn:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.4);
}

.social-icons {
  display: flex;
  gap: 35px;
  margin-top: 28px;
  margin-left: 22px;
}

.social-icons a,
.footer-socials a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  transition: 0.4s;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  position: relative;
}

.social-icons a:hover,
.footer-socials a:hover {
  transform: translateY(-8px) scale(1.15) rotate(6deg);
  box-shadow: 0 15px 30px rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.4);
}

.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.section-title {
  text-align: center;
  margin: 0 0 22px;
}

.section-title h2 {
  font-size: 24px;
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
}

.underline {
  width: 130px;
  height: 3.5px;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  margin: 5px auto 0;
}

#long-ul {
  width: 320px;
}

#med-ul {
  width: 165px;
}

.about-card:hover,
.skill-box:hover,
.project-card:hover {
  transform: translateY(-10px);
}

.orange-bg {
  background: rgba(255, 106, 61, 0.2);
  color: var(--orange);
}

.purple-bg {
  background: rgba(168, 85, 247, 0.2);
  color: var(--purple);
}

.small-btn {
  padding: 14px 22px;
}

.glass-card,
.project-image,
.skill-box,
.about-card,
.primary-btn,
.secondary-btn,
.purple-btn,
.resume-btn {
  position: relative;
  overflow: hidden;
}

.glass-card::before,
.project-image::before,
.skill-box::before,
.about-card::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -120%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: rotate(25deg);
  transition: 1s ease;
  pointer-events: none;
}

.glass-card:hover::before,
.project-image:hover::before,
.skill-box:hover::before,
.about-card:hover::before {
  top: -20%;
  left: -20%;
}

.primary-btn,
.secondary-btn,
.purple-btn,
.resume-btn {
  position: relative;
  isolation: isolate;
}

.primary-btn::before,
.secondary-btn::before,
.purple-btn::before,
.resume-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: translateX(-120%);
  transition: 0.7s ease;
  z-index: -1;
}

.primary-btn:hover::before,
.secondary-btn:hover::before,
.purple-btn:hover::before,
.resume-btn:hover::before {
  transform: translateX(120%);
}

.primary-btn:hover,
.purple-btn:hover,
.secondary-btn:hover,
.resume-btn:hover {
  box-shadow:
    0 10px 30px rgba(168, 85, 247, 0.25),
    0 0 20px rgba(255, 106, 61, 0.2);
}

.social-icons a::before,
.footer-socials a::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  z-index: -1;
  opacity: 0;
  transition: 0.4s ease;
}

.social-icons a:hover::before,
.footer-socials a:hover::before {
  opacity: 1;
}

.section-title h2::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 60%;
  height: 10px;
  filter: blur(16px);
  background: rgba(168, 85, 247, 0.35);
}

.cursor-light {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.12),
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.section {
  padding: 36px 0;
}

.hidden-item {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.hidden-item.show-item {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   PRELOADER
================================================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #050816;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.preloader-logo span {
  color: var(--orange);
}

.preloader-bar {
  width: 180px;
  height: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  animation: preloadFill 1.1s ease forwards;
}

/* ================================================================
   ACCESSIBILITY (skip link, focus states)
================================================================ */

.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 10000;
  background: var(--orange);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 20px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ================================================================
   SCROLL PROGRESS BAR
================================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  z-index: 1100;
  transition: width 0.1s linear;
}

/* ================================================================
   HEADER & NAVIGATION
================================================================ */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 8, 22, 0.65);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.5s ease;
}

.nav-container {
  position: relative;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  color: #ffffff;
  transition: 0.4s ease;
  flex-shrink: 0;
  margin-right: auto;
}

.logo span {
  color: var(--orange);
}

.navbar {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  gap: 50px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.navbar a:hover {
  color: var(--orange);
}

.menu-btn {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1001;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  transition: 0.4s ease;
  border-radius: 50px;
}

.navbar a:hover::after {
  width: 100%;
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(255, 106, 61, 0.45);
}

.navbar a.active-link {
  color: #fff;
}

.navbar a.active-link::after {
  width: 100%;
}

/* ================================================================
   MOBILE NAVIGATION PANEL
================================================================ */

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 13, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(340px, 85vw);
  background: linear-gradient(160deg, #0d1330, #050816);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  z-index: 1500;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.mobile-nav-close:hover {
  background: rgba(255, 106, 61, 0.2);
  border-color: var(--orange);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 14px 12px;
  border-radius: 12px;
  transition: 0.3s;
}

.mobile-nav-links a i {
  color: var(--orange);
  font-size: 1.2rem;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active-link {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 18px;
}

/* ================================================================
   HERO SECTION
================================================================ */

.hero {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-container {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  padding-left: 100px;
}

.hero-mini-title {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--orange);
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.line {
  width: 45px;
  height: 3px;
  background: var(--orange);
}

.hero-content h1 {
  width: 100%;
  min-width: 0;
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  line-height: 1.08;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
  background: linear-gradient(90deg, #ffffff, #dce3ff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textGlow 5s linear infinite;
}

.hero-content h2 {
  font-size: 2rem;
  background: linear-gradient(90deg, #00d2ff, #a855f7, #ff6a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.hero-content p {
  max-width: 500px;
  color: rgb(165, 240, 255);
  font-size: 1rem;
  line-height: 1.8;
  position: relative;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.hero-image-section {
  width: 100%;
  height: 65vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  animation: imageEntry 1.5s ease forwards;
}

.profile-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 25px rgba(168, 85, 247, 0.35),
    0 0 80px rgba(255, 106, 61, 0.18),
    inset 0 0 25px rgba(255, 255, 255, 0.06);
  animation: floating 5s ease-in-out infinite;
  transition: 0.5s ease;
  cursor: pointer;
}

.hero-image-section:hover .profile-wrapper {
  transform: scale(1.08) rotateY(10deg) rotateX(4deg);
  box-shadow:
    0 0 35px rgba(168, 85, 247, 0.45),
    0 0 100px rgba(255, 106, 61, 0.25),
    inset 0 0 30px rgba(255, 255, 255, 0.08);
}

.profile-wrapper::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff6a3d, #a855f7, #00d2ff, #ff6a3d);
  z-index: -2;
  animation: spinGlow 5s linear infinite;
  filter: blur(18px);
  opacity: 0.95;
}

.profile-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  z-index: 2;
  pointer-events: none;
}

.profile-wrapper img {
  width: 94%;
  height: 94%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  transform: scale(1.04);
  transition: 0.6s ease;
}

.hero-image-section:hover .profile-wrapper img {
  transform: scale(1.08);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: pulseGlow 5s ease-in-out infinite;
}

.glow-orange {
  width: 240px;
  height: 240px;
  background: rgba(255, 106, 61, 0.35);
  left: 50%;
  transform: translateX(-50%);
}

.glow-purple {
  width: 300px;
  height: 300px;
  background: rgba(168, 85, 247, 0.3);
  animation-delay: 2s;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.05);
  transition: 0.5s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.orbit-1 {
  width: 300px;
  height: 300px;
  border-top-color: #ff6a3d;
  animation: rotateOrbit 14s linear infinite;
  box-shadow: 0 0 30px rgba(255, 106, 61, 0.15);
}

.orbit-2 {
  width: 360px;
  height: 360px;
  border-right-color: #a855f7;
  animation: rotateOrbitReverse 18s linear infinite;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.18);
}

.orbit-3 {
  width: 420px;
  height: 420px;
  border-bottom-color: #00d2ff;
  animation: rotateOrbit 24s linear infinite;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.12);
}

.hero-image-section:hover .orbit-1 {
  transform: scale(1.03);
  border-top-color: #ff925f;
}

.hero-image-section:hover .orbit-2 {
  transform: scale(1.04);
  border-right-color: #c084fc;
}

.hero-image-section:hover .orbit-3 {
  transform: scale(1.05);
  border-bottom-color: #4ddfff;
}

.hero-image-section::before,
.hero-image-section::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 15px #fff,
    0 0 25px #a855f7;
  animation: floatingParticles 6s ease-in-out infinite;
}

.hero-image-section::before {
  top: 18%;
  right: 22%;
}

.hero-image-section::after {
  bottom: 18%;
  left: 20%;
  animation-delay: 2s;
}

.hero-content {
  min-width: 0;
  animation: heroFade 1.3s ease forwards;
}

.hero-content p::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  width: 3px;
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(var(--orange), var(--purple));
}

.hero-image-section:hover .glow-orange {
  transform: translateX(-50%) scale(1.15);
}

.hero-image-section:hover .glow-purple {
  transform: scale(1.12);
}

.scroll-indicator {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  animation: float 2.4s ease-in-out infinite;
  text-decoration: none;
}

.scroll-indicator:hover {
  color: var(--orange);
}

.typed-cursor {
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
  animation: blinkCursor 0.9s steps(1) infinite;
}

/* ================================================================
   STATS SECTION
================================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-box {
  border-radius: 20px;
  padding: 26px 18px;
  text-align: center;
  transition: 0.4s;
}

.stat-box:hover {
  transform: translateY(-8px);
}

.stat-box i {
  font-size: 1.7rem;
  color: var(--orange);
  margin-bottom: 10px;
  display: inline-block;
}

.stat-box:nth-child(even) i {
  color: var(--purple);
}

.stat-box h3 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.stat-box p {
  color: var(--text);
  font-size: 0.92rem;
}

/* ================================================================
   ABOUT SECTION
================================================================ */

.about-intro {
  max-width: 820px;
  margin: 0 auto 26px;
  text-align: center;
}

.about-intro p {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-card {
  border-radius: 28px;
  padding: 20px;
  display: flex;
  gap: 25px;
  transition: 0.5s ease;
  position: relative;
}

.about-icon {
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  transition: 0.4s ease;
}

.about-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

.about-card p {
  line-height: 2;
  color: rgb(255, 235, 190);
  font-size: 16px;
}

.about-card:hover {
  transform: translateY(-14px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(168, 85, 247, 0.12);
}

.about-card:hover .about-icon {
  transform: rotate(10deg) scale(1.12);
}

/* ================================================================
   EDUCATION & EXPERIENCE (RESUME) SECTION
================================================================ */

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.resume-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.resume-column-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 16px;
}

.resume-column-title i {
  color: var(--orange);
  font-size: 1.4rem;
}

.resume-column:nth-child(2) .resume-column-title i {
  color: var(--purple);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  flex: 1;
}

.timeline-item {
  border-radius: 20px;
  padding: 20px 22px;
  transition: 0.4s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.timeline-item p.timeline-desc {
  margin-top: auto;
}

.timeline-item:hover {
  transform: translateY(-6px);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #000;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.timeline-item h4 {
  font-size: 1.1rem;
  color: #ffff;
  margin-bottom: 8px;
}

.timeline-org {
  font-size: 0.86rem;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.6;
}

.timeline-uni {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
  line-height: 1.6;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.75;
  margin-top: 6px;
}

.timeline-score {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  border: 1px solid rgba(255, 106, 61, 0.35);
  padding: 5px 14px;
  border-radius: 20px;
  margin-top: auto;
  align-self: flex-start;
}

/* ================================================================
   SERVICES SECTION
================================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  border-radius: 24px;
  padding: 26px 22px;
  transition: 0.4s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin: 0 auto 16px;
  transition: 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 12px 26px rgba(255, 106, 61, 0.35);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
}

.service-card p {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ================================================================
   SKILLS SECTION
================================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
}

.skill-box {
  padding: 15px 15px;
  border-radius: 24px;
  text-align: center;
  transition: 0.45s ease;
}

.skill-box i {
  font-size: 1.7rem;
  margin-bottom: 12px;
  transition: 0.45s ease;
}

.skill-box h4 {
  font-size: 1rem;
  transition: 0.4s ease;
}

.html {
  color: #ff6a3d;
}

.css {
  color: #00a2ff;
}

.js {
  color: #ffe14d;
}

.git {
  color: #ff7b39;
}

.github {
  color: #ffffff;
}

.responsive {
  color: #4ade80;
}

.frontend {
  color: #ff79f2;
}

.backend {
  color: #c084fc;
}

.react-skill {
  color: #61dafb;
}

.skill-box:hover {
  transform: translateY(-12px) scale(1.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(168, 85, 247, 0.16);
}

.skill-box:hover i {
  transform: scale(1.18) rotate(5deg);
  filter: drop-shadow(0 0 10px currentColor);
}

.skill-box:hover h4 {
  letter-spacing: 1px;
}

/* ================================================================
   PROJECTS SECTION
================================================================ */

.projects {
  overflow: hidden;
}

.project-card {
  border-radius: 32px;
  padding: 35px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
  transition: 0.5s ease;
}

.reverse-project {
  grid-template-columns: 1fr 360px;
}

.project-orange {
  border: 1px solid rgba(255, 106, 61, 0.3);
  box-shadow: 0 0 40px rgba(255, 106, 61, 0.15);
}

.project-purple {
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.15);
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.project-info h3 {
  font-size: 35px;
  margin-bottom: 10px;
  position: relative;
}

.project-info h3 span {
  color: var(--orange);
}

.project-info h4 {
  color: #ff9c7b;
  margin-bottom: 20px;
  font-size: 22px;
}

.project-info p {
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 30px;
}

.project-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  min-width: 0;
}

.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #0b1225;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: 0.6s ease;
  border-radius: 20px;
  background: #0a0f24;
}

.project-image:hover img {
  transform: scale(1.12);
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.08),
    transparent
  );
  opacity: 0.9;
  transition: 0.4s ease;
}

.project-image:hover::after {
  opacity: 1;
}

.project-image span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3px;
  z-index: 5;
  color: white;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(2px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card:hover {
  transform: translateY(-12px);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 106, 61, 0.25),
    rgba(168, 85, 247, 0.25),
    rgba(0, 210, 255, 0.2)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.project-info h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 90px;
  height: 4px;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--orange), var(--purple));
}

.project-buttons a:hover {
  transform: translateY(-6px) scale(1.04);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.tech-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 13px;
  border-radius: 20px;
  transition: 0.3s ease;
  cursor: default;
}

.tech-tags span:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(168, 85, 247, 0.3);
}

/* ================================================================
   CONTACT SECTION
================================================================ */

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text);
  transition: 0.4s ease;
}

.contact-item i {
  color: var(--orange);
  transition: 0.4s ease;
}

.contact-h4 {
  text-align: center;
}

.contact-item span {
  font-size: 14px;
}

.contact-item:hover {
  transform: translateX(10px);
  color: #ffffff;
}

.contact-item:hover i {
  transform: scale(1.2);
  text-shadow: 0 0 15px rgba(255, 106, 61, 0.6);
}

.contact-section .container {
  max-width: 1200px;
}

.contact-container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.contact-details {
  border-radius: 26px;
  padding: 38px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-details h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 50px;
}

.contact-details > p {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 50px;
}

.contact-items-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0 auto 6px;
  width: fit-content;
}

.contact-details .contact-item {
  margin-bottom: 40px;
}

.contact-details .social-icons {
  margin: 30px auto 0;
  width: fit-content;
  justify-content: center;
}

.contact-form {
  border-radius: 26px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: 0.3s;
  position: relative;
  z-index: 2;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #ff5566;
  box-shadow: 0 0 0 4px rgba(255, 85, 102, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin-top: -6px;
}

.contact-form button {
  align-self: center;
  z-index: 2;
  position: relative;
}

/* ================================================================
   FOOTER
================================================================ */

.footer {
  padding-top: 8px;
  position: relative;
  margin-top: 20px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.03), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  padding: 36px 20px 20px;
}

.footer-grid > div {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.4s ease;
}

.footer-grid h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-grid h3 span {
  color: var(--orange);
}

.footer-grid p {
  font-size: 14px;
  max-width: 300px;
  line-height: 1.7;
  color: var(--text);
}

.footer h4 {
  font-size: 18px;
  margin-bottom: 15px;
  text-align: center;
}

.footer-socials {
  display: flex;
  max-width: 1400px;
  width: calc(100% - 40px);
  gap: 30px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer-links a {
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s ease;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--orange);
  transform: translateY(-2px);
}

.copyright {
  font-size: 14px;
  text-align: center;
  padding: 8px;
  color: #9ba4d0;
}

.footer-grid > div:hover {
  transform: translateY(-6px);
}

/* ================================================================
   BACK-TO-TOP BUTTON
================================================================ */

.scroll-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(168, 85, 247, 0.3);
  transition: 0.4s;
  overflow: hidden;
}

.scroll-top:hover {
  transform: translateY(-10px) scale(1.08);
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.45),
    0 0 50px rgba(255, 106, 61, 0.25);
}

.scroll-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-120%);
  transition: 0.7s ease;
}

.scroll-top:hover::before {
  transform: translateX(120%);
}

/* ================================================================
   TOAST NOTIFICATIONS
================================================================ */

.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: #0d1330;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 13px 24px;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  animation:
    toastIn 0.3s ease forwards,
    toastOut 0.3s ease 2.6s forwards;
}

.toast i {
  color: var(--orange);
}

.toast.toast-error i {
  color: #ff5566;
}

/* ================================================================
   MISC / SCROLLBAR
================================================================ */

img {
  width: 100%;
  display: block;
}

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

::-webkit-scrollbar-track {
  background: #070b18;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--orange), var(--purple));
  border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#ff825f, #c084fc);
}

/* ================================================================
   ANIMATIONS
================================================================ */
@keyframes rotateOrbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateOrbitReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(4px);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes spinGlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes floatingParticles {
  0%,
  100% {
    transform: translateY(0px);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-25px);
    opacity: 1;
  }
}

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

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

  50% {
    transform: translateY(-20px);
  }
}

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

  100% {
    transform: translate(40px, -40px) scale(1.08);
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

@keyframes textGlow {
  0% {
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0.1));
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.28));
  }

  100% {
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0.1));
  }
}

@keyframes imageEntry {
  from {
    opacity: 0;
    transform: translateX(80px);
  }

  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

@keyframes preloadFill {
  to {
    width: 100%;
  }
}

@keyframes blinkCursor {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ================================================================
   PERFORMANCE: pause the heavy hero decorative animations (glow
   blur, spinning ring, rotating orbits, floating particles) while
   the hero is scrolled out of view. Toggled by js/script.js via
   IntersectionObserver. Zero visual change while the hero is
   actually visible — this only saves CPU/GPU once it's off-screen,
   which is most of the time on a long single-page site.
================================================================ */
.hero-image-section.anim-paused,
.hero-image-section.anim-paused::before,
.hero-image-section.anim-paused::after,
.hero-image-section.anim-paused .profile-wrapper,
.hero-image-section.anim-paused .profile-wrapper::before,
.hero-image-section.anim-paused .glow-orange,
.hero-image-section.anim-paused .glow-purple,
.hero-image-section.anim-paused .orbit-1,
.hero-image-section.anim-paused .orbit-2,
.hero-image-section.anim-paused .orbit-3 {
  animation-play-state: paused;
}

/* GPU compositing hints for the continuously-animating decorative
   elements — smoother motion, same exact appearance. */
.profile-wrapper,
.profile-wrapper::before,
.glow-orange,
.glow-purple,
.orbit-1,
.orbit-2,
.orbit-3,
.hero-image-section::before,
.hero-image-section::after {
  will-change: transform;
}
