/* ====== CSS VARIABLES ====== */
:root {
    --bg-color: #0d0d10;
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --accent: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover-bg: rgba(255, 255, 255, 0.07);
    --glass-hover-border: rgba(255, 255, 255, 0.2);
    
    /* Grain SVG data URI */
    --grain: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* ====== RESET & BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* ====== VIDEO HEADER ====== */
.video-container {
    position: relative;
    width: 100%;
    /* Maintain 16:9 aspect ratio */
    aspect-ratio: 16 / 9;
    max-height: 50vh; /* Don't take up too much vertical space on tall screens */
    overflow: hidden;
    z-index: 1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Feathered fade effect from video to the solid background */
.video-fade {
    position: absolute;
    bottom: -1px; /* Avoid 1px gaps */
    left: 0;
    width: 100%;
    height: 60%; /* The fade will cover the bottom 50% of the video */
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
    pointer-events: none;
}

/* ====== MAIN CONTENT ====== */
.solid-block {
    position: relative;
    flex: 1;
    background-color: var(--bg-color);
    padding: 0 24px 64px 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Pull the content slightly up into the fade area */
    margin-top: -8%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.logo-wrapper {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 2px solid var(--glass-border);
    padding: 4px;
    background: var(--glass-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.name {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 36px;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--grain);
    opacity: 0.2;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.social-icon:hover {
    transform: translateY(-4px);
    background: var(--glass-hover-bg);
    border-color: var(--glass-hover-border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 12px rgba(255,255,255,0.05);
    color: var(--accent);
}

/* ====== LIQUID GLASS BUTTONS ====== */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.liquid-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    border-radius: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 
        0 4px 24px rgba(0,0,0,0.2), 
        inset 0 1px 1px rgba(255,255,255,0.1);
    group: button; /* for tailwind-like hover context if needed */
}

/* The Grain */
.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--grain);
    background-size: 200px; /* Adjust size of grain noise */
    opacity: 0.15;
    mix-blend-mode: color-dodge;
    pointer-events: none;
    z-index: 1;
}

/* Liquid / Glass Shine Effect */
.glass-shine {
    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: left 0.7s ease;
    z-index: 2;
    pointer-events: none;
}

.button-content {
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    z-index: 3;
    position: relative;
    transition: transform 0.3s ease;
}

.button-icon {
    font-size: 1.2rem;
    z-index: 3;
    position: relative;
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Interaction States */
.liquid-button:hover {
    background: var(--glass-hover-bg);
    border-color: var(--glass-hover-border);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.4), 
        inset 0 1px 2px rgba(255,255,255,0.2);
}

.liquid-button:hover .glass-shine {
    left: 200%;
}

.liquid-button:hover .button-content {
    transform: translateX(4px);
}

.liquid-button:hover .button-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}

.liquid-button:active {
    transform: translateY(1px) scale(0.98);
}

/* Simple entry animations */
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.profile-section {
    animation: slideUpFade 0.8s ease-out forwards;
}

.social-links {
    animation: slideUpFade 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.links-container .liquid-button:nth-child(1) { animation: slideUpFade 0.8s ease-out 0.3s forwards; opacity: 0; }
.links-container .liquid-button:nth-child(2) { animation: slideUpFade 0.8s ease-out 0.4s forwards; opacity: 0; }
.links-container .liquid-button:nth-child(3) { animation: slideUpFade 0.8s ease-out 0.5s forwards; opacity: 0; }
.links-container .liquid-button:nth-child(4) { animation: slideUpFade 0.8s ease-out 0.6s forwards; opacity: 0; }

