/* ============================================
 P ORTFOLIO WEBSIT*E - OPTIMIZED & SMOOTH
 Author: Divyansh Goyal
 ============================================ */

/* ============================================
 1 . GLOBAL RESET *& OPTIMIZED BASE STYLES
 ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 100px 20px 40px;
  transition: background 0.3s ease;
  overflow-x: hidden;
  /* Performance optimizations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Add subtle animated gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
  radial-gradient(circle at 10% 20%, rgba(243, 156, 18, 0.05) 0%, transparent 40%),
  radial-gradient(circle at 90% 80%, rgba(230, 126, 34, 0.05) 0%, transparent 40%),
  radial-gradient(circle at 50% 50%, rgba(255, 53, 53, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: subtleMove 30s ease-in-out infinite;
}

@keyframes subtleMove {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

body.menu-open {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:target {
  scroll-margin-top: 100px;
}

/* GPU acceleration for transforms */
.card,
.timeline-item,
.social-card,
.navbar,
.header {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ============================================
 2 . MAIN CONTAINE*R
 ============================================ */
.resume-container {
  width: 100%;
  max-width: 1000px;
  position: relative;
  padding: 85px 20px;
}

/* ============================================
 3 . RESUME CARD W*ITH SMOOTH ENTRANCE
 ============================================ */
.resume {
  background: #fff;
  max-width: 1000px;
  width: 100%;
  padding: 40px;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08),
  0 0 0 1px rgba(243, 156, 18, 0.05);
  display: grid;
  gap: 40px;
  margin-top: 0;
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
  transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.resume.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Add subtle inner glow */
.resume::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 32px;
  background: linear-gradient(135deg,
                              rgba(243, 156, 18, 0.1) 0%,
                              transparent 20%,
                              transparent 80%,
                              rgba(230, 126, 34, 0.1) 100%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================
 4 . PROFILE SECTI*ON (Top Card)
 ============================================ */
.top-placeholder-card {
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  width: 100%;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  animation: cardFade 1s ease forwards;
  opacity: 0;
  margin-bottom: 40px;
}

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

.profile-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 600px;
  text-align: left;
}

.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Profile Picture Animation */
.profile-pic {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid #f39c12;
  opacity: 0;
  transform: scale(0.5) rotate(-15deg);
  animation: popIn 0.8s ease forwards;
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Profile Info Animations */
.profile-info h2 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeLeft 0.8s ease forwards;
  animation-delay: 0.9s;
}

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.profile-info h1 {
  margin: 5px 0 0;
  font-size: 26px;
  color: #222;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1.7s;
}

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

/* Typewriter Effect for Tagline */
.profile-info p {
  margin: 8px 0 0;
  font-size: 16px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #f39c12;
  width: 0ch;
  opacity: 0;
  animation: typewriter 3s steps(30) forwards,
  blink 0.8s step-end infinite,
  revealHeart 0s forwards;
  animation-delay: 2.7s, 2.7s, 5.7s;
  position: relative;
}

@keyframes typewriter {
  from {
    width: 0;
    opacity: 1;
  }
  to {
    width: 26ch;
    opacity: 1;
  }
}

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

/* Heart emoji reveal */
.profile-info p::after {
  content: "❤";
  color: #f39c12;
  margin-left: 5px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.profile-info p.heart-shown::after {
  opacity: 1;
}

/* ============================================
 5 . HEADER WITH S*MOOTH PARALLAX & GRADIENT
 ============================================ */
.header {
  text-align: center;
  transition: transform 0.1s linear, opacity 0.2s ease;
}

.header h1 {
  font-size: 2.8rem;
  color: #222;
  background: linear-gradient(135deg, #f39c12, #e67e22, #ff3535);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.header p {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #555;
}

/* About animations - simplified */
.about-title {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-title.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.about-role {
  opacity: 0;
  transform: translate3d(0, 15px, 0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-role.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.about-desc {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

.about-desc.dusty {
  animation: fadeInSmooth 0.6s ease forwards;
}

@keyframes fadeInSmooth {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ============================================
 6 . SECTIONS & SE*CTION TITLES - OPTIMIZED
 ============================================ */
.section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f39c12;
  border-left: 5px solid #f39c12;
  padding-left: 15px;
  opacity: 0;
  transform: translate3d(-50px, 0, 0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.section-title.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ============================================
 7 . CARDS WITH SM*OOTH ANIMATIONS
 ============================================ */
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  position: relative;
}

.card {
  background: #fef9e7;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.95);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.card.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Hover effect with smooth transform */
@media (hover: hover) {
  .card:hover {
    transform: translate3d(0, -8px, 0) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  }

  .card:hover h3 {
    color: #f39c12;
    transform: translateX(5px);
    transition: all 0.3s ease;
  }
}

/* Optimized dust effect */
.card.dust::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(243, 156, 18, 0.3) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0;
  animation: dust 0.8s forwards;
  pointer-events: none;
}

@keyframes dust {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
  transition: all 0.3s ease;
}

.card h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #666;
  font-style: italic;
}

.card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.card p.revealed {
  opacity: 1;
}

/* ============================================
 8 . SKILL TAGS WI*TH SMOOTH FLOAT
 ============================================ */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.card.skill-tag {
  padding: 8px 12px;
  border-radius: 999px;
  min-width: 0;
  flex: 0 0 auto;
  background: #fff7e7;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: floatSkill 4s ease-in-out infinite;
  animation-delay: calc(var(--card-index) * 0.15s);
}

/* Optimized float animation */
@keyframes floatSkill {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

/* Different timing for variety */
.card.skill-tag:nth-child(odd) {
  animation-duration: 4.2s;
}

.card.skill-tag:nth-child(even) {
  animation-duration: 3.7s;
}

.card.skill-tag:nth-child(3n) {
  animation-duration: 4s;
}

.card.skill-tag h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
}

/* Pause animation on hover */
@media (hover: hover) {
  .card.skill-tag:hover {
    animation-play-state: paused;
    transform: translate3d(0, -5px, 0) scale(1.05);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.2);
  }
}

/* ============================================
 9 . SOCIAL MEDIA *CARDS WITH SMOOTH ANIMATIONS
 ============================================ */
.social-section {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.social-card {
  width: 60px;
  height: 60px;
  background-color: #fef9e7;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transform: translate3d(0, 50px, 0) scale(0.7);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
  opacity 0.5s ease;
  text-decoration: none;
}

/* Animate when in viewport */
.social-card.animate {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  animation: floatSocial 5s ease-in-out infinite;
}

/* Smooth float animation */
@keyframes floatSocial {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -12px, 0) scale(1);
  }
}

/* Stagger timing */
.social-card:nth-child(1).animate {
  animation-delay: 0s;
  animation-duration: 4.5s;
}

.social-card:nth-child(2).animate {
  animation-delay: 0.3s;
  animation-duration: 5s;
}

.social-card:nth-child(3).animate {
  animation-delay: 0.6s;
  animation-duration: 4.8s;
}

.social-card:nth-child(4).animate {
  animation-delay: 0.9s;
  animation-duration: 5.2s;
}

.social-card img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(0);
  transition: filter 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

@media (hover: hover) {
  .social-card:hover {
    animation-play-state: paused;
    transform: translate3d(0, -5px, 0) scale(1.12) rotate(3deg);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
  }

  .social-card:hover img {
    filter: invert(21%) sepia(94%) saturate(7464%) hue-rotate(0deg) brightness(94%) contrast(94%);
    transform: scale(1.15) rotate(-3deg);
  }
}

/* Mobile tap effect */
.social-card:active {
  animation-play-state: paused;
  transform: scale(0.92) translate3d(0, 2px, 0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-list .card a {
  color: #2980b9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-list .card a:hover {
  color: #e74c3c;
}

/* ============================================
 1 0. TIMELINE WIT*H SMOOTH ANIMATIONS
 ============================================ */
.timeline {
  position: relative;
  margin: 50px 0;
  padding-left: 40px;
}

/* Animated vertical line */
.timeline-line {
  position: absolute;
  left: 8px;
  top: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #f39c12, #e67e22);
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.timeline-item {
  position: relative;
  margin-left: 60px;
  margin-bottom: 50px;
  opacity: 0;
  transform: translate3d(60px, 0, 0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Timeline dot with smooth pulse */
.timeline-dot {
  position: absolute;
  left: -40px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f39c12;
  border: 3px solid #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2),
  0 0 0 0 rgba(243, 156, 18, 0.7);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2),
    0 0 0 0 rgba(243, 156, 18, 0.7);
  }
  50% {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2),
    0 0 0 10px rgba(243, 156, 18, 0);
  }
  100% {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2),
    0 0 0 0 rgba(243, 156, 18, 0);
  }
}

.timeline-content {
  background: #fef9e7;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

@media (hover: hover) {
  .timeline-content:hover {
    transform: translate3d(10px, 0, 0);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }

  .timeline-content:hover h3 {
    color: #f39c12;
    transition: all 0.3s ease;
  }
}

.timeline-content h3 {
  margin: 0 0 5px;
  color: #333;
  transition: all 0.3s ease;
}

.timeline-content p {
  margin: 0 0 5px;
  color: #555;
  font-size: 0.95rem;
}

.timeline-content p b {
  color: #f39c12;
  font-weight: 700;
}

/* ============================================
 1 1. CERTIFICATE *CARDS & POPUP
 ============================================ */
.cert-card {
  position: relative;
  min-height: 200px;
  padding: 20px;
}

.cert-card h3 {
  text-align: center;
  margin-bottom: 10px;
}

.cert-card p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #888;
}

.cert-img {
  width: 100%;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
  box-shadow 0.4s ease;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

@media (hover: hover) {
  .cert-img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  }
}

/* Certificate popup modal */
.popup {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  overflow: hidden;
}

.popup.active {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.popup-content {
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  object-fit: contain;
  position: fixed;
  transform: scale(0.3);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
  opacity 0.4s ease,
  left 0.4s ease,
  top 0.4s ease;
  transform-origin: center center;
}

.popup.active .popup-content {
  transform: scale(1);
  opacity: 1;
  left: 50% !important;
  top: 50% !important;
  margin-left: -45%;
  margin-top: -45%;
}

.popup-caption {
  color: #fff;
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
}

.close {
  position: fixed;
  top: 25px;
  right: 25px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10002;
  background: rgba(243, 156, 18, 0.95);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  opacity: 0;
  transform: scale(0) rotate(-90deg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.popup.active .close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@media (hover: hover) {
  .close:hover {
    background: #e67e22;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
  }
}

/* ============================================
 1 2. CONTACT FORM*
 ============================================ */
.card.contact {
  flex: 1 1 100%;
  max-width: 100%;
}

.card.contact a {
  color: #2980b9;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-top: 5px;
  font-weight: 600;
  word-break: break-word;
}

@media (hover: hover) {
  .card.contact a:hover {
    color: #e74c3c;
  }
}

.card.contact a:active {
  color: #e74c3c;
}

#contact-form {
display: flex;
flex-direction: column;
gap: 12px;
}

#contact-form .form-row {
display: flex;
gap: 10px;
flex-wrap: wrap;
}

#contact-form input,
#contact-form textarea {
padding: 10px;
border-radius: 8px;
border: 1px solid #ddd;
font-family: 'Outfit', sans-serif;
width: 100%;
box-sizing: border-box;
font-size: 1rem;
transition: border-color 0.3s ease, transform 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
outline: none;
border-color: #f39c12;
transform: translateY(-2px);
}

#contact-form input[type="text"]:nth-child(1),
#contact-form input[type="text"]:nth-child(2) {
flex: 1 1 calc(50% - 5px);
min-width: 150px;
}

#contact-form button {
padding: 12px 20px;
border: none;
border-radius: 12px;
background: #f39c12;
color: #fff;
font-weight: bold;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
font-size: 1rem;
}

@media (hover: hover) {
  #contact-form button:hover {
  background: #e67e22;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
  }
}

#submit-btn.sending {
background-color: #f39c12;
color: #fff;
}

#submit-btn.sent {
background-color: #2ecc71;
color: #fff;
transform: scale(1.05);
}

#submit-btn.error {
background-color: #e74c3c;
color: #fff;
}

