/* ========================================
   PORTOFOLIO SALESYA — Main Stylesheet
   Pink Kawaii Theme 🌸
   ======================================== */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=Dancing+Script:wght@600;700&display=swap');
@import url('animations.css');
@import url('responsive.css');

/* ---------- CSS Variables ---------- */
:root {
  /* Pink Palette */
  --pink-50:  #FFF0F5;
  --pink-100: #FFD6E7;
  --pink-200: #FFB3C6;
  --pink-300: #FF8FAB;
  --pink-400: #FF6B9D;
  --pink-500: #FF4785;
  --pink-600: #E8306E;
  --pink-700: #C41F57;

  /* Lavender Accent */
  --lavender-100: #EDE7FF;
  --lavender-300: #C9B8FF;
  --lavender-500: #9B8AFB;

  /* Neutral */
  --white:     #FFFFFF;
  --cream:     #FFFAF9;
  --gray-100:  #F8F0F4;
  --gray-300:  #D4B8C5;
  --gray-500:  #9E7A8A;
  --gray-700:  #5C3D4A;
  --dark:      #2D1B24;

  /* Gradients */
  --gradient-hero:   linear-gradient(135deg, #FFF0F5 0%, #FFD6E7 40%, #EDE7FF 100%);
  --gradient-pink:   linear-gradient(135deg, #FF6B9D 0%, #FF8FAB 50%, #FFB3C6 100%);
  --gradient-card:   linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,214,231,0.5) 100%);
  --gradient-footer: linear-gradient(135deg, #FF6B9D 0%, #C9B8FF 100%);

  /* Shadows */
  --shadow-sm:   0 2px 12px rgba(255,107,157,0.12);
  --shadow-md:   0 8px 30px rgba(255,107,157,0.18);
  --shadow-lg:   0 16px 50px rgba(255,107,157,0.25);
  --shadow-card: 0 8px 32px rgba(255,107,157,0.15), 0 2px 8px rgba(201,184,255,0.12);

  /* Typography */
  --font-body:    'Nunito', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --font-accent:  'Dancing Script', cursive;

  /* Sizing */
  --navbar-h: 70px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h);
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--gray-700);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- Selection Style ---------- */
::selection {
  background: var(--pink-200);
  color: var(--pink-700);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--pink-50); }
::-webkit-scrollbar-thumb {
  background: var(--pink-300);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--pink-400); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.3;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { color: var(--gray-500); }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Utilities ---------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  margin-bottom: 12px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: var(--gradient-pink);
  border-radius: var(--radius-full);
}

.section-title p {
  font-size: 1rem;
  color: var(--gray-500);
  margin-top: 16px;
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--pink-100);
  color: var(--pink-600);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-h);
  z-index: 1000;
  transition: var(--transition);
  padding: 0 5%;
}

.navbar.scrolled {
  background: rgba(100, 3, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  color: var(--pink-500);
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition-fast);
}

.nav-logo:hover { color: var(--pink-600); transform: scale(1.05); }

.nav-logo span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--pink-400);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  animation: bounce 1.5s ease infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--pink-500);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--pink-100);
  color: var(--pink-600);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--pink-500);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-h);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.hero-bg-shapes .shape-1 {
  width: 400px; height: 400px;
  background: var(--pink-300);
  top: -120px; right: -80px;
  animation: float 7s ease-in-out infinite;
}

.hero-bg-shapes .shape-2 {
  width: 280px; height: 280px;
  background: var(--lavender-300);
  bottom: -60px; left: -80px;
  animation: float 9s ease-in-out infinite reverse;
}

.hero-bg-shapes .shape-3 {
  width: 180px; height: 180px;
  background: var(--pink-200);
  top: 60%; left: 30%;
  animation: float 6s ease-in-out infinite 2s;
}

/* Canvas particles */
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 60px;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Profile photo */
.hero-photo-wrapper {
  flex-shrink: 0;
  position: relative;
}

.hero-photo-ring {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  padding: 6px;
  background: var(--gradient-pink);
  animation: ring-spin 8s linear infinite;
  box-shadow: var(--shadow-lg);
}

.hero-photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
}

/* Floating emoji badges */
.hero-badge {
  position: absolute;
  background: white;
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gray-700);
  white-space: nowrap;
}

