/* ===================================
   CSS Variables - Design System
   =================================== */
:root {
    /* Colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #2dd4bf;
    --border: rgba(45, 212, 191, 0.3);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;

    /* Typography */
    --font-primary: "Google Sans Code", monospace;
    --font-quote: Georgia, serif;

    --text-name: 2rem;
    --text-title: 0.875rem;
    --text-link: 1.125rem;
    --text-quote: 1rem;
    --text-attribution: 0.875rem;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Layout
   =================================== */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Main content wrapper */
.content-wrapper {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: var(--space-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ===================================
   Profile Section
   =================================== */
.profile-section {
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid rgba(45, 212, 191, 0.2);
    text-align: center;
}

.profile-picture {
    margin-bottom: var(--space-sm);
}

.profile-picture img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    border: 2px solid #2dd4bf78;
    box-shadow: 0 8px 20px rgb(0 0 0 / 9%), 0 0 20px rgba(45, 212, 191, 0.3);
}

/* ===================================
   Typography
   =================================== */
.details .title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-xs);
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.3);
}

.details h1 {
    font-size: var(--text-name);
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Navigation Links
   =================================== */
nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
}

nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: var(--text-link);
    font-weight: 400;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: var(--bg-card);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

nav a:hover,
nav a:focus {
    color: var(--accent);
    border-color: var(--border);
    background-color: rgba(45, 212, 191, 0.05);
    outline: none;
}

nav a i {
    font-size: 1rem;
}

/* ===================================
   Quotes Section
   =================================== */
.quotes-section {
    margin-top: var(--space-lg);
    width: 100%;
}

.quotes-box {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-md);
    background-color: var(--bg-card);
    position: relative;
}

.quote-text {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: var(--text-quote);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.quote-text.fade-out {
    opacity: 0;
}

.quote-author {
    font-size: var(--text-attribution);
    color: var(--accent);
    font-style: normal;
    font-weight: 400;
}

/* ===================================
   Copyright Footer
   =================================== */
.copyright {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ===================================
   Responsive Design
   =================================== */

/* Mobile */
@media (max-width: 640px) {
    :root {
        --text-name: 1.5rem;
        --text-link: 1rem;
    }

    .container {
        padding: var(--space-md) 1.5rem;
    }

    .content-wrapper {
        padding: var(--space-md);
    }

    .profile-picture img {
        width: 100px;
        height: 100px;
    }

    .details .title {
        font-size: 0.875rem;
    }

    .quotes-box {
        padding: 1.5rem;
    }

    nav a {
        padding: 0.625rem 0.875rem;
    }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
    :root {
        --text-name: 1.75rem;
    }

    .container {
        padding: var(--space-lg) var(--space-md);
    }

    .profile-picture img {
        width: 110px;
        height: 110px;
    }
}

/* ===================================
   Accessibility
   =================================== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}