.form-status {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-align: center;
}

.form-status.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
 1 3. NAVIGATION B*AR - OPTIMIZED
 ============================================ */
.navbar {
  width: min(90%, 600px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  color: #f39c12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: fixed;
  border-radius: 100px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  height: 64px;
  z-index: 10000;
  transition: background 0.3s ease, box-shadow 0.3s ease,
  transform 0.2s ease;
  border: 1px solid rgba(243, 156, 18, 0.1);
}

/* Navbar scroll effect */
.navbar.scrolled {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo img {
  width: 36px;
  height: 36px;
  filter: invert(84%) sepia(18%) saturate(2289%) hue-rotate(1deg) brightness(99%) contrast(92%);
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
}

.navbar-links li a {
  color: #f39c12;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

@media (hover: hover) {
  .navbar-links li a:hover {
    color: #ff3535;
    background: rgba(243, 156, 18, 0.1);
    transform: translateY(-2px);
  }
}

/* Active link highlight */
.navbar-links li a.active {
  color: #e67e22;
}

/* ============================================
 1 4. HAMBURGER MENU TOGGLE                      *
 ============================================ */
#navbar-toggle {
display: none;
position: relative;
width: 30px;
height: 24px;
cursor: pointer;
background: none;
border: none;
padding: 0;
z-index: 10001;
}

#navbar-toggle span {
position: absolute;
height: 4px;
width: 100%;
background-color: #f39c12;
border-radius: 2px;
transition: all 0.3s ease;
}

#navbar-toggle span:nth-child(1) {
top: 0;
}

