/* ==========================================================================
   Scientific & Medical Writing Consultancy Design System & Stylesheet
   ========================================================================== */

/* --- Custom Properties (Warm Bronze & Parchment Palette) --- */
:root {
  --color-bg-primary: #E9DEC6; /* Light Shade of Brown (Parchment) */
  --color-bg-secondary: #DFCFA8; /* Deeper Warm Tan / Ivory */
  --color-bg-accent-section: #D5C095; /* Deeper Warm Sand Accent */
  --color-text-primary: #2B1D12; /* Deep Warm Charcoal-Brown */
  --color-text-secondary: #4E3D30; /* Deep Muted Brown */
  --color-accent-royal: #8E6533; /* Rich Polished Bronze */
  --color-accent-emerald: #AA7E40; /* Warm Metallic Gold */
  --color-gold-premium: #C59D65; /* Premium Gold Highlight */
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(142, 109, 69, 0.18);
  --glass-shadow: 0 20px 45px -15px rgba(43, 29, 18, 0.08), 
                  0 0 0 1px rgba(142, 109, 69, 0.04);
  --glass-shadow-hover: 0 30px 60px -20px rgba(142, 109, 69, 0.15), 
                        0 0 0 1px rgba(142, 109, 69, 0.22);
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  
  /* Smooth scroll speed mapping */
  --cursor-size: 20px;
}

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

html {
  font-size: 16px;
  scroll-behavior: initial; /* Lenis handles smooth scrolling */
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hide default cursor on desktop devices with hover capability */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, select, input, textarea, [data-magnetic] {
    cursor: none;
  }
}

/* --- Typography Utilities --- */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.font-display {
  font-family: var(--font-display);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-primary);
}

p {
  color: var(--color-text-secondary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-accent-royal), var(--color-accent-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

.section-padding {
  padding: 8rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 5rem 0;
  }
}

/* --- Section Headers --- */
.section-header {
  max-width: 700px;
  margin: 0 auto 5rem;
}

.text-center {
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-primary);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.15rem;
  color: var(--color-text-primary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 3.5rem;
  }
  .section-title {
    font-size: 2.25rem;
  }
  .section-description {
    font-size: 1rem;
  }
}

/* --- Custom Cursor --- */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent-royal);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  pointer-events: none;
}

/* Custom cursor hover state changes */
.cursor-hover .cursor-ring {
  width: 48px;
  height: 48px;
  background-color: rgba(37, 99, 235, 0.05);
  border-color: var(--color-accent-royal);
}

@media (hover: none) or (pointer: coarse) {
  #custom-cursor {
    display: none;
  }
}

/* --- Luxury Video Loading Screen --- */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-bg-primary);
  z-index: 10000;
  overflow: hidden;
}

.loader-video-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loader-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Skip intro button styling (Masks corner watermark) */
.skip-loader-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.9rem 2.25rem;
  min-width: 170px;
  background-color: #2B1D12;
  border: 2px solid var(--color-accent-royal);
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.825rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F4ECE1;
  cursor: pointer;
  z-index: 10001;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-loader-btn:hover {
  background-color: var(--color-accent-royal);
  color: #FFFFFF;
  border-color: var(--color-accent-emerald);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}


/* --- Sticky Glass Navigation Header --- */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  transition: background-color 0.4s ease, padding 0.4s ease;
}

.scroll-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent-royal), var(--color-accent-emerald));
  z-index: 10;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.4s ease;
}

