/* Brand Colors & Variables */
:root {
    --bg-dark: #050b18;
    --bg-deep: #02060e;
    --star-white: #ffffff;
    --star-gold: #ffdf91;
    --accent-blue: #3b82f6;
    --accent-purple: #7c3aed;
    --text-primary: #ffffff;
    --text-dim: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);

    /* Platform Colors */
    --brand-mail: #ea4335;
    --brand-linkedin: #0077b5;
    --brand-instagram: #e1306c;
    --brand-snapchat: #fffc00;
    --brand-github: #ffffff;
    --brand-youtube: #ff0000;
    --brand-facebook: #1877f2;
    --brand-portfolio: #3fb1f5;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(ellipse at bottom, var(--bg-dark) 0%, var(--bg-deep) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Starry Night Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    animation: twinkle var(--duration) infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Main Layout */
.container {
    width: 100%;
    padding: 1rem 1rem;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    justify-content: center;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 0.75rem;
    width: 100%;
}

.avatar-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 0.5rem;
}

.avatar-wrapper::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 2px solid rgba(255, 223, 145, 0.3);
    border-radius: 50%;
    animation: pulse-ring 4s infinite;
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    background: #111827;
}

.name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    letter-spacing: -0.02em;
    color: #fff;
}

/* Social Row Buttons */
.social-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.social-icon-btn {
    color: #fff;
    font-size: 1.25rem;
    transition: var(--transition);
    opacity: 0.8;
}

.social-icon-btn:hover {
    transform: translateY(-4px) scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 12px currentColor);
}

/* Brand Hovers (Social Row) */
.brand-mail {
    color: var(--brand-mail);
    filter: drop-shadow(0 0 5px rgba(234, 67, 53, 0.3));
}

.brand-linkedin {
    color: var(--brand-linkedin);
    filter: drop-shadow(0 0 5px rgba(0, 119, 181, 0.3));
}

.brand-instagram {
    color: #f09433;
    filter: drop-shadow(0 0 5px rgba(225, 48, 108, 0.3));
}

.brand-snapchat {
    color: var(--brand-snapchat);
    filter: drop-shadow(0 0 5px rgba(255, 252, 0, 0.3));
}

/* Links Grid List */
.links-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
}

.link-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.link-icon-circle {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    transition: var(--transition);
}

/* Brand Grid Icons (Persistent) */
.brand-github .link-icon-circle {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-portfolio .link-icon-circle {
    color: var(--brand-portfolio);
    border: 1px solid rgba(63, 177, 245, 0.2);
}

.brand-instagram .link-icon-circle {
    color: #ff585d;
    border: 1px solid rgba(225, 48, 108, 0.2);
}

.link-label {
    font-weight: 500;
    font-size: 0.95rem;
}

.chevron-icon {
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Grid Hover Animations (Desktop) */
@media (hover: hover) {
    .link-item:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    }

    /* Brand Card Glows */
    .brand-github:hover {
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    }

    .brand-portfolio:hover {
        border-color: rgba(63, 177, 245, 0.4);
        box-shadow: 0 0 25px rgba(63, 177, 245, 0.2);
    }

    .brand-instagram:hover {
        border-color: rgba(225, 48, 108, 0.4);
        box-shadow: 0 0 25px rgba(225, 48, 108, 0.2);
    }

    /* Brand Icon Shifts */
    .brand-github:hover .link-icon-circle {
        background: #fff;
        color: #000;
        box-shadow: 0 0 15px #fff;
    }

    .brand-portfolio:hover .link-icon-circle {
        background: var(--brand-portfolio);
        color: #fff;
        box-shadow: 0 0 15px var(--brand-portfolio);
    }

    .brand-instagram:hover .link-icon-circle {
        background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        color: #fff;
        box-shadow: 0 0 15px #d6249f;
    }
}

/* Footer Section */
.main-footer {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.footer-icon {
    font-size: 1.25rem;
    transition: var(--transition);
}

/* Footer Brand Colors (Persistent) */
.brand-youtube {
    color: var(--brand-youtube);
}

.brand-facebook {
    color: var(--brand-facebook);
}

.footer-icon:hover {
    transform: translateY(-3px) scale(1.25);
    filter: drop-shadow(0 0 10px currentColor);
}

.copy-text {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
}

.google-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin: 0.25rem 0 1.25rem;
    text-align: center;
    font-weight: 400;
    opacity: 0.8;
}

.google-hint span {
    color: var(--star-gold);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Larger Screens */
@media (min-width: 480px) {
    .container {
        padding: 2.5rem 1.5rem;
    }

    .name {
        font-size: 1.8rem;
    }

    .avatar-wrapper {
        width: 90px;
        height: 90px;
    }

    .link-item {
        padding: 0.9rem 1.4rem;
    }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}