/*
Theme Name: Bhumika Barasiya Portfolio
Theme URI: https://bhumikabarasiya.dev
Author: Bhumika Barasiya
Version: 1.0.0
Description: Custom WordPress Portfolio Theme
*/

:root {
  --color-primary: #6C63FF;
  --color-secondary: #8B5CF6;
  --color-accent: #06B6D4;
  --color-bg: #F8FAFC;
  --color-dark: #0F172A;
  --color-text: #334155;

  --font-display: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: #334155;
  background-color: #F8FAFC !important;
  cursor: none;
  overflow-x: hidden;
}

/* Fix WP Admin Bar overlap */

body.admin-bar #mainNav {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar #mainNav {
    top: 46px !important;
  }
}

@media (max-width: 900px), (hover: none) {
  body { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

h1, h2, h3, h4, .font-display {
  font-family: 'Fraunces', serif !important;
}
.font-mono {
  font-family: 'JetBrains Mono', monospace !important;
}

::selection {
  background: #6C63FF;
  color: #fff;
}

/* Custom Cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #6C63FF;
  transition: opacity 0.2s;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(108, 99, 255, 0.5);
  transition: width 0.25s var(--ease-out-quart), height 0.25s var(--ease-out-quart),
              border-color 0.25s, background 0.25s, opacity 0.2s;
}
.cursor-ring.is-active {
  width: 64px;
  height: 64px;
  background: rgba(108, 99, 255, 0.08);
  border-color: #06B6D4;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
}
.glass-dark {
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Text & Background Gradients */
.text-gradient {
  background: linear-gradient(115deg, #6C63FF 10%, #8B5CF6 55%, #06B6D4 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.gradient-mesh {
  background:
    radial-gradient(38% 38% at 12% 18%, rgba(108, 99, 255, 0.35) 0%, rgba(108, 99, 255, 0) 70%),
    radial-gradient(45% 45% at 85% 15%, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0) 70%),
    radial-gradient(50% 50% at 50% 100%, rgba(6, 182, 212, 0.22) 0%, rgba(6, 182, 212, 0) 70%);
  background-size: 200% 200%;
  animation: meshDrift 18s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { background-position: 0% 0%, 100% 0%, 50% 100%; }
  50% { background-position: 20% 30%, 80% 30%, 60% 80%; }
}

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #6C63FF, #8B5CF6, #06B6D4);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ==========================================================================
   BHUMIKA METHOD - LETTER TILES FIX
   ========================================================================== */
.letter-tile {
  position: relative !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 1.5rem !important;
  transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart), border-color 0.4s ease !important;
}
.letter-tile:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(108, 99, 255, 0.35) !important;
  box-shadow: 0 24px 48px -20px rgba(108, 99, 255, 0.3) !important;
}
.letter-tile .letter-face {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Fraunces', serif !important;
  font-style: italic !important;
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
  opacity: 1 !important;
  transition: opacity 0.4s var(--ease-out-quart), transform 0.4s var(--ease-out-quart) !important;
}
.letter-tile:hover .letter-face {
  opacity: 0 !important;
  transform: scale(0.7) !important;
}
.letter-tile .value-face {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 1rem !important;
  opacity: 0 !important;
  transform: scale(1.08) !important;
  transition: opacity 0.4s var(--ease-out-quart), transform 0.4s var(--ease-out-quart) !important;
}
.letter-tile:hover .value-face {
  opacity: 1 !important;
  transform: scale(1) !important;
}
.letter-tile .value-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  line-height: 1.3 !important;
  color: #0F172A !important;
}
.letter-tile .value-desc {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.68rem !important;
  line-height: 1.4 !important;
  color: rgba(51, 65, 85, 0.55) !important;
  margin-top: 0.4rem !important;
}

/* ==========================================================================
   HERO DUALITY SWITCH & ROTATOR FIX
   ========================================================================== */
.role-word {
  display: inline-block !important;
  opacity: 0 !important;
  transform: translateY(100%) !important;
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo) !important;
}
.role-word.is-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.panel-face {
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo) !important;
}
.panel-face.hidden-face {
  opacity: 0 !important;
  position: absolute !important;
  inset: 0 !important;
  transform: translateY(10px) scale(0.98) !important;
  pointer-events: none !important;
}
.panel-face.active-face {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  position: relative !important;
}

.duality-switch {
  width: 64px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: #0F172A !important;
  position: relative !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}
