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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    color: #2c3e50;
    overflow-x: hidden;
}

.map-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.35;
    filter: grayscale(0.15) blur(0.5px) saturate(1.2);
    pointer-events: none;
}

.map-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 255, 255, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.map-background iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.bento-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    animation: fadeIn 0.6s ease-in;
    position: relative;
    z-index: 1;
}

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

.bento-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 8px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.bento-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 5px 20px rgba(0, 0, 0, 0.08);
}

.profile-header {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 1px 8px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.6s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    box-shadow:
        0 4px 12px rgba(102, 126, 234, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a202c;
    margin: 0;
}

.profile-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: #667eea;
    margin: 0;
    max-width: 300px;
}

.bento-quote {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    animation: cardSlideIn 0.6s ease-out 0.1s both;
    color: #ffffff;
}

.quote-icon {
    font-size: 2rem;
    opacity: 0.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.quote-text {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.quote-author {
    font-size: 1rem;
    opacity: 0.8;
    text-align: right;
    color: #ffffff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.bento-link {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
    cursor: pointer;
}

.bento-link i {
    font-size: 3rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.bento-link:hover i {
    transform: scale(1.15);
}

.link-label {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.link-subtitle {
    font-size: 0.875rem;
    opacity: 0.7;
    font-weight: 400;
}

.bento-linkedin {
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.85) 0%, rgba(0, 160, 220, 0.85) 100%);
    color: #ffffff;
    animation: cardSlideIn 0.6s ease-out 0.2s both;
}

.bento-linkedin .link-label {
    color: #ffffff;
}

.bento-github {
    background: linear-gradient(135deg, rgba(36, 41, 46, 0.85) 0%, rgba(26, 29, 34, 0.85) 100%);
    color: #ffffff;
    animation: cardSlideIn 0.6s ease-out 0.3s both;
}

.github-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.github-content i {
    font-size: 3rem;
    flex-shrink: 0;
}

.github-contribution-graph {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    width: fit-content;
}

.contribution-row {
    display: flex;
    gap: 2px;
}

.contribution-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.contribution-cell.level-0 {
    background: rgba(255, 255, 255, 0.1);
}

.contribution-cell.level-1 {
    background: #0e4429;
}

.contribution-cell.level-2 {
    background: #006d32;
}

.contribution-cell.level-3 {
    background: #26a641;
}

.contribution-cell.level-4 {
    background: #39d353;
}

.contribution-cell:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(57, 211, 83, 0.5);
}

.bento-website {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.85) 0%, rgba(139, 92, 246, 0.85) 100%);
    color: #ffffff;
    animation: cardSlideIn 0.6s ease-out 0.4s both;
}

.website-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.website-icon {
    font-size: 3rem;
}

.bento-website .link-label,
.bento-website .link-subtitle {
    color: #ffffff;
}

.bento-agency {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.85) 0%, rgba(251, 146, 60, 0.85) 100%);
    color: #ffffff;
    animation: cardSlideIn 0.6s ease-out 0.5s both;
}

.bento-agency .link-label,
.bento-agency .link-subtitle {
    color: #ffffff;
}

@media (min-width: 768px) {
    .bento-container {
        gap: 1.5rem;
    }

    .bento-quote {
        grid-column: span 12;
    }

    .bento-link {
        grid-column: span 6;
    }

    .bento-github {
        grid-column: span 6;
    }
}

@media (min-width: 1024px) {
    body {
        padding: 3rem 2rem;
        padding-top: 8rem;
        padding-bottom: 18rem;
    }

    .bento-container {
        gap: 1.5rem;
        max-width: 1000px;
    }

    .bento-quote {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        width: 400px;
        max-width: calc(100vw - 4rem);
        grid-column: auto;
        z-index: 10;
    }

    .bento-linkedin {
        grid-column: span 6;
        grid-row: span 1;
    }

    .bento-github {
        grid-column: span 6;
        grid-row: span 1;
    }

    .bento-website {
        grid-column: span 6;
        grid-row: span 1;
    }

    .bento-agency {
        grid-column: span 6;
        grid-row: span 1;
    }
}

@media (max-width: 767px) {
    body {
        padding: 1rem;
        padding-top: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .map-background {
        opacity: 0.3;
        filter: grayscale(0.2) blur(0.5px) saturate(1.1);
    }

    .profile-header {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        z-index: 10;
        background: rgba(255, 255, 255, 0.98);
        margin-bottom: 1rem;
    }

    .profile-photo {
        width: 70px;
        height: 70px;
        border: 3px solid #667eea;
    }

    .profile-info {
        align-items: center;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .profile-title {
        font-size: 0.75rem;
        max-width: 100%;
        text-align: center;
    }

    .bento-container {
        gap: 1rem;
        position: relative;
        z-index: 1;
    }

    .bento-card {
        padding: 1.5rem;
        position: relative;
        z-index: 1;
    }

    .bento-quote {
        grid-column: span 12;
        position: relative;
        width: auto;
        bottom: auto;
        right: auto;
    }

    .quote-text {
        font-size: 1rem;
    }

    .bento-link {
        grid-column: span 12;
        min-height: 140px;
    }

    .bento-github {
        grid-column: span 12;
        min-height: 140px;
    }

    .bento-github .github-content {
        flex-direction: row;
    }

    .bento-agency {
        grid-column: span 12;
        min-height: 140px;
    }

    .bento-link i {
        font-size: 2.5rem;
    }

    .link-label {
        font-size: 1.125rem;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
    display: none;
}

.scroll-to-top i {
    font-size: 1.25rem;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.scroll-to-top:active {
    transform: scale(0.95);
}

@media (max-width: 767px) {
    .scroll-to-top {
        display: flex;
        align-items: center;
        justify-content: center;
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
