:root {
    --bg-dark: #0a0a0c;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #6d28d9;
    --accent-glow: rgba(109, 40, 217, 0.4);
    --accent-hover: #8b5cf6;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

    --btn-primary-bg: rgba(255, 255, 255, 0.06);
    --btn-primary-hover: rgba(255, 255, 255, 0.12);

    --btn-secondary-bg: transparent;
    --btn-secondary-border: rgba(255, 255, 255, 0.1);
    --btn-secondary-hover: rgba(255, 255, 255, 0.05);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loader-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* --- BACKGROUND EFFECTS --- */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s ease-in-out infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-30px) scale(1.1);
    }
}

/* --- MAIN CONTAINER --- */
.wrapper {
    width: 100%;
    max-width: 460px;
    padding: 0 8px;
    z-index: 10;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 14px 16px;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Animations that are triggered after load */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- PROFILE --- */
.profile-wrapper {
    position: relative;
    margin-bottom: 8px;
    width: 90px;
    height: 90px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hover-float:hover .profile-img {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-color: #10b981;
    /* Online green */
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

/* --- TYPOGRAPHY --- */
.title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wave {
    display: inline-block;
    animation: wave-animation 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-animation {
    0% {
        transform: rotate(0.0deg)
    }

    10% {
        transform: rotate(14.0deg)
    }

    20% {
        transform: rotate(-8.0deg)
    }

    30% {
        transform: rotate(14.0deg)
    }

    40% {
        transform: rotate(-4.0deg)
    }

    50% {
        transform: rotate(10.0deg)
    }

    60% {
        transform: rotate(0.0deg)
    }

    100% {
        transform: rotate(0.0deg)
    }
}

.title .highlight {
    background: linear-gradient(135deg, #a78bfa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-container {
    height: 18px;
    margin-bottom: 2px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background-color: var(--accent);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.location {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0.8;
}

.divider {
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    margin: 8px 0;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* --- LINKS --- */
.links-section {
    width: 100%;
    margin-bottom: 8px;
}

.links-section:last-of-type {
    margin-bottom: 0;
}

.section-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-align: left;
    padding-left: 2px;
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.links-grid-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn svg {
    flex-shrink: 0;
    opacity: 0.9;
    width: 16px;
    height: 16px;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 12px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--text-secondary);
    border: 1px solid var(--btn-secondary-border);
    font-size: 0.8rem;
    padding: 6px 8px;
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-paypal:hover {
    color: #0070ba;
    border-color: rgba(0, 112, 186, 0.5);
    background-color: rgba(0, 112, 186, 0.1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.btn:hover::after {
    left: 150%;
}

.footer-text {
    margin-top: 6px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* --- RESPONSIVE --- */
@media (max-height: 700px) {
    body {
        align-items: flex-start;
    }

    .wrapper {
        height: auto;
        min-height: 100vh;
        padding: 16px 8px;
    }

    .profile-wrapper {
        width: 75px;
        height: 75px;
        margin-bottom: 8px;
    }

    .title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .glass-container {
        padding: 24px 16px;
    }

    .links-grid-social {
        grid-template-columns: 1fr;
    }
}