/* ==========================================================================
   PROFA. SOL — OFFICIAL LINKTREE LANDING PAGE
   Design System & Master Stylesheet
   Identity: Premium + Educational + Feminine + Sophisticated + Modern
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette — Deep Navy & Metallic Gold */
  --bg-deep-navy: #0B1728;
  --bg-darker: #060D19;
  --bg-surface: rgba(15, 30, 54, 0.75);
  --bg-surface-hover: rgba(22, 42, 75, 0.85);
  
  --gold-primary: #D4AF37;
  --gold-light: #F5E5AD;
  --gold-dark: #A27B1E;
  --gold-amber: #C5A059;
  --gold-border: rgba(212, 175, 55, 0.3);
  --gold-border-hover: rgba(212, 175, 55, 0.8);
  --gold-glow: rgba(212, 175, 55, 0.25);

  --text-white: #FFFFFF;
  --text-offwhite: #F0F4F8;
  --text-muted: #A0AEC0;
  --text-gold-light: #EAD084;

  --whatsapp-green: #25D366;

  /* Typography */
  --font-serif: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Layout */
  --max-width-desktop: 560px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-full: 9999px;

  /* Transitions & Shadows */
  --ease-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.3s var(--ease-smooth);

  --shadow-card: 0 10px 30px -5px rgba(3, 8, 16, 0.6), 0 0 1px 1px rgba(212, 175, 55, 0.15);
  --shadow-hover: 0 15px 35px -5px rgba(3, 8, 16, 0.7), 0 0 20px rgba(212, 175, 55, 0.35);
  --shadow-gold-pulse: 0 0 25px rgba(212, 175, 55, 0.4);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--bg-darker);
  color: var(--text-offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow-x: hidden;
  padding: 24px 16px 48px;
}

/* Selection highlight in gold */
::selection {
  background: var(--gold-primary);
  color: var(--bg-darker);
}

/* --------------------------------------------------------------------------
   3. BACKGROUND & DECORATIVE ATMOSPHERE
   -------------------------------------------------------------------------- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, #122847 0%, #0B1728 55%, #050B14 100%);
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-top {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(19, 39, 70, 0) 70%);
}

.orb-bottom {
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 550px;
  height: 450px;
  background: radial-gradient(circle, rgba(14, 34, 63, 0.8) 0%, rgba(5, 11, 20, 0) 75%);
}

/* Subtle Geometric Diamond Pattern */
.geometric-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 80%);
}

/* Subtle Sun Rays Backdrop Effect */
.sun-ray-backdrop {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: conic-gradient(
    from 180deg at 50% 50%,
    transparent 0deg,
    rgba(212, 175, 55, 0.03) 15deg,
    transparent 30deg,
    rgba(212, 175, 55, 0.03) 45deg,
    transparent 60deg,
    rgba(212, 175, 55, 0.03) 75deg,
    transparent 90deg
  );
  border-radius: 50%;
  animation: spinSunRays 120s linear infinite;
  pointer-events: none;
}

@keyframes spinSunRays {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

/* --------------------------------------------------------------------------
   4. PAGE CONTAINER & ELEGANT LAYOUT
   -------------------------------------------------------------------------- */
.page-container {
  width: 100%;
  max-width: var(--max-width-desktop);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   5. PROFILE SECTION (TOP HEADER)
   -------------------------------------------------------------------------- */
.profile-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 8px;
}

/* Top Ornate Divider */
.brand-top-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
  opacity: 0.75;
}

.ornament-line {
  height: 1px;
  flex: 1;
  max-width: 100px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-primary) 50%, transparent 100%);
}

.ornament-diamond {
  color: var(--gold-primary);
  font-size: 10px;
  line-height: 1;
}

/* Avatar Container with Metallic Gold Frame */
.avatar-container {
  position: relative;
  width: 116px;
  height: 116px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring-pulse {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  background: conic-gradient(from 0deg, var(--gold-primary), var(--gold-light), var(--gold-dark), var(--gold-primary));
  opacity: 0.6;
  filter: blur(4px);
  animation: pulseGoldRing 4s ease-in-out infinite alternate;
}

@keyframes pulseGoldRing {
  0% { transform: scale(0.98); opacity: 0.4; }
  100% { transform: scale(1.04); opacity: 0.75; }
}

.avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  padding: 3.5px;
  background: linear-gradient(135deg, #F5E5AD 0%, #D4AF37 40%, #A27B1E 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.3);
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-full);
  display: block;
  background-color: var(--bg-deep-navy);
}

.badge-online {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background-color: var(--bg-darker);
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34D399;
  animation: blinkDot 2.5s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Brand Title */
.brand-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-white);
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.2);
  background: linear-gradient(180deg, #FFFFFF 30%, #F5E5AD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtitle */
.brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--gold-amber);
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* Positioning Card */
.positioning-card {
  background: rgba(15, 30, 54, 0.6);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.positioning-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-offwhite);
  letter-spacing: 0.2px;
}

.sun-icon {
  display: inline-block;
  margin-left: 4px;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
  animation: glowSun 3s ease-in-out infinite alternate;
}

@keyframes glowSun {
  from { transform: scale(1); filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4)); }
  to { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9)); }
}

/* --------------------------------------------------------------------------
   6. LINKS & BUTTONS SECTION
   -------------------------------------------------------------------------- */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Base Link Card Styling */