#navbar-toggle span:nth-child(2) {
top: 10px;
}

#navbar-toggle span:nth-child(3) {
top: 20px;
}

#navbar-toggle.active span:nth-child(1) {
transform: rotate(45deg);
top: 10px;
}

#navbar-toggle.active span:nth-child(2) {
opacity: 0;
}

#navbar-toggle.active span:nth-child(3) {
transform: rotate(-45deg);
top: 10px;
}

/* ============================================
 1 5. THEME TOGGLE BUTTON                        *
 ============================================ */
#theme-toggle {
background: none;
border: none;
border-radius: 100px;
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
padding: 8px 14px;
}

@media (hover: hover) {
  #theme-toggle:hover {
  background: rgba(243, 156, 18, 0.1);
  transform: rotate(180deg) scale(1.1);
  }

  #theme-toggle:hover #moon-icon path {
  stroke: #ff3535;
  transition: stroke 0.2s ease;
  }

  #theme-toggle:hover #sun-icon path {
  stroke: #ff3535;
  transition: stroke 0.3s ease;
  }
}

#theme-toggle svg {
color: #111;
transition: color 0.2s;
}

/* ============================================
 1 6. DARK MODE STYLES                           *
 ============================================ */
body.dark {
  background: #111 !important;
  color: #eee !important;
}

