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

/* ===== PROFESSIONAL VARIABLES ===== */
:root {
  --primary-bg: #0f172a;
  --secondary-bg: #1e293b;
  --accent-color: #3b82f6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.95);
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--primary-bg);
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
}

/* iOS / mobile refinements */
/* Prevent font-size auto-adjust and enable smooth native scrolling on iOS */
html,
body {
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

/* ===== PROFESSIONAL HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* include safe-area on iOS notch devices */
  padding: calc(2rem + env(safe-area-inset-top, 0px)) 10% 2rem 10%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  margin-right: 6px;
}

header .navbar ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

header .navbar ul li a {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.8rem 1.5rem;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
}

header .navbar ul li a:hover,
header .navbar ul li a.active {
  color: var(--accent-color);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

/* ===== HAMBURGER MENU ===== */
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: var(--text-primary);
  display: none;
}

/* visually-hidden helper for accessible text inside the button */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===== PROFESSIONAL HERO SECTION ===== */
.home {
  position: relative;
  /* use a dynamic viewport unit for mobile to avoid iOS address-bar resizing issues */
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  padding: 12rem 10% 8rem;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  overflow: hidden;
}

/* Particles container - Fixed to prevent expansion */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.particles-js-canvas-el {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.home .content {
  flex: 1;
  z-index: 2;
}

.home .image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== FIXED HEADING COLORS WITH YELLOW HAND ===== */
.home .content h2 {
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.home .content h2 span {
  color: var(--accent-color);
}

/* Yellow hand emoji with animation */
.hand-emoji {
  display: inline-block;
  animation: wave 2s infinite;
  filter: hue-rotate(0deg) saturate(2) brightness(1.2);
  margin-left: 1rem;
}

@keyframes wave {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(15deg);
  }

  75% {
    transform: rotate(-15deg);
  }
}

.home .content p {
  font-size: 2.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 500;
}

.home .content p span {
  color: var(--accent-color);
  font-weight: 600;
}

.home .btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  background: var(--gradient);
  color: white;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.home .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

/* ===== PROFILE PICTURE ANIMATIONS - CIRCULAR ===== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-10px) rotate(1deg);
  }

  66% {
    transform: translateY(5px) rotate(-1deg);
  }
}

@keyframes spiderSense {
  0% {
    filter: brightness(1) contrast(1);
  }

  50% {
    filter: brightness(1.1) contrast(1.2);
  }

  100% {
    filter: brightness(1) contrast(1);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  }

  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 40px rgba(59, 130, 246, 0.4);
  }
}

@keyframes shine {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }

  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

.animated-dp {
  animation: float 6s ease-in-out infinite, spiderSense 8s ease-in-out infinite;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 4px solid var(--accent-color);
  box-shadow: var(--shadow);
}

.animated-dp::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s ease-in-out infinite;
  z-index: 1;
  border-radius: 50%;
}

.animated-dp:hover {
  animation: float 3s ease-in-out infinite, glow 2s ease-in-out infinite, spiderSense 4s ease-in-out infinite;
  transform: scale(1.05);
}

.home .image img.animated-dp {
  /* responsive circular profile image: use clamp so it scales between small and large screens */
  width: clamp(14rem, 34vw, 45rem);
  height: auto;
  /* maintain aspect ratio */
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ===== SOCIAL ICONS ===== */
.socials {
  margin-top: 4rem;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: var(--card-bg);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 2rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-icons a:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  border-color: var(--accent-color);
}

/* ===== SECTIONS COMMON STYLES ===== */
section {
  padding: 8rem 10%;
  height: auto;
  min-height: auto;
}

/* prevent fixed header from overlapping anchor-targeted sections */
section {
  scroll-margin-top: calc(var(--header-h, 8rem) + 0.5rem);
}

.heading {
  font-size: 4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6rem;
  color: var(--text-primary);
}

.heading i {
  color: var(--accent-color);
  margin-right: 1rem;
}

.heading span {
  color: var(--accent-color);
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--secondary-bg);
}

