/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    min-height: 100vh;
    background: url('../assets/background-optimized.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll; /* Mobile-optimized, no fixed attachment */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #fff;
}

/* Desktop/wide displays - show full vertical image and enable fixed parallax */
@media (min-width: 768px) and (orientation: landscape) {
    body {
        background-size: auto 100%;
        background-position: center center;
        background-attachment: fixed; /* Enable parallax effect on desktop only */
    }
}

/* Very wide displays - ensure full height coverage */
@media (min-width: 1200px) {
    body {
        background-size: auto 100%;
        background-attachment: fixed;
    }
}

/* Dark overlay for better text readability */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.container {
    max-width: 680px;
    width: 100%;
    animation: fadeIn 0.6s ease-in;
    position: relative;
    z-index: 1;
}

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

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-bio {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-top: 24px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.category-title:first-child {
    margin-top: 0;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.link-btn:active {
    transform: translateY(0);
}

.link-btn.primary {
    background: linear-gradient(135deg, #ff6b9d 0%, #c06c84 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

.link-btn.primary:hover {
    background: linear-gradient(135deg, #ff7ba8 0%, #d07d95 100%);
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.4);
}

.link-icon {
    font-size: 24px;
}

.link-text {
    flex: 1;
    text-align: center;
}

/* Button thumbnail images */
.btn-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.link-btn:hover .btn-thumbnail {
    transform: scale(1.1);
}

/* Platform logos */
.platform-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(1);
}

.link-btn:hover .platform-logo {
    transform: scale(1.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        /* Mobile-specific: ensure scroll performance */
        background-attachment: scroll;
    }

    .profile-img {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 28px;
    }

    .category-title {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .link-btn {
        padding: 16px 20px;
        font-size: 16px;
    }

    .link-icon {
        font-size: 20px;
    }

    .btn-thumbnail {
        width: 40px;
        height: 40px;
    }

    .platform-logo {
        width: 28px;
        height: 28px;
    }
}
