:root {
    --bg: #283430;
    --card-bg: rgba(29, 40, 37, 0.7);
    --text: #e0e6e4;
    --text-secondary: #a1b2aa;
    --border: #323f3b;
    --tag-bg: #151f1c;
    --accent: #7aaba3;
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("bg.jpg") center / cover no-repeat;
    z-index: -1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

p {
    text-wrap: pretty;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-picture {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg);
    flex-shrink: 0;
}

.header-text {
    width: 100%;
    text-align: left;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.tagline {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    max-width: 90%;
}

section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.facts > :nth-child(4):nth-last-child(2),
.facts > :nth-child(5):last-child {
    grid-column: 1 / -1;
}

.fact-item {
    padding: 1.25rem;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.fact-item strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.fact-item div {
    font-size: 1rem;
    font-weight: 500;
}

.fact-item a {
    margin-right: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-category {
    padding: 1.25rem;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.skill-category h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.skill-category p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.15);
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--border);
}

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.project-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.year {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    background: var(--tag-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.tags span {
    font-size: 0.7rem;
    background-color: var(--tag-bg);
    color: var(--accent);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.links {
    display: flex;
    gap: 0.75rem;
}

.links a {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--accent);
    border-radius: 5px;
    background: transparent;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.links a:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

footer {
    background-color: var(--card-bg);
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0.1rem;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1.25rem;
    }

    header, section {
        padding: 2rem 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .header-text {
        width: 100%;
        text-align: center;
    }

    .tagline {
        max-width: 100%;
    }
    
    .facts {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .fact-item a {
        margin-right: 0.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 200px;
    }

    h1 {
        font-size: 1.75rem;
    }
}