@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ===== VARIABLES ===== */
:root {
  --crimson:        #BB2B23;
  --crimson-dark:   #8a1d17;
  --crimson-subtle: rgba(187, 43, 35, 0.1);
  --black:          #010302;
  --surface:        #0d0f0e;
  --surface-2:      #161918;
  --border:         rgba(255, 255, 255, 0.06);
  --border-hover:   rgba(187, 43, 35, 0.4);
  --text-primary:   #f0f0f0;
  --text-muted:     rgba(255, 255, 255, 0.38);
  --max-width:      420px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--black);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle top glow */
body::before {
  content: '';
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 320px;
  background: radial-gradient(ellipse at top, rgba(187,43,35,0.06) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ===== CANVAS ===== */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px 64px;
}

/* ===== PROFILE SECTION ===== */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
  animation: fadeDown 0.7s ease both;
}

/* Logo */
.logo-wrapper {
  position: relative;
  width: 118px;
  height: 118px;
  margin-bottom: 20px;
}

.logo-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187,43,35,0.12) 0%, transparent 70%);
  animation: softPulse 3.5s ease-in-out infinite;
}

.logo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--crimson), #d94040, var(--crimson-dark), var(--crimson));
  animation: spinRing 5s linear infinite;
  opacity: 0.8;
}

.logo-ring::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #ffffff;
}

.logo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: scale-down;
  display: block;
  background-color: #ffffff;
  padding: 5px;
}

@keyframes spinRing    { to { transform: rotate(360deg); } }
@keyframes softPulse   { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* Brand */
.brand-name {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  text-align: center;
  margin-bottom: 6px;
}

.brand-name span { color: var(--crimson); }

.brand-tagline {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.divider {
  width: 36px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  margin: 18px auto 0;
  border-radius: 2px;
  animation: expandDiv 0.9s ease 0.35s both;
}

@keyframes expandDiv { from { width: 0; opacity: 0; } to { width: 36px; opacity: 1; } }

/* ===== SOCIAL GRID ===== */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 44px;
  max-width: var(--max-width);
  width: 100%;
}

/* ===== SOCIAL BUTTON ===== */
.social-btn {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Stagger */
.social-btn:nth-child(1) { animation-delay: 0.08s; }
.social-btn:nth-child(2) { animation-delay: 0.15s; }
.social-btn:nth-child(3) { animation-delay: 0.22s; }
.social-btn:nth-child(4) { animation-delay: 0.29s; }
.social-btn:nth-child(5) { animation-delay: 0.36s; }

@keyframes popIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

.social-btn svg {
  width: 26px;
  height: 26px;
  fill: var(--text-muted);
  transition: fill 0.25s ease;
}

/* Tooltip */
.social-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
}

.social-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hover state */
.social-btn:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(187, 43, 35, 0.3);
}

.social-btn:hover svg { fill: #fff; }

.social-btn:active {
  transform: translateY(-2px) scale(1.02);
}

/* ===== MAP SECTION ===== */
.map-section {
  width: 100%;
  max-width: var(--max-width);
  animation: fadeUp 0.6s ease 0.45s both;
}

.map-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.map-label svg {
  width: 13px;
  height: 13px;
  fill: var(--crimson);
  opacity: 0.75;
}

.map-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transition: border-color 0.28s ease;
}

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

.map-card iframe {
  width: 100%;
  height: 210px;
  border: none;
  display: block;
  filter: grayscale(20%) contrast(1.05) brightness(0.92);
  transition: filter 0.35s ease;
}

.map-card:hover iframe {
  filter: grayscale(0%) contrast(1) brightness(1);
}

.map-overlay-top, .map-overlay-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 28px;
  z-index: 1;
  pointer-events: none;
}

.map-overlay-top {
  top: 0;
  background: linear-gradient(180deg, rgba(1,3,2,0.5) 0%, transparent 100%);
}

.map-overlay-bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(1,3,2,0.5) 0%, transparent 100%);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 44px;
  text-align: center;
  animation: fadeDown 0.6s ease 0.55s both;
}

.footer-text {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.04em;
}

/* ===== KEYFRAMES ===== */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(14px);  } to { opacity: 1; transform: translateY(0); } }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: rgba(187,43,35,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--crimson); }

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
  .page-wrapper { padding: 44px 16px 52px; }
  .logo-wrapper { width: 135px; height: 135px; }
  .social-btn   { width: 60px; height: 60px; }
  .social-btn svg { width: 23px; height: 23px; }
  .map-card iframe { height: 185px; }
}
