/* ===== CSS Variables ===== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #e5e5e5;
    --accent-color: #2a2a2a;
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Main Container ===== */
.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
}

.content {
    max-width: 560px;
    width: 100%;
    padding: 0;
}

/* ===== Profile Section ===== */
.profile {
    text-align: left;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.avatar {
    display: none;
}

.name {
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ===== About Section ===== */
.about {
    margin-bottom: 3rem;
}

.about p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

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

.about a:hover {
    color: var(--accent-color);
    text-decoration: underline;
    transition-duration: 0.2s;
}

/* ===== Contact Section ===== */
.contact {
    text-align: left;
}

.contact h2 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: none;
    border-radius: 0;
}

.contact-link::before {
    display: none;
}

.contact-link svg {
    flex-shrink: 0;
    opacity: 0.4;
    transition: var(--transition);
    width: 18px;
    height: 18px;
}

.contact-link:hover {
    color: var(--accent-color);
    transform: translateX(2px);
    background: transparent;
    border: none;
    box-shadow: none;
}

.contact-link:hover svg {
    opacity: 1;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

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

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

/* Extra small devices (portrait phones) */
@media (max-width: 374px) {
    .container {
        padding: 1.25rem 1rem;
    }

    .name {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .tagline {
        font-size: 0.875rem;
    }

    .profile {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .about {
        margin-bottom: 2rem;
    }

    .about p {
        font-size: 0.875rem;
        line-height: 1.65;
    }

    .contact h2 {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }

    .contact-link {
        font-size: 0.875rem;
        padding: 0.5rem 0;
        min-height: 44px;
        /* Minimum touch target size */
        gap: 0.5rem;
    }

    footer {
        padding: 1.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Small devices (landscape phones, 375px and up) */
@media (min-width: 375px) and (max-width: 640px) {
    .container {
        padding: 1.5rem 1.25rem;
    }

    .name {
        font-size: 1.625rem;
        line-height: 1.25;
    }

    .tagline {
        font-size: 0.9375rem;
    }

    .profile {
        margin-bottom: 2.5rem;
        padding-bottom: 1.75rem;
    }

    .about {
        margin-bottom: 2.5rem;
    }

    .about p {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .contact-link {
        font-size: 0.9375rem;
        padding: 0.5rem 0;
        min-height: 44px;
        /* iOS minimum touch target */
    }

    footer {
        padding: 1.75rem 1.25rem;
    }
}

/* Medium devices (tablets, 641px and up) */
@media (min-width: 641px) {
    .container {
        padding: 3rem 2rem;
    }

    /* Ensure hover states only on devices that support it */
    @media (hover: hover) {
        .contact-link:hover {
            color: var(--accent-color);
            transform: translateX(2px);
        }

        .contact-link:hover svg {
            opacity: 1;
        }
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .container {
        padding: 4rem 2rem;
    }

    .content {
        max-width: 600px;
    }
}

/* Improve touch targets on touch devices */
@media (pointer: coarse) {
    .contact-link {
        padding: 0.75rem 0;
        min-height: 48px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        animation: none;
    }

    .contact-link:hover {
        transform: none;
    }
}