/* ====================================
   LensError - Neumorphism Dark Purple Theme
   ==================================== */

/* CSS Custom Properties */
:root {
    /* Dark Purple Color Palette */
    --bg-darkest: #0d0a12;
    --bg-dark: #14101c;
    --bg-main: #1a1525;
    --bg-light: #231d30;
    --bg-lighter: #2d2640;

    /* Purple Accents */
    --accent-primary: #9b59b6;
    --accent-light: #c39bd3;
    --accent-dark: #6c3483;
    --accent-glow: #bb8fce;
    --accent-vibrant: #a855f7;

    /* Neutrals */
    --text-primary: #f5f5f5;
    --text-secondary: #b8b8c8;
    --text-muted: #8888a0;

    /* Neumorphism Shadows */
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --shadow-darker: rgba(0, 0, 0, 0.7);
    --shadow-light: rgba(60, 50, 80, 0.15);
    --shadow-lighter: rgba(80, 70, 110, 0.1);

    /* Neumorphic Effects */
    --neu-shadow-outset:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    --neu-shadow-inset:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    --neu-shadow-pressed:
        inset 6px 6px 12px var(--shadow-darker),
        inset -6px -6px 12px var(--shadow-lighter);

    /* Sizing */
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --border-radius-lg: 30px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(155, 89, 182, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(108, 52, 131, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ====================================
   Navigation
   ==================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(26, 21, 37, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(155, 89, 182, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition-fast);
}

.nav-logo:hover {
    color: var(--accent-vibrant);
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-medium);
    background: transparent;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-light);
    box-shadow: var(--neu-shadow-outset);
}

.nav-link.active {
    color: var(--accent-light);
    background: var(--bg-light);
    box-shadow: var(--neu-shadow-inset);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent-light);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ====================================
   Main Container
   ==================================== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
    min-height: 100vh;
}

/* ====================================
   Profile / Bio Section
   ==================================== */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

.profile-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--neu-shadow-outset);
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-primary), var(--accent-light));
}

.profile-picture-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        var(--neu-shadow-outset),
        0 0 30px rgba(155, 89, 182, 0.3);
    border: 4px solid var(--bg-lighter);
    transition: var(--transition-medium);
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow:
        var(--neu-shadow-outset),
        0 0 50px rgba(155, 89, 182, 0.5);
}

.profile-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #2ecc71;
    border-radius: 50%;
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 1.1rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.profile-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 450px;
    margin: 0 auto;
}

/* ====================================
   Links Section
   ==================================== */
.links-section {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-primary));
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--neu-shadow-outset);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: var(--transition-fast);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow:
        12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light),
        0 0 30px rgba(155, 89, 182, 0.2);
}

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

.link-card:active {
    transform: translateY(0);
    box-shadow: var(--neu-shadow-pressed);
}

.link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-lighter);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--neu-shadow-inset);
    font-size: 1.4rem;
    color: var(--accent-light);
    flex-shrink: 0;
}

.link-content {
    flex: 1;
}

.link-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.link-description {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Link Card Variants */
.link-card[data-variant="kofi"] .link-icon {
    color: #ff5e5b;
}

.link-card[data-variant="github"] .link-icon {
    color: #f0f0f0;
}

.link-card[data-variant="gumroad"] .link-icon {
    color: #ff90e8;
}

.link-card[data-variant="bluesky"] .link-icon {
    color: #00a8e8;
}

.link-card[data-variant="twitter"] .link-icon {
    color: #1da1f2;
}

.link-card[data-variant="discord"] .link-icon {
    color: #5865f2;
}

/* ====================================
   Page Content Cards
   ==================================== */
.content-section {
    margin-bottom: 4rem;
}

.content-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--neu-shadow-outset);
}

.content-card h2 {
    color: var(--accent-light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====================================
   Downloads Grid (for Downloads page)
   ==================================== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.download-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--neu-shadow-outset);
    transition: var(--transition-medium);
}

.download-card:hover {
    transform: translateY(-6px);
    box-shadow:
        var(--neu-shadow-outset),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

.download-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid var(--accent-dark);
}

.download-content {
    padding: 1.5rem;
}

.download-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.download-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.download-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.download-tag {
    padding: 0.3rem 0.75rem;
    background: var(--bg-lighter);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    color: var(--accent-light);
    box-shadow: var(--neu-shadow-inset);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-primary));
    color: var(--text-primary);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
    box-shadow: 0 6px 25px rgba(155, 89, 182, 0.5);
    transform: translateY(-2px);
}

/* ====================================
   Footer
   ==================================== */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(155, 89, 182, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer a {
    color: var(--accent-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer a:hover {
    color: var(--accent-vibrant);
}

/* ====================================
   Animations
   ==================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(155, 89, 182, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(155, 89, 182, 0.6);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

.animate-delay-6 {
    animation-delay: 0.6s;
}

.profile-status {
    animation: pulse 2s ease-in-out infinite;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-dark);
        padding: 1rem;
        gap: 0.5rem;
        transform: translateY(-150%);
        transition: var(--transition-medium);
        box-shadow: 0 10px 30px var(--shadow-dark);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .main-container {
        padding: 100px 1rem 3rem;
    }

    .profile-card {
        padding: 2rem 1.5rem;
    }

    .profile-picture-wrapper {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .link-card {
        padding: 1rem;
    }

    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ====================================
   Utility Classes
   ==================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-vibrant));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neu-raised {
    box-shadow: var(--neu-shadow-outset);
}

.neu-pressed {
    box-shadow: var(--neu-shadow-inset);
}

.hidden {
    display: none !important;
}