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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    margin-bottom: 60px;
}

.header h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-position 0.5s ease;
    cursor: default;
}

.header h1:hover {
    background-position: 100% 50%;
}

.location {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.tagline-text {
    font-size: 1rem;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}

/* Main Grid */
.main {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

/* Blocks */
.block {
    border-radius: 4px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease backwards;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.block:nth-child(1) { animation-delay: 0.1s; }
.block:nth-child(2) { animation-delay: 0.2s; }
.block:nth-child(3) { animation-delay: 0.3s; }
.block:nth-child(4) { animation-delay: 0.4s; }

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

.block:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.block-inner h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    opacity: 0.7;
    font-weight: 700;
}

/* Work Block */
.block-work {
    grid-column: span 8;
    background: #667eea;
    color: #fff;
}

.job {
    margin-bottom: 30px;
}

.job:last-child {
    margin-bottom: 0;
}

.job h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.job .year {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
    font-weight: 600;
}

.job p:last-child {
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.6;
}

.job h3 a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.job h3 a:hover {
    opacity: 0.8;
}

.job h3 .external-icon {
    font-size: 0.8em;
    opacity: 0.7;
}

/* Projects Block */
.block-projects {
    grid-column: span 4;
    background: #f093fb;
    color: #1a1a1a;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 4px;
}

.project-desc {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Interests Block */
.block-interests {
    grid-column: span 7;
    background: #1a1a1a;
    color: #fff;
}

.interests {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.interests span {
    font-size: 1.1rem;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.interests a {
    color: #f093fb;
    text-decoration: none;
    border-bottom: 1px solid #f093fb;
    transition: opacity 0.2s ease;
}

.interests a:hover {
    opacity: 0.7;
}

/* Contact Block */
.block-contact {
    grid-column: span 5;
    background: #ffbe0b;
    color: #1a1a1a;
}

.block-contact a {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 12px;
    border-bottom: 3px solid #1a1a1a;
    padding-bottom: 4px;
    transition: opacity 0.2s ease;
}

.block-contact a:hover {
    opacity: 0.7;
}

/* Footer */
.footer {
    margin-top: 60px;
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    color: #666;
    font-size: 0.9rem;
}

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

    .header {
        margin-bottom: 40px;
    }

    .header h1 {
        font-size: 3rem;
    }

    .location {
        font-size: 1rem;
    }

    .tagline-text {
        font-size: 0.9rem;
    }

    .footer {
        margin-top: 40px;
        padding: 20px;
    }

    .main {
        grid-template-columns: 1fr;
    }

    .block {
        grid-column: span 1 !important;
        padding: 30px 24px;
    }

    .block:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .header h1:hover {
        background-position: initial;
    }

    .job h3 {
        font-size: 1.5rem;
    }

    .block-contact a {
        font-size: 1.4rem;
    }
}
