/* ============================================================
   FILE: style.css (shared styles for all pages)
   THEME: Black & Purple
   ============================================================ */

/* ========== GLOBAL RESET & BASE ========== */
/* Every rule is explained so you can tweak anything. */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root variables – change these to adjust colours */
:root {
    --bg-primary: #0d0d0d;          /* deep black base */
    --bg-secondary: #1a1a1a;        /* slightly lighter black for cards */
    --bg-card: #222;                /* card background */
    --purple-primary: #9b4dff;      /* main purple (vivid) */
    --purple-secondary: #7b2fbe;    /* darker purple for hover */
    --purple-glow: rgba(155, 77, 255, 0.25);
    --text-light: #f0edf5;          /* off-white text */
    --text-muted: #b3a8c7;          /* muted purple-grey */
    --border-purple: #6a2b9e;
    --font: 'Inter', sans-serif;
    --transition: 0.3s ease;
    --radius: 16px;
}

body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* subtle purple radial glow */
    background-image: radial-gradient(circle at 50% 0%, rgba(155, 77, 255, 0.08) 0%, transparent 70%);
    background-repeat: no-repeat;
}

/* ========== MAIN CONTAINER ========== */
.container {
    max-width: 780px;
    width: 100%;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 40px 35px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(155, 77, 255, 0.15);
    border: 1px solid rgba(155, 77, 255, 0.10);
    transition: var(--transition);
}

/* ========== NAVIGATION ========== */
.nav-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(155, 77, 255, 0.20);
    padding-bottom: 16px;
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-block;
}

.nav-link:hover {
    color: var(--text-light);
    background: rgba(155, 77, 255, 0.10);
}

/* Active link – purple background & white text */
.nav-link.active {
    background: var(--purple-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(155, 77, 255, 0.35);
}

/* ========== PAGES ========== */
.page {
    display: block;
    animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ========== ABOUT PAGE ========== */
.about-header {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.3), 0 8px 30px rgba(155, 77, 255, 0.20);
    flex-shrink: 0;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-title h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about-title .tagline {
    color: var(--purple-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 4px;
    display: block;
}

.about-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 18px 0 10px;
    background: rgba(155, 77, 255, 0.04);
    padding: 20px 22px;
    border-radius: 12px;
    border-left: 3px solid var(--purple-primary);
}

.about-bio strong {
    color: var(--text-light);
}

.about-details {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(155, 77, 255, 0.12);
}

.about-details span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-details i {
    color: var(--purple-primary);
    width: 20px;
    text-align: center;
}

/* ========== LINKS PAGE ========== */
.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 8px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--bg-card);
    padding: 18px 24px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-light);
    border: 1px solid rgba(155, 77, 255, 0.10);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-3px);
    background: #2a1a3a;
    border-color: var(--purple-primary);
    box-shadow: 0 8px 30px rgba(155, 77, 255, 0.15);
}

.link-card .icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(155, 77, 255, 0.12);
    color: var(--purple-primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.link-card:hover .icon {
    background: var(--purple-primary);
    color: #fff;
    box-shadow: 0 0 24px rgba(155, 77, 255, 0.30);
}

.link-card .info {
    flex: 1;
}

.link-card .info .platform {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

.link-card .info .handle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.link-card .arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.link-card:hover .arrow {
    color: var(--purple-primary);
    transform: translateX(4px);
}

/* ========== FOOTER ========== */
.footer {
    margin-top: 35px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(155, 77, 255, 0.08);
    padding-top: 20px;
    letter-spacing: 0.3px;
}

.footer a {
    color: var(--purple-primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 500px) {
    .container {
        padding: 24px 18px 20px;
    }
    .about-header {
        flex-direction: column;
        text-align: center;
    }
    .avatar {
        width: 80px;
        height: 80px;
        font-size: 2.4rem;
    }
    .about-title h1 {
        font-size: 1.6rem;
    }
    .nav-tabs {
        justify-content: center;
        gap: 8px;
    }
    .nav-link {
        font-size: 0.95rem;
        padding: 6px 16px;
    }
    .link-card {
        padding: 14px 18px;
    }
    .link-card .icon {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }
    .about-details {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 16px 12px;
    }
    .nav-link {
        font-size: 0.85rem;
        padding: 4px 12px;
    }
}