:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --accent: #0dfc5e; /* Modern neon green */
    --accent-glow: rgba(13, 252, 94, 0.2);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.06);
    --border-radius: 20px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Background gradient blobs to add depth */
.blob-bg {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
    animation: rotate-blob 20s infinite linear;
}

@keyframes rotate-blob {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

.blob-2 {
    top: auto;
    bottom: -200px;
    opacity: 0.3;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 680px;
    padding: 3rem 1.5rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.profile-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1.5rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--card-border);
    padding: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-speed) ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* Status dot indicating online/active */
.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 252, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(13, 252, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 252, 94, 0); }
}

.name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.2rem;
}

.signature {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.subtitle-alternative {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    font-weight: 400;
}

/* Bio Section */
.bio {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 480px;
}

.bio .highlight {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-top: 0.8rem;
}

/* Sub-Divider */
.divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

.divider-text {
    padding: 0 1.2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Links Section */
.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    /* Default brand color */
    --hover-color: var(--accent);
    --hover-glow: var(--accent-glow);
    /* 3D Transform defaults */
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
}

.brand-makerworld { --hover-color: #0dfc5e; --hover-glow: rgba(13, 252, 94, 0.3); }
.brand-tiktok { --hover-color: #00f2fe; --hover-glow: rgba(0, 242, 254, 0.3); }
.brand-youtube { --hover-color: #ff0000; --hover-glow: rgba(255, 0, 0, 0.3); }

.link-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--hover-glow), transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-speed);
    z-index: 0;
}

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

.link-card:hover {
    transition: transform 0.1s linear, background 0.3s, border-color 0.3s, box-shadow 0.3s;
    background: var(--card-hover-bg);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.link-card:active {
    transform: perspective(1000px) scale3d(0.98, 0.98, 0.98) !important;
}

.link-card.featured {
    border-color: rgba(13, 252, 94, 0.2);
    box-shadow: 0 0 20px rgba(13, 252, 94, 0.05);
    background: linear-gradient(145deg, var(--card-bg), rgba(13, 252, 94, 0.03));
}

.link-card.featured:hover {
    border-color: var(--hover-color);
    box-shadow: 0 0 25px var(--hover-glow);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    z-index: 1;
}

.icon {
    font-size: 1.5rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.link-card:hover .icon {
    color: var(--bg-color);
    background: var(--hover-color);
    transform: translateZ(20px);
}

.link-card.featured:hover .icon {
    background: var(--hover-color);
    color: var(--bg-color);
    transform: translateZ(20px) rotate(-10deg);
}

.link-title {
    font-weight: 600;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.1rem;
}

.link-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    display: block;
}

.arrow {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all var(--transition-speed);
    z-index: 1;
}

.link-card:hover .arrow {
    color: var(--hover-color);
    transform: translate(2px, -2px) translateZ(15px);
}

.link-card.featured:hover .arrow {
    color: var(--hover-color);
}

.link-content, .arrow {
    transform: translateZ(10px);
}

/* Footer */
.footer {
    margin-top: 4rem;
    text-align: center;
    width: 100%;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.socials a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all var(--transition-speed);
}

.socials a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Stats & Counters */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    margin-bottom: 4rem;
    width: 100%;
}

.stat-box {
    text-align: center;
    flex: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1;
    letter-spacing: -0.02em;
    transition: color 0.3s, text-shadow 0.3s;
}

.stat-box:hover .stat-number {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* Footer Links (Impressum) */
.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: color var(--transition-speed), text-decoration-color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--text-primary);
    text-decoration-color: var(--text-primary);
}

/* Modal / Impressum */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85); /* Darker for better contrast */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0a0a0c; /* Solid dark background */
    width: 90%;
    max-width: 680px; /* Match main container width */
    max-height: 80vh;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent);
    color: var(--bg-color);
    transform: rotate(90deg);
}

.modal-scroll {
    overflow-y: auto;
    padding: 3rem 2.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.modal-scroll::-webkit-scrollbar {
    width: 6px;
}
.modal-scroll::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 4px;
}

.modal-scroll h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.impressum-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.impressum-text p {
    margin-bottom: 1.2rem;
}

.impressum-text strong {
    color: var(--text-primary);
}

.impressum-text a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

.impressum-text a:hover {
    text-decoration: underline;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1.2rem;
    }
    .profile-container {
        width: 100px;
        height: 100px;
    }
    .name {
        font-size: 1.8rem;
    }
    .bio {
        font-size: 0.95rem;
    }
    .stats-container {
        flex-direction: column;
        gap: 1rem;
    }
    .stat-number {
        font-size: 1.7rem;
    }
    .divider-text {
        font-size: 0.75rem;
        padding: 0 0.8rem;
    }
    .link-card {
        padding: 0.9rem 1rem;
    }
    .link-title {
        font-size: 1rem;
    }
    .icon {
        font-size: 1.3rem;
        padding: 8px;
    }
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    .modal-scroll {
        padding: 2rem 1.5rem;
    }
}
