/* ============================================================
   DANIELA SILVA — PORTFOLIO
   style.css

   Table of Contents:
   1.  Variables & Reset
   2.  Base / Body
   3.  Video Overlay
   4.  Header & Navigation
   5.  Section Base (shared layout)
   6.  Section: Home
   7.  Section: About
   8.  Section: Skills
   9.  Section: Projects
   10. Section: Contact
   11. Footer
   12. Modal
   13. Utility Classes (reveal, buttons, tags)
   14. Animations & Keyframes
   15. Responsive / Media Queries
   ============================================================ */


/* ─────────────────────────────────────────────
   1. VARIABLES & RESET
   ───────────────────────────────────────────── */
:root {
  --color-pink:        #ff2d78;
  --color-violet:      #9b00ff;
  --color-pink-light:  #ffb3d1;
  --color-dark:        #050010;
  --color-dark-soft:   rgba(5, 0, 16, 0.75);
  --color-white:       #ffffff;
  --color-text-muted:  rgba(255, 255, 255, 0.62);

  --gradient-pink: linear-gradient(90deg, var(--color-pink), var(--color-violet));

  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-pill: 999px;

  --transition: 0.3s ease;

  --font-main: 'Poppins', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


/* ─────────────────────────────────────────────
   2. BASE / BODY
   ───────────────────────────────────────────── */
body {
  font-family: var(--font-main);
  background-color: var(--color-dark);
  color: var(--color-white);
  overflow-x: hidden;
  line-height: 1.6;
}


/* ─────────────────────────────────────────────
   3. VIDEO OVERLAY
   Fixed behind everything, pink shimmer effect
   ───────────────────────────────────────────── */
#video-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

#video-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
  mix-blend-mode: screen;
}


/* ─────────────────────────────────────────────
   4. HEADER & NAVIGATION
   ───────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 0, 16, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(155, 0, 255, 0.15);
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}

/* Underline indicator on hover */
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-pink);
  border-radius: 2px;
  transition: width var(--transition);
}

nav a:hover {
  color: var(--color-white);
}

nav a:hover::after {
  width: 100%;
}

/* Mobile hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}


/* ─────────────────────────────────────────────
   5. SECTION BASE (shared layout)
   Every section has:
    - .section-bg  → the background image layer
    - .section-scrim → dark gradient on top of bg
    - .container   → max-width content wrapper
   ───────────────────────────────────────────── */
section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

/* Background image layer — positioned behind content */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  /* NOTE: background-attachment: fixed is intentionally NOT used
     as it causes blank backgrounds without a local server */
}

/* Dark gradient scrim over background image */
.section-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Content wrapper */
.container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}


/* ─────────────────────────────────────────────
   6. SECTION: HOME
   ───────────────────────────────────────────── */
#home .section-bg {
  background-image: url('../assets/images/dani1.jpg');
  background-position: center top;
}

#home .section-scrim {
  background: linear-gradient(
    110deg,
    rgba(5, 0, 16, 0.91) 45%,
    rgba(60, 0, 120, 0.28) 100%
  );
}

/* Two-column grid: text left, photo right */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: 100vh;
  padding: 7rem 0 4rem;
}

.home-text {
  animation: fadeInLeft 0.9s ease both;
}

/* "Java • Fullstack • Cloud" badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 45, 120, 0.1);
  border: 1px solid rgba(255, 45, 120, 0.4);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-pink-light);
  margin-bottom: 1.5rem;
}

.pill .dot {
  opacity: 0.4;
}

.hero-name {
  font-size: clamp(3.5rem, 7vw, 5.8rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.hero-name .first {
  display: block;
  color: var(--color-white);
}

.hero-name .last {
  display: block;
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.stats-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* Hero photo — right column */
.home-photo {
  display: flex;
  justify-content: flex-end;
  animation: fadeInRight 0.9s ease 0.2s both;
}

.photo-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
}

/* Glowing border effect behind the photo */
.photo-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-pink), var(--color-violet), var(--color-pink));
  background-size: 300% 300%;
  animation: gradientShift 4s ease infinite;
  opacity: 0.65;
  filter: blur(8px);
  z-index: -1;
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
}


/* ─────────────────────────────────────────────
   7. SECTION: ABOUT
   ───────────────────────────────────────────── */
#about .section-bg {
  background-image: url('../assets/images/dani6.png');
}

