/* =========================
   PROJECT HERO
========================= */

.project-hero {
    position: relative;
    height: 420px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
}

.project-hero .overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-hero h1 {
    font-size: 44px;
    color: white;
    padding: 0 20px;
    max-width: 900px;
}

/* =========================
   PROJECT DETAILS
========================= */

.project-details {
    padding: 60px 8%;
}

.project-info-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    margin-bottom: 30px;
}

.project-info-grid div {
    background-color: #1a1d29;
    padding: 16px;
    border-radius: 10px;

    border: 1px solid #2a2f45;

    transition: transform 0.2s ease;
}

.project-info-grid div:hover {
    transform: translateY(-4px);
}

.project-info-grid strong {
    color: #7aa2ff;
    font-size: 14px;
}

.project-description {
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 900px;
}

/* =========================
   MEDIA GALLERY
========================= */

.media-gallery {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 16px;

    margin-top: 20px;
}

.media-gallery img {
    width: 100%;
    border-radius: 10px;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* =========================
   PROJECT CONTENT SECTIONS
========================= */

.project-section {
    padding: 60px 8%;
}

.project-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ffffff;
}

.project-section p {

    margin-bottom: 16px;
}

.gif-container {
    margin-top: 30px;
}

.gif-container img {
    width: 100%;
    max-width: 700px;

    border-radius: 10px;
}

.gif-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 16px;

    margin-top: 20px;
}

.gif-grid img {
    width: 100%;
    border-radius: 10px;
}

/* =========================
   CODE BLOCK
========================= */

.code-block {
    margin-top: 30px;
}

.code-block pre {
    background-color: #0d1117;

    padding: 20px;

    border-radius: 10px;

    overflow-x: auto;

    border: 1px solid #2a2f45;
}

.code-block code {
    font-family: Consolas, monospace;
    font-size: 14px;

    color: #e6edf3;
}

/* =========================
   FADE IN ANIMATION
========================= */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}