.link-card {
  position: relative;
  width: 100%;
  min-height: 60px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
  overflow: hidden;
  outline: none;
}

.card-content {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
  flex: 1;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.card-text {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-white);
  transition: var(--transition-fast);
}

.card-arrow {
  color: var(--gold-amber);
  opacity: 0.7;
  transition: var(--transition-fast);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shimmer overlay effect on hover */
.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  transition: left 0.6s ease;
  z-index: 1;
}

/* Hover & Focus Interactions */
.link-card:hover {
  transform: translateY(-3px) scale(1.008);
  background: var(--bg-surface-hover);
  border-color: var(--gold-border-hover);
  box-shadow: var(--shadow-hover);
}

.link-card:hover::before {
  left: 100%;
}

.link-card:hover .icon-box {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-primary);
  color: #FFFFFF;
  transform: scale(1.08);
}

.link-card:hover .card-text {
  color: var(--gold-light);
}

.link-card:hover .card-arrow {
  opacity: 1;
  color: var(--gold-primary);
  transform: translateX(4px);
}

.link-card:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.link-card:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   SPECIAL FEATURED CTA: WHATSAPP BUTTON
   -------------------------------------------------------------------------- */
.link-whatsapp {
  min-height: 68px;
  padding-top: 18px;
  padding-bottom: 18px;
  background: linear-gradient(
    135deg, 
    rgba(15, 36, 68, 0.95) 0%, 
    rgba(21, 51, 95, 0.95) 100%
  );
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.3);
}

.link-whatsapp .card-badge {
  position: absolute;
  top: 0;
  right: 24px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: var(--bg-darker);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.link-whatsapp .icon-box {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.4);
}

.link-whatsapp .card-text {
  font-size: 1.06rem;
  font-weight: 700;
  color: #FFFFFF;
}

.link-whatsapp:hover {
  background: linear-gradient(
    135deg, 
    rgba(20, 46, 85, 0.98) 0%, 
    rgba(28, 64, 118, 0.98) 100%
  );
  border-color: #FFF2B2;
  box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.5);
}

.link-whatsapp:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.7);
}

/* Subtle Pulsing Border Effect for WhatsApp */
@keyframes whatsappGlow {
  0% { border-color: rgba(212, 175, 55, 0.6); box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.25); }
  100% { border-color: rgba(255, 242, 178, 0.95); box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.45); }
}

.link-whatsapp {
  animation: whatsappGlow 3s ease-in-out infinite alternate;
}

/* --------------------------------------------------------------------------
   7. INSTITUTIONAL CARD / PILLARS SECTION
   -------------------------------------------------------------------------- */
.institutional-section {
  width: 100%;
  margin-top: 8px;
}

.institutional-card {
  position: relative;
  width: 100%;
  padding: 24px 20px;
  background: rgba(12, 24, 43, 0.7);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

/* Ornate Corner Elements */
.card-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold-primary);
  border-style: solid;
  opacity: 0.6;
  pointer-events: none;
}

.corner-tl { top: 8px; left: 8px; border-width: 1.5px 0 0 1.5px; }
.corner-tr { top: 8px; right: 8px; border-width: 1.5px 1.5px 0 0; }
.corner-bl { bottom: 8px; left: 8px; border-width: 0 0 1.5px 1.5px; }
.corner-br { bottom: 8px; right: 8px; border-width: 0 1.5px 1.5px 0; }

.quote-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold-primary);
  line-height: 1;
  display: block;
  margin-bottom: -10px;
  opacity: 0.7;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-offwhite);
  line-height: 1.4;
  letter-spacing: 0.3px;
}

/* Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-top: 14px;
  border-top: 1px stroke rgba(212, 175, 55, 0.15);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.pillar-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.pillar-item:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.pillar-icon {
  font-size: 1.1rem;
}

.pillar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-offwhite);
  letter-spacing: 0.2px;
}

/* --------------------------------------------------------------------------
   8. FOOTER SECTION
   -------------------------------------------------------------------------- */
.page-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 16px;
  margin-bottom: 18px;
}

.footer-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.footer-logo-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 30, 54, 0.8);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-white);
  margin-bottom: 4px;
}

.footer-sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold-amber);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(160, 174, 192, 0.6);
  letter-spacing: 0.3px;
}

/* --------------------------------------------------------------------------
   9. MEDIA QUERIES & RESPONSIVENESS
   -------------------------------------------------------------------------- */

/* Celulares pequenos (iPhone SE / 360px) */
@media (max-width: 375px) {
  body {
    padding: 16px 12px 32px;
  }
  
  .avatar-container {
    width: 100px;
    height: 100px;
  }

  .brand-title {
    font-size: 1.7rem;
    letter-spacing: 3px;
  }

  .brand-subtitle {
    font-size: 0.82rem;
  }

  .positioning-text {
    font-size: 0.86rem;
  }

  .link-card {
    min-height: 56px;
    padding: 12px 16px;
  }

  .card-text {
    font-size: 0.94rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* Desktops e Telas Maiores (> 640px) */
@media (min-width: 640px) {
  body {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .page-container {
    gap: 32px;
  }

  .brand-title {
    font-size: 2.2rem;
  }

  .brand-subtitle {
    font-size: 0.98rem;
    letter-spacing: 1.5px;
  }

  .institutional-card {
    padding: 28px 26px;
  }

  .quote-text {
    font-size: 1.15rem;
  }

  .pillar-label {
    font-size: 0.88rem;
  }
}
