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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --hover-color: #334155;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a0a2e 30%, #2d1b3d 70%, #1a0a2e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid transparent;
    overflow: hidden;
    position: relative;
    animation: borderGlow 3s ease-in-out infinite;
}

.avatar::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #a855f7, #8b5cf6);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 3s linear infinite, borderPulse 2s ease-in-out infinite;
    z-index: -1;
}

.avatar::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: -2;
    filter: blur(10px);
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.8), 0 0 60px rgba(99, 102, 241, 0.5);
    }
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.username {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.bio {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.description {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 0;
    padding: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 32px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

.social-link i {
    font-size: 32px;
}

/* Section */
.section {
    margin-bottom: 30px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.link-card:hover {
    background: var(--hover-color);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.5);
}

.link-card:hover::before {
    transform: scaleY(1);
}

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Crypto Geek Store Card Style */
.cgs-card {
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 3px solid #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3), inset 0 0 10px rgba(34, 197, 94, 0.1);
}

.cgs-card::before {
    display: none;
}

.cgs-card:hover {
    background: rgba(34, 197, 94, 0.1) !important;
    border-color: #16a34a;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5), inset 0 0 15px rgba(34, 197, 94, 0.2);
}

.cgs-card .link-icon {
    border-radius: 0;
    background: transparent;
    width: auto;
    height: auto;
    max-width: 300px;
    max-height: 120px;
    border: none;
    padding: 0;
    align-self: flex-start;
}

.cgs-card .link-icon img {
    width: auto;
    height: auto;
    max-width: 300px;
    max-height: 120px;
    object-fit: contain;
}

.cgs-card .link-arrow {
    color: #22c55e;
}

.cgs-card:hover .link-arrow {
    color: #16a34a;
}

.cgs-card {
    flex-direction: column;
    align-items: stretch;
}

.cgs-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.cgs-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.cgs-link-icon {
    color: #22c55e;
    font-size: 14px;
}

.cgs-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cgs-description {
    margin-top: 15px;
    padding: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    width: 100%;
}

.cgs-description p {
    margin-bottom: 10px;
    text-align: left;
}

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

.cgs-description .tech-stack {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(34, 197, 94, 0.2);
    font-size: 12px;
    color: var(--text-secondary);
    text-align: left;
}

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

/* Predictech Card Style */
.predictech-card {
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 3px solid #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3), inset 0 0 10px rgba(139, 92, 246, 0.1);
    flex-direction: column;
    align-items: stretch;
}

.predictech-card::before {
    display: none;
}

.predictech-card:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: #7c3aed;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), inset 0 0 15px rgba(139, 92, 246, 0.2);
}

.predictech-card .link-icon {
    border-radius: 0;
    background: transparent;
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 60px;
    border: none;
    padding: 0;
}

.predictech-card .link-icon img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.predictech-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.predictech-header-content {
    width: 100%;
}

.predictech-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.predictech-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.predictech-link-icon {
    color: #8b5cf6;
    font-size: 14px;
}

.predictech-description {
    margin-top: 15px;
    padding: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    width: 100%;
}

.predictech-description p {
    margin-bottom: 10px;
    text-align: left;
}

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

.predictech-description .tech-stack {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 12px;
    color: var(--text-secondary);
    text-align: left;
}

.predictech-description .tech-stack strong {
    color: var(--text-primary);
}

/* Bella Napoli Card Style */
.bellanapoli-card {
    border-radius: 0 !important;
    background: url('media/bnwp.png') no-repeat center center;
    background-size: cover;
    background-position: center center !important;
    background-color: rgba(0, 0, 0, 0.8);
    border: 3px solid #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3), inset 0 0 10px rgba(6, 182, 212, 0.1);
    flex-direction: column;
    align-items: stretch;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.bellanapoli-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

.bellanapoli-card > * {
    position: relative;
    z-index: 1;
}

.bellanapoli-card::before {
    display: none;
}

.link-card.bellanapoli-card:hover {
    background-image: url('media/bnwp.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-color: #0891b2;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5), inset 0 0 15px rgba(6, 182, 212, 0.2);
}

.link-card.bellanapoli-card:hover::after {
    background: rgba(0, 0, 0, 0.8) !important;
}

.bellanapoli-card .link-icon {
    border-radius: 0;
    background: transparent;
    width: auto;
    height: auto;
    max-width: 300px;
    max-height: 120px;
    border: none;
    padding: 0;
    align-self: flex-start;
}

.bellanapoli-card .link-icon img {
    width: auto;
    height: auto;
    max-width: 300px;
    max-height: 120px;
    object-fit: contain;
}

.bellanapoli-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.bellanapoli-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bellanapoli-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.bellanapoli-link-icon {
    color: #06b6d4;
    font-size: 14px;
}

.bellanapoli-description {
    margin-top: 15px;
    padding: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    width: 100%;
}

.bellanapoli-description p {
    margin-bottom: 10px;
    text-align: left;
}

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

.bellanapoli-description .tech-stack {
    margin-top: 10px;
    padding-top: 0;
    border-top: none;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: left;
}

.bellanapoli-description .tech-stack strong {
    color: var(--text-primary);
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.link-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.link-description {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
    line-height: 1.5;
}

.link-arrow {
    color: var(--text-secondary);
    font-size: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer i {
    color: var(--text-primary);
    margin: 0 5px;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 10px 0;
    }

    .avatar {
        width: 100px;
        height: 100px;
        font-size: 70px;
    }

    .username {
        font-size: 24px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        font-size: 28px;
    }
    
    .social-link i {
        font-size: 28px;
    }

    .link-card {
        padding: 15px;
    }

    .link-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .link-content h3 {
        font-size: 16px;
    }

    .link-content p {
        font-size: 13px;
    }

    .link-description {
        font-size: 12px;
    }

    /* Predictech mobile layout */
    .predictech-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .predictech-header-content {
        width: 100%;
    }

    .predictech-title-row {
        width: 100%;
        justify-content: flex-start;
        align-items: center;
    }

    .predictech-header h3 {
        font-size: 16px;
        color: var(--text-primary);
    }

    .predictech-link-icon {
        font-size: 14px;
        color: #8b5cf6;
    }

    /* CGS mobile - smaller PNG */
    .cgs-card .link-icon {
        max-width: 200px;
        max-height: 80px;
    }

    .cgs-card .link-icon img {
        max-width: 200px;
        max-height: 80px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section,
.section {
    animation: fadeIn 0.6s ease-out;
}

.section:nth-child(2) {
    animation-delay: 0.1s;
}

.section:nth-child(3) {
    animation-delay: 0.2s;
}

.section:nth-child(4) {
    animation-delay: 0.3s;
}