#about .section-scrim {
  background: linear-gradient(
    135deg,
    rgba(5, 0, 16, 0.83) 0%,
    rgba(55, 0, 100, 0.7) 100%
  );
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
  padding: 8rem 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-pink);
  margin-bottom: 0.7rem;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-title .accent {
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Personal info card */
.info-card {
  margin-top: 1.8rem;
  padding: 1.4rem 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 45, 120, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-row {
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
  align-items: baseline;
}

.info-row strong {
  color: var(--color-pink-light);
  min-width: 90px;
  font-weight: 600;
  flex-shrink: 0;
}

.info-row span {
  color: rgba(255, 255, 255, 0.65);
}

/* Round profile photo above info card */
.about-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Wrapper handles the gradient border */
.about-avatar-frame {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  padding: 4px;
  background: var(--gradient-pink);
  box-shadow: 0 0 40px rgba(255, 45, 120, 0.45);
}

/* Pulse ring behind the frame */
.about-avatar-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 45, 120, 0.25);
  animation: pulseRing 2.5s ease-in-out infinite;
}

/* Second outer pulse ring, offset */
.about-avatar-frame::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(155, 0, 255, 0.15);
  animation: pulseRing 2.5s ease-in-out infinite 0.8s;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* Dark ring between border and photo */
  outline: 3px solid var(--color-dark);
  transition: transform 0.4s ease;
}

.about-avatar-frame:hover img {
  transform: scale(1.06);
}

/* Pause spin on hover, increase glow */
.about-avatar-frame:hover {
  box-shadow:
    0 0 60px rgba(255, 45, 120, 0.65),
    0 0 100px rgba(155, 0, 255, 0.3);
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%       { transform: scale(1.08); opacity: 0;   }
}

.about-body p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
  margin-bottom: 1.1rem;
  font-size: 0.97rem;
}

.about-body .btn-primary {
  margin-top: 0.5rem;
}


/* ─────────────────────────────────────────────
   8. SECTION: SKILLS
   ───────────────────────────────────────────── */
#skills .section-bg {
  background-image: url('../assets/images/dani3.jpg');
}

#skills .section-scrim {
  background: linear-gradient(
    135deg,
    rgba(5, 0, 16, 0.85) 0%,
    rgba(65, 0, 120, 0.65) 100%
  );
}

.skills-wrapper {
  padding: 8rem 0;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.3rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 45, 120, 0.15);
  border-radius: 18px;
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

/* Gradient top border revealed on hover */
.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-pink);
  opacity: 0;
  transition: opacity var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 45, 120, 0.35);
  background: rgba(255, 255, 255, 0.065);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-pink-light);
  margin-bottom: 0.9rem;
}


/* ─────────────────────────────────────────────
   9. SECTION: PROJECTS
   ───────────────────────────────────────────── */
#projects .section-bg {
  background-image: url('../assets/images/dani5.png');
}

#projects .section-scrim {
  background: linear-gradient(
    135deg,
    rgba(5, 0, 16, 0.87) 0%,
    rgba(45, 0, 90, 0.68) 100%
  );
}

.projects-wrapper {
  padding: 8rem 0;
  width: 100%;
}

/* Category filter buttons */
.filter-row {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.5rem 0 3rem;
}

.filter-btn {
  padding: 0.48rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--color-pink);
  color: var(--color-white);
  background: rgba(255, 45, 120, 0.12);
}

/* Project cards grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.7rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 45, 120, 0.16);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 45, 120, 0.5);
  box-shadow: 0 20px 50px rgba(255, 45, 120, 0.2);
}

.project-thumbnail {
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, rgba(255, 45, 120, 0.13), rgba(140, 0, 255, 0.13));
}

.project-body {
  padding: 1.3rem;
}

.project-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  background: linear-gradient(90deg, #fff, var(--color-pink-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-body p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0.45rem 0 0.8rem;
}

.project-hint {
  font-size: 0.74rem;
  color: var(--color-pink-light);
  opacity: 0.6;
}


/* ─────────────────────────────────────────────
   10. SECTION: CONTACT
   ───────────────────────────────────────────── */
#contact .section-bg {
  background-image: url('../assets/images/dani2.jpg');
}

#contact .section-scrim {
  background: linear-gradient(
    135deg,
    rgba(5, 0, 16, 0.9) 0%,
    rgba(55, 0, 100, 0.7) 100%
  );
}

.contact-wrapper {
  padding: 8rem 0;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin: 2.5rem 0;
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 45, 120, 0.18);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  text-decoration: none;
  transition: all var(--transition);
}

a.contact-item:hover {
  background: rgba(255, 45, 120, 0.1);
  border-color: rgba(255, 45, 120, 0.45);
  transform: translateX(6px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 45, 120, 0.28), rgba(140, 0, 255, 0.28));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-pink-light);
  margin-bottom: 0.1rem;
}

.contact-text span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

.social-row {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--transition);
}

.social-btn:hover {
  border-color: var(--color-pink);
  background: rgba(255, 45, 120, 0.12);
  transform: translateY(-3px);
}

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


