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

:root {
  /* Premium Dark Theme Palette */
  --bg-dark: #050505;
  --bg-panel: #111111;
  --text-main: #f5f5f5;
  --text-muted: #a1a1aa;
  
  /* Accents */
  --accent-primary: #3b82f6; /* Vivid Blue */
  --accent-secondary: #10b981; /* Emerald Green */
  --accent-purple: #818cf8; /* Violet Light */
  --accent-glow: rgba(59, 130, 246, 0.5);
  
  /* Glassmorphism */
  --glass-bg: rgba(17, 17, 17, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --ease-spring: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Animated Blobs */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  animation: blobFloat 20s infinite alternate;
}

body::before {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-primary), transparent 70%);
}

body::after {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  animation-delay: -10s;
}

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 10%) scale(1.1); }
}

/* Fluid Container */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  animation: fadeIn 0.8s var(--ease-spring) forwards;
}

/* Logo - Adjusted for visibility */
.nav-header {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 1rem;
}

.logo-img {
  height: 50px; /* Slight increase */
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  display: block;
}

.logo-img:hover {
  opacity: 1;
}

/* Header & Profile */
header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-panel);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.4);
  background: var(--bg-panel);
  transition: transform 0.5s var(--ease-spring), border-color 0.3s ease;
}

.avatar-wrapper:hover .avatar {
  transform: scale(1.08) rotate(2deg);
  border-color: var(--accent-primary);
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #a1a1a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.role {
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bio {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-icon {
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}

.social-icon:hover {
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
}

.social-icon i {
  width: 20px;
  height: 20px;
}

/* Card Grid/List */
main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  opacity: 0.7;
}

.card {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, rgba(23, 23, 23, 0.6) 0%, rgba(15, 15, 15, 0.6) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.card:hover::before {
  transform: translateX(100%);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-right: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
}

.card-content {
  flex: 1;
}

.card-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.arrow-icon {
  color: var(--text-muted);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.card:hover .arrow-icon {
  opacity: 1;
  transform: translateX(6px);
  color: var(--accent-primary);
}

.arrow-icon i {
  width: 20px;
  height: 20px;
}

/* Badges */
.badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  margin-left: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge-eng {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.2);
}

.badge-entry {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.footer-logo {
  margin-bottom: 2rem;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  display: inline-block;
  background: rgba(255, 255, 255, 0.05); /* Light backing for visibility */
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.footer-logo:hover {
  opacity: 1;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  filter: grayscale(0.2);
  transition: all 0.4s var(--ease-spring);
}

.footer-logo:hover .footer-logo-img {
  filter: grayscale(0) drop-shadow(0 0 10px var(--accent-glow));
  transform: scale(1.1);
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.small-copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger reveals */
header.reveal { transition-delay: 0.1s; }
.section-label.reveal { transition-delay: 0.2s; }
.card[href*="osdg"].reveal { transition-delay: 0.3s; }
.card[href*="fpa"].reveal { transition-delay: 0.4s; }
footer.reveal { transition-delay: 0.5s; }

/* Mobile Adjustments */
@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  .container { padding-top: 3rem; }
  .logo-img { height: 40px; }
  .nav-header { padding-bottom: 2rem; }
  .social-links { gap: 1rem; }
}
