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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a url('images/background.jpg') center center fixed;
    background-size: cover;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid #222;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

header p {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 1rem;
}

.header-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.header-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.header-links a:hover {
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem;
    max-height: calc(100vh - 300px);
}

.project-card {
    background: #111;
    border: 1px solid #222;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.project-card:hover {
    background: #1a1a1a;
    border-color: #333;
    transform: translateY(-2px);
}

.project-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
}

.project-number {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #111;
    border: 1px solid #222;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    margin: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #666;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.modal-header .project-tag {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.modal-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 1rem 0;
    border: 1px solid #222;
}

.modal-body img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 1rem auto;
    display: block;
    border: 1px solid #222;
}

.modal-body p {
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.modal-body a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border: 1px solid #333;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.modal-body a:hover {
    background: #222;
    border-color: #444;
}

.about-section {
    background: #111;
    border: 1px solid #222;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
}

.about-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.about-section p {
    color: #999;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.about-section img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 1rem 0;
    border: 1px solid #222;
}

.cv-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border: 1px solid #333;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.2s;
}

.cv-button:hover {
    background: #222;
    border-color: #444;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #222;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.footer-section h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 500;
}

.footer-section p,
.footer-section a {
    font-size: 0.9rem;
    color: #999;
    text-decoration: none;
}

.footer-section a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.copyright {
    font-size: 0.85rem;
    color: #555;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }
}
