:root {
    --bg-color-deep: #050811;
    --bg-color-gradient: #0b1328;
    --primary-blue: #1d4ed8; 
    --neon-blue: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover-bg: rgba(255, 255, 255, 0.08);
    --glass-hover-border: rgba(59, 130, 246, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: radial-gradient(circle at top right, var(--bg-color-gradient), var(--bg-color-deep));
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Particle Canvas */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 480px;
    padding: 2rem 1.5rem;
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header & Logo */
.profile {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease forwards;
}

.logo-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1.2rem;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px; /* Optional, depending on logo bounds */
    position: relative;
    z-index: 2;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--neon-blue);
    filter: blur(40px);
    opacity: 0.5;
    z-index: 1;
    animation: pulse 3s infinite alternate;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    background: linear-gradient(to right, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Link Cards */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    
    /* Animation setup */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(var(--animation-order) * 0.1s + 0.3s);
}

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

.link-card:hover::before {
    left: 150%;
}

.link-card:hover {
    background: var(--glass-hover-bg);
    border-color: var(--glass-hover-border);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.link-card .icon {
    font-size: 1.4rem;
    margin-right: 1.2rem;
    color: var(--neon-blue);
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.link-card:hover .icon {
    transform: scale(1.1);
}

.link-card .link-text {
    flex-grow: 1;
    text-align: center;
    padding-right: 2rem; /* visually balances the icon space */
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

/* Social Icons */
.socials {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
    
    /* Animation setup */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(var(--animation-order) * 0.1s + 0.3s);
}

.socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.socials a:hover {
    color: var(--neon-blue);
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 0 8px var(--neon-blue));
}

/* Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.7; }
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .container {
        padding: 1.5rem 1rem;
    }
    .brand-name {
        font-size: 1.5rem;
    }
    .link-card {
        padding: 1rem 1.2rem;
    }
}
