/* Apple-Style Design System */
:root {
    --color-bg: #f5f5f7;
    --color-bg-card: #ffffff;
    --color-text: #1d1d1f;
    --color-text-secondary: #86868b;
    --color-accent: #0066cc;
    --color-border: #d2d2d7;

    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    --radius-card: 18px;
    --radius-button: 980px;

    /* Subtle, premium shadows */
    --shadow-card: 2px 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 2px 8px 24px rgba(0, 0, 0, 0.12);

    --transition-standard: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 700;
    letter-spacing: -0.003em;
}

h2 {
    font-size: 40px;
    line-height: 1.1;
}

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.section {
    padding: 80px 0;
}

/* Base Components */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-text);
    color: white;
    border-radius: var(--radius-button);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-standard);
}

.btn:hover {
    background-color: #333;
    transform: scale(1.02);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-text);
    color: var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 12px;
    color: var(--color-text);
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    /* Offset for navbar */
    opacity: 0;
    /* JS Animation */
    transform: translateY(20px);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #000 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--color-text-secondary);
    max-width: 600px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-bio {
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-top: 0;
    margin-bottom: 32px;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 32px;
    background-color: #e0e0e0;
    /* Placeholder color */
    box-shadow: var(--shadow-card);
}

.social-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: var(--radius-button);
    transition: var(--transition-standard);
    background-color: transparent;
}

.social-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    padding: 40px 0;
}

.bento-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-card);
    padding: 30px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-standard);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.card-image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    overflow: hidden;
}

/* Project Cards Specifics */
.card-large {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .card-large {
        grid-column: span 1;
    }
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

/* Footer */
footer {
    background-color: #fff;
    padding: 40px 0;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 12px;
    border-top: 1px solid var(--color-border);
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Project Detail Components */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.stats-card {
    background: var(--color-bg-card);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-value {
    font-size: 36px;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 700;
    line-height: 1;
}

.stat-value.medium {
    font-size: 24px;
    margin-bottom: 4px;
}

.stat-label {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.stat-label.small {
    font-size: 12px;
}

.stats-divider {
    height: 40px;
    width: 1px;
    background: var(--color-border);
}

.info-row {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.info-item h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.info-item p {
    font-weight: 500;
    margin: 0;
}

@media (max-width: 600px) {
    .stats-bar {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        align-items: stretch;
    }

    .stats-divider {
        width: 100%;
        height: 1px;
    }
}