/* =========================================================
   Base
   ========================================================= */

:root {
  color-scheme: light;

  --background: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;

  --card-background: rgba(255, 255, 255, 0.72);
  --card-border: rgba(148, 163, 184, 0.2);

  --button-background: rgba(255, 255, 255, 0.75);
  --button-border: #e2e8f0;

  --accent: #00d2ff;
}

.dark {
  color-scheme: dark;

  --background: #020617;
  --text: #f8fafc;
  --muted: #94a3b8;

  --card-background: rgba(15, 23, 42, 0.68);
  --card-border: rgba(148, 163, 184, 0.14);

  --button-background: rgba(15, 23, 42, 0.7);
  --button-border: #334155;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: radial-gradient(
      circle at 50% -10%,
      rgba(99, 102, 241, 0.16),
      transparent 35%
    ),
    var(--background);

  color: var(--text);

  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;

  transition: background-color 0.3s ease, color 0.3s ease;
}

/* =========================================================
   Background
   ========================================================= */

.background-grid {
  position: fixed;
  inset: 0;

  pointer-events: none;

  opacity: 0.7;

  background-image: linear-gradient(
      rgba(148, 163, 184, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);

  background-size: 40px 40px;

  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.dark .background-grid {
  opacity: 0.35;
}

/* =========================================================
   Theme button
   ========================================================= */

.theme-button {
  display: flex;

  width: 40px;
  height: 40px;

  align-items: center;
  justify-content: center;

  border: 1px solid var(--button-border);
  border-radius: 999px;

  background: var(--button-background);
  color: var(--muted);

  backdrop-filter: blur(12px);

  cursor: pointer;

  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-button:hover {
  transform: scale(1.06);
}

.theme-button svg {
  width: 17px;
  height: 17px;
}

/* =========================================================
   Profile
   ========================================================= */

.profile {
  margin-top: 40px;

  text-align: center;
}

.profile-logo-wrapper {
  position: relative;

  width: 112px;
  height: 112px;

  margin: 0 auto 24px;
}

.profile-logo-glow {
  position: absolute;
  inset: 0;

  border-radius: 28px;

  background: #0dbde959;

  filter: blur(30px);
}

.profile-logo {
  position: relative;

  display: flex;

  width: 112px;
  height: 112px;

  align-items: center;
  justify-content: center;

  border-radius: 28px;

  /* background: linear-gradient(135deg, #1e1e1e, #0D95D9, #1e1e1e); */
  background: linear-gradient(135deg, #00d2ff 0%, hsl(235, 65%, 53%) 100%);
  

  color: #fff;

  font-size: 36px;
  font-weight: 900;

  box-shadow: 0 25px 50px rgba(79, 70, 229, 0.2);

  animation: floating 6s ease-in-out infinite;
}

.profile-name {
  margin: 0;

  font-size: clamp(30px, 5vw, 42px);

  font-weight: 750;

  letter-spacing: -0.04em;
}

.profile-description {
  max-width: 600px;

  margin: 16px auto 0;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.7;
}

.social-links {
  display: flex;

  justify-content: center;

  gap: 10px;

  margin-top: 24px;
}

.social-link {
  display: flex;

  width: 40px;
  height: 40px;

  align-items: center;
  justify-content: center;

  border: 1px solid var(--button-border);

  border-radius: 999px;

  background: var(--button-background);

  color: var(--muted);

  backdrop-filter: blur(12px);

  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-4px);

  color: var(--accent);

  border-color: rgba(99, 102, 241, 0.35);
}

.social-link svg {
  width: 17px;
  height: 17px;
}

/* =========================================================
   Links
   ========================================================= */

.links-container {
  margin-top: 48px;
}

.link-section + .link-section {
  margin-top: 34px;
}

.section-label {
  margin: 0 0 12px 4px;

  color: #94a3b8;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.2em;

  text-transform: uppercase;
}

.link-list {
  display: flex;

  flex-direction: column;

  gap: 12px;
}

.link-card {
  display: flex;

  min-height: 76px;

  align-items: center;

  gap: 16px;

  padding: 14px 16px;

  border: 1px solid var(--card-border);

  border-radius: 18px;

  background: var(--card-background);

  color: var(--text);

  text-decoration: none;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);

  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.link-card:hover {
  transform: translateY(-3px);

  border-color: rgba(99, 102, 241, 0.25);

  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.dark .link-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.featured-card {
  min-height: 88px;
}

.link-icon {
  display: flex;

  width: 44px;
  height: 44px;

  flex-shrink: 0;

  align-items: center;
  justify-content: center;

  border-radius: 13px;

  font-size: 14px;
  font-weight: 700;
}

.link-icon svg {
  width: 20px;
  height: 20px;
}

.featured-icon {
  background: #3a47d5;

  color: white;
}

.violet {
  background: #8b5cf61a;

  color: #8b5cf6;
}

.emerald {
  background: rgba(16, 185, 129, 0.1);

  color: #10b981;
}

.rose {
  background: rgba(244, 63, 94, 0.1);

  color: #f43f5e;
}

.github-icon {
  background: #0f172a;

  color: white;
}

.dark .github-icon {
  background: white;

  color: #0f172a;
}

.linkedin-icon {
  background: rgba(37, 99, 235, 0.1);

  color: #2563eb;
}

.email-icon {
  background: rgba(245, 158, 11, 0.1);

  color: #f59e0b;
}

.phone-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #3D76F6;
}

.link-content {
  min-width: 0;

  flex: 1;
}

.link-content h3 {
  margin: 0;

  font-size: 15px;

  font-weight: 650;
}

.link-content p {
  margin: 4px 0 0;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.5;
}

.link-arrow {
  color: #94a3b8;

  font-size: 20px;

  transition: transform 0.2s ease, color 0.2s ease;
}

.link-card:hover .link-arrow {
  transform: translate(2px, -2px);

  color: var(--accent);
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  padding: 64px 0 16px;

  text-align: center;
}

.footer-line {
  width: 180px;
  height: 1px;

  margin: 0 auto 20px;

  background: linear-gradient(to right, transparent, #cbd5e1, transparent);
}

.dark .footer-line {
  background: linear-gradient(to right, transparent, #334155, transparent);
}

.footer p {
  margin: 0;

  color: #94a3b8;

  font-size: 11px;
}

/* =========================================================
   Animations
   ========================================================= */

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 640px) {
  .profile {
    margin-top: 32px;
  }

  .profile-description {
    padding: 0 8px;

    font-size: 14px;
  }

  .links-container {
    margin-top: 40px;
  }

  .link-card {
    min-height: 72px;

    padding: 12px;
  }

  .link-content p {
    font-size: 12px;
  }
}