.duality-switch .knob {
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #6C63FF, #06B6D4) !important;
  transition: transform 0.4s var(--ease-out-expo) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.duality-switch.is-code .knob {
  transform: translateX(30px) !important;
}

/* Timeline */
.timeline-line {
  background: linear-gradient(180deg, #6C63FF, #8B5CF6 50%, #06B6D4) !important;
}
.timeline-dot {
  box-shadow: 0 0 0 6px rgba(108, 99, 255, 0.12) !important;
}

/* Process Steps index */
.process-step .step-index {
  font-family: 'Fraunces', serif !important;
  -webkit-text-stroke: 1.5px rgba(51, 65, 85, 0.35) !important;
  color: transparent !important;
  transition: color 0.4s ease, -webkit-text-stroke 0.4s ease !important;
}
.process-step:hover .step-index {
  color: transparent !important;
  background: linear-gradient(115deg, #6C63FF, #06B6D4) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-stroke: 1.5px transparent !important;
}

/* Shipped Sites Pill Cloud */
.pill-link {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.65rem 1.25rem 0.65rem 0.65rem !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  transition: transform 0.35s var(--ease-out-quart), color 0.3s ease,
              border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease !important;
}
.pill-link::before {
  content: "" !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  background: linear-gradient(135deg, #6C63FF, #06B6D4) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 010 18M12 3a14 14 0 000 18'/%3E%3C/svg%3E") center / 65% no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 010 18M12 3a14 14 0 000 18'/%3E%3C/svg%3E") center / 65% no-repeat !important;
}
.pill-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(108, 99, 255, 0.5) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 28px -10px rgba(108, 99, 255, 0.35) !important;
}

/* Reveal states */
.reveal, .reveal-scale, .reveal-left, .reveal-right {
  opacity: 1 !important;
  transform: none !important;
}


/* Contact Form Fields Fix */
.field-input {
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid rgba(51, 65, 85, 0.25) !important;
  border-radius: 0 !important;
  outline: none !important;
  padding: 0.75rem 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: #0F172A !important;
  width: 100% !important;
  box-shadow: none !important;
}

.field-input:focus {
  border-bottom-color: #6C63FF !important;
  outline: none !important;
}

.field-input::placeholder {
  color: rgba(15, 23, 42, 0.35) !important;
  opacity: 1 !important;
}

/* Skill Cards Fix */
.skill-card {
  position: relative !important;
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 1rem !important;
  padding: 1.5rem !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease !important;
}

.skill-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(108, 99, 255, 0.4) !important;
  box-shadow: 0 20px 40px -15px rgba(108, 99, 255, 0.35) !important;
}

.skill-card .skill-level-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin-top: 1rem;
  overflow: hidden;
}

.skill-card .skill-level {
  display: block !important;
  height: 100% !important;
  width: 100% !important;
  transform: scaleX(0.85);
  transform-origin: left !important;
  background: linear-gradient(90deg, #6C63FF, #06B6D4) !important;
  border-radius: 999px !important;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.skill-card.in-view .skill-level,
.skill-card:hover .skill-level {
  transform: scaleX(var(--level, 0.85)) !important;
}

/* Services Cards Fix */
#services .group {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 1.5rem !important;
  padding: 2rem !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#services .group:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(108, 99, 255, 0.35) !important;
  box-shadow: 0 25px 50px -12px rgba(108, 99, 255, 0.2) !important;
}

#services .group:hover svg,
#services .group:hover div[class*="bg-gradient"] {
  transform: scale(1.08) rotate(4deg);
  transition: transform 0.3s ease;
}


/* Filter Pills Styling */
.filter-pill {
  background: #ffffff;
  color: #0F172A;
  border: 1px solid rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.filter-pill:hover {
  border-color: #6C63FF;
  color: #6C63FF;
}

.filter-pill.is-active {
  background: #0F172A !important;
  color: #ffffff !important;
  border-color: #0F172A !important;
}

/* Post Filtering Hide Rule */
.post-card.is-filtered-out {
  display: none !important;
}

/* Compact Excerpt Clamp */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ==========================================================================
   BLOG PAGINATION STYLING
   ========================================================================== */
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0F172A;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.blog-pagination .page-numbers:hover {
  border-color: #6C63FF;
  color: #6C63FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.15);
}

.blog-pagination .page-numbers.current {
  background: #0F172A !important;
  color: #ffffff !important;
  border-color: #0F172A !important;
}

.blog-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  min-width: 1.5rem;
  padding: 0;
}