/* Logo Link styles */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.site-logo-img {
  height: 52px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-link:hover .site-logo-img {
  transform: scale(1.05);
}

.logo-image-link {
  padding: 4px 0;
}

/* Desktop Nav layout */
.desktop-nav {
  position: relative;
}

.nav-links-wrapper {
  display: flex;
  position: relative;
  background-color: rgba(15, 23, 42, 0.03);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(15, 23, 42, 0.02);
}

.nav-hover-pill {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  background-color: var(--color-bg-primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  border-radius: 20px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-primary);
}

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

/* --- Premium Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-text-primary);
  color: var(--color-bg-primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover {
  background-color: var(--color-accent-royal);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border-color: rgba(15, 23, 42, 0.08);
}

.btn-secondary:hover {
  background-color: var(--color-bg-primary);
  border-color: var(--color-text-primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 0.95rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* --- Frosted Glass Cards --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
  will-change: transform;
}

.glass-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--glass-shadow-hover);
}

/* --- Hero Section --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background-color: var(--color-bg-primary);
  position: relative;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 75% 30%, rgba(245, 250, 255, 0.8) 0%, rgba(250, 248, 245, 0.5) 45%, rgba(255, 255, 255, 0.9) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-image-wrapper {
  position: absolute;
  top: 52%;
  right: 5%;
  transform: translateY(-50%);
  width: 44%;
  height: 60%;
  z-index: 2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(43, 29, 18, 0.2), 
              0 0 0 1px rgba(142, 101, 51, 0.15);
  border: 4px solid rgba(255, 255, 255, 0.45);
}

.hero-desk-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.hero-image-wrapper:hover .hero-desk-img {
  transform: scale(1.03);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(142, 101, 51, 0.05), transparent 60%);
  pointer-events: none;
}

@media (max-width: 992px) {
  #hero {
    flex-direction: column;
    height: auto;
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 50px;
  }
  
  .hero-container {
    display: flex;
    flex-direction: column;
  }

  .hero-image-wrapper {
    position: relative;
    top: 0;
    right: 0;
    transform: none;
    width: 100%;
    height: 380px;
    margin-top: 3rem;
    box-shadow: 0 20px 40px rgba(43, 29, 18, 0.15);
  }
}

.hero-container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 680px;
}

.hero-badge-wrapper {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: badgeFadeUp 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(197, 168, 128, 0.12);
  border: 1px solid rgba(197, 168, 128, 0.3);
  color: var(--color-text-primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-gold-premium);
  border-radius: 50%;
  margin-right: 0.5rem;
  display: inline-block;
  animation: pulseGold 2s infinite;
}

.hero-headline {
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-headline span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) translateZ(0);
  will-change: transform, opacity;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-primary);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.hero-ctas .btn {
  opacity: 0;
  transform: translateY(20px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 4;
  opacity: 0;
}

.scroll-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  opacity: 0.7;
}

.scroll-mouse {
  width: 18px;
  height: 30px;
  border: 1px solid var(--color-text-secondary);
  border-radius: 12px;
  position: relative;
  opacity: 0.7;
}

.scroll-wheel {
  width: 2px;
  height: 6px;
  background-color: var(--color-text-primary);
  border-radius: 1px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheelAnim 1.6s infinite;
}

@keyframes badgeFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGold {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes scrollWheelAnim {
  0% { transform: translate(-50%, 0); opacity: 1; }
  80% { transform: translate(-50%, 8px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

@media (max-width: 992px) {
  .hero-headline {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.5rem;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
}

/* --- Services Section --- */
#services {
  background-color: var(--color-bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 3rem 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  transform-style: preserve-3d;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(37, 99, 235, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(20, 184, 166, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--color-accent-royal);
  transform: translateZ(30px);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.service-icon {
  width: 26px;
  height: 26px;
  transition: transform 0.4s ease;
}

.service-card-title {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1rem;
  transform: translateZ(25px);
  color: var(--color-text-primary);
}

.service-card-text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-text-primary);
  margin-bottom: 2rem;
  flex-grow: 1;
  transform: translateZ(15px);
}

.card-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-accent-royal);
  gap: 0.5rem;
  transform: translateZ(20px);
  transition: color 0.3s ease;
}

.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  background: linear-gradient(135deg, var(--color-accent-royal), var(--color-accent-emerald));
  color: var(--color-bg-primary);
  border-color: transparent;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card:hover .card-link {
  color: var(--color-accent-emerald);
}

.service-card:hover .card-link svg {
  transform: translateX(4px);
}

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

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-card {
    padding: 2.5rem 2rem;
  }
}

/* --- Team Section --- */
#team {
  background-color: var(--color-bg-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  max-width: 960px;
  margin: 0 auto;
}

.team-card {
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transform-style: preserve-3d;
}

