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

:root {
    --bg-color: #f5f5f5;
    --text-color: #1a1a1a;
    --text-secondary: #666;
    --card-bg: #fff;
    --card-shadow: rgba(0, 0, 0, 0.06);
    --card-shadow-hover: rgba(0, 0, 0, 0.1);
    --avatar-border: #fff;
    --link-color: #0066cc;
    --footer-color: #888;
    --btn-dark: #000;
    --social-shadow: rgba(0, 0, 0, 0.08);
    --social-shadow-hover: rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #f0f0f0;
        --text-secondary: #a0a0a0;
        --card-bg: #1e1e1e;
        --card-shadow: rgba(0, 0, 0, 0.3);
        --card-shadow-hover: rgba(0, 0, 0, 0.5);
        --avatar-border: #333;
        --link-color: #4da3ff;
        --footer-color: #888;
        --btn-dark: #2a2a2a;
        --social-shadow: rgba(0, 0, 0, 0.3);
        --social-shadow-hover: rgba(0, 0, 0, 0.5);
    }
}

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;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 24px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--avatar-border);
    box-shadow: 0 4px 12px var(--card-shadow);
}

.profile-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.bio {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 400px;
}

.bio a {
    color: var(--link-color);
    text-decoration: none;
}

.bio a:hover {
    text-decoration: underline;
}

/* Social Bar */
.social-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px var(--social-shadow);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--social-shadow-hover);
}

.social-btn.twitter,
.social-btn.github,
.social-btn.unsplash {
    background: var(--btn-dark);
    color: #fff;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.social-btn.linkedin {
    background: #0077b5;
    color: #fff;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.bento-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--card-shadow-hover);
}

/* Photo Card */
.card-photo {
    grid-column: span 2;
    grid-row: span 2;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

/* Image Cards */
.card-img {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--footer-color);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    .profile-info h1 {
        font-size: 24px;
    }

    .social-bar {
        gap: 8px;
    }

    .social-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .social-btn span {
        display: none;
    }

    .social-btn svg {
        width: 24px;
        height: 24px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card-photo {
        grid-column: span 2;
        grid-row: span 1;
    }

    .card-photo img {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .avatar {
        width: 80px;
        height: 80px;
    }

    .profile-info h1 {
        font-size: 22px;
    }

    .bio {
        font-size: 14px;
    }

    .bento-grid {
        gap: 10px;
    }

    .bento-card {
        border-radius: 16px;
    }
}
