/* ============================================================
   VIKKI PORTFOLIO — Premium White & Purple Theme
   ============================================================ */

:root {
  --purple-light: #c8b4f0;
  --purple-mid:   #9b6dff;
  --purple-deep:  #6c3fc8;
  --purple-dark:  #3d1a78;
  --white:        #ffffff;
  --off-white:    #f8f5ff;
  --cream:        #f0ebff;
  --text-dark:    #1a1025;
  --text-mid:     #4a3460;
  --text-light:   #8a7aa0;
  --border:       rgba(155, 109, 255, 0.2);
  --shadow-sm:    0 2px 20px rgba(108, 63, 200, 0.08);
  --shadow-md:    0 8px 40px rgba(108, 63, 200, 0.15);
  --shadow-lg:    0 20px 80px rgba(108, 63, 200, 0.25);
  --nav-h:        72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: none;
}

/* ---- CUSTOM CURSOR ---- */
.cursor {
  width: 8px; height: 8px;
  background: var(--purple-mid);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s;
}
.cursor-follower {
  width: 32px; height: 32px;
  border: 1.5px solid var(--purple-mid);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
  opacity: 0.6;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 3px; }

/* ---- NAV ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-logo {
  display: flex; align-items: center; gap: 2px;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  text-decoration: none;
  position: relative;
}
.logo-v { color: var(--purple-mid); font-weight: 900; }
.logo-rest { color: var(--text-dark); font-weight: 700; }
.logo-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple-mid);
  margin-left: 2px; margin-top: 16px;
}

.nav-links {
  display: flex; list-style: none; gap: 36px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-link {
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--text-mid); text-decoration: none; text-transform: uppercase;
  position: relative; transition: color 0.2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1.5px; background: var(--purple-mid);
  transform: scaleX(0); transition: transform 0.25s;
}
.nav-link:hover, .nav-link.active { color: var(--purple-mid); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.admin-btn {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--purple-mid);
  border: 1.5px solid var(--purple-mid);
  padding: 6px 18px; border-radius: 100px;
  text-decoration: none; transition: all 0.2s;
}
.admin-btn:hover { background: var(--purple-mid); color: white; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none;
  padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-dark); border-radius: 2px;
  transition: all 0.3s;
}

/* ---- SECTIONS ---- */
.section { min-height: 100vh; position: relative; }
.section-container { max-width: 1100px; margin: 0 auto; padding: 120px 48px; }
.section-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--purple-mid);
  margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ''; width: 32px; height: 1.5px; background: var(--purple-mid);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700; line-height: 1.15;
  color: var(--text-dark); margin-bottom: 40px;
}
.section-title em { color: var(--purple-mid); font-style: italic; }

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- HERO ---- */
.hero-section {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, var(--off-white) 0%, #ede4ff 50%, #f8f0ff 100%);
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.45;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #c8b4f0 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #9b6dff 0%, transparent 70%);
  bottom: 0; left: -100px; opacity: 0.3;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #e0d4ff 0%, transparent 70%);
  top: 40%; left: 35%;
  animation: orbFloat 6s ease-in-out infinite 2s;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(155,109,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,109,255,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 680px; padding: 0 24px; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--purple-deep);
  background: rgba(155,109,255,0.1); border: 1px solid var(--border);
  padding: 7px 18px; border-radius: 100px; margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05; margin-bottom: 16px;
  animation: fadeUp 0.9s ease 0.1s both;
}
.title-line {
  display: block; color: var(--text-dark);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem); font-weight: 400;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  margin-bottom: 4px;
}
.title-name {
  display: block;
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-mid) 50%, var(--purple-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}
.hero-sub {
  font-size: 1.05rem; font-weight: 400; letter-spacing: 0.06em;
  color: var(--text-mid); margin-bottom: 20px;
  text-transform: uppercase;
  animation: fadeUp 0.9s ease 0.2s both;
}
.hero-desc {
  font-size: 1.08rem; color: var(--text-mid); line-height: 1.75;
  margin-bottom: 36px;
  animation: fadeUp 0.9s ease 0.3s both;
}
.hero-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeUp 0.9s ease 0.4s both;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 14px 32px; border-radius: 100px;
  text-decoration: none; cursor: none; transition: all 0.25s;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-mid));
  color: white; box-shadow: 0 6px 30px rgba(108,63,200,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(108,63,200,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--purple-deep);
  border: 1.5px solid var(--purple-mid);
}
.btn-ghost:hover {
  background: rgba(155,109,255,0.08);
  transform: translateY(-2px);
}
.full-width { width: 100%; justify-content: center; }

.hero-stats {
  display: flex; align-items: center; gap: 32px; justify-content: center;
  animation: fadeUp 0.9s ease 0.5s both;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--purple-deep); line-height: 1;
}
.stat-label {
  display: block; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-light); margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--purple-light), transparent);
}

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-light);
  animation: fadeUp 1s ease 1s both;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--purple-mid), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- ABOUT ---- */
