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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   TOKENS (Premium Aesthetic)
   ============================================================ */
:root {
  /* Palette */
  --bg:           #0B0B0F;
  --surface:      rgba(17, 17, 22, 0.4); /* Extra transparent for boxes */
  --surface-hi:   rgba(24, 24, 31, 0.7);
  --border:       rgba(255, 255, 255, 0.12); /* Clean crisp line */
  --border-hi:    rgba(255, 255, 255, 0.25);
  --text-primary: #F0F0F5;
  --text-secondary: #9BA1B0;
  --text-muted:   #55556A;
  --accent:       #FFFFFF;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.85rem;
  --font-size-base: 0.95rem;
  --font-size-lg:   1.15rem;
  --font-size-xl:   1.6rem;
  --font-size-2xl:  2.2rem;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 32px; /* For the new hero box */
  --radius-full: 9999px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.175, 0.885, 0.32, 1.15);
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;
}

/* ============================================================
   BODY & LAYOUT
   ============================================================ */
body {
  background:
  radial-gradient(circle at 20% 0%, rgba(74,108,247,.08), transparent 45%),
  radial-gradient(circle at 80% 100%, rgba(255,255,255,.04), transparent 40%),
  linear-gradient(180deg,#0a0d14 0%,#050505 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Floating Background Orbs */
body::before {
  content:"";
  position:fixed;
  top:-150px;
  left:-100px;
  width:500px;
  height:500px;
  background:#3b82f620;
  filter:blur(120px);
  pointer-events:none;
  z-index:0;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

body::after {
  content:"";
  position:fixed;
  bottom:-150px;
  right:-100px;
  width:450px;
  height:450px;
  background:#ffffff0f;
  filter:blur(140px);
  pointer-events:none;
  z-index:0;
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.1); }
  100% { transform: translate(-20px, -20px) scale(0.95); }
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: var(--space-6) var(--space-5) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  flex: 1;
}

/* ============================================================
   HERO (The Premium Transparent Box)
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 40px 24px;
  
  /* Box Styling */
  background: rgba(255, 255, 255, 0.015); /* Almost fully transparent */
  border: 1px solid var(--border); /* Sirf patli line */
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px); /* Glass effect */
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);

  /* Entrance animation */
  opacity: 0;
  transform: translateY(25px) scale(0.95);
  animation: popUp var(--duration-slow) var(--ease-spring) 100ms forwards;
}

/* Top highlight line to make the box look 3D and expensive */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.avatar-wrap {
  position: relative;
  width: 114px;
  height: 114px;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  width: 106px;
  height: 106px;
  border-radius: var(--radius-full);
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 4px solid #0B0B0F; /* Creates a gap between image and glowing ring */
}

/* The 'Mast' Animated Image Border */
.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  z-index: 1;
  background: linear-gradient(135deg, #a5b4fc, #3b82f6, #ffffff, #a5b4fc);
  background-size: 300% 300%;
  animation: gradientShift 4s ease infinite;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.3); /* Soft blue glow */
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.name {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(165, 180, 252, 0.2));
}

.subtitle {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.tagline {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  font-weight: 400;
}

/* ============================================================
   LINKS SECTION
   ============================================================ */
.links-section {
  opacity: 0;
  transform: translateY(25px);
  animation: popUp var(--duration-slow) var(--ease-spring) 250ms forwards;
}

.links-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  overflow: hidden;
  transition: 
    transform var(--duration-base) var(--ease-spring),
    background var(--duration-base) var(--ease-out-expo),
    border-color var(--duration-base) var(--ease-out-expo),
    box-shadow var(--duration-base) var(--ease-spring);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.link-btn:hover {
  background: var(--surface-hi);
  border-color: var(--border-hi);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.4), 
    0 0 20px rgba(255,255,255,0.03) inset;
}

.link-btn:active {
  transform: translateY(0px) scale(0.97);
  box-shadow: none;
}

.link-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg);
  transition: none;
}

.link-btn:hover::after {
  animation: shimmer 1s var(--ease-out-expo) forwards;
}

@keyframes shimmer {
  100% { left: 150%; }
}

.link-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0B0B0F;
}