.team-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(197, 168, 128, 0.08), transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.team-img-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 2rem;
  border: 4px solid var(--color-bg-primary);
  box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.15), 
              0 0 0 1px rgba(197, 168, 128, 0.25);
  transform: translateZ(40px);
  position: relative;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-info {
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
}

.team-name {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  transform: translateZ(30px);
}

.team-qual {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-gold-premium);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  display: block;
  transform: translateZ(25px);
}

.team-desig-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.5rem;
  margin-bottom: 1.25rem;
  transform: translateZ(20px);
}

.desig-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-primary);
  background: rgba(142, 101, 51, 0.08);
  border: 1px solid rgba(142, 101, 51, 0.22);
  padding: 0.325rem 0.8rem;
  border-radius: 20px;
  line-height: 1.35;
  letter-spacing: 0.015em;
  box-shadow: 0 2px 6px rgba(43, 29, 18, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.desig-chip:hover {
  background: rgba(142, 101, 51, 0.18);
  border-color: var(--color-accent-royal);
  color: var(--color-accent-royal);
  transform: translateY(-1px);
}

.team-spec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  background-color: rgba(20, 184, 166, 0.05);
  color: var(--color-accent-emerald);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  margin: 0 auto 1.5rem;
  transform: translateZ(18px);
}

.spec-dot {
  width: 5px;
  height: 5px;
  background-color: var(--color-accent-emerald);
  border-radius: 50%;
  margin-right: 0.4rem;
}

.team-bio {
  font-size: 0.925rem;
  color: var(--color-text-primary);
  font-weight: 500;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 2rem;
  flex-grow: 1;
  transform: translateZ(10px);
}

.team-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 1.5rem;
  transform: translateZ(15px);
}

.btn-wa-team {
  background-color: rgba(37, 211, 102, 0.08) !important;
  color: #128C7E !important;
  border: 1px solid rgba(37, 211, 102, 0.25) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem !important;
  font-size: 0.825rem !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-wa-team:hover {
  background-color: #25D366 !important;
  color: #FFFFFF !important;
  border-color: #25D366 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-icon-team-wa {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.team-socials {
  display: flex;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

.social-icon-btn:hover {
  background-color: var(--color-text-primary);
  color: var(--color-bg-primary);
  border-color: transparent;
}

.btn-team-contact {
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  border-radius: 20px;
}

.team-card:hover .team-img {
  transform: scale(1.1);
}

.team-card:hover .team-img-wrapper {
  border-color: rgba(197, 168, 128, 0.5);
  box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.2), 
              0 0 0 1px rgba(197, 168, 128, 0.4);
}

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

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .team-card {
    padding: 2.5rem 1.5rem;
  }
}

/* --- Contact Section --- */
#contact {
  background-color: var(--color-bg-accent-section);
  overflow: hidden;
}

.contact-container {
  position: relative;
}

.contact-split {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 4rem;
  align-items: center;
}

.contact-visual {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.contact-visual-text .section-title {
  font-size: 2.75rem;
  line-height: 1.2;
}

#contact-canvas-container {
  width: 100%;
  height: 300px;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: grab;
}

#contact-canvas-container:active {
  cursor: grabbing;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  opacity: 0.7;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.info-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.direct-actions {
  display: flex;
  gap: 1rem;
}

.direct-actions .btn {
  flex: 1;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-wa {
  background-color: #128C7E;
  color: var(--color-bg-primary);
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.2);
}

.btn-wa:hover {
  background-color: #075E54;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.35);
}

/* Contact Form card and overlays */
.contact-form-wrapper {
  padding: 4rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
}

/* Floating labels effect */
.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-primary);
  transition: border-color 0.3s ease;
}

.form-group textarea {
  resize: none;
}

.form-group label {
  position: absolute;
  top: 0.75rem;
  left: 0;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  pointer-events: none;
  transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
  transform-origin: left top;
}

.form-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-royal), var(--color-accent-emerald));
  transition: width 0.3s ease;
}

