/* =============================
   Global Styles
============================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #2a0c0b;
    font-family: "Roboto", sans-serif;
    color: #ffe8be;
}

/* =============================
   Main Layout
============================= */
.main {
    padding: 120px 10% 0;
}

/* =============================
   Navigation Bar
============================= */
.navbar {
    overflow: hidden;
    background-color: #ffd381;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.navbar a {
    float: right;
    display: block;
    color: #2a0c0b;
    text-align: center;
    padding: 1%;
    text-decoration: none;
    font-size: 150%;
}

.navbar a.left {
    float: left;
}

.navbar a:hover {
    background-color: #c9973a;
}

/* =============================
   About Section
============================= */
.about {
    margin-bottom: 10%;
}

.inner1,
.inner2 {
    animation: color-change 2.5s infinite alternate;
    border-style: solid;
}

.inner1 {
    padding: 1%;
    border-width: 10px;
}

.inner2 {
    padding: 5%;
    border-width: 2px;
    display: flex;
    gap: 5%;
    align-items: flex-start;
}

@keyframes color-change {
    0% { border-color: rgba(255, 203, 73, 0.75); }
    50% { border-color: rgba(255, 120, 24, 0.75); }
    100% { border-color: rgb(131, 21, 15); }
}

.inner2 img {
    width: 22%;
    max-width: 220px;
    height: auto;
}

.inner2 h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.inner2 p {
    font-size: 25px;
    line-height: 1.4;
}

/* =============================
   Project Gallery (MAX 2 / ROW)
============================= */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 10%;
}

.gallery-item {
    flex: 0 1 calc(50% - 40px);
    max-width: 520px;
    min-width: 320px;
    position: relative;
    text-align: center;
}

.gallery-item img.img1 {
    width: 100%;
    height: auto;
    border: 5px solid #ffe8be;
    transition: opacity 0.4s ease;
}

.gallery-item:hover img.img1 {
    opacity: 0.15;
}

.gallery-item .project-title {
    margin: 12px 0;
    font-size: 22px;
}

.gallery-item .text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10%;
    opacity: 0;
    font-size: 18px;
    line-height: 1.4;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .text {
    opacity: 1;
}

.gallery-item .text img.img2 {
    width: 32px;
    margin-left: 10px;
}

/* =============================
   Art Gallery (MAX 2 / ROW)
============================= */
.art-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 10%;
}

.art-gallery-item {
    flex: 0 1 calc(50% - 40px);
    max-width: 520px;
    min-width: 320px;
    text-align: center;
}

.art-gallery-item img.artimg {
    width: 100%;
    height: auto;
    border: 2px solid #ffe8be;
    transition: transform 0.3s ease;
}

/* .art-gallery-item:hover img.artimg {
    transform: scale(1.03);
} */

.art-title {
    font-weight: bold;
    margin-top: 6px;
    font-size: 1.05em;
}

.art-detail {
    font-size: 0.95em;
}

/* =============================
   Responsive
============================= */
@media (max-width: 1024px) {
    .main {
        padding: 110px 6% 0;
    }
}

@media (max-width: 768px) {
    .inner2 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .inner2 img {
        width: 50%;
    }

    .gallery-item,
    .art-gallery-item {
        flex: 0 1 90%;
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 100px 5% 0;
    }

    .inner2 p {
        font-size: 20px;
    }
}
