:root {
    --bg-color: #fafafa;
    --text-main: #111111;
    --text-muted: #666666;
    --card-bg: #ffffff;
    --card-border: #eaeaea;
    --card-hover-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-hover-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --focus-ring: #4f46e5;

    /* Animated gradient colors */
    --hero-grad-1: #ffecd2;
    --hero-grad-2: #fcb69f;
    --hero-grad-3: #e0c3fc;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1.5rem 2rem;
    overflow-x: hidden;
}

/* Pure CSS Animated Background Texture */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background: linear-gradient(-45deg, var(--hero-grad-1), var(--hero-grad-2), var(--hero-grad-3), var(--bg-color));
    background-size: 400% 400%;
    animation: flowGradient 15s ease infinite;
    z-index: -1;
    /* Fade out into the background color */
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* --- HEADER --- */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background-color: var(--text-main);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    box-shadow: var(--card-shadow);
    border: 4px solid var(--bg-color);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05) rotate(-2deg);
}

header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 85%;
    line-height: 1.6;
}

/* --- MAIN LINKS --- */
main nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.image-button {
  display: block;
  width: 420px;
  height: 200px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.image-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.image-button:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--text-muted);
}

.image-button:hover::before {
  transform: translateX(100%);
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
    text-align: center;
    font-size: 1.30rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.65rem 0.75rem;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
    background-color: var(--card-hover-bg);
    border-color: var(--text-muted);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.social-link:hover::before {
    transform: translateX(100%);
}

.social-link:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
}

.email {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.email-link {
    text-decoration: none;
    color: inherit;
}

.email-link:hover {
    text-decoration: underline;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

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

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    background-color: var(--card-hover-bg);
    border-color: var(--text-muted);
}

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

.link-card:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
}

.emoji-wrapper {
    font-size: 2rem;
    margin-right: 1.25rem;
    background-color: var(--bg-color);
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease;
}

.link-card:hover .emoji-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex-grow: 1;
}

.card-content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.arrow {
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.link-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
    body {
        padding-top: 3rem;
    }

    .link-card {
        padding: 1rem 1.25rem;
        border-radius: 16px;
    }

    .emoji-wrapper {
        font-size: 1.5rem;
        width: 44px;
        height: 44px;
        margin-right: 1rem;
        border-radius: 10px;
    }

    .avatar {
        width: 88px;
        height: 88px;
        font-size: 1.75rem;
    }

    header h1 {
        font-size: 1.85rem;
    }

    .tagline {
        font-size: 1.05rem;
        max-width: 95%;
    }

    .image-button {
      width: 100%;
      height: 140px;
    }
}
