/* ============================================================
   RESUME SECTION — resume.css
   Glassmorphic Download Controls + Sleek Page Preview Frame
   ============================================================ */

/* ---------- Container ---------- */
.resume-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3rem, 8vw, 8rem);
  width: 100%;
  max-width: 1200px;
  margin-top: 0.5rem; /* Reduced to pull the elements up as close as possible to the title */
  z-index: 1;
}

/* ---------- Left Column: Resume Preview Image ---------- */
.resume-preview-wrap {
  position: relative;
  flex-shrink: 0;
  width: clamp(360px, 45vw, 550px); /* Significantly increased frame size */
  aspect-ratio: 1 / 1.414; /* Standard A4 paper ratio */
}

/* Outer background glow */
.resume-preview-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.resume-preview-wrap:hover .resume-preview-glow {
  opacity: 1;
}

/* Glass card holder */
.resume-preview-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #ffffff; /* Clean paper white background */
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.resume-preview-wrap:hover .resume-preview-card {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(6, 182, 212, 0.12); /* Subtle glow on hover */
}

.resume-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Fit the entire resume sheet without cropping any info */
  display: block;
  background: #ffffff;
  filter: brightness(0.98);
  transition: filter 0.4s ease;
}

.resume-preview-wrap:hover .resume-img {
  filter: brightness(1.02);
}

/* Glass shimmer overlay */
.resume-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.02) 100%
  );
  pointer-events: none;
}

/* ---------- Right Column: Info & Download Controls ---------- */
.resume-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -30px; /* Nudges download button slightly higher on desktop */
}

/* Glassmorphic Download Button */
.resume-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.download-icon {
  stroke: var(--accent-2); /* Cyan icon */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.4s ease;
}

/* Button Shimmer / Glow Overlay */
.resume-download-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.15) 0%,
    rgba(168, 85, 247, 0.15) 100%
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

/* Button Hover State */
.resume-download-btn:hover {
  border-color: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: 
    0 12px 30px rgba(6, 182, 212, 0.15),
    0 0 15px rgba(168, 85, 247, 0.1);
  color: #ffffff;
}

.resume-download-btn:hover::before {
  opacity: 1;
}

.resume-download-btn:hover .download-icon {
  transform: translateY(3px) scale(1.1);
  stroke: #ffffff;
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .resume-container {
    gap: 3.5rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .resume-container {
    flex-direction: column;
    gap: 1.8rem; /* Reduced gap to pull download button closer up to the card */
    align-items: center;
    text-align: center;
  }

  .resume-preview-wrap {
    width: clamp(280px, 70vw, 440px); /* Larger frame on mobile */
  }

  .resume-info {
    align-items: center;
    max-width: 100%;
    padding: 0 1rem;
    margin-top: 0; /* Reset desktop margin shift */
  }

  .resume-download-btn {
    padding: 14px 28px;
    font-size: 0.85rem;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .resume-preview-wrap {
    width: 260px; /* Larger frame on small mobile */
  }
}
