:root {
    --bg-color: #0b1016;
    --card-bg: #151b24;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-color: #00ff9d;
    /* Neon Green */
    --accent-secondary: #0ea5e9;
    /* Sky Blue */
    --accent-hover: #00cc7d;
    --border-color: #2d3748;
    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Cyber Background Effect */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 255, 157, 0.05) 0%, transparent 25%);
    z-index: -2;
}

/* Grid overlay */
.matrix-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(45, 55, 72, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 55, 72, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.profile-card {
    background: rgba(21, 27, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.profile-header {
    text-align: center;
    margin-bottom: 24px;
}

.profile-image-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: all 0.3s ease;
    /* Fix for hover glitch on some browsers */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Ensure image itself is round */
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2) brightness(0.9);
    transition: all 0.5s ease;

}

.profile-avatar:hover img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.1);
}

.profile-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.2), rgba(14, 165, 233, 0.2));
    border-radius: 50%;
    mix-blend-mode: overlay;
    pointer-events: none;
    transition: opacity 0.3s;
}

.profile-avatar:hover::after {
    opacity: 0;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-titles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.badge {
    padding: 6px 12px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.badge.scanner {
    background: rgba(0, 255, 157, 0.1);
    border-color: rgba(0, 255, 157, 0.2);
    color: var(--accent-color);
}

.profile-bio {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
    padding: 0 10px;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    margin: 32px 0 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.section-divider span {
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.service-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid transparent;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-item i {
    font-size: 1.5rem;
    color: var(--accent-secondary);
}

.service-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Link Actions */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-btn {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 12px;
    /* Slightly squarer than pill */
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.01);
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--btn-color, var(--text-secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 1.25rem;
    margin-right: 16px;
    transition: all 0.3s;
}

.link-text {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.arrow-icon {
    margin-right: 16px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: all 0.3s;
    color: var(--text-secondary);
}

.link-btn:hover .arrow-icon {
    opacity: 1;
    transform: translate(0, 0);
}

.email {
    --btn-color: #ef4444;
}

.email .icon-box {
    color: #ef4444;
}

.whatsapp {
    --btn-color: #25D366;
}

.whatsapp .icon-box {
    color: #25D366;
}

.linkedin {
    --btn-color: #0077b5;
}

.linkedin .icon-box {
    color: #0077b5;
}

.github {
    --btn-color: #ffffff;
}

.github .icon-box {
    color: #ffffff;
}

/* Footer */
.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 480px) {
    .profile-card {
        padding: 24px;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    .container {
        max-width: 100%;
    }

    body {
        padding: 0;
    }
}