body {
    background-color: #121212;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    margin: 0;
    padding: 30px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #1c1c1c;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .6);
}

.header,
.footer {
    background-color: #282828;
    text-align: center;
}

.header {
    color: #ff5757;
    padding: 30px;
    border-bottom: 1px solid #333;
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
    letter-spacing: 1px;
    font-weight: 600;
}

.header p {
    margin: 8px 0;
    color: #aaa;
}

.content {
    padding: 40px 30px;
}

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

.profile img {
    border-radius: 50%;
    width: 160px;
    height: 160px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #ff5757;
}

.bio-text {
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
}

.profile p,
.model-card p {
    color: #d3d3d3;
    line-height: 1.6;
}

.profile p {
    margin: 0 0 16px;
}

.section-title {
    color: #ff5757;
    text-align: center;
    margin-top: 70px;
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 1px solid #333;
    font-size: 1.8em;
}

.model-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.model-card {
    background-color: #242424;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    width: 260px;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
}

.model-card:hover {
    border-color: #ff5757;
}

.model-card h3 {
    color: #ff5757;
    margin-top: 0;
    margin-bottom: 10px;
}

.model-card p {
    margin-bottom: 15px;
}

.model-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background-color: #1c1c1c;
    border-radius: 10px;
    margin-bottom: 15px;
}

.model-container {
    position: relative;
}

model-viewer {
    width: 100%;
    height: 500px;
    background-color: #242424;
    border-radius: 10px;
}

.project-image {
    display: block;
    max-width: 100%;
    max-height: 650px;
    object-fit: contain;
    margin: 0 auto 25px;
    background-color: #eeeeee;
    border-radius: 10px;
}

.project-image-link {
    display: block;
    text-decoration: none;
}

.project-image-link:hover .project-image {
    outline: 2px solid #ff5757;
}

.card-instruction {
    color: #ff5757;
    font-weight: 600;
}

.resume-button,
.model-button,
.model-nav a {
    display: inline-block;
    padding: 10px 18px;
    background-color: #ff5757;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.resume-button {
    margin-top: 10px;
}

.model-button {
    margin-top: 15px;
}

.resume-button:hover,
.model-button:hover,
.model-nav a:hover {
    background-color: #ff3333;
}

.contact-info {
    margin-top: 25px;
    color: #d3d3d3;
}

.contact-info a {
    color: #ff5757;
    text-decoration: none;
}

.contact-info a:hover {
    color: #ff7777;
    text-decoration: underline;
}

.model-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border: 4px solid #444;
    border-top: 4px solid #ff5757;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.footer {
    padding: 15px;
    border-top: 1px solid #333;
}

.footer span {
    color: #ff5757;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    .content {
        padding: 25px 18px;
    }

    .model-card {
        width: 100%;
    }

    model-viewer {
        height: 350px;
    }

    .model-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .model-nav a {
        text-align: center;
    }
}