/* ================================
   BIO PAGE - MOBILE-FIRST LINKTREE ALTERNATIVE
   ================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-accent: #E8E45C;
    --color-gray: #808080;
    --color-light-gray: #cccccc;
    --font-primary: 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #000000;
    min-height: 100vh;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
    background-color: #000000;
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* Main Container */
.bio-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: transparent;
}

/* ================================
   BACK BUTTON
   ================================ */

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(232, 228, 92, 0.2);
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-light-gray);
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-start;
    animation: fadeInDown 0.6s ease;
}

.back-button:hover,
.back-button:active {
    background: rgba(232, 228, 92, 0.1);
    border-color: rgba(232, 228, 92, 0.5);
    color: var(--color-accent);
    transform: translateX(-3px);
}

.back-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.back-button:hover .back-arrow {
    transform: translateX(-3px);
}

.back-text {
    letter-spacing: 0.05em;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   SOCIAL ICONS TOP
   ================================ */

.social-icons-top {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin: 1rem 0 1.25rem;
    animation: fadeInUp 0.8s ease;
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(232, 228, 92, 0.2);
    border-radius: 50%;
    color: var(--color-light-gray);
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(232, 228, 92, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon-btn:hover::before,
.social-icon-btn:active::before {
    opacity: 1;
}

.social-icon-btn:hover,
.social-icon-btn:active {
    background: rgba(232, 228, 92, 0.1);
    border-color: rgba(232, 228, 92, 0.5);
    color: var(--color-accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(232, 228, 92, 0.2);
}

.social-icon-btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icon-btn:hover svg {
    transform: scale(1.1);
}

/* ================================
   PROFILE HEADER
   ================================ */

.bio-header {
    text-align: center;
    padding: 2rem 0;
    animation: fadeInUp 0.8s ease;
}

.profile-badge {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(232, 228, 92, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 2px solid rgba(232, 228, 92, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(232, 228, 92, 0.2);
}

.profile-name {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.name-line {
    display: block;
    color: #ffffff;
}

.name-creative {
    background: linear-gradient(
        110deg,
        #E8E45C 0%,
        #FFFF8D 30%,
        #FFFFFF 50%,
        #FFFF8D 70%,
        #E8E45C 100%
    );
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    animation: shimmer 3s linear infinite;
    filter: drop-shadow(0 0 20px rgba(232, 228, 92, 0.4));
}

.profile-handle {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.profile-tagline {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* Bio Highlights Section */
.bio-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.bio-highlight-item {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, rgba(232, 228, 92, 0.15) 0%, rgba(232, 228, 92, 0.05) 100%);
    border: 1px solid rgba(232, 228, 92, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease 0.5s both, subtlePulse 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(232, 228, 92, 0.15);
}

.highlight-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bio-stats-inline {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease 0.7s both;
    transition: all 0.3s ease;
}

.bio-stats-inline:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 228, 92, 0.3);
    box-shadow: 0 8px 25px rgba(232, 228, 92, 0.15);
}

.bio-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.bio-stat-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    text-shadow: 0 0 20px rgba(232, 228, 92, 0.3);
}

.bio-stat-label {
    font-size: 0.75rem;
    color: var(--color-light-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bio-stat-divider {
    font-size: 1.5rem;
    color: rgba(232, 228, 92, 0.3);
    font-weight: 300;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(232, 228, 92, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(232, 228, 92, 0.25);
    }
}

/* ================================
   ACTION LINKS
   ================================ */

.bio-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(232, 228, 92, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1.5px solid rgba(232, 228, 92, 0.25);
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 60px;
    opacity: 0;
    transform: translateY(20px);
}

.link-card.aos-animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 228, 92, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-card:hover::before,
.link-card:active::before {
    left: 100%;
}

.link-card:hover,
.link-card:active {
    transform: translateY(-4px);
    border-color: rgba(232, 228, 92, 0.6);
    background: linear-gradient(135deg, rgba(232, 228, 92, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    box-shadow: 0 15px 40px rgba(232, 228, 92, 0.25);
}

.link-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-text {
    flex: 1;
    text-align: center;
    letter-spacing: 0.01em;
}

.link-arrow {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 35px;
    text-align: right;
    transition: transform 0.3s ease;
    color: var(--color-accent);
}

.link-card:hover .link-arrow {
    transform: translateX(5px);
}

.link-card-secondary {
    border-style: dashed;
    opacity: 0.85;
}

.link-card-secondary:hover {
    opacity: 1;
}

.link-card-support {
    background: linear-gradient(135deg, rgba(255, 160, 0, 0.08) 0%, rgba(232, 228, 92, 0.05) 100%);
    border: 1.5px solid rgba(255, 160, 0, 0.3);
    font-weight: 500;
    font-style: italic;
}

.link-card-support .link-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.link-card-support:hover {
    border-color: rgba(255, 160, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 160, 0, 0.15) 0%, rgba(232, 228, 92, 0.1) 100%);
    box-shadow: 0 15px 40px rgba(255, 160, 0, 0.3);
}

.link-card-support .link-icon {
    animation: wobble 2s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

/* ================================
   CASE STUDIES
   ================================ */

.bio-case-studies {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(232, 228, 92, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
}

.bio-case-studies.aos-animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-study-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.case-study-item:last-child {
    border-bottom: none;
}

.case-study-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.case-study-stat {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* ================================
   FOOTER
   ================================ */

.bio-footer {
    text-align: center;
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.footer-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(232, 228, 92, 0.1);
    border: 1px solid rgba(232, 228, 92, 0.3);
    border-radius: 50px;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(232, 228, 92, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 6px rgba(232, 228, 92, 0);
    }
}

/* ================================
   RESPONSIVE - TABLET & DESKTOP
   ================================ */

@media (min-width: 481px) {
    .bio-container {
        padding: 3rem 2rem;
    }

    .profile-badge {
        width: 120px;
        height: 120px;
        font-size: 3.5rem;
    }

    .link-card {
        padding: 1.5rem 2rem;
        font-size: 1.1rem;
    }

    .link-icon {
        font-size: 1.75rem;
        width: 40px;
    }

    .bio-case-studies {
        padding: 2rem;
    }
}

@media (min-width: 768px) {
    .bio-container {
        max-width: 520px;
        padding: 4rem 2rem;
    }

    .profile-name {
        font-size: 4rem;
    }
}

/* ================================
   ACCESSIBILITY
   ================================ */

.link-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 16px;
}

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

/* ================================
   TOUCH OPTIMIZATION
   ================================ */

@media (hover: none) and (pointer: coarse) {
    .link-card:active {
        transform: scale(0.98);
    }
    
    .stat-card:active {
        transform: scale(0.98);
    }
}

/* ================================
   MOBILE VIEWPORT FIX
   ================================ */

@media screen and (max-width: 768px) {
    html {
        height: 100%;
        background-color: #000000;
    }
    
    body {
        height: 100%;
        background: #000000;
        background-attachment: fixed;
    }
    
    .bio-container {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    html {
        height: -webkit-fill-available;
    }
    
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}

