/* ==========================================================================
   Design System for duru.fi - Sleek Dark Slate & Emerald
   ========================================================================== */

/* Google Fonts Import: Atkinson Hyperlegible (Regular, Bold, Italic) */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    /* Color Tokens (Slate & Emerald Dark Palette) */
    --bg-base: hsl(220, 24%, 6%);
    --bg-surface: rgba(15, 22, 36, 0.5);
    --bg-surface-hover: rgba(20, 30, 48, 0.7);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(16, 185, 129, 0.3); /* Emerald border highlight */
    --accent: hsl(158, 70%, 48%); /* Bioluminescent Emerald */
    --accent-rgb: 16, 185, 129;
    --text-primary: hsl(210, 40%, 98%);
    --text-muted: hsl(215, 16%, 70%);
    --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    
    /* Typography & Transitions - Unified Atkinson Hyperlegible Font System */
    --font-heading: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    padding: 2.5rem 1.25rem;
}

/* Elegant Ambient Background Glow */
.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 520px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Card Component (Profile Card & Links List) */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem 2.25rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
}

/* Profile Section Styling */
.profile-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.profile-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.profile-affiliation {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 380px;
}

/* Link Hub Grid List */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    list-style: none;
}

.link-item-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    padding: 1.1rem 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.975rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.link-item-btn:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.link-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--accent);
    transition: var(--transition);
}

.link-item-btn:hover .link-icon-container {
    transform: scale(1.1);
}

.link-icon-container svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.link-title {
    flex-grow: 1;
}

.link-arrow {
    display: flex;
    align-items: center;
    opacity: 0.3;
    transition: var(--transition);
}

.link-item-btn:hover .link-arrow {
    opacity: 1;
    transform: translateX(3px);
    color: var(--accent);
}

.link-arrow svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Footer Section */
.footer {
    text-align: center;
    margin-top: 1rem;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 480px) {
    body {
        padding: 1.5rem 1rem;
    }
    
    .glass-card {
        padding: 2rem 1.5rem;
    }

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

    .profile-title {
        font-size: 0.9rem;
    }

    .profile-affiliation {
        font-size: 0.825rem;
    }

    .link-item-btn {
        padding: 0.95rem 1.1rem;
        font-size: 0.925rem;
    }
}
