/* resume.css */
/* ================= Resume Section ================= */
.resume-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  align-items: center;
  display: block;
}

/* Animated Background Elements */
.resume-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  opacity: 0.08;
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.resume-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  opacity: 0.06;
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Resume Wrapper */
.resume-wrapper {
  width: 90%;
  max-width: 800px;
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* PDF Preview Container  */
.resume-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;   /* Perfect for resume PDF */
  max-height: 450px;

  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  
  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  
  /* Advanced Shadow */
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

 /* Hover Effect - 3D Tilt */ 
.resume-preview:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(78, 205, 196, 0.3);
}

body.dark .resume-preview:hover {
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glowing Corner Accents */
.resume-preview::before,
.resume-preview::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

.resume-preview::before {
  top: -50px;
  left: -50px;
}

.resume-preview::after {
  bottom: -50px;
  right: -50px;
  background: radial-gradient(circle, var(--secondary), transparent);
}

.resume-preview:hover::before,
.resume-preview:hover::after {
  opacity: 0.3;
}

/* PDF Iframe */
.resume-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 24px;
  background: #FFF;
  display: block;
}

body.dark .resume-preview iframe {
  background: #1a1a1a;
  filter: brightness(0.95);
}

/* Loading State */
.resume-preview::before {
  content: 'Loading Resume...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

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

/* Download Button - Advanced Gradient & Animation */
.resume-download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 60px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Gradient Background */
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  
  /* Shadow & Glow */
  box-shadow: 
    0 10px 30px rgba(78, 205, 196, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.15);
  
  /* 3D Transform */
  transform-style: preserve-3d;
  transform: translateZ(0);
}

/* Animated Gradient Overlay */
.resume-download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,  
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent
  );
  transition: left 0.6s ease;
}

.resume-download-btn:hover::before {
  left: 100%;
}

/* Ripple Effect Background */
.resume-download-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.resume-download-btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Button Icon */
.resume-download-btn i {
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* Hover State */
.resume-download-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 15px 45px rgba(78, 205, 196, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.2);
}

.resume-download-btn:hover i {
  transform: translateY(2px);
  animation: bounce 0.6s ease infinite;
}

/* Active/Click State */
.resume-download-btn:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 
    0 8px 25px rgba(78, 205, 196, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Icon Bounce Animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Focus State for Accessibility */
.resume-download-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

/* Button Text */
.resume-download-btn span {
  position: relative;
  z-index: 1;
}

/* Dark Mode Button Adjustments */
body.dark .resume-download-btn {
  box-shadow: 
    0 10px 30px rgba(78, 205, 196, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark .resume-download-btn:hover {
  box-shadow: 
    0 15px 45px rgba(78, 205, 196, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.4);
}


/*===============================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   =============================================== */

/* ================= LARGE DESKTOP (1024px) ================= */
@media (max-width: 1024px) {

  .resume-wrapper {
    max-width: 85%;
  }

  .resume-preview {
    height: 500px;
  }

}

/*================= MOBILE LANDSCAPE ( 768px) ================= */
@media (max-width: 768px) {

  .resume-section {
    padding: 5rem 6%;
  }

  .resume-wrapper {
    margin-top: 3rem;
  }

  .resume-preview {
    height: 480px;
    border-radius: 20px;
  }

  .resume-download-btn {
    padding: 14px 24px;
    font-size: 1rem;
  }

}

/*================= SMALL MOBILE (375px - 480px) ================= */
@media (max-width: 480px) {

  .resume-section {
    padding: 4rem 5%;
  }

  .resume-wrapper {
    margin-top: 2.5rem;
  }

  .resume-preview {
    height: 380px;
    border-radius: 16px;
  }

  .resume-download-btn {
    padding: 12px 22px;
    font-size: 0.95rem;
    gap: 8px;
  }

  .resume-download-btn i {
    font-size: 1rem;
  }

}

/*================= EXTRA SMALL MOBILE (320px - 375px) ================= */
@media (max-width: 375px) {

  .resume-section {
    padding: 3.5rem 4%;
  }

  .resume-preview {
    height: 330px;
    border-radius: 14px;
  }

  .resume-download-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .resume-download-btn i {
    font-size: 0.9rem;
  }

}




/* Print Styles */
@media print {
  .resume-section {
    background: white;
  }

  .resume-download-btn {
    display: none;
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  .resume-preview,
  .resume-download-btn,
  .resume-section::before,
  .resume-section::after {
    animation: none;
    transition: none;
  }

  .resume-preview:hover {
    transform: none;
  }

  .resume-download-btn:hover {
    transform: none;
  }
}