:root {
    --bg-color: #030a16;
    --primary: #8ecae6; /* Icy frost blue */
    --primary-glow: rgba(142, 202, 230, 0.4);
    --secondary: #0077b6; /* Deep ocean/winter blue */
    --text-primary: #ffffff;
    --text-secondary: #b0c4de;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    background-image: url('assets/bg_winter.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.9) 100%);
}

.glow {
    position: absolute;
    width: 60vh;
    height: 60vh;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 60%);
    top: -10vh;
    right: -10vh;
    border-radius: 50%;
    filter: blur(50px);
    animation: pulse 10s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
    opacity: 0.8;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    100% { transform: scale(1.3) translate(-80px, 80px); opacity: 0.9; }
}

.container {
    width: 100%;
    max-width: 650px;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    z-index: 1;
}

/* Profile Section */
.profile {
    text-align: center;
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.avatar-container {
    width: 130px;
    height: 130px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 25px var(--primary-glow);
    position: relative;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background-color: var(--bg-color);
    position: relative;
    z-index: 2;
}

/* Floating particles effect around avatar */
.avatar-container::before, .avatar-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    border: 1px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: ripple 3s infinite linear;
}
.avatar-container::after {
    animation-delay: 1.5s;
}

@keyframes ripple {
    0% { width: 100%; height: 100%; opacity: 0.6; }
    100% { width: 140%; height: 140%; opacity: 0; }
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Base Link Cards */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.links-section h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 600;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

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

.link-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.03);
    border-color: rgba(255, 255, 255, 0.25);
}

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

/* Featured Book Section */
.featured {
    background: linear-gradient(180deg, rgba(142, 202, 230, 0.06) 0%, rgba(142, 202, 230, 0.01) 100%);
    border: 1px solid rgba(142, 202, 230, 0.2);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 0 40px rgba(142, 202, 230, 0.05);
    position: relative;
    overflow: hidden;
}

/* Subtle corner glow for the featured box */
.featured::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.book-cover {
    width: 160px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px var(--primary-glow);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.book-cover:hover {
    transform: scale(1.08) rotateY(-8deg) rotateX(4deg);
}

.book-info {
    text-align: center;
}

.book-info h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    font-style: italic;
    background: linear-gradient(90deg, var(--primary), #fff3b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.book-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 250px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Icons styling */
.icon {
    width: 24px;
    height: 24px;
    position: absolute;
    left: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.icon svg, .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.link-card.social:hover .icon {
    transform: scale(1.15);
}

/* Book links specific */
.book-link {
    background: rgba(142, 202, 230, 0.08);
    border-color: rgba(142, 202, 230, 0.2);
}

.book-link:hover {
    background: rgba(142, 202, 230, 0.15);
    border-color: rgba(142, 202, 230, 0.5);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 25px rgba(142, 202, 230, 0.15);
    color: #fff;
}

footer {
    text-align: center;
    margin-top: 1rem;
    padding-bottom: 2rem;
}

footer p {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile responsive fixes */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1.2rem;
        gap: 2rem;
    }
    .avatar-container {
        width: 110px;
        height: 110px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .link-card {
        padding: 1rem 1.2rem;
        font-size: 1.05rem;
    }
    .book-cover {
        width: 140px;
    }
}
