/* ==========================================================================
   PREMIUM DESIGN SYSTEM (bio.capaholdings.com)
   Primary Color: Blue / Navy Blue (Credibility)
   Accent Color: Gold (Legacy & Growth)
   ========================================================================== */

:root {
  /* HSL Color Palette */
  --color-bg-primary: hsl(221, 69%, 9%);       /* Ultra Dark Navy */
  --color-bg-secondary: hsl(221, 69%, 12%);   /* Dark Navy Card Base */
  --color-bg-tertiary: hsl(221, 60%, 16%);    /* Lighter Navy for highlights */
  
  --color-text-primary: hsl(0, 0%, 100%);     /* Pure White */
  --color-text-secondary: hsl(215, 20%, 75%); /* Muted Slate */
  --color-text-dim: hsl(215, 12%, 55%);       /* Muted Slate Dark */
  
  --color-accent: hsl(47, 66%, 52%);          /* Gold */
  --color-accent-light: hsl(47, 75%, 62%);    /* Light Gold */
  --color-accent-dim: hsla(47, 66%, 52%, 0.15);/* Muted Gold Background */
  
  --color-border: hsla(217, 30%, 30%, 0.35);  /* Semi-transparent navy border */
  --color-border-hover: hsla(47, 66%, 52%, 0.3); /* Gold border for highlights */
  
  --color-success: hsl(142, 72%, 45%);        /* Forest Green */
  --color-error: hsl(0, 84%, 60%);            /* Vibrant Red */
  
  /* Layout & Spacing */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --safe-area-bottom: env(safe-area-inset-bottom, 20px);
  
  /* Shadow & Blur System */
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --hover-shadow: 0 20px 40px -15px rgba(212, 175, 55, 0.15);
  --glass-blur: blur(16px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* Background Ambient Glow Effects */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-1 {
  position: absolute;
  top: -15%;
  left: -20%;
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(221, 69%, 30%, 0.15) 0%, transparent 70%);
  filter: blur(80px);
}

.glow-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(47, 66%, 52%, 0.04) 0%, transparent 70%);
  filter: blur(80px);
}

/* Page Layout Container */
.page-container {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  padding: 40px 20px calc(40px + var(--safe-area-bottom));
}

/* Profile / Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 40px;
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-image-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.profile-image {
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  box-shadow: var(--card-shadow), 0 0 20px hsla(47, 66%, 52%, 0.2);
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.profile-image-wrapper:hover .profile-image {
  transform: scale(1.04);
}

.status-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  display: inline-block;
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.profile-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.profile-title {
  font-size: 15px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 8px;
  max-width: 320px;
  line-height: 1.35;
}

.profile-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* Quick Stats Chips */
.quick-stats-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.stat-chip {
  background-color: var(--color-accent-dim);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--color-accent-light);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Action Buttons & Links */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
  padding: 12px 24px;
}

.btn-primary:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px hsla(47, 66%, 52%, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--color-bg-secondary);
  border-color: var(--color-border);
  color: var(--color-text-primary);
  padding: 12px 20px;
}

.btn-secondary:hover {
  border-color: var(--color-border-hover);
  background-color: var(--color-bg-tertiary);
  transform: translateY(-2px);
}

.btn-full-width {
  width: 100%;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* General Card Design (Glassmorphism) */
.card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--hover-shadow);
}

/* Biography Block */
.bio-block {
  margin-bottom: 40px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text-primary);
}

.bio-paragraph {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.bio-paragraph.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--color-accent-light);
  border-left: 2px solid var(--color-accent);
  padding-left: 16px;
  margin: 24px 0 8px;
}

/* Detailed Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.stat-box {
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.stat-box:hover {
  border-color: hsla(217, 30%, 40%, 0.5);
}

.stat-number {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  line-height: 1.3;
}

/* Ecosystem / Portfolio Section */
.ecosystem-section {
  margin-bottom: 48px;
}

.section-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subheading {
  font-size: 13px;
  color: var(--color-text-dim);
  margin-bottom: 28px;
}

.ecosystem-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.company-card {
  display: flex;
  flex-direction: column;
}

.company-logo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.company-logo {
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.sector-tag {
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 9999px;
  color: var(--color-text-secondary);
}

.company-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  display: none; /* Already represented by logo */
}

.company-description {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.company-features {
  list-style: none;
  margin-bottom: 20px;
}

.company-features li {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.company-features li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* Footer styling */
.footer-section {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
}

.footer-copy {
  font-size: 12px;
  color: var(--color-text-dim);
  margin-bottom: 4px;
}

.footer-sub {
  font-size: 11px;
  color: var(--color-text-dim);
}

/* ==========================================================================
   MODAL COMPONENT (Inquiry & Contact)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 8, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px 24px 28px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--color-text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--color-text-primary);
  background-color: var(--color-bg-tertiary);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--color-text-dim);
  text-align: center;
  margin-bottom: 24px;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text-primary);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
  transition: all 0.25s ease;
}

.form-input::placeholder {
  color: hsla(215, 12%, 55%, 0.4);
}

.form-input:focus {
  border-color: var(--color-accent-light);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Select element overrides */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
}

textarea.form-input {
  resize: none;
}

.form-status-msg {
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: 500;
}

.form-status-msg.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.form-status-msg.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   SCROLL REVEAL & MOTION EFFECTS
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .status-dot {
    animation: none;
  }
}
