
:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-subtle: #f8fafc;
    --text: #20232a;
    --text-muted: #6b7280;
    --text-subtle: #9ca3af;
    --accent: #087ea4;
    --accent-soft: rgba(8, 126, 164, 0.08);
    --border: #e5e7eb;
    --radius: 14px;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1160px;
    padding: 48px 20px;
}

.profile {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
}

h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--accent);
}

.profile p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 12px;
}

.projects {
    margin-bottom: 48px;
}

.projects h3 {
    text-align: center;
    margin-bottom: 24px;
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto;
}

.projects h3,
.contact h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.contact h3 {
    margin-bottom: 4px;
}

/* Project Glass Deck */
.projects-deck {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 28px;
}

.projects-deck .glass {
    position: relative;
    width: 210px;
    aspect-ratio: 16 / 9;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 20px 28px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 -55px;
    transform: rotate(calc(var(--r) * 1deg));
    transition: transform 0.5s ease, margin 0.5s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: var(--text);
}

.projects-deck:hover .glass {
    transform: rotate(0deg);
    margin: 0 7px;
}

.projects-deck:hover .glass:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 24px 36px rgba(8, 126, 164, 0.16), 0 6px 14px rgba(15, 23, 42, 0.06);
    z-index: 2;
}

.projects-deck .glass:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.projects-deck .glass img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.projects-deck .glass::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    padding: 0 14px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.projects-deck .glass:hover::before,
.projects-deck .glass:focus-visible::before {
    opacity: 1;
}

/* Contact Cards */
.card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--accent-soft), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.arrow {
    width: 17px;
    height: 17px;
    color: var(--text-subtle);
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.card:hover .arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.contact-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.card div {
    flex: 1;
    min-width: 0;
}

.card span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.card p {
    font-size: 14px;
    font-weight: 600;
}

footer {
    text-align: center;
    margin-top: 44px;
    font-size: 12px;
    color: var(--text-subtle);
}

@media (max-width: 1100px) {
    .projects-deck {
        flex-wrap: wrap;
        gap: 14px;
        padding: 0;
    }

    .projects-deck .glass,
    .projects-deck:hover .glass {
        width: calc(50% - 7px);
        height: auto;
        margin: 0;
        transform: rotate(0deg);
    }
}

@media (max-width: 520px) {
    .projects-deck .glass,
    .projects-deck:hover .glass {
        width: 100%;
    }
}
