/* TITLE */
.title-container {
    position: relative;
    margin-left: 3%;
    margin-right: 3%;
    display: flex;
    justify-content: space-between;
}

.title {
    font-size: 4rem;
    font-weight: 800;
    color: #333333;
    margin-top: 12%;
    margin-bottom: 3%;
}

.sub-title {
    font-size: 1.5rem;
    text-transform: uppercase;
}

.side-text {
    text-transform: uppercase;
    position: absolute;
    right: 1%;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333333;
    bottom: 0;
    letter-spacing: 0.05em;
}

/* IMAGE */
.image {
    position: relative;
    width: 93.8%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5%;
}

.image img {
    display: block;
    width: 100%;
    height: 75vh;
    border-radius: 10px;
    object-fit: cover;
}

.image p {
    position: absolute;
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    left: 16px;
    bottom: 16px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ABOUT */
.about-container {
    width: 93.8%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5%;
}

.about-title {
    font-size: 4rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 3%;
}

.about-sub-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5%;
    color: #333333;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
}

/* WORKS */
.works-container {
    width: 93.8%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5%;
}

.works-title {
    font-size: 4rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 3%;
}

.works-sub-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5%;
    color: #333333;
}

.work-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 48px;
}

.work-item {
    width: 100%;
}

.work-item .thumb,
.work-item a,
.work-item figure {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #F2F3F5;
}

.work-item .thumb img,
.work-item a > img,
.work-item figure img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-item:hover .thumb img,
.work-item:hover a > img,
.work-item:hover figure img {
    transform: scale(1.03);
}

.work-item .title {
    margin-top: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
}

/* CONTACT */
.contact-container {
    width: 93.8%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5%;
}

.contact-title {
    font-size: 4rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 3%;
}

.contact-sub-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5%;
    color: #333333;
}

.contact-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
}

/* GITHUB */
.github-container {
    width: 93.8%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5%;
}

.github-title {
    font-size: 4rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 3%;
}

.github-sub-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5%;
    color: #333333;
}

.github-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
}

.github-logo-container {
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.github-logo-container:hover {
    color: #555555;
}

.github-logo {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 8px;
}

.github-logo-text {
    font-size: 1.1rem;
    font-weight: 600;
}

/* FOOTER */
.footer {
    background-color: #f8f8f8c2;
    width: 100%;
    height: 5%;
    padding: 40px 0;
}

.footer-text {
    text-align: center;
    font-size: 0.9rem;
    color: #777777;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .title,
    .about-title,
    .works-title,
    .github-title,
    .contact-title {
        font-size: 3.5rem;
    }
    .work-items { gap: 40px; }
}

@media (max-width: 1024px) {
    .title,
    .about-title,
    .works-title,
    .github-title,
    .contact-title {
        font-size: 3rem;
    }
    .image img { height: 60vh; }
    .work-items { gap: 32px; }
}

@media (max-width: 768px) {
    .title { font-size: 2.25rem; }
    .sub-title { font-size: 1rem; }
    .about-title,
    .works-title,
    .github-title,
    .contact-title { font-size: 2.25rem; }
    .about-sub-title,
    .works-sub-title,
    .github-sub-title,
    .contact-sub-title { font-size: 0.95rem; }
    .about-text,
    .contact-text { font-size: 1rem; }
    .github-text { font-size: 1rem; }

    .side-text { display: none; }

    .image img { height: 50vh; }
    .image p { font-size: 0.9rem; }

    .work-items {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .title { font-size: 1.9rem; }
    .about-title,
    .works-title,
    .contact-title { font-size: 2rem; }
    .github-title { font-size: 2rem; }
    .image img { height: 42vh; }
}