body.dark .resume,
body.dark .top-placeholder-card,
body.dark .card {
  background: #222 !important;
  color: #eee !important;
  box-shadow: 0 4px 20px rgba(165, 163, 163, 0.8) !important;
}

body.dark h1,
body.dark h2,
body.dark h3 {
  color: #FFD700 !important;
}

body.dark p {
  color: #ccc !important;
}

body.dark .timeline-content {
  background: #222;
  box-shadow: 0 4px 20px rgba(165, 163, 163, 0.8) !important;
}

body.dark #theme-toggle svg {
  color: #fff;
}

body.dark .navbar {
  background: rgba(34, 34, 34, 0.85) !important;
  box-shadow: 0 4px 20px rgba(165, 163, 163, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #fff !important;
}

body.dark .navbar-links li a {
  color: #FFD700 !important;
}

@media (hover: hover) {
  body.dark .navbar-links li a:hover {
    background: #333 !important;
    color: #fff !important;
  }
}

body.dark #navbar-toggle span {
  background-color: #FFD700;
}

body.dark .navbar-links {
  background: rgba(34, 34, 34, 0.98) !important;
}

body.dark .timeline-dot {
  border-color: #222;
}

/* ============================================
 1 7. FOOTER WITH FADE-IN                        *
 ============================================ */
.footer {
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
}

.footer.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
 1 8. CERTIFIED BUTTON                           *
 ============================================ */
.cert-btn {
  display: inline-block;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  margin-top: 12px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
  position: relative;
}

@media (hover: hover) {
  .cert-btn:hover {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    transform: translate3d(0, -4px, 0) scale(1.03);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.5);
  }
}

.cert-btn:active {
  transform: scale(0.97);
}