.about .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about .image img {
  width: 100%;
  max-width: 40rem;
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.about .content h3 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about .tag {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--gradient);
  color: white;
  border-radius: 2rem;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.about .content p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.about .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.about .box p {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.about .box p span {
  color: var(--accent-color);
  font-weight: 600;
}

.resumebtn .btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2.5rem;
  background: var(--gradient);
  color: white;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.resumebtn .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== SKILLS SECTION ===== */
.skills {
  background: var(--primary-bg);
}

.skills .container1 {
  max-width: 100%;
  width: 100%;
  padding: 6rem;
}

.container1 {
  padding: 2.5rem 3rem;
  position: relative;
  width: 50%;
  background: var(--card-bg);
  margin: 2rem 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.skills .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
}

.skills .bar {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.skills .bar:hover {
  transform: translateY(-5px) scale(1.05) rotate(-1deg);
  border-color: var(--accent-color);
  box-shadow: var(--shadow);
}


/* Skills Section Adjustments */
.skills .bar .info img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.skills .bar .info span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}


.skills .bar:hover .info img {
  transform: rotate(15deg) scale(1.2);
}


.skills .bar .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.skills .bar .info i {
  font-size: 4.5rem;
  color: var(--accent-color);
}

.skills .bar .info span {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== NEW SKILLS SUMMARY ===== */
.skills-summary {
  margin-top: 6rem;
  text-align: center;
}

.skills-summary h3 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.skills-summary h3 i {
  color: var(--accent-color);
  margin-right: 1rem;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.competency-item {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.competency-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.competency-item i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.competency-item h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.competency-item p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.see-more-btn {
  margin: 2rem auto 0;
  display: block;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  border: none;
  background: var(--gradient);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.see-more-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}


/* ===== EDUCATION SECTION ===== */
.education {
  background: var(--secondary-bg);
}

.education .quote {
  font-size: 1.8rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  font-style: italic;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.edu-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-5px);
  border: 1px solid var(--accent-color);
}

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

.edu-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
}

.edu-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.edu-card p {
  color: var(--text-secondary);
}

.duration {
  font-size: 1.3rem;
  color: var(--accent-color);
  font-weight: 500;
}

.edu-card ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ===== WORK/PROJECTS SECTION ===== */
.work {
  background: var(--primary-bg);
}

.work .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.work .box {
  background: var(--card-bg);
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.work .box:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
}

.work .box img {
  width: 100%;
  display: block;
  /* avoid baseline whitespace below images */
  height: auto;
  /* let aspect-ratio / image determine height */
  aspect-ratio: 16 / 9;
  /* keep consistent preview ratio */
  max-height: 40rem;
  object-fit: cover;
  border-radius: 1rem;
}


.work .box .content {
  padding: 2.5rem;
}

.work .box .tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.work .box .tag h3 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.work .desc p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.work .desc .btns {
  display: flex;
  gap: 1rem;
}

.work .desc .btns .btn {
  flex: 1;
  text-align: center;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: white;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.work .desc .btns .btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.btns .disabled {
  flex: 1;
  text-align: center;
  padding: 1rem 2rem;
  display: inline-block;
  background: #999;
  color: #fff;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  cursor: not-allowed;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* ===== PROJECTS INTRO ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  perspective: 1000px;
}

.project-inner {
  position: relative;
  width: 100%;
  height: 350px;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.project-card:hover .project-inner {
  transform: rotateY(180deg);
}

.project-front,
.project-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-front {
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.project-front img {
  width: 500%;
  height: 350px;
  object-fit: cover;
  border-radius: 1rem;
}


.project-back {
  background: var(--secondary-bg);
  transform: rotateY(180deg);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.project-back h3 {
  color: var(--text-primary);
  font-size: 1.6rem;
}

.project-back p {
  color: var(--text-secondary);
  font-size: 1.3rem;
}

.project-back .btns a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 0.8rem;
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  transition: 0.3s;
}

.project-back .btns a:hover {
  background: var(--accent-hover);
}

.projects-intro {
  text-align: center;
  margin: 4rem 0;
  padding: 3rem;
  background: var(--card-bg);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.projects-intro h3 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.projects-intro p {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat h4 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin: 0;
}

.viewall {
  text-align: center;
}

.viewall .btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 3rem;
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.viewall .btn:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.project-back .details-btn {
  margin: 1rem 0;
  padding: 0.8rem 1.5rem;
  border: none;
  background: var(--accent-color);
  color: #fff;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.project-back .details-btn:hover {
  background: #2563eb;
}


/* ===== EXPERIENCE SECTION ===== */
.experience {
  background: var(--secondary-bg);
  font-family: 'Inter', sans-serif;
  padding: 6rem 2rem;
  color: var(--text-primary);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--accent-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

/* ===== TIMELINE CONTAINERS ===== */
.container {
  padding: 2.5rem 3rem;
  position: relative;
  width: 50%;
  background: var(--card-bg);
  margin: 2rem 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.container:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.container::after {
  content: '';
  position: absolute;
  width: 2rem;
  height: 2rem;
  background: var(--accent-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.left::after {
  right: -6px;
}

.right::after {
  left: -6px;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}


/* ===== CONTENT ===== */
.content .tag h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.content .desc h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
}

.content .desc p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.content .desc ul {
  list-style: disc inside;
  padding-left: 1rem;
}

.content .desc ul li {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.scroll-indicator {
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-text {
  width: 80%;
  height: 80%;
  transform-origin: center center;
  /* rotation pivot */
  animation: rotateCircle 10s linear infinite;
}

.circle-text text {
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  fill: var(--text-primary);
}

@keyframes rotateCircle {
  0% {
    transform: rotate(0deg);
  }

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


.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mouse .wheel {
  width: 3px;
  height: 7px;
  background: var(--text-primary);
  border-radius: 2px;
  animation: wheelMove 1.8s infinite ease-in-out;
}

/* wheel scroll animation */
@keyframes wheelMove {
  0% {
    transform: translateY(-6px);
    opacity: 0;
  }

  30% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* ===== EXPERIENCE SUMMARY ===== */
.experience-summary {
  text-align: center;
  margin-top: 5rem;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease forwards;
}

.experience-summary h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.experience-summary p {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 2;
  max-width: 800px;
  margin: 0 auto;
}


/* ===== RESPONSIVE ===== */
@media screen and (max-width: 992px) {

  .right,
  .left {
    width: 100%;
    left: 20 !important;
    padding: 2rem 2rem;
  }

  .timeline::after {
    display: none;
  }

  .container::after {
    display: none;
  }
}


/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--primary-bg);
}

.container2 {
  padding: 2.5rem 3rem;
  position: relative;
  width: 50%;
  background: var(--card-bg);
  margin: 2rem 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.contact .container2 {
  max-width: 1400px;
  width: 95%;
  border-radius: 20px;
  margin: 2rem auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 2rem;
}

.contact .container2 .content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5rem;
  padding: 2rem;
}

.contact .container2 .content form {
  flex: 1.2;
  order: 1;
  min-width: 0;
}

.contact .container2 .content .image-box {
  flex: 0.8;
  order: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact .container2 .content .image-box img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  /* margin-top: 10rem; */
}

/* ===== HIRE ME FORM STYLES ===== */
.hire-form {
  background: var(--card-bg);
  padding: 3.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.hire-form h3 {
  font-size: 2.8rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.hire-form>p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.7rem;
  line-height: 1.6;
}

.contact .field {
  height: 55px;
  margin: 1.5rem 0;
  width: 100%;
  position: relative;
}

.contact .field input,
.contact .field select {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 20px 0 55px;
  font-size: 1.7rem;
  font-family: "Poppins", sans-serif;
  border-radius: 12px;
  border: 2px solid #e1e5ee;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.contact .field select {
  appearance: none;
  cursor: pointer;
  padding: 0 20px 0 55px;
}

.contact .field input:focus,
.contact .field select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.contact .field i {
  position: absolute;
  top: 50%;
  left: 20px;
  color: #64748b;
  font-size: 1.8rem;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 2;
}

.contact .field input:focus~i,
.contact .field select:focus~i {
  color: var(--accent-color);
}

.contact .message {
  position: relative;
  margin: 2rem 0;
  width: 100%;
}

.contact .message textarea {
  width: 100%;
  min-height: 100px;
  outline: none;
  padding: 20px 20px 20px 55px;
  font-size: 1.7rem;
  font-family: "Poppins", sans-serif;
  border-radius: 12px;
  border: 2px solid #e1e5ee;
  background: #f8fafc;
  resize: vertical;
  transition: all 0.3s ease;
}

.contact .message textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.contact .message i {
  position: absolute;
  top: 25px;
  left: 20px;
  color: #64748b;
  font-size: 1.8rem;
  pointer-events: none;
  z-index: 2;
}

.contact .message textarea:focus~i {
  color: var(--accent-color);
}

.submit-btn {
  width: 100%;
  padding: 18px 35px;
  background: linear-gradient(135deg, var(--accent-color), #7c3aed);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

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

/* ===== FORM MESSAGE STYLES ===== */
#form-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== CONTACT METHODS ===== */
.contact-methods {
  margin-top: 6rem;
  text-align: center;
  padding: 0 2rem;
}

.contact-methods h3 {
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: 4rem;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-option {
  background: var(--card-bg);
  padding: 3.5rem 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.contact-option:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-option .icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-color), #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.5rem;
}

.contact-option .icon i {
  font-size: 3rem;
  color: white;
}

.contact-option .info h4 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contact-option .info p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.6rem;
}

.contact-link {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* ===== FOOTER SECTION ===== */
.footer {
  background: var(--primary-bg);
  padding: 6rem 10% 3rem;
}

.footer .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer .box h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

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

.footer .box a {
  display: block;
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.footer .box a:hover {
  color: var(--accent-color);
}

.footer .box .share {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.footer .box .share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--card-bg);
  border-radius: 50%;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.footer .box .share a:hover {
  background: var(--accent-color);
  color: white;
}

.footer .credit {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
  color: var(--text-secondary);
}

.footer .credit a {
  color: var(--accent-color);
  font-weight: 600;
}

/* ===== SCROLL TO TOP BUTTON ===== */
#scroll-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 6rem;
  height: 6rem;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  border: 2px solid white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#scroll-top.active {
  opacity: 1;
  visibility: visible;
}

#scroll-top:hover {
  transform: translateY(-3px);
  background: #2563eb;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }

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

  .contact .container .content {
    gap: 4rem;
  }
}

@media (max-width: 968px) {
  .contact .container .content {
    flex-direction: column;
    gap: 4rem;
    padding: 1.5rem;
  }

  .contact .container .content form {
    order: 2;
    flex: 1;
  }

  .hire-form {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  #menu {
    display: block;
    position: absolute;
    /* fix to the header's top-right */
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1102;
    /* ensure button stays above header elements */
    background: transparent;
    border: none;
    padding: 0.6rem;
    line-height: 1;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
  }

  header .navbar {
    position: fixed;
    top: 100%;
    right: 0;
    width: 80%;
    height: calc(100vh - 100%);
    background: var(--card-bg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
  }

  header .navbar.nav-toggle {
    transform: translateX(0);
  }

  header .navbar ul {
    flex-direction: column;
    padding: 3rem;
    gap: 2rem;
  }

  header .navbar ul li a {
    display: block;
    padding: 1.5rem;
    font-size: 2rem;
    border-radius: 1rem;
  }

  header {
    padding: 1.5rem 5%;
  }

  section {
    padding: 6rem 5%;
  }

  /* ===== MOBILE HERO FIX ===== */
  .home {
    flex-direction: column;
    text-align: center;
    padding: 10rem 5% 6rem;
    justify-content: flex-start;
  }

  .home .content {
    order: 2;
    margin-top: 3rem;
  }

  .home .image {
    order: 1;
    margin-bottom: clamp(1rem, 4vw, 2.4rem);
  }

  .home .content h2 {
    font-size: 4rem;
    color: var(--text-primary);
  }

  .home .content h2 span {
    color: var(--accent-color);
  }

  .hand-emoji {
    font-size: 4rem;
    margin-left: 0.8rem;
  }

  .home .image img.animated-dp {
    width: clamp(14rem, 34vw, 32rem);
    height: auto;
  }

  .about .row {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .education .box {
    grid-template-columns: 1fr;
  }

  .timeline::after {
    left: 3rem;
  }

  .container {
    width: 100%;
    padding-left: 7rem;
    padding-right: 2rem;
  }

  .right {
    left: 0%;
  }

  .contact .container {
    width: 95%;
    margin: 1rem auto;
    padding: 1rem;
  }

  .contact-options {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-option {
    padding: 3rem 2rem;
  }

  .submit-btn {
    padding: 16px 30px;
    font-size: 1.8rem;
  }

  .contact .field input,
  .contact .field select,
  .contact .message textarea {
    font-size: 1.6rem;
    padding: 0 15px 0 50px;
  }

  .socials {
    margin-top: 3rem;
  }

  .social-icons {
    justify-content: center;
  }
   .contact .container2 .content .image-box {
    display: none !important;
  }

  /* Mobile contact form improvements */
  .contact .container2 {
    padding: 1rem 0.5rem;
  }

  .contact .container2 .content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem;
  }

  .hire-form {
    padding: 2rem;
    border-radius: 1.2rem;
    width: 100%;
  }

  .contact .field {
    height: 56px;
    margin: 0.8rem 0;
    width: 100%;
  }

  .contact .field input,
  .contact .field select {
    font-size: 1.8rem;
    padding: 0 16px 0 48px; /* leave space for icon */
    height: 100%;
  }

  .contact .field i {
    left: 14px;
    font-size: 1.6rem;
    color: #9aa6b8;
  }

  .contact .message textarea {
    min-height: 140px;
    padding: 14px 14px 14px 48px;
    font-size: 1.7rem;
  }

  .submit-btn {
    padding: 16px 20px;
    font-size: 1.9rem;
    border-radius: 0.9rem;
  }

  /* Form message styling for visibility on mobile */
  #form-message {
    display: block !important;
    margin-top: 1rem;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 1.6rem;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  }

  .field-error {
    color: #ffb4b4;
    background: rgba(255, 59, 59, 0.06);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 1.4rem;
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 50%;
  }

  .home .content h2 {
    font-size: 3.5rem;
  }

  .hand-emoji {
    font-size: 3.5rem;
    margin-left: 0.6rem;
  }

  .home .image img.animated-dp {
    width: clamp(12rem, 36vw, 26rem);
    height: auto;
  }

  .home .content p {
    font-size: 1.8rem;
  }

  .heading {
    font-size: 3rem;
  }

  .work .box-container {
    grid-template-columns: 1fr;
  }

  .contact .container {
    width: 98%;
    border-radius: 15px;
  }

  .hire-form {
    padding: 2rem;
  }

  .contact .field {
    height: 50px;
    margin: 1rem 0;
  }

  .contact .message textarea {
    min-height: 120px;
    padding: 15px 15px 15px 45px;
  }

  .contact .field i,
  .contact .message i {
    font-size: 1.6rem;
    left: 15px;
  }
}

@media (max-width: 380px) {
  .home .image img.animated-dp {
    width: clamp(10rem, 40vw, 22rem);
    height: auto;
  }

  .home .content h2 {
    font-size: 3rem;
  }

  .hand-emoji {
    font-size: 3rem;
    margin-left: 0.5rem;
  }
}

/* ===== LOADING ANIMATION FOR BUTTON ===== */
@keyframes button-loading {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

.submit-btn.loading {
  animation: button-loading 1.5s ease-in-out infinite;
}

/* ===== ANIMATION FOR ABOUT IMAGE ===== */
.animated-about {
  animation: floatAnimation 4s ease-in-out infinite, fadeInUp 1.2s ease forwards;
  opacity: 0;
  /* fade-in start */
}

/* Floating effect */
@keyframes floatAnimation {

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

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

/* Fade-in effect */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Hover par zoom aur shadow effect */
.animated-about:hover {
  transform: scale(1.05) rotateZ(1deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}