/* Global Configurations & Reset */
:root {
    --primary-green: #8AE322;
    --primary-green-glow: rgba(138, 227, 34, 0.4);
    --primary-green-dim: rgba(138, 227, 34, 0.15);
    
    --bg-dark: #070B06;
    --bg-dark-secondary: #0A1108;
    
    --text-white: #FFFFFF;
    --text-muted: #A3B59D;
    
    --card-bg: rgba(10, 18, 9, 0.6);
    --card-border: rgba(138, 227, 34, 0.12);
    --card-border-hover: rgba(138, 227, 34, 0.45);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-speed: 0.3s;
    --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px;
    overflow-x: hidden;
    position: relative;
}

/* Background Glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.3;
    pointer-events: none;
}

.bg-glow-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary-green) 0%, transparent 70%);
    top: -50px;
    right: -100px;
    animation: float-glow 8s ease-in-out infinite alternate;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0F2D07 0%, transparent 70%);
    bottom: -100px;
    left: -150px;
    animation: float-glow 12s ease-in-out infinite alternate-reverse;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(138, 227, 34, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 227, 34, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

@keyframes float-glow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 16px;
}

/* Share Button */
.share-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed) var(--transition-curve);
    z-index: 10;
}

.share-btn:hover {
    background: rgba(138, 227, 34, 0.15);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: rotate(15deg) scale(1.05);
    box-shadow: 0 0 15px var(--primary-green-glow);
}

.share-btn:active {
    transform: scale(0.95);
}

/* Profile Header */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
    width: 100%;
    animation: fade-in-up 0.8s var(--transition-curve);
}

.avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 18px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid var(--bg-dark);
    position: relative;
    z-index: 2;
    transition: transform 0.5s var(--transition-curve);
}

.avatar-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), #056608);
    z-index: 1;
    animation: rotate-glow-border 6s linear infinite;
    box-shadow: 0 0 20px var(--primary-green-glow);
}

.avatar-container:hover .profile-avatar {
    transform: scale(1.05);
}

@keyframes rotate-glow-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-name-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.verified-badge-img {
    width: 19px;
    height: 19px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}

/* Logo Pill Badge */
.logo-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(138, 227, 34, 0.08);
    border: 1px solid var(--primary-green-dim);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    transition: all var(--transition-speed) var(--transition-curve);
}

.logo-badge:hover {
    background: rgba(138, 227, 34, 0.15);
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(138, 227, 34, 0.25);
}

.logo-image {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-badge span {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-green);
    text-transform: uppercase;
}

.profile-bio {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 340px;
}

/* Links Container */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
    animation: fade-in-up 1s var(--transition-curve) 0.1s both;
}

/* Link Card */
.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text-white);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all var(--transition-speed) var(--transition-curve);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.link-card:hover::before {
    transform: translateX(100%);
}

.link-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-hover);
    box-shadow: 0 8px 25px rgba(5, 10, 5, 0.5), 0 0 15px rgba(138, 227, 34, 0.05);
}

.link-card:active {
    transform: translateY(-1px);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--primary-green);
    transition: all var(--transition-speed) var(--transition-curve);
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.link-card:hover .card-icon {
    background: var(--primary-green);
    color: var(--bg-dark);
    border-color: var(--primary-green);
    box-shadow: 0 0 12px var(--primary-green-glow);
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -0.2px;
    transition: color var(--transition-speed);
}

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

.card-description {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

.arrow-icon {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    transition: all var(--transition-speed) var(--transition-curve);
    position: relative;
    z-index: 2;
}

.arrow-icon svg {
    width: 18px;
    height: 18px;
}

.link-card:hover .arrow-icon {
    color: var(--primary-green);
    transform: translateX(4px);
}

/* WhatsApp Icon Specific */
.whatsapp-icon {
    color: #25D366;
}

.link-card:hover .whatsapp-icon {
    background: #25D366;
    color: var(--text-white);
    border-color: #25D366;
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.4);
}

/* Featured Card Styling */
.link-card.featured {
    border: 1px solid rgba(138, 227, 34, 0.3);
    background: linear-gradient(135deg, rgba(138, 227, 34, 0.06) 0%, rgba(10, 18, 9, 0.8) 100%);
    animation: border-pulse 2.5s infinite alternate;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle 120px at var(--x, 50%) var(--y, 50%), rgba(138, 227, 34, 0.12) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.link-card:hover .card-glow {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 0;
    right: 18px;
    background: var(--primary-green);
    color: #050a04;
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 0 0 6px 6px;
    z-index: 3;
    box-shadow: 0 2px 8px var(--primary-green-glow);
}

@keyframes border-pulse {
    0% {
        border-color: rgba(138, 227, 34, 0.25);
        box-shadow: 0 4px 15px rgba(5, 10, 5, 0.3), 0 0 0px rgba(138, 227, 34, 0);
    }
    100% {
        border-color: rgba(138, 227, 34, 0.55);
        box-shadow: 0 6px 20px rgba(5, 10, 5, 0.4), 0 0 12px rgba(138, 227, 34, 0.15);
    }
}

/* Social Links Section */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    width: 100%;
    animation: fade-in-up 1s var(--transition-curve) 0.2s both;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    transition: all var(--transition-speed) var(--transition-curve);
    text-decoration: none;
}

.social-icon-btn svg {
    width: 20px;
    height: 20px;
}

.social-icon-btn:hover {
    color: var(--primary-green);
    background: rgba(138, 227, 34, 0.1);
    border-color: var(--primary-green);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 15px var(--primary-green-glow);
}

.social-icon-btn:active {
    transform: scale(0.95);
}

/* Footer Section */
.profile-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    animation: fade-in 1.2s var(--transition-curve) 0.3s both;
}

.copyright {
    font-size: 11px;
    color: rgba(163, 181, 157, 0.45);
}

.branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.branding span:first-child {
    font-weight: 500;
}

.divider {
    opacity: 0.3;
}

.badge-ai {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-green);
    background: rgba(138, 227, 34, 0.08);
    border: 1px solid var(--primary-green-dim);
    padding: 2px 7px;
    border-radius: 4px;
}

/* Toast System */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 50px);
    background: rgba(10, 18, 9, 0.95);
    border: 1px solid var(--primary-green);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 13.5px;
    font-weight: 500;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-green-glow);
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Base Keyframe Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 400px) {
    body {
        padding: 16px 12px;
    }
    
    .profile-header {
        margin-bottom: 24px;
    }
    
    .avatar-container {
        width: 96px;
        height: 96px;
    }
    
    .profile-name {
        font-size: 21px;
    }
    
    .profile-bio {
        font-size: 13.5px;
    }
    
    .link-card {
        padding: 15px 16px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .card-description {
        font-size: 11.5px;
    }
}
