/* ========================================================
   Ultrolon Studio - Projects Page Styles
   ======================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #edf2fc;
    --secondary-color: #212121;
    --third-color: #fbb040;
    --third-hover: #e59b2b;
    --card-bg: #ffffff;
    --muted-color: #6c757d;
    --border-color: #e9ecef;
    --tag-bg: #f3f6fc;
    --dark-bg: #1a1a24;
}

body {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------------- Header & Navbar ---------------- */
header {
    padding: 12px 7.5%;
    width: 100%;
    background-color: var(--third-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    width: 4rem;
    height: auto;
    display: block;
}

.items ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.items ul li {
    list-style: none;
}

.items ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.2s ease;
    padding: 6px 4px;
}

.items ul li a:hover,
.items ul li a.active {
    color: #212121;
}

#open {
    background: none;
    font-size: 30px;
    border: none;
    display: none;
    color: var(--primary-color);
    cursor: pointer;
}

#close {
    background: none;
    font-size: 30px;
    border: none;
    color: #3c3e47;
    cursor: pointer;
}

.openmenu {
    position: fixed;
    top: 0;
    right: -220px;
    height: 100vh;
    width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
}

.openmenu ul {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.openmenu .items ul a {
    color: #3c3e47;
    font-weight: 700;
    font-size: 19px;
    text-decoration: none;
}

.openmenu .items ul a:hover,
.openmenu .items ul a.active {
    color: var(--third-color);
}

.openmenu ul li {
    padding-top: 15px;
    padding-left: 25px;
}

/* ---------------- Hero Section ---------------- */
.projects-hero {
    width: 100%;
    padding: 60px 7.5% 30px;
    text-align: center;
}

.heading {
    align-items: center;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
    color: var(--third-color);
    font-size: 2.3rem;
}

.heading h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.line {
    width: 7rem;
    height: 4px;
    background-color: var(--third-color);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.projects-intro {
    max-width: 800px;
    margin: 20px auto 0 auto;
    font-size: 1.15rem;
    color: var(--muted-color);
    line-height: 1.6;
}

/* ---------------- Filter Pills ---------------- */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 35px 0 20px;
}

.filter-btn {
    background: #fff;
    border: 1.5px solid #dbe2ef;
    padding: 9px 22px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: var(--third-color);
    color: var(--third-color);
}

.filter-btn.active {
    background: var(--third-color);
    border-color: var(--third-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(251, 176, 64, 0.35);
}

/* ---------------- Projects Grid ---------------- */
.projects-section {
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 7.5% 80px;
    flex: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ---------------- Project Card ---------------- */
.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f8;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    border-color: rgba(251, 176, 64, 0.4);
}

.project-card.featured {
    border-top: 4px solid var(--third-color);
}

.card-header-visual {
    height: 190px;
    background: linear-gradient(135deg, #1e2029 0%, #111217 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    overflow: hidden;
}

.card-header-visual.living-visual {
    background: linear-gradient(135deg, #1f2d3d 0%, #0f172a 100%);
}

.card-header-visual.fossils-visual {
    background: linear-gradient(135deg, #2d261e 0%, #1a1510 100%);
}

.card-header-visual.auth-visual {
    background: linear-gradient(135deg, #1a2238 0%, #0f1422 100%);
}

.card-header-visual.clinic-visual {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
}

.visual-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(251, 176, 64, 0.95);
    color: #111;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.visual-icon-glow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.visual-icon-glow i {
    font-size: 3.5rem;
    color: var(--third-color);
    filter: drop-shadow(0 0 16px rgba(251, 176, 64, 0.5));
}

.visual-icon-glow span {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-category {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--third-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.card-body h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.65rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.25;
}

.card-body p {
    color: var(--muted-color);
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tag {
    background: var(--tag-bg);
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--third-color);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 11px 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 6px;
    border: 1.5px solid #d0d7de;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    border-color: var(--third-color);
    color: var(--third-color);
    background-color: #fff9f0;
    transform: translateY(-2px);
}

/* ---------------- Footer ---------------- */
footer {
    background-color: var(--third-color);
    width: 100%;
    margin-top: auto;
}

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1350px;
    margin: 0 auto;
    padding: 16px 7.5%;
}

.copyr p {
    color: #fff;
    font-size: 0.95rem;
}

.socialicons ul {
    gap: 18px;
    display: flex;
    list-style: none;
    margin-top: 6px;
}

.socialicons a {
    color: #fff;
    font-size: 1.4rem;
    transition: opacity 0.2s ease;
}

.socialicons a:hover {
    opacity: 0.8;
}

.links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.endlinks {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.endlinks li a {
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.endlinks li a:hover {
    opacity: 0.8;
}

.arrow {
    font-size: 1.7rem;
    color: #fff;
    cursor: pointer;
}

/* ---------------- Responsive Styles ---------------- */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 0 auto;
    }
}

@media (max-width: 820px) {
    #open {
        display: block;
    }

    .items ul {
        display: none;
    }

    .foot {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .sociallinks {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .links {
        flex-direction: column;
    }

    .endlinks {
        justify-content: center;
    }

    .heading {
        font-size: 1.9rem;
    }

    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary, .btn-secondary {
        justify-content: center;
    }
}