.form-error-msg {
  position: absolute;
  bottom: -1.25rem;
  left: 0;
  font-size: 0.75rem;
  color: #DC2626;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Float logic triggers via CSS */
.form-group.has-value label,
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-1.25rem) scale(0.85);
  color: var(--color-accent-royal);
}

.form-group input:focus ~ .form-focus-line,
.form-group select:focus ~ .form-focus-line,
.form-group textarea:focus ~ .form-focus-line {
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: transparent;
}

/* Styling native select dropdown options */
.form-group select option {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-bottom-color: #DC2626;
}

.form-group.error label {
  color: #DC2626;
}

.form-group.error .form-error-msg {
  opacity: 1;
}

/* Checkbox Style */
.form-checkbox-group {
  margin-bottom: 2.5rem;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  user-select: none;
  gap: 0.75rem;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 18px;
  height: 18px;
  background-color: transparent;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-checkbox:hover input ~ checkmark {
  border-color: var(--color-accent-royal);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--color-accent-royal);
  border-color: var(--color-accent-royal);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.btn-submit {
  width: 100%;
}

/* Confetti Success Overlay */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-success-overlay.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
}

.success-checkmark {
  width: 100%;
  height: 100%;
  stroke-width: 2;
  stroke: var(--color-accent-emerald);
  stroke-miterlimit: 10;
}

.success-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke: var(--color-accent-emerald);
  fill: none;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.success-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.success-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  max-width: 400px;
  margin-bottom: 2.5rem;
}

@keyframes strokeCircle {
  100% { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
  100% { stroke-dashoffset: 0; }
}

@media (max-width: 992px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .contact-visual {
    text-align: center;
    align-items: center;
  }
  .contact-info-grid {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2.5rem;
  }
  .info-item {
    align-items: center;
    text-align: center;
  }
  .direct-actions {
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  #contact-canvas-container {
    pointer-events: none; /* Prevents capturing touch-scroll actions on mobile/tablet */
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .contact-form-wrapper {
    padding: 2.5rem 1.25rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .form-success-overlay {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 500px) {
  .direct-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .direct-actions .btn {
    width: 100%;
  }
}

/* --- Footer Section --- */
#main-footer {
  background-color: var(--color-bg-primary);
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding: 6rem 0 3rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-brand-column {
  max-width: 380px;
}

.footer-brand-column .logo-link {
  margin-bottom: 1.5rem;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-compliance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-gold-premium);
}

.footer-compliance .divider {
  color: rgba(15, 23, 42, 0.15);
}

/* Footer Link grid */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease, transform 0.3s ease;
  width: fit-content;
}

.footer-col a:hover {
  color: var(--color-accent-royal);
  transform: translateX(4px);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding-top: 2rem;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright-text {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  opacity: 0.8;
}

.btn-top {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-top svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
  }
}

@media (max-width: 640px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom-container {
    flex-direction: column-reverse;
    gap: 1.5rem;
    text-align: center;
  }
}

/* --- Testimonials Section --- */
#testimonials {
  background-color: var(--color-bg-primary);
  overflow: hidden;
  position: relative;
}

.testimonials-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 1.5rem 0 4.5rem;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: scrollMarquee 38s linear infinite;
  padding-left: 2.5rem;
}

/* Hovering on the wrapper pauses the sliding animation */
.testimonials-marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.testimonial-card {
  width: 440px;
  flex-shrink: 0;
  padding: 3.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  border-radius: 20px;
  box-shadow: 0 15px 35px -15px rgba(15, 23, 42, 0.05);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 168, 128, 0.25);
  box-shadow: 0 25px 50px -20px rgba(197, 168, 128, 0.12),
              0 0 0 1px rgba(197, 168, 128, 0.2);
}

.testimonial-rating {
  margin-bottom: 1.5rem;
  color: var(--color-gold-premium);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.testimonial-quote {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-primary);
  font-weight: 500;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 1.25rem;
}

.author-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  margin-bottom: 0.2rem;
}

.author-title {
  font-size: 0.75rem;
  color: var(--color-text-primary);
  font-weight: 500;
  opacity: 0.85;
}

@keyframes scrollMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 640px) {
  .testimonial-card {
    width: 320px;
    padding: 2.25rem 1.75rem;
    min-height: 260px;
  }
}

/* --- Process Section --- */
#process {
  background-color: var(--color-bg-accent-section);
  position: relative;
}

.process-grid-wrapper {
  width: 100%;
  margin-bottom: 5rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.process-step-card {
  padding: 3.5rem 1.25rem 2rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  transform-style: preserve-3d;
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 15px 35px -15px rgba(15, 23, 42, 0.05);
}

.process-step-card:hover {
  transform: translateY(-5px);
  background-color: var(--color-bg-primary);
}

/* Floating badge for step numbers */
.step-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) translateZ(30px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  border: 2px solid white;
}

/* Banners for step names */
.step-title-banner {
  position: absolute;
  top: 28px;
  left: 8%;
  width: 84%;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: white;
  transform: translateZ(20px);
  text-align: center;
}

.step-icon-container {
  margin: 3.5rem auto 1.5rem;
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateZ(25px);
}

.step-illustration {
  width: 100%;
  height: 100%;
}

.step-bullets {
  list-style: none;
  text-align: left;
  font-size: 0.85rem;
  color: var(--color-text-primary);
  font-weight: 500;
  line-height: 1.5;
  margin-top: 1rem;
  flex-grow: 1;
  transform: translateZ(15px);
}

.step-bullets li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.75rem;
}

.bullet-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Connecting arrows between step cards */
.process-arrow {
  position: absolute;
  top: 50%;
  right: -1rem;
  transform: translateY(-50%) translateZ(10px);
  color: var(--color-text-secondary);
  opacity: 0.35;
  z-index: 10;
  pointer-events: none;
}

.process-arrow svg {
  width: 18px;
  height: 18px;
}