.hero-badge-1 { top: 10px; right: -30px; animation: float 4s ease-in-out infinite; }
.hero-badge-2 { bottom: 20px; left: -30px; animation: float 5s ease-in-out infinite 1s; }

/* Hero text */
.hero-text { flex: 1; }

.hero-greeting {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--pink-500);
  margin-bottom: 8px;
  display: block;
}

.hero-text h1 {
  margin-bottom: 12px;
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 16px;
  min-height: 1.8em;
}

#typewriter-text {
  color: var(--pink-500);
  border-right: 2px solid var(--pink-400);
  animation: blink-cursor 0.8s step-end infinite;
}

.hero-desc {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn:hover::before { transform: scaleX(1); }

.btn-primary {
  background: var(--gradient-pink);
  color: white;
  box-shadow: 0 6px 24px rgba(255,107,157,0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255,107,157,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--pink-500);
  border-color: var(--pink-300);
}

.btn-outline:hover {
  background: var(--pink-50);
  border-color: var(--pink-400);
  transform: translateY(-3px);
}

/* ============================================================
   ABOUT / BIODATA SECTION
   ============================================================ */
#about {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-photo-col {
  position: relative;
}

.about-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.about-photo-frame img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-photo-frame:hover img { transform: scale(1.05); }

.about-photo-deco {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gradient-pink);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.about-photo-deco-2 {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: var(--lavender-300);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0.5;
}

.about-tag {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: white;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-tag-icon {
  width: 40px; height: 40px;
  background: var(--pink-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.about-tag p { font-size: 0.75rem; color: var(--gray-500); margin: 0; }
.about-tag strong { font-size: 0.9rem; color: var(--dark); display: block; }

/* About text */
.about-text .tag { margin-bottom: 12px; }

.about-text h2 {
  margin-bottom: 8px;
}

.about-text > p {
  margin-bottom: 24px;
}

/* Info table */
.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 28px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.info-item .info-icon {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.78rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  font-weight: 700;
}

.info-value {
  font-size: 0.92rem;
  color: var(--gray-700);
  font-weight: 600;
}

/* Skills */
.skills-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.skill-item {
  margin-bottom: 14px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
}

.skill-bar {
  height: 10px;
  background: var(--pink-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--gradient-pink);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   EDUCATION SECTION
   ============================================================ */
#education {
  background: var(--pink-50);
}

.timeline {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  top: 0;
  bottom: 0;
  background: linear-gradient(to bottom, var(--pink-200), var(--lavender-300));
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 50px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

/* Dot on timeline */
.timeline-dot {
  position: absolute;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(255,107,157,0.35);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -25px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -25px;
}

.timeline-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--pink-100);
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline-year {
  display: inline-block;
  padding: 3px 12px;
  background: var(--pink-100);
  color: var(--pink-600);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.timeline-card .institution {
  font-size: 0.88rem;
  color: var(--pink-400);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0;
}

/* ============================================================
   EXPERIENCE SECTION
   ============================================================ */
#experience {
  background: white;
}

.experience-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.exp-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--pink-100);
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: var(--transition);
}

.exp-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.exp-card:nth-child(even) {
  direction: rtl;
}

.exp-card:nth-child(even) > * {
  direction: ltr;
}

/* Carousel inside exp-card */
.exp-carousel {
  position: relative;
  overflow: hidden;
  background: var(--pink-100);
  min-height: 280px;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition-fast);
  color: var(--pink-500);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.carousel-btn:hover {
  background: var(--pink-400);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background: white;
  width: 20px;
  border-radius: 4px;
}

/* Exp info side */
.exp-info {
  padding: 30px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exp-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--pink-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.exp-info h3 {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.exp-role {
  font-size: 0.9rem;
  color: var(--lavender-500);
  font-weight: 600;
  margin-bottom: 14px;
}

.exp-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 18px;
  line-height: 1.8;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ============================================================
   CERTIFICATES SECTION
   ============================================================ */
#certificates {
  background: var(--pink-50);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.cert-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--pink-100);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  group: true;
}

.cert-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.cert-img-wrap {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cert-card:hover .cert-img-wrap img {
  transform: scale(1.08);
}

.cert-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,107,157,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.cert-card:hover .cert-overlay { opacity: 1; }

.cert-overlay span {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

.cert-info {
  padding: 16px 18px;
}

.cert-info h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.cert-info p {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 0;
}

/* Certificate Modal (Lightbox) */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cert-modal.open {
  opacity: 1;
  pointer-events: all;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45,27,36,0.8);
  backdrop-filter: blur(6px);
}

.cert-modal-content {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-modal.open .cert-modal-content {
  transform: scale(1);
}

.cert-modal-content img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: var(--pink-50);
}

.cert-modal-info {
  padding: 20px 24px;
}

.cert-modal-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.cert-modal-info p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin: 0;
}

.cert-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  z-index: 2;
}

.cert-modal-close:hover {
  background: var(--pink-100);
  color: var(--pink-600);
  transform: rotate(90deg);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
  background: white;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Contact left: form */
.contact-form-wrap h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.contact-form-wrap > p {
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--pink-100);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--dark);
  background: var(--pink-50);
  transition: var(--transition-fast);
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--pink-300);
  background: white;
  box-shadow: 0 0 0 4px rgba(255,107,157,0.1);
}

.form-group textarea { min-height: 120px; }

/* Contact right: links & QR */
.contact-info-wrap h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.contact-info-wrap > p {
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--pink-50);
  border: 1px solid var(--pink-100);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.contact-link-item:hover {
  background: var(--pink-100);
  transform: translateX(6px);
  border-color: var(--pink-200);
}

.contact-link-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.link-email .contact-link-icon   { background: #fff5f5; }
.link-ig .contact-link-icon      { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.link-linkedin .contact-link-icon { background: #e8f4fd; }

.contact-link-text { flex: 1; }
.contact-link-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 2px;
}
.contact-link-text span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.contact-link-arrow {
  color: var(--pink-300);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.contact-link-item:hover .contact-link-arrow {
  transform: translateX(4px);
  color: var(--pink-500);
}

/* QR Code */
.contact-qr {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 2px dashed var(--pink-200);
  text-align: center;
}

.contact-qr img {
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
  border-radius: var(--radius-sm);
}

.contact-qr p {
  font-size: 0.82rem;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--gradient-footer);
  padding: 40px 0 30px;
  text-align: center;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  color: white;
  font-weight: 700;
}

.footer-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  margin: 0;
}

.footer-heart {
  font-size: 1.2rem;
  animation: heartbeat 1.4s ease-in-out infinite;
  display: inline-block;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-pink);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
#projects {
  background: var(--pink-50);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 40px;
}

.project-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--pink-100);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Media area (video / image) */
.project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--pink-100);
  overflow: hidden;
}

.project-video,
.project-img-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* By default show image, JS will swap once video loads */
.project-video    { display: block; }
.project-img-fallback { display: none; }

/* Play / pause overlay */
.project-media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 27, 36, 0.25);
  transition: background 0.3s ease;
}

.project-card:hover .project-media-overlay,
.project-media.playing .project-media-overlay {
  background: rgba(45, 27, 36, 0.08);
}

.project-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--pink-500);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.project-play-btn:hover {
  background: var(--pink-500);
  color: white;
  transform: scale(1.12);
}

.project-media.playing .project-play-btn {
  opacity: 0;
}

.project-media.playing:hover .project-play-btn {
  opacity: 1;
}

/* Info area */
.project-info {
  padding: 28px 30px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-type {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--pink-100);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.project-year {
  font-size: 0.78rem;
  color: var(--gray-300);
  font-weight: 600;
}

.project-info h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.project-subtitle {
  font-size: 0.88rem;
  color: var(--lavender-500);
  font-weight: 600;
  margin-bottom: 14px;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
}

/* Tech badge pills */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: white;
}

/* Only resize media assets in Project 2 */
#proj-media-2 .project-video,
#proj-media-2 .project-img-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}


.tech-php     { background: #777BB4; }
.tech-html    { background: #E34F26; }
.tech-css-b   { background: #1572B6; }
.tech-mysql   { background: #00758F; }
.tech-flask   { background: #2D2D2D; }
.tech-ml      { background: linear-gradient(135deg, var(--pink-500), var(--lavender-500)); }
.tech-flutter { background: #54C5F8; color: #0D47A1; }
.tech-sqlite  { background: #0F80CC; }
.tech-android { background: #3DDC84; color: #1B5E20; }

/* ============================================================
   INTERSECTION OBSERVER ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