/* ─────────────────────────────────────────────
   11. FOOTER
   ───────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.6rem;
  background: rgba(5, 0, 16, 0.98);
  border-top: 1px solid rgba(255, 45, 120, 0.1);
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.8rem;
}


/* ─────────────────────────────────────────────
   12. MODAL
   ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 9999;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: min(820px, 100%);
  background: linear-gradient(135deg, rgba(15, 0, 25, 0.97), rgba(40, 0, 70, 0.97));
  border: 1px solid rgba(255, 45, 120, 0.28);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.68rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.modal-close:hover {
  background: rgba(255, 45, 120, 0.22);
}

.modal-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.3rem;
}

.modal-emoji {
  height: 170px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 45, 120, 0.16), rgba(140, 0, 255, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.6rem;
}

.modal-info p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 0.8rem;
  font-size: 0.93rem;
}

.modal-tech {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
}

.modal-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
  font-size: 0.84rem;
  padding: 0.6rem 1.25rem;
}


/* ─────────────────────────────────────────────
   13. UTILITY CLASSES
   ───────────────────────────────────────────── */

/* Primary button */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-pill);
  background: var(--gradient-pink);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-main);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 24px rgba(255, 45, 120, 0.45);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 44px rgba(255, 45, 120, 0.7);
}

/* Secondary / ghost button */
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-main);
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--color-pink);
  background: rgba(255, 45, 120, 0.1);
  transform: translateY(-3px);
}

/* Tag / pill badge */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: rgba(255, 45, 120, 0.1);
  border: 1px solid rgba(255, 45, 120, 0.22);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  cursor: default;
  transition: all 0.2s;
}

.tag:hover {
  background: rgba(255, 45, 120, 0.25);
  border-color: var(--color-pink);
  color: var(--color-white);
}

/* Scroll-reveal animation base state */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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


/* ─────────────────────────────────────────────
   14. ANIMATIONS & KEYFRAMES
   ───────────────────────────────────────────── */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9) translateY(16px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}


/* ─────────────────────────────────────────────
   15. RESPONSIVE / MEDIA QUERIES
   ───────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
    padding: 8rem 0 4rem;
    gap: 2.5rem;
  }

  .home-photo {
    justify-content: center;
  }

  .photo-frame {
    max-width: 320px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 6rem 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  #header {
    padding: 0.9rem 1.2rem;
  }

  /* Hide nav links on mobile, show when .open */
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(5, 0, 16, 0.97);
    padding: 1.4rem 1.8rem;
    gap: 1rem;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 45, 120, 0.15);
    z-index: 999;
  }

  nav ul.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .container {
    padding: 0 1.3rem;
  }

  .skills-wrapper,
  .projects-wrapper,
  .contact-wrapper {
    padding: 5rem 0;
  }

  .about-grid {
    padding: 5rem 0;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-emoji {
    height: 90px;
    font-size: 2.8rem;
  }
}

/*CURREMTLY BUILDING*/
#currently-building{
  padding:120px 0;
  text-align:center;
}

.building-desc{
  max-width:700px;
  margin:20px auto;
  opacity:.85;
}

.building-focus ul{
  list-style:none;
  padding:0;
  margin-top:15px;
}

.building-focus li{
  margin:6px 0;
  opacity:.9;
}



/* ─────────────────────────────────────────────
   HOME: Currently Building bubbles
   ───────────────────────────────────────────── */

.now-building{
  margin: 1.2rem 0 2rem;
}

.nb-label{
  display:block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 0.7rem;
}

.nb-bubbles{
  display:flex;
  flex-wrap:wrap;
  gap: 0.55rem;
}

.bubble{
  display:inline-flex;
  align-items:center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.82);
  background: rgba(255, 45, 120, 0.10);
  border: 1px solid rgba(255, 45, 120, 0.28);
  box-shadow: 0 10px 30px rgba(155,0,255,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.bubble:hover{
  transform: translateY(-2px);
  border-color: rgba(255, 45, 120, 0.55);
  background: rgba(255, 45, 120, 0.16);
}

.live-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-pink);
  display:inline-block;
  margin-right: 10px;
  box-shadow: 0 0 18px rgba(255,45,120,.75);
  animation: livePulse 1.6s ease-in-out infinite;
  transform: translateY(-1px);
}

@keyframes livePulse{
  0%,100%{ opacity:.55; transform: translateY(-1px) scale(1); }
  50%{ opacity:1; transform: translateY(-1px) scale(1.25); }
}

/*för min download button (CV) */
.download-btn{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    transition: 0.3s ease;
}

.download-btn:hover{
    background: rgba(255,255,255,0.08);
}

.btn-text{
    position: relative;
    z-index: 2;
}

/* progress bar */

.progress{
    position: absolute;
    left:0;
    top:0;
    height:100%;
    width:0%;
    background: linear-gradient(90deg,#ff2d95,#a100ff);
    transition: width 1.2s ease;
    z-index:1;
}