.about-section {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-text {
  font-size: 1.05rem; line-height: 1.85; color: var(--text-mid);
  margin-bottom: 20px;
}
.about-tags {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px;
}
.tag {
  font-size: 0.82rem; font-weight: 500;
  padding: 7px 16px; border-radius: 100px;
  background: var(--cream); color: var(--purple-deep);
  border: 1px solid var(--border);
}

/* About card */
.about-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 40px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple-mid), var(--purple-light));
}
.about-avatar {
  position: relative; width: 88px; height: 88px; margin: 0 auto 20px;
}
.avatar-ring {
  position: absolute; inset: -4px;
  border-radius: 50%; padding: 3px;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-light));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--purple-mid), var(--purple-light)) 1;
  border-radius: 50%;
  animation: rotateBorder 4s linear infinite;
}
.avatar-inner {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-mid));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 2.4rem;
  font-weight: 900; color: white;
}
@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}
.card-name {
  text-align: center; font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; margin-bottom: 4px;
}
.card-role {
  text-align: center; color: var(--purple-mid);
  font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 28px;
}
.card-skills { display: flex; flex-direction: column; gap: 14px; }
.skill-bar {
  display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; align-items: center;
}
.skill-name { font-size: 0.82rem; font-weight: 500; color: var(--text-mid); }
.bar {
  height: 5px; background: rgba(155,109,255,0.15); border-radius: 10px;
  overflow: hidden;
}
.bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple-mid));
  border-radius: 10px; transition: width 1.2s ease;
}
.skill-pct {
  font-size: 0.75rem; color: var(--purple-mid); text-align: right;
}

/* ---- WORK ---- */
.work-section { background: var(--cream); border-top: 1px solid var(--border); }

.filter-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px;
}
.filter-btn {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 9px 22px; border-radius: 100px;
  background: transparent; border: 1.5px solid var(--border);
  color: var(--text-mid); cursor: none; transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--purple-mid); color: white;
  border-color: var(--purple-mid);
}

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
}
.project-card {
  background: white; border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; cursor: none; transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.5s ease both;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  background: linear-gradient(135deg, var(--cream), var(--purple-light));
}
.project-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #ede4ff, #c8b4f0);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.project-body { padding: 24px; }
.project-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--purple-mid);
  background: rgba(155,109,255,0.1); padding: 4px 12px;
  border-radius: 100px; display: inline-block; margin-bottom: 12px;
}
.project-title {
  font-family: 'Playfair Display', serif; font-size: 1.25rem;
  font-weight: 700; color: var(--text-dark); margin-bottom: 8px;
}
.project-desc {
  font-size: 0.9rem; color: var(--text-light); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-footer {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.project-view-btn {
  font-size: 0.8rem; font-weight: 600; color: var(--purple-mid);
  letter-spacing: 0.05em; background: none; border: none; cursor: none;
}

.projects-empty {
  grid-column: 1 / -1; text-align: center; padding: 80px;
  color: var(--text-light); font-style: italic; font-size: 1.1rem;
}

/* ---- SERVICES ---- */
.services-section { background: var(--white); border-top: 1px solid var(--border); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.service-card {
  padding: 36px 28px; background: var(--off-white);
  border: 1px solid var(--border); border-radius: 20px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple-mid));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2.4rem; margin-bottom: 18px; display: block; }
.service-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
  margin-bottom: 12px; color: var(--text-dark);
}
.service-card p { font-size: 0.93rem; color: var(--text-mid); line-height: 1.7; }

/* ---- CONTACT ---- */
.contact-section { background: var(--off-white); border-top: 1px solid var(--border); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start;
}
.contact-intro {
  font-size: 1.05rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 36px;
}
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.95rem; font-weight: 500; color: var(--text-dark);
  text-decoration: none; padding: 14px 20px;
  background: white; border: 1px solid var(--border); border-radius: 14px;
  transition: all 0.2s;
}
.contact-link:hover {
  border-color: var(--purple-mid);
  box-shadow: 0 4px 20px rgba(155,109,255,0.15);
  transform: translateX(4px);
}
.contact-icon { font-size: 1.2rem; }

.contact-form {
  background: white; border: 1px solid var(--border); border-radius: 24px; padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-mid); margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  color: var(--text-dark); background: var(--off-white);
  border: 1.5px solid var(--border); border-radius: 12px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(155,109,255,0.12);
}
.form-note {
  margin-top: 14px; text-align: center; font-size: 0.85rem; color: var(--purple-mid);
  min-height: 20px;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--text-dark); padding: 40px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  font-weight: 700; color: white;
}
.footer-dot { color: var(--purple-mid); }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-admin-link {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--purple-light); text-decoration: none; opacity: 0.6;
  transition: opacity 0.2s;
}
.footer-admin-link:hover { opacity: 1; }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(26,16,37,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: 24px; max-width: 640px; width: 100%;
  overflow: hidden; box-shadow: var(--shadow-lg);
  transform: scale(0.95); transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 22px;
  background: rgba(155,109,255,0.1); border: none;
  color: var(--text-dark); font-size: 1rem; width: 36px; height: 36px;
  border-radius: 50%; cursor: none; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.modal-close:hover { background: var(--purple-mid); color: white; }
.modal { position: relative; }
.modal-img-wrap { position: relative; }
.modal-img-wrap img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: none; }
.modal-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--cream), var(--purple-light));
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
}
.modal-body { padding: 32px; }
.modal-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--purple-mid);
  background: rgba(155,109,255,0.1); padding: 5px 14px;
  border-radius: 100px; display: inline-block; margin-bottom: 16px;
}
.modal-title {
  font-family: 'Playfair Display', serif; font-size: 1.8rem;
  font-weight: 700; margin-bottom: 12px;
}
.modal-desc { font-size: 1rem; color: var(--text-mid); line-height: 1.75; }
.modal-meta { margin-top: 20px; display: flex; gap: 20px; flex-wrap: wrap; }
.modal-meta span {
  font-size: 0.82rem; color: var(--text-light);
  display: flex; align-items: center; gap: 6px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  #navbar { padding: 0 24px; }
  .nav-links { display: none; position: fixed; inset: var(--nav-h) 0 0 0;
    flex-direction: column; justify-content: center; align-items: center;
    background: rgba(255,255,255,0.97); z-index: 999; gap: 32px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-container { padding: 80px 24px; }
  .hero-stats { gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}
