/*
 * Chris Zavadil Portfolio Stylesheet
 *
 * A dark, modern theme designed for an Unreal Engine and VR developer.
 * Utilises CSS variables for easy colour tweaking and responsive grids.
 */

:root {
    --bg-color: #0d1117;
    --panel-color: #161b22;
    --primary-color: #58a6ff;
    --secondary-color: #79c0ff;
    --accent-color: #d2a8ff;
    --text-color: #c9d1d9;
    --muted-color: #8b949e;
    --border-radius: 8px;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar .logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.button {
    background: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.button:hover {
    background: var(--secondary-color);
}

.button.outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.button.outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.button.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Hero Section */
header {
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.7);
    z-index: 0;
}

.hero-content {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8rem 1rem 6rem;
    text-align: center;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--muted-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Highlights */
#highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem;
    background: var(--bg-color);
}

.highlight {
    flex: 1 1 250px;
    background: var(--panel-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    min-width: 280px;
}

.highlight h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.highlight ul {
    padding-left: 1.2rem;
    margin: 0;
}

.highlight li {
    margin-bottom: 0.5rem;
    color: var(--muted-color);
    font-size: 0.95rem;
}

/* Projects */
#projects {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

#projects h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--panel-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Responsive embedded video */
.video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-bottom: 1px solid rgba(88, 166, 255, 0.12);
}

.video-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.project-content p {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted-color);
    line-height: 1.4;
}

/* Project links */
.project-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(88, 166, 255, 0.20);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.project-link:hover {
    color: var(--secondary-color);
    border-color: rgba(121, 192, 255, 0.35);
    transform: translateY(-1px);
}

/* Work */
#work {
    background: #0f151b;
    padding: 4rem 2rem;
}

#work h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.experience {
    max-width: var(--max-width);
    margin: 0 auto;
}

.experience-item {
    margin-bottom: 2rem;
}

.experience-item h3 {
    margin: 0 0 0.3rem;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
}

.experience-item .meta {
    font-size: 0.9rem;
    color: var(--muted-color);
    margin-bottom: 0.5rem;
}

.meta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 0.9rem;
}

.meta-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(88, 166, 255, 0.18);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.meta-links a:hover {
    color: var(--secondary-color);
    border-color: rgba(121, 192, 255, 0.35);
    transform: translateY(-1px);
}

.experience-item ul {
    margin: 0;
    padding-left: 1.2rem;
}

.experience-item li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--muted-color);
}

/* About */
#about {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

#about h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted-color);
}

.about-content p {
    margin-bottom: 1rem;
}

/* Contact */
#contact {
    background: #0f151b;
    padding: 4rem 2rem;
    text-align: center;
}

#contact h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

#contact p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--muted-color);
    font-size: 1rem;
}

#contact .contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

#contact .contact-links a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

#contact .contact-links a:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--bg-color);
    color: var(--muted-color);
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.1rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .project-content h3 {
        font-size: 1.2rem;
    }
}