.link-btn--primary .link-btn__sub {
  color: rgba(11,11,15,0.6);
}

.link-btn--primary .link-btn__arrow {
  color: rgba(11,11,15,0.4);
}

.link-btn--primary:hover {
  background: #EBEBF0;
  border-color: #EBEBF0;
  box-shadow: 0 12px 32px rgba(255,255,255,0.15), 0 2px 0 rgba(255,255,255,0.4) inset;
}

.link-btn__icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  transition: transform var(--duration-base) var(--ease-spring);
}

.link-btn:hover .link-btn__icon-img {
  transform: scale(1.15) rotate(-5deg);
}

.link-btn__icon {
  width: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-btn__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-btn__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-btn__sub {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-btn__arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-spring), color var(--duration-base);
  display: flex;
  align-items: center;
  font-size: 1.2rem;
}

.link-btn:hover .link-btn__arrow {
  transform: translateX(5px) scale(1.1);
  color: var(--text-primary);
}

/* ============================================================
   FEATURED SECTION
   ============================================================ */
.featured-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  opacity: 0;
  transform: translateY(25px);
  animation: popUp var(--duration-slow) var(--ease-spring) 400ms forwards;
}

.featured-section[hidden] {
  display: none;
}

.section-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-left: var(--space-2);
}

.featured-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.featured-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
  transition: 
    transform var(--duration-base) var(--ease-spring),
    background var(--duration-base) var(--ease-out-expo),
    border-color var(--duration-base) var(--ease-out-expo),
    box-shadow var(--duration-base) var(--ease-spring);
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}

.featured-card:hover {
  background: var(--surface-hi);
  border-color: var(--border-hi);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.45);
}

.featured-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.featured-card__badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.featured-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.featured-card__desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: -8px;
}

.featured-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.featured-card__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all var(--duration-fast) var(--ease-out-expo);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.featured-card__btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,255,255,0.05);
}

.featured-card__btn:active {
  transform: scale(0.95);
}

/* ============================================================
   VIEW MORE BUTTON (Featured Section)
   ============================================================ */
.view-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 24px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all var(--duration-base) var(--ease-spring);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.view-more-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.view-more-btn:active {
  transform: scale(0.98);
}

.view-more-btn span {
  transition: transform var(--duration-base) var(--ease-spring);
  font-size: 1.1rem;
}

.view-more-btn:hover span {
  transform: translateX(4px);
}

/* ============================================================
   FEATURED PAGE HEADER & BACK BUTTON STYLES
   ============================================================ */
.featured-page-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-1);
  opacity: 0;
  transform: translateY(20px);
  animation: popUp var(--duration-slow) var(--ease-spring) 100ms forwards;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: var(--space-2);
  transition: color var(--duration-fast) var(--ease-in-out), transform var(--duration-base) var(--ease-spring);
}

.back-home-btn:hover {
  color: var(--text-primary);
  transform: translateX(-4px); /* Hover par left slide bounce */
}

.back-home-btn span {
  font-size: 1.1rem;
  transition: transform var(--duration-base) var(--ease-spring);
}

.page-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(165, 180, 252, 0.1));
}

.page-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  max-width: 95%;
  text-align: left;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: var(--space-6) var(--space-5) var(--space-8);
  opacity: 0;
  animation: fadeIn var(--duration-slow) var(--ease-out-expo) 600ms forwards;
}

.footer__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes popUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ============================================================
   RESPONSIVE — tablet & desktop
   ============================================================ */
@media (min-width: 540px) {
  .container {
    padding-top: var(--space-10);
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  .hero {
    padding: 48px 32px;
  }

  .avatar-wrap {
    width: 126px;
    height: 126px;
  }

  .avatar {
    width: 118px;
    height: 118px;
  }

  .name {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding-top: var(--space-12);
  }

  .avatar-wrap {
    width: 140px;
    height: 140px;
  }

  .avatar {
    width: 132px;
    height: 132px;
  }
}
/* ============================================================
   ACCESSIBILITY — high contrast
   ============================================================ */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(255,255,255,0.25);
    --border-hi: rgba(255,255,255,0.45);
    --text-secondary: #B0B0C0;
    --text-muted: #808090;
  }
}