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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0f0f0f;
    color: #e5e5e5;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container - mobile-first, centered */
.container {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* Typography */
.name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.role {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #a3a3a3;
    margin-bottom: 8px;
}

.tagline {
    font-size: 0.8125rem;
    color: #737373;
}

.text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #e5e5e5;
}

.text-secondary {
    color: #a3a3a3;
    margin-top: 12px;
}

/* Section */
.section {
    margin-top: 32px;
}

.section-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-note {
    font-size: 0.8125rem;
    color: #525252;
    margin-bottom: 16px;
    font-style: italic;
}

/* Cards */
.card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.card:last-child {
    margin-bottom: 0;
}

.card-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.875rem;
    color: #a3a3a3;
    line-height: 1.5;
}

.card-list {
    list-style: none;
    font-size: 0.875rem;
    color: #a3a3a3;
}

.card-list li {
    padding: 4px 0;
    padding-left: 12px;
    position: relative;
}

.card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: #525252;
    border-radius: 50%;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.photo-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.photo {
    width: 100%;
    height: 280px;
    display: block;
    object-fit: cover;
    object-position: center 20%;
}

.intro-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Skills */
.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skills-list li {
    background-color: #262626;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #a3a3a3;
}

/* Projects */
.project-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    background-color: #222222;
    border-color: rgba(255, 255, 255, 0.08);
}

.project-card:last-of-type {
    margin-bottom: 0;
}

.project-favicon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 4px;
}

.project-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #e5e5e5;
}

.project-arrow {
    color: #525252;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.project-card:hover .project-arrow {
    color: #a3a3a3;
    transform: translate(2px, -2px);
}

/* Process */
.process-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.process-step {
    font-size: 0.75rem;
    font-weight: 600;
    color: #525252;
    background-color: #262626;
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.process-card .card-title {
    margin-bottom: 4px;
}

/* Contact */
.contact-link {
    display: inline-block;
    margin-top: 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 1px solid #404040;
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.contact-link:hover {
    border-color: #ffffff;
}

.contact-icons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #1a1a1a;
    border-radius: 8px;
    color: #a3a3a3;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
    background-color: #262626;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
}

/* Footer */
.footer {
    padding-bottom: 24px;
}

.copyright {
    margin-top: 32px;
    font-size: 0.75rem;
    color: #404040;
}

/* Selection */
::selection {
    background-color: #404040;
    color: #ffffff;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #525252;
    outline-offset: 2px;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
