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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 32px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

a.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 300px;
    width: 100%;
    object-fit: contain;
    object-position: center center;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--text-light);
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.project-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 3D Models */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.model-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.model-card model-viewer {
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
}

.model-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.model-info {
    padding: 20px;
}

.model-info h3 {
    margin-bottom: 8px;
}

.model-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Deckboxes */
.deckbox {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.deckbox-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.deckbox-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.deckbox-model model-viewer {
    background: #f1f5f9;
    border-radius: 8px;
}

.deckbox-photos .photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.deckbox-photos .photo-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.photo-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.deckbox-decklist h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.decklist {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 8px;
}

.decklist-section {
    margin-bottom: 16px;
}

.decklist-section h5 {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.decklist-section ul {
    list-style: none;
    padding: 0;
}

.decklist-section li {
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 2px 0;
}

/* Project Pages */
.project-page {
    padding-top: 100px;
    padding-bottom: 60px;
}

.back-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
}

.back-link:hover {
    text-decoration: underline;
}

.project-header {
    margin-bottom: 32px;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.project-tagline {
    font-size: 1.15rem;
    color: var(--text-light);
}

.project-hero {
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f1f5f9;
}

.project-hero model-viewer {
    background: #f1f5f9;
}

.project-drawing {
    margin-bottom: 48px;
    text-align: center;
}

.project-drawing h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.project-drawing img {
    width: 100%;
    max-width: 900px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.project-description {
    max-width: 750px;
    margin-bottom: 48px;
}

.project-description h2 {
    font-size: 1.4rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.project-description p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

.project-video {
    margin-bottom: 48px;
}

.project-video h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.project-video video {
    width: 100%;
     max-width: 600px;
     max-height: 350px;
    border-radius: var(--radius);
    background: #000;
}

.project-decklist {
    margin-top: 48px;
}

.project-decklist h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.project-decklist .decklist {
    max-height: none;
    columns: 2;
    gap: 32px;
}

.project-gallery h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
    gap: 16px;
}

.gallery-photo {
    aspect-ratio: 4/3;
    border-radius: 8px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
}

/* Contact */
.contact-content {
    text-align: center;
}

.contact-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* Footer */
.footer {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }

    .deckbox-content {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }
}
