:root {
    --bg-color: #ffffff;
    --surface-color: #ffffff;
    --text-color: #111827;
    --text-muted: #4b5563;
    --accent-color: #4f46e5;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
.header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Typography Utilities */
.accent {
    color: var(--accent-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-content {
    text-align: left;
}

.greeting {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out;
}

.title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -3px;
    margin-bottom: 1rem;
    animation: slideUp 1s ease-out 0.2s both;
}

.subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-muted);
    animation: slideUp 1s ease-out 0.4s both;
}

.profile-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    width: 100%;
    animation: fadeIn 1s ease-out 0.6s both;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--surface-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.05);
}

/* Card Style */
.card {
    background-color: var(--surface-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-text strong {
    color: var(--accent-color);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--border-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Hobbies Section */
.hobbies {
    padding: 6rem 0;
    background-color: var(--surface-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hobby-card {
    text-align: center;
    background-color: var(--bg-color);
}

.hobby-card .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hobby-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hobby-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Page Specific Styles */
.page-content {
    padding: 4rem 0 6rem;
    min-height: calc(100vh - 70px - 100px);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.detail-card {
    text-align: left;
}

.detail-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.detail-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.interest-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.interest-list li {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.interest-list strong {
    color: var(--accent-color);
}

/* Card Link Wrappers */
.hobby-link,
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 16px;
}
.hobby-link:focus,
.project-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 4rem;
        letter-spacing: -2px;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .nav a {
        margin-left: 1rem;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 2rem;
    }
}
