/* ============================================
   CSS Variables & Design System
   ============================================ */
:root {
    /* Primary Palette - Black & White */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Accent Colors */
    --pure-white: #ffffff;
    --off-white: #fafafa;
    --soft-gray: #f0f0f0;
    --accent: #000000;

    /* Text Colors */
    --text-primary: #0a0a0a;
    --text-secondary: #404040;
    --text-muted: #737373;

    /* Social Brand Colors (monochrome) */
    --tiktok: #171717;
    --instagram: #262626;
    --youtube: #171717;
    --twitch: #262626;
    --fanfix: #171717;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--pure-white) 0%, var(--gray-100) 50%, var(--gray-200) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.9) 100%);
    --gradient-glow: radial-gradient(circle, rgba(0, 0, 0, 0.08) 0%, transparent 70%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 60px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--gradient-main);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Background Shapes
   ============================================ */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--gray-200);
    top: -15%;
    right: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--gray-300);
    bottom: -10%;
    left: -10%;
    animation-delay: -7s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--gray-200);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-10px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(30px, 10px) rotate(3deg);
    }
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

section {
    margin-bottom: var(--space-xl);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) 0;
    animation: fadeInUp 0.8s ease-out;
}

/* Horizontal Layout */
.hero-horizontal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: var(--space-xl);
}

.hero-horizontal .content {
    flex: 1;
    max-width: 450px;
}

.hero-horizontal .photo-wrapper {
    margin-bottom: 0;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Photo Carousel
   ============================================ */
.carousel-wrapper {
    flex-shrink: 0;
}

.carousel {
    position: relative;
    width: 280px;
    height: 380px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 340px;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.95) translateX(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    pointer-events: auto;
}

.carousel-slide.prev {
    opacity: 0;
    transform: scale(0.95) translateX(-20px);
}

/* Blurred background effect */
.photo-blur-bg {
    position: absolute;
    inset: -30px;
    background-position: center 20%;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(40px) saturate(0.8);
    opacity: 0.5;
    border-radius: var(--radius-lg);
    z-index: 0;
    transform: scale(1.1);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-smooth);
}

.carousel-slide:hover .profile-photo {
    transform: scale(1.02);
}

.bio-email {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-300);
    transition: all var(--transition-fast);
}

.bio-email:hover {
    color: var(--gray-600);
    border-color: var(--gray-600);
}

/* Carousel Navigation Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-md);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: var(--gray-500);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--gray-900);
    transform: scale(1.2);
}

/* Content */
.content {
    max-width: 500px;
}

.greeting {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-horizontal .tagline {
    justify-content: flex-start;
}

.tag {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--gray-100);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

.divider {
    color: var(--gray-400);
    font-size: 0.8rem;
}

.bio {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gray-800), var(--gray-400));
    margin: var(--space-sm) auto 0;
    border-radius: 2px;
}

/* ============================================
   Social Links Grid
   ============================================ */
.social-links {
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-sm);
}

.social-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.social-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    flex-shrink: 0;
    transition: all var(--transition-smooth);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-bounce);
}

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

/* Platform-specific icon colors (monochrome outline style) */
.tiktok .card-icon,
.instagram .card-icon,
.youtube .card-icon {
    background: var(--pure-white);
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

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

.card-arrow {
    font-size: 1.2rem;
    color: var(--gray-400);
    transition: transform var(--transition-fast);
}

.social-card:hover .card-arrow {
    transform: translateX(4px);
    color: var(--gray-900);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-900);
    border-radius: var(--radius-sm);
    color: var(--pure-white);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-value {
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
}

/* Donate Buttons */
.donate-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.donate-btn {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.donate-btn:hover {
    background: var(--gray-200);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.donate-icon {
    font-size: 1.2rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    text-align: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--gray-200);
    margin-top: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    :root {
        --space-xl: 3rem;
    }

    .container {
        padding: var(--space-md);
    }

    .hero-horizontal {
        flex-direction: column;
        text-align: center;
    }

    .hero-horizontal .content {
        order: 2;
        max-width: 100%;
    }

    .hero-horizontal .photo-wrapper {
        order: 1;
        margin-bottom: var(--space-lg);
    }

    .hero-horizontal .tagline {
        justify-content: center;
    }

    .photo-wrapper {
        width: 180px;
        height: 180px;
    }

    .tagline {
        flex-wrap: wrap;
    }

    .divider {
        display: none;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
    }

    .donate-buttons {
        flex-direction: column;
    }

    .donate-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }

    .photo-wrapper {
        width: 150px;
        height: 150px;
    }

    .social-card {
        padding: var(--space-sm);
    }

    .card-icon {
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .shape {
        animation: none;
    }

    .photo-border {
        animation: none;
    }
}

/* Focus states */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gray-400);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #1a1510;
        --text-secondary: #3d342d;
    }

    .social-card,
    .contact-card {
        border: 2px solid var(--gray-500);
    }
}