@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0d0d0d;
    color: #ffffff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

#parallax-bg {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: linear-gradient(rgba(13, 13, 13, 0.7), rgba(13, 13, 13, 0.7)), url('images/camo.png');
    background-repeat: repeat;
    background-size: 250px;
    image-rendering: pixelated;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.container {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid #1a1a1a;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

#profile-description {
    font-size: 1rem;
    color: #a0a0a0;
    font-weight: 400;
}

.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Link Card with rotating blue border on hover */
.link-card {
    position: relative;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    padding: 2px; /* Border thickness */
    display: block;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.link-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--glow-color, #ff0000) 20%, transparent);
}

/* The gradient border that rotates */
.link-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2000px;
    height: 2000px;
    background: conic-gradient(from 0deg, transparent 0%, transparent 75%, color-mix(in srgb, var(--glow-color, #8b0000) 50%, transparent) 85%, var(--glow-color, #ff0000) 100%);
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.link-card:hover::before {
    opacity: 1;
    animation: rotate 2s linear infinite;
}

/* The inner content covering the gradient except the edges */
.link-card-content {
    position: relative;
    z-index: 1;
    background: #151515;
    width: 100%;
    height: 100%;
    border-radius: 10px; /* Slightly smaller to show the border */
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.link-card:hover .link-card-content {
    background: #1c1c1c;
}

.link-card-content i {
    font-size: 1.2rem;
    color: #a0a0a0;
    transition: color 0.3s ease;
}

.link-card:hover .link-card-content i {
    color: var(--glow-color, #ff0000);
}

.link-card-content span {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
}

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

.social-footer {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-icon {
    color: #a0a0a0;
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #ff0000;
    transform: scale(1.2);
}

/* --- Badges --- */
.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--badge-color, #ff0000);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--badge-color, #ff0000);
    animation: pulse-badge 2s infinite;
    z-index: 2;
}

@keyframes pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- Entrance Animations --- */
.animate-fade-up {
    opacity: 0;
    animation: fade-up 0.6s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-slide-right {
    opacity: 0;
    animation: slide-right 0.6s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-zoom-in {
    opacity: 0;
    animation: zoom-in 0.6s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-right {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes zoom-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Modal & Share --- */
.share-btn {
    margin-top: 1rem;
    cursor: pointer;
    color: #a0a0a0;
    font-size: 1.2rem;
    transition: color 0.3s;
    background: none;
    border: none;
}
.share-btn:hover {
    color: #ffffff;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 100;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s;
    border: 1px solid #333;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-content img {
    border-radius: 8px;
    margin-bottom: 1rem;
}
.close-modal {
    margin-top: 1rem;
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.close-modal:hover {
    background: #555;
}

/* --- Video Background --- */
#video-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.6;
    pointer-events: none;
}

/* --- Entrance Gate --- */
#entrance-gate {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}
#entrance-gate.hidden {
    opacity: 0;
    visibility: hidden;
}
