/* ============================================
   PORTFOLIO - style.css
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #FFFFFF;
  --bg-section: #FFF1F5;
  --primary: #EC4899;
  --accent: #F472B6;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #FBCFE8;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow-soft: 0 4px 30px rgba(31,41,55,0.06);
  --shadow-card: 0 8px 40px rgba(31,41,55,0.08);
  --glow: 0 0 20px rgba(236,72,153,0.3), 0 0 60px rgba(236,72,153,0.1);
  --glow-sm: 0 0 10px rgba(236,72,153,0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.section-bg { background: var(--bg-section); }

/* ---------- TEXT GRADIENT ---------- */
.text-gradient-pink {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-pink { box-shadow: var(--glow); }
.glow-pink-sm { box-shadow: var(--glow-sm); }

/* ---------- SCROLL PROGRESS ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999; width: 0; transition: width .1s linear;
}

/* ---------- CUSTOM CURSOR ---------- */
.custom-cursor {
  width: 20px; height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%; position: fixed;
  pointer-events: none; z-index: 9999;
  transition: transform .15s ease, opacity .15s ease;
  mix-blend-mode: difference; opacity: 0;
}
.custom-cursor.visible { opacity: 1; }
.custom-cursor.hovering {
  transform: scale(2);
  background: rgba(236,72,153,0.15);
}

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all .3s ease;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}
.nav-inner {
  max-width: 1152px; margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 600;
}
.nav-links { display: flex; gap: 2rem; }
.nav-link {
  font-size: .875rem; font-weight: 500;
  color: var(--text-muted);
  position: relative; transition: color .3s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: .5rem; }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; align-items: center;
  gap: 1rem; padding: 1.5rem 0;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link { font-size: 1rem; font-weight: 500; color: var(--text); transition: color .3s; }
.mobile-link:hover { color: var(--primary); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius-lg);
  background: var(--primary); color: #fff;
  font-size: .875rem; font-weight: 500; font-family: 'Poppins', sans-serif;
  border: none; cursor: pointer;
  transition: transform .3s;
}
.btn-primary:hover { transform: scale(1.05); }
.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); color: var(--text);
  font-size: .875rem; font-weight: 500; font-family: 'Poppins', sans-serif;
  background: transparent; cursor: pointer;
  transition: all .3s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-full { width: 100%; }

/* ---------- SECTION HEADERS ---------- */
.section-subtitle {
  font-size: .875rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .75rem;
  font-family: 'Poppins', sans-serif;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700;
}
.section-header { text-align: center; margin-bottom: 4rem; }

/* ---------- HERO ---------- */
.hero-section {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(64px); pointer-events: none;
  animation: blob-move 7s infinite;
}
.blob-1 { width: 288px; height: 288px; top: 80px; left: -80px; background: rgba(236,72,153,0.1); }
.blob-2 { width: 384px; height: 384px; bottom: 80px; right: 40px; background: rgba(244,114,182,0.1); animation-delay: 2s; }
.blob-3 { width: 256px; height: 256px; top: 50%; left: 50%; background: rgba(236,72,153,0.05); animation-delay: 4s; }

@keyframes blob-move {
  0% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-50px) scale(1.1); }
  66% { transform: translate(-20px,20px) scale(.9); }
  100% { transform: translate(0,0) scale(1); }
}

.hero-inner {
  max-width: 1152px; margin: 0 auto; padding: 6rem 1.5rem 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; position: relative; z-index: 10;
}
.hero-text { order: 1; }
.hero-subtitle {
  font-size: .875rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700;
  line-height: 1.15; margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.1rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 2rem; max-width: 28rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image { order: 2; display: flex; justify-content: center; position: relative; }
.hero-image-glow {
  position: absolute; inset: -16px;
  background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(244,114,182,0.2));
  border-radius: 2rem; filter: blur(32px);
}
.hero-portrait {
  position: relative; width: clamp(260px, 25vw, 384px);
  border-radius: 2rem; box-shadow: var(--shadow-card);
  object-fit: cover; animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-image { order: 1; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
}

/* ---------- ABOUT ---------- */
.about-section { padding: 6rem 0; }
.about-inner {
  max-width: 1152px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-image-wrap {
  overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.about-image-wrap img {
  width: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.about-image-wrap:hover img { transform: scale(1.05) rotate(1deg); }
.about-desc { color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.about-stats { display: flex; gap: 2rem; margin-top: 1.5rem; }
.stat-num { font-size: 1.5rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.stat-label { font-size: .75rem; color: var(--text-muted); margin-top: .25rem; }

@media (max-width: 768px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-stats { justify-content: center; }
  .about-text { text-align: center; }
}

/* ---------- SKILLS / PASSIONS ---------- */
.skills-section { padding: 6rem 0; }
.skills-inner { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.skills-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.skill-card {
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--bg); border: 1px solid var(--border);
  transition: all .3s ease; cursor: default;
}
.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: rgba(236,72,153,0.4);
}
.skill-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-section);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; transition: background .3s;
  color: var(--primary);
}
.skill-card:hover .skill-icon { background: rgba(236,72,153,0.1); }
.skill-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; font-family: 'Poppins', sans-serif; }
.skill-card p { font-size: .875rem; color: var(--text-muted); }

@media (max-width: 1024px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .skills-grid { grid-template-columns: 1fr; } }

/* ---------- GALLERY ---------- */
.gallery-section { padding: 6rem 0; }
.gallery-inner { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.gallery-video {
  margin-bottom: 2.5rem; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  aspect-ratio: 16/9; max-width: 768px; margin-left: auto; margin-right: auto;
}
.gallery-video iframe { width: 100%; height: 100%; border: none; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; grid-auto-rows: 220px;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); cursor: pointer;
}
.gallery-tall { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(236,72,153,0);
  transition: background .3s;
}
.gallery-item:hover .gallery-overlay { background: rgba(236,72,153,0.2); }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

/* ---------- MODAL FIX ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(31,41,55,0.8); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal-content {
  position: relative; display: flex; justify-content: center; align-items: center;
  max-width: 90vw; max-height: 85vh;
  animation: modal-in .3s ease;
}
.modal-content img {
  max-width: 100%; max-height: 85vh;
  width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius-lg);
}
.modal-close {
  position: absolute; top: -12px; right: -12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card); color: var(--text); z-index: 10;
}

/* ---------- CONTACT ---------- */
.contact-section { padding: 6rem 0; }
.contact-inner { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  max-width: 900px; margin: 0 auto;
}
.contact-form {
  background: var(--bg); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-card); border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .375rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: .75rem 1rem; border-radius: 12px;
  background: var(--bg-section); border: 1px solid var(--border);
  font-family: 'Poppins', sans-serif; font-size: .875rem; outline: none;
}
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--bg-section); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all .3s;
}
.social-icon:hover {
  color: var(--primary); transform: translateY(-5px);
  border-color: var(--primary); box-shadow: var(--shadow-soft);
}

/* ---------- FOOTER ---------- */
.footer { padding: 2rem 0; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1152px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal-fade-up, .reveal-slide-left, .reveal-slide-right, .reveal-scale {
  opacity: 0; transition: opacity .6s ease, transform .6s ease;
}
.revealed { opacity: 1 !important; transform: translate(0) scale(1) !important; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  background: var(--text); color: #fff; padding: 1rem 1.5rem;
  border-radius: 12px; font-size: .875rem; box-shadow: var(--shadow-card);
}