* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #111;
    margin: 0;  
    font-family: "Liter", sans-serif;
    font-optical-sizing: auto;
}

a, button {
    transition: all 0.5s ease-in-out;
}
a:hover {
    opacity: 0.8;
}

/*Container*/
#container { 
    padding: 20px; 
    max-width: 1000px; 
    width: 100%;
    margin: auto;
}

/*Profile*/
#logo { 
    max-width: 100%; 
    height: auto;
    margin: 20px auto; 
    display: block;
}
h1 { 
    margin: 0 0 10px 0; 
    font-size: 36px; 
    font-family: "Oswald", sans-serif;
    line-height: 1.2em;
    color: #fff;
    text-align: center;
}
#profile-meta { 
    margin-bottom: 20px; 
    font-size: 16px; 
    color: #ccc; 
    text-align: center;
    font-weight: 600;
}
#about-section { 
    margin: 0 auto 30px auto; 
    line-height: 1.5em;
    text-align: center;
    color: #eee;
    font-size: 16px;
}
.social-links { 
    margin: 20px auto;
    text-align: center;
}
.social-links a {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
    font-size: 24px;
    color: #eee;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.social-links a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}
#action-buttons { 
    margin: 20px auto 0px; 
    display: block; 
    padding: 12px 24px; 
    background-color: #fff; 
    color: #000; 
    text-decoration: none; 
    border-radius: 4px; 
    font-weight: bold; 
    width: 160px;
    text-align: center;
}

/*Masonry Grid*/
.masonry-grid {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
    padding: 20px;
    margin: 30px auto;
}
.masonry-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.masonry-pool {
    display: none;
}
.masonry-item {
    cursor: pointer;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.masonry-item.in-view {
    opacity: 1;
    transform: translateY(0);
}
.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.25s ease;
}
.masonry-item img:hover {
    transform: scale(1.02);
}

/* Lightbox Open & Close Animation */
.lightbox {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.lightbox-close:hover {
    transform: scale(1.15);
    opacity: 0.8;
}
.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    transform: scale(0.88);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.lightbox.active img {
    transform: scale(1);
    opacity: 1;
}
.lightbox-title {
    color: #fff;
    margin-top: 15px;
    font-size: 17px;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.35s ease 0.08s, opacity 0.3s ease 0.08s;
    background-color: #000;
    padding: 5px 10px;
    border-radius: 10px;
}
.lightbox.active .lightbox-title {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
#footer { 
    padding: 10px; 
    width: 100%;
    background-color: #000;
    text-align: center;
}
#footer p {
    color: #fff;
    font-size: 13px;
    text-align: center;
}
#watermark { 
    font-size: 13px; 
    color: #333!important; 
    background-color: #fff;
    padding: 7px 14px;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    border-radius: 20px;
}
