:root {
    --bg-dark: #070709;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --brand-accent: #ebdcc5;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

/* Background video container */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35; /* Lower than 50% for subtle visual context */
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Film grain effect */
.film-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04; /* Very subtle grain */
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(7, 7, 9, 0.9) 100%);
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 4rem 1.5rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Header */
.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.8s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cs-logo-header {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-bottom: 1.5rem;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}

/* Stats Section (Centered, Grid-based responsive layout) */
.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2.5rem;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: clamp(1rem, 3vw, 1.25rem) clamp(0.5rem, 2vw, 1rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.68rem, 2vw, 0.75rem);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 6px;
    font-weight: 600;
}

/* Links Section */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.link-card {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: clamp(0.9rem, 2.5vw, 1.1rem) clamp(1rem, 3vw, 1.4rem);
    text-decoration: none;
    color: var(--text-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.link-icon {
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    color: var(--text-main);
    margin-right: clamp(0.8rem, 2.5vw, 1.2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    transition: color 0.2s ease;
}

.link-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
    flex-grow: 1;
    letter-spacing: 0.2px;
}

.link-arrow {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Touch Active States (For Mobile response) */
.link-card:active {
    transform: scale(0.98);
    background-color: var(--bg-card-hover);
}

/* Hover-only Styles (Prevents sticky hovers on touch devices) */
@media (hover: hover) {
    .stat-box:hover {
        transform: translateY(-2px);
        background-color: var(--bg-card-hover);
        border-color: rgba(255, 255, 255, 0.12);
    }
    
    .link-card:hover {
        transform: translateY(-3px) scale(1.01);
        background-color: var(--bg-card-hover);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
    
    .link-card:hover::before {
        transform: scaleY(1);
    }
    
    .link-card:hover .link-icon {
        color: var(--card-color);
    }
    
    .link-card:hover .link-arrow {
        transform: translate(2px, -2px);
        color: var(--text-main);
    }
}

/* Premium Glass Footer (Matching cookie-awards) */
.app-footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: clamp(2rem, 6vw, 3rem) 2rem 2rem 2rem;
    margin-top: clamp(2.5rem, 8vw, 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.footer-divider {
    width: 100%;
    max-width: 600px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1) 50%, transparent);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: visible;
}

/* Invisible overlay blocker that prevents right-clicks/saves */
.footer-logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12;
    background: transparent;
    pointer-events: auto;
}

.footer-logo-img {
    width: 95vw;
    max-width: 1200px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.65));
    opacity: 0.85;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    z-index: 11;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Small Screens Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 2.5rem 1rem 0 1rem;
    }
    
    .stats-container {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
}

