/* ─── Variables ─── */
:root {
    --color-brass: #d19430;
    --color-silver: #8b8b8b;
    --color-dark: #2c3e50;
    --color-light: #f5f5f5;
    --color-bg-light: #f8f9fa;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Baskerville', Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Baskerville', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-brass);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-silver);
}

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

/* ─── Navigation ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
}

.nav.scrolled,
.nav-solid .nav {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

.nav-solid .nav-links a {
    color: var(--color-dark);
    text-shadow: none;
}

.nav-solid .nav .logo img {
    height: 40px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav .logo img {
    height: 50px;
    transition: height 0.3s ease;
}

.nav.scrolled .logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav.scrolled .nav-links a {
    color: var(--color-dark);
    text-shadow: none;
}

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

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .nav .logo img {
        height: 35px;
    }

    .nav.scrolled .logo img {
        height: 30px;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #1a1a1a 0%, #2c2c2c 100%);
    color: var(--color-light);
    padding: 6rem 2rem 4rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto 3rem;
    display: block;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(245, 245, 245, 0.9);
}

.hero-text .lead,
.hero-text .lead p {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--color-brass);
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-logo {
        max-width: 350px;
        margin-bottom: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-text .lead {
        font-size: 1.15rem;
    }
}

/* ─── About ─── */
.about {
    padding: 5rem 2rem;
    background-color: #fff;
}

.about .container {
    max-width: 900px;
}

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

.about-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
}

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

.about-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about {
        padding: 3rem 1.5rem;
    }

    .about h2 {
        font-size: 2rem;
    }

    .about-content {
        font-size: 1.05rem;
    }
}

/* ─── Photography ─── */
.photography {
    padding: 5rem 2rem;
    background-color: var(--color-bg-light);
}

.photography h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-dark);
}

.photography .section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.instagram-feed {
    width: 100%;
}

@media (max-width: 768px) {
    .photography {
        padding: 3rem 1rem;
    }

    .photography h2 {
        font-size: 2rem;
    }
}

/* ─── Services ─── */
.services-section {
    padding: 5rem 2rem;
    background-color: #fff;
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-dark);
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

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

.service-card {
    padding: 2rem;
    background: var(--color-bg-light);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.service-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
}

.thingiverse-section,
.featured-section {
    margin-top: 4rem;
    text-align: center;
}

.thingiverse-section h3,
.featured-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.thingiverse-section > p,
.featured-section > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.thingiverse-designs,
.featured-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.design-card {
    display: block;
    background: var(--color-bg-light);
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.design-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.design-card:hover .design-card-image img {
    transform: scale(1.03);
}

.design-card .design-title,
.design-card .design-link {
    padding: 0 1.5rem;
}

.design-card .design-title {
    padding-top: 1.25rem;
}

.design-card .design-link {
    padding-bottom: 1.25rem;
}

.design-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--color-brass);
}

.design-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.design-link {
    color: var(--color-brass);
    font-size: 0.95rem;
    font-weight: 500;
}

.thingiverse-profile {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-dark);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.thingiverse-profile:hover {
    background: var(--color-brass);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .services-section {
        padding: 3rem 1rem;
    }

    .services-section h2 {
        font-size: 2rem;
    }

    .thingiverse-section h3 {
        font-size: 1.6rem;
    }
}

/* ─── Contact ─── */
.contact {
    padding: 5rem 2rem;
    background-color: var(--color-bg-light);
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-brass);
}

.field-error {
    display: block;
    color: #c0392b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    padding: 1rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 0.95rem;
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--color-dark);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.submit-btn:hover {
    background: var(--color-brass);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(209, 148, 48, 0.4);
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.contact-note {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
}

.info-item a {
    color: var(--color-brass);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--color-silver);
}

@media (max-width: 768px) {
    .contact {
        padding: 3rem 1rem;
    }

    .contact h2 {
        font-size: 2rem;
    }

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

/* ─── Footer ─── */
.footer {
    background-color: var(--color-dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a,
.footer-social a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--color-brass);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem;
    }
}

/* ─── Portfolio & Gallery Pages ─── */
.page-header {
    padding: 8rem 2rem 3rem;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--color-dark);
}

.page-header-back {
    display: inline-block;
    color: var(--color-silver);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.page-header-back:hover {
    color: var(--color-brass);
}

.gallery-list-section,
.gallery-show-section {
    padding: 4rem 2rem 5rem;
}

/* Gallery list cards */
.galleryList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.galleryList-col {
    display: contents;
}

.galleryList-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.galleryList-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    color: inherit;
}

.galleryList-cardImage img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.galleryList-cardBody {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.galleryList-cardTexts > h4 a {
    text-transform: none;
    text-decoration: none;
}
.galleryPhotos-title h2{
    padding-bottom: 20px;
}
.galleryList-cardTexts h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.galleryList-cardDescription {
    color: var(--color-silver);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.galleryList-cardInfos {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--color-silver);
    border-top: 1px solid var(--color-bg-light);
    padding-top: 0.75rem;
}

/* Individual gallery grid */
.galleryPhotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.galleryPhotos-grid a {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

img.galleryPhotos-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.galleryPhotos-grid a:hover img.galleryPhotos-image {
    transform: scale(1.03);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 1rem 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .gallery-list-section,
    .gallery-show-section {
        padding: 2.5rem 1rem 3rem;
    }

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

    .galleryPhotos-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* ─── Portfolio ─── */
.portfolio-list-section,
.portfolio-show-section {
    padding: 4rem 2rem 5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    color: inherit;
}

.project-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.03);
}

.project-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-body h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.project-excerpt {
    color: var(--color-silver);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-bg-light);
    font-size: 0.85rem;
    color: var(--color-silver);
}

.project-cover img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.project-detail-header {
    margin-bottom: 2rem;
}

.project-detail-header h1 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.project-detail-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--color-silver);
    font-size: 1rem;
}

.project-detail-body {
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    font-size: 0.95rem;
}

.pagination a {
    color: var(--color-brass);
    text-decoration: none;
}

.empty-state {
    color: var(--color-silver);
    text-align: center;
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .portfolio-list-section,
    .portfolio-show-section {
        padding: 2.5rem 1rem 3rem;
    }

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

    .project-detail-header h1 {
        font-size: 2rem;
    }
}