body.dark .cert-btn {
  background: linear-gradient(135deg, #FFD700, #f1c40f);
  color: #222;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

body.dark .cert-btn:hover {
  background: linear-gradient(135deg, #f1c40f, #FFD700);
  color: #111;
}

/* ============================================
 1 9. SCROLL PROGRESS INDICATOR                  *
 ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #f39c12, #e67e22, #ff3535);
  z-index: 10003;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

/* ============================================
 2 0. PARTICLES BACKGROUND - SIMPLIFIED          *
 ============================================ */
.resume::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
  radial-gradient(circle at 20% 50%, rgba(243, 156, 18, 0.03) 0%, transparent 50%),
  radial-gradient(circle at 80% 80%, rgba(230, 126, 34, 0.03) 0%, transparent 50%);
  pointer-events: none;
  border-radius: 32px;
}

/* ============================================
 2 1. SIMPLIFIED ANIMATIONS                      *
 ============================================ */
/* Fade in from bottom */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Scale animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
 2 2. SMOOTH TRANSITIONS                         *
 ============================================ */
h1, h2, h3, h4, h5, h6, p, span, a {
  transition: color 0.3s ease;
}

/* ============================================
 2 3. UTILITY CLASSES                            *
 ============================================ */
.menu-body {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background: white;
  z-index: 9999;
}

.menu-body.show {
  display: block;
}

/* ============================================
 2 4. RESPONSIVE DESIGN (Mobile & Tablet)        *
 ============================================ */

/* Tablets */
@media (max-width: 1024px) {
  .navbar {
    width: 85%;
  }

  .navbar-links {
    gap: 20px;
  }

  .navbar-links li a {
    font-size: 0.95rem;
    padding: 6px 10px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body {
    padding: 80px 15px 40px;
  }

  .resume-container {
    padding: 20px 10px;
  }

  .resume {
    padding: 30px 20px;
    border-radius: 24px;
  }

  .navbar {
    width: 90%;
    padding: 0 15px;
    justify-content: space-between;
  }

  #navbar-toggle {
  display: block;
  order: 2;
  margin-right: 25px;
  margin-left: 10px;
  }

  #theme-toggle {
  order: 1;
  width: 40px;
  height: 40px;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(254, 249, 231, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    gap: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(243, 156, 18, 0.1);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: stretch;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }

  .navbar-links.show {
    display: flex;
  }

  .navbar-links li {
    width: 100%;
  }

  .navbar-links li a {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 2px 0;
    display: block;
  }

  .header h1 {
    font-size: 2rem;
  }

  .header p {
    font-size: 1rem;
  }

  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .profile-info h1 {
    font-size: 20px;
  }

  .profile-info h2 {
    font-size: 16px;
  }

  .profile-pic {
    width: 100px;
    height: 100px;
  }

  .card {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: left;
  }

  .card h3 {
    font-size: 1rem;
  }

  .skills-list {
    justify-content: flex-start;
  }

  .card.skill-tag {
    flex: 0 0 auto;
    max-width: none;
    padding: 6px 10px;
  }

  .card.skill-tag h3 {
    font-size: 0.85rem;
  }

  .card.contact {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: left;
  }

  .card.contact a {
    display: inline;
    font-weight: 600;
  }

  #contact-form input[type="text"]:nth-child(1),
  #contact-form input[type="text"]:nth-child(2) {
  flex: 1 1 100%;
  }

  .timeline {
    padding-left: 15px;
    margin: 30px 0;
  }

  .timeline-item {
    margin-left: 40px;
    margin-bottom: 40px;
  }

  .timeline-dot {
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
  }

  .timeline-line {
    left: -22px;
  }

  .timeline-content {
    padding: 15px;
  }

  .timeline-content h3 {
    font-size: 1rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
  }

  .social-card {
    width: 55px;
    height: 55px;
  }

  .social-card img {
    width: 28px;
    height: 28px;
  }

  .popup {
    padding: 0;
  }

  .popup-content {
    max-width: 95%;
    max-height: 85vh;
  }

  .close {
    right: 15px;
    top: 15px;
    font-size: 40px;
    width: 45px;
    height: 45px;
  }

  .section-title {
    font-size: 1.3rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  body {
    padding: 70px 10px 30px;
  }

  .navbar {
    width: 95%;
    padding: 0 12px;
    height: 56px;
  }

  .resume {
    padding: 20px 15px;
    gap: 30px;
  }

  .header h1 {
    font-size: 1.7rem;
  }

  .header p {
    font-size: 0.95rem;
  }

  .section {
    gap: 12px;
  }

  .section-title {
    font-size: 1.2rem;
    padding-left: 12px;
  }

  .card {
    padding: 15px;
    min-width: 150px;
  }

  .card h3 {
    font-size: 0.95rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  #contact-form input,
  #contact-form textarea {
  font-size: 0.95rem;
  }

  #contact-form button {
  font-size: 0.95rem;
  }

  .timeline {
    padding-left: 10px;
  }

  .timeline-item {
    margin-left: 30px;
  }

  .timeline-dot {
    left: -25px;
    width: 14px;
    height: 14px;
  }

  .timeline-line {
    left: -18px;
    width: 3px;
  }
}

/* Landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
  body {
    padding: 80px 20px 40px;
  }

  .navbar {
    height: 56px;
  }

  .navbar-links {
    top: 65px;
  }
}

/* ============================================
 E ND OF STYLESHEET                              *
 ============================================ */