/* Theme Colors for Step Badges, Banners, and Dots */
.step-1-bg { background-color: #0f172a; } /* Deep Navy */
.step-1-banner { background-color: #0f172a; }
.step-1-dot { background-color: #0f172a; }

.step-2-bg { background-color: #14b8a6; } /* Teal */
.step-2-banner { background-color: #14b8a6; }
.step-2-dot { background-color: #14b8a6; }

.step-3-bg { background-color: #7c3aed; } /* Purple */
.step-3-banner { background-color: #7c3aed; }
.step-3-dot { background-color: #7c3aed; }

.step-4-bg { background-color: #f43f5e; } /* Coral */
.step-4-banner { background-color: #f43f5e; }
.step-4-dot { background-color: #f43f5e; }

.step-5-bg { background-color: #f59e0b; } /* Gold */
.step-5-banner { background-color: #f59e0b; }
.step-5-dot { background-color: #f59e0b; }

.step-6-bg { background-color: #10b981; } /* Green */
.step-6-banner { background-color: #10b981; }
.step-6-dot { background-color: #10b981; }

/* Bottom Brand Pillars Bar */
.brand-pillars-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2.5rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px -15px rgba(15, 23, 42, 0.05);
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: center;
  position: relative;
}

.pillar-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(15, 23, 42, 0.08);
}

.pillar-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.pillar-icon-circle svg {
  width: 18px;
  height: 18px;
}

.pillar-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

/* Pillar Circle Specific Colors */
.pillar-1-circle { background-color: #0f172a; }
.pillar-2-circle { background-color: #14b8a6; }
.pillar-3-circle { background-color: #7c3aed; }
.pillar-4-circle { background-color: #f43f5e; }
.pillar-5-circle { background-color: #f59e0b; }
.pillar-6-circle { background-color: #10b981; }

/* Responsive adjustments */
@media (max-width: 1380px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
  }
  .process-arrow {
    display: none;
  }
}

@media (max-width: 992px) {
  .brand-pillars-bar {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    gap: 1.5rem;
    border-radius: 24px;
    padding: 2rem;
  }
  .pillar-item:not(:last-child)::after {
    display: none;
  }
}

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

@media (max-width: 540px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .brand-pillars-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
    padding: 1.5rem;
  }
  .pillar-text {
    font-size: 0.78rem;
  }
}

/* --- Publication Portfolio Section --- */
#publications {
  background-color: var(--color-bg-primary);
  position: relative;
}

.portfolio-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.portfolio-metric-card {
  padding: 1.75rem 1.5rem;
  text-align: center;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-metric-card:hover {
  transform: translateY(-4px);
}

.metric-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon-box svg {
  width: 24px;
  height: 24px;
}

.metric-purple { background: rgba(142, 101, 51, 0.12); color: var(--color-accent-royal); }
.metric-teal { background: rgba(170, 126, 64, 0.12); color: var(--color-accent-emerald); }
.metric-blue { background: rgba(197, 157, 101, 0.15); color: var(--color-gold-premium); }
.metric-gold { background: rgba(43, 29, 18, 0.1); color: var(--color-text-primary); }

.metric-val {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

/* Portfolio Showcase Frame */
.portfolio-showcase-frame {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  border-radius: 24px;
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.showcase-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-accent-royal);
  box-shadow: 0 0 10px var(--color-accent-royal);
}

.showcase-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.showcase-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(142, 101, 51, 0.1);
  color: var(--color-accent-royal);
  border: 1px solid rgba(142, 101, 51, 0.2);
}

.showcase-image-wrapper {
  position: relative;
  max-height: 450px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid var(--glass-border);
}

.portfolio-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 29, 18, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-overlay svg {
  width: 36px;
  height: 36px;
  stroke: var(--color-gold-premium);
}

.showcase-image-wrapper:hover .portfolio-img {
  transform: scale(1.02);
}

.showcase-image-wrapper:hover .showcase-overlay {
  opacity: 1;
}

/* Portfolio Subgrid */
.portfolio-subgrid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.portfolio-subcard {
  padding: 2rem;
  border-radius: 20px;
}

.subject-horizontal-card {
  padding: 1.25rem 2rem !important;
}

.subject-horizontal-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.subject-horizontal-content .subcard-title {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.subcard-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
}

.subject-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.subject-tag {
  font-size: 0.85rem;
  font-weight: 650;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid rgba(142, 101, 51, 0.35);
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent-emerald);
}

.project-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 992px) {
  .project-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .subject-horizontal-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .project-stats-grid {
    grid-template-columns: 1fr;
  }
}

.project-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  gap: 0.5rem;
}

.project-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent-royal);
}

.project-name {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--color-text-primary);
}

/* Lightbox Modal */
.portfolio-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 10, 5, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.portfolio-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: #ffffff;
}

.portfolio-modal-img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.portfolio-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

@media (max-width: 992px) {
  .portfolio-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-subgrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .portfolio-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------
   Example of Works Section
   ---------------------------------- */
.example-works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.example-work-card {
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.example-work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(43, 29, 18, 0.12);
}

.work-card-featured {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

.work-img-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  cursor: default;
  background-color: #ffffff;
  border-bottom: 1px solid var(--glass-border);
}

.work-img-wrapper.example-lightbox-trigger {
  cursor: pointer;
}

.work-card-featured .work-img-wrapper {
  width: 50%;
  height: auto;
  min-height: 380px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-bottom: none;
  border-right: 1px solid var(--glass-border);
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card-featured .work-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  box-shadow: none;
}

.work-card-featured .work-card-content {
  width: 50%;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.work-img-wrapper:hover .work-img {
  transform: scale(1.04);
}

.work-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 29, 18, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-img-wrapper:hover .work-img-overlay {
  opacity: 1;
}

.work-zoom-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  border-radius: 30px;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.work-zoom-badge svg {
  width: 18px;
  height: 18px;
}

.work-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.work-category-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(142, 101, 51, 0.12);
  color: var(--color-text-primary);
  border: 1px solid rgba(142, 101, 51, 0.35);
}

.work-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.work-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-primary);
  font-weight: 500;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .example-works-grid {
    grid-template-columns: 1fr;
  }
  .work-card-featured {
    flex-direction: column;
  }
  .work-card-featured .work-img-wrapper {
    width: 100%;
    height: 320px;
    min-height: 320px;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .work-card-featured .work-card-content {
    width: 100%;
    padding: 1.75rem;
  }
}

