:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --text-muted: #888888;
    --accent-color: #ffffff;
    --gradient-start: #5CE1E6;
    --gradient-end: #202B67;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-bg-hover: rgba(255, 255, 255, 0.08);
}

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

/* Prevent image downloading via drag or long press */
img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    /* Soft ambient background glow reflecting the design portfolio */
    background-image: radial-gradient(circle at 50% 20%, rgba(92, 225, 230, 0.08) 0%, transparent 60%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
}

::selection {
    background: var(--gradient-start);
    color: #fff;
}

/* Container limits width to look like an app/mobile interface */
.link-container {
    width: 100%;
    max-width: 680px;
    padding: 2rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Top Actions */
.top-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.icon-button {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.icon-button:hover {
    background: var(--card-bg-hover);
    color: var(--gradient-start);
    transform: translateY(-2px);
}

/* Profile Header */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.avatar-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    margin-bottom: 1rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #000;
}

.username {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.bio {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 90%;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--gradient-start);
    transform: translateY(-3px);
}

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

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

.link-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.1rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(10px);
}

.link-card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(92, 225, 230, 0.3);
    /* Subtle neon border on hover */
}

.link-icon {
    position: absolute;
    left: 1.8rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fiverr-icon {
    width: 1.4rem;
    height: 1.4rem;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask: url('../assets/fiverr-svgrepo-com.svg') no-repeat center / contain;
    mask: url('../assets/fiverr-svgrepo-com.svg') no-repeat center / contain;
}

.link-text {
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
}

.ellipsis-icon {
    color: var(--text-muted);
    font-size: 1rem;
    opacity: 0.5;
}

.link-card:hover .ellipsis-icon {
    opacity: 1;
}

.link-card:hover .link-icon {
    color: var(--gradient-start);
}

/* Footer Chip */
.footer-chip {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.chip-text {
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(10px);
}

.chip-text:hover {
    background: var(--card-bg-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(92, 225, 230, 0.3);
    color: var(--gradient-start);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    width: 90%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--gradient-start);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.qr-code-container {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.qr-code-container img {
    display: block;
    width: 180px;
    height: 180px;
}

.copy-link-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.copy-link-btn:hover {
    background: var(--card-bg-hover);
    border-color: rgba(92, 225, 230, 0.3);
    color: var(--gradient-start);
}

/* Custom Floating Cal Button */
.floating-cal-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(10px);
    z-index: 100;
    font-family: inherit;
}

.floating-cal-btn i {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.floating-cal-btn:hover {
    background: var(--card-bg-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(92, 225, 230, 0.3);
}

.floating-cal-btn:hover i {
    color: var(--gradient-start);
}

/* Privacy Link */
.privacy-link {
    margin-top: 1.5rem;
    color: #555;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--gradient-start);
}