@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #0b0b0c;
    --card-bg: #121214;
    --card-hover-bg: #151518;
    --border-color: rgba(255, 255, 255, 0.04);
    --border-hover: rgba(255, 255, 255, 0.08);
    
    --text-primary: #e4e4e7;
    --text-secondary: #8c8c92;
    --text-muted: #4b4b50;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-smooth: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-snappy: all 0.12s ease;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #1c1c1e;
    border-radius: 3px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(11, 11, 12, 0.7);
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition-snappy);
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link-contact {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.nav-link-contact:hover {
    border-color: var(--border-hover);
    background-color: rgba(255, 255, 255, 0.02);
}

/* Main Content Layout */
main {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 7rem 2rem 4rem 2rem;
}

/* Quiet Hero Section */
.hero {
    margin-bottom: 3.5rem;
}

.hero h1 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Projects Section */
.section-title {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Project Card */
.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    transition: var(--transition-smooth);
}

.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-gallery {
    background: #09090a;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    border-right: 1px solid var(--border-color);
}

.project-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
    transition: opacity 0.35s ease;
}

.project-media.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

/* Screenshots (e.g. the FPS benchmark) shown whole, not cropped */
.project-media.is-contain {
    object-fit: contain;
    background: #09090a;
}

.project-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #101012 0%, #151518 100%);
    color: var(--text-muted);
    gap: 0.5rem;
    font-size: 0.8rem;
    z-index: 1;
    transition: var(--transition-smooth);
}

.project-image-placeholder svg {
    fill: var(--text-muted);
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.project-card:hover .project-image-placeholder svg {
    opacity: 0.5;
}

.project-info {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* Colour variant switcher */
.variant-switcher {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--swatch, #888);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    padding: 0;
    outline: none;
    position: relative;
    transition: var(--transition-snappy);
}

.swatch:hover {
    transform: scale(1.12);
}

.swatch.is-active {
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 3.5px var(--swatch, #888);
}

/* FPS / benchmark chip — distinct from the colour dots */
.swatch--perf {
    width: auto;
    height: 22px;
    border-radius: 11px;
    padding: 0 0.55rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hover);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.swatch--perf:hover {
    transform: scale(1.06);
    color: var(--text-primary);
}

.swatch--perf.is-active {
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 3.5px var(--text-secondary);
    color: var(--text-primary);
}

/* Feature list */
.feature-list {
    list-style: none;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
}

.perf-note {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-left: 2px solid var(--border-hover);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.75rem;
}

.perf-note strong {
    color: var(--text-primary);
    font-weight: 600;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 400;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.02);
}

.project-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d6a23a;
    box-shadow: 0 0 6px rgba(214, 162, 58, 0.6);
}

/* Footer Section */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    background-color: rgba(11, 11, 12, 0.2);
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-snappy);
}

.footer-link:hover {
    color: var(--text-secondary);
}



/* Responsive Rules */
@media (max-width: 768px) {
    .project-card {
        grid-template-columns: 1fr;
    }
    .project-gallery {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        min-height: 200px;
    }
    .project-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1.25rem 1.25rem;
    }
    main {
        padding: 6rem 1.25rem 3rem 1.25rem;
    }
    .hero {
        margin-bottom: 2.5rem;
    }
    .hero h1 {
        font-size: 1.3rem;
    }
    .project-title {
        font-size: 1.15rem;
    }
    .contact-card {
        padding: 1.5rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}
