:root {
    --gold: #d4a95a;
    --gold-2: #e6bd6e;
}

/* common */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
        sans-serif;
}

.section-max {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform-origin: right top;
    will-change: transform;
    background-color: hsl(0, 0%, 6%);
    padding: 4rem 2.5rem;
    width: 100%;
    min-height: 100vh;
}

img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

a,
p {
    position: relative;
    color: #fff;
    font-weight: 300;
    font-size: 1rem;
    -webkit-user-select: none; /* safari support */
    user-select: none;
    text-decoration: none;
}
/* common finish */

/* Loading Animation */
.loading-page {
    display: flex;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    z-index: 5;
    background: black;
    width: 100%;
    height: 100%;
}
svg {
    width: 50vw;
    height: 50vh;
}
svg .svg-path {
    justify-content: center;
    align-items: center;
    stroke: #c0c0c0;
    stroke: #d4a95a;
    stroke-width: 15px;
    stroke-linecap: square;
}
svg #path1 {
    stroke-dasharray: 4602;
    animation: draw1 3s ease;
}
svg #path2 {
    stroke-dasharray: 8402;
    animation: draw2 3s ease;
}
svg #path3 {
    stroke-dasharray: 4681;
    animation: draw3 3s ease;
}
@keyframes draw1 {
    0% {
        stroke-dashoffset: 4602;
    }
    100% {
        stroke-dashoffset: 0;
    }
}
@keyframes draw2 {
    0% {
        stroke-dashoffset: 8402;
    }
    100% {
        stroke-dashoffset: 0;
    }
}
@keyframes draw3 {
    0% {
        stroke-dashoffset: 4681;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.name-container {
    height: 30px;
    overflow: hidden;
}
.logo-name {
    color: #d4a95a;
    font-weight: bolder;
    font-size: 20px;
    letter-spacing: 7px;
}
/* Loading Animation finish */

/* Navbar */
.nav-bar {
    display: flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    padding: 2.5em;
    width: 100%;
}

.nav-bar::scroll-mark .logo a {
    font-weight: 600;
}

.menu-toggle {
    position: relative;
    cursor: pointer;
    width: 3rem;
    height: 1.5rem;
}

.menu-toggle P {
    position: absolute;
    transform-origin: top left;
    will-change: transform, opacity;
}
/* Navbar  Finish*/

/* Site menu */
.menu-overlay {
    position: fixed;
    z-index: 1;
    background-color: #0f0f0f;
    width: 100%;
    height: 100vh;
}

.menu-content {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    transform-origin: left bottom;
    will-change: transform, opacity;
    width: 100%;
    height: 100%;
}

.menu-items,
.menu-footer {
    display: flex;
    gap: 2.5rem;
    padding: 2.5em;
    width: 100%;
}

.col-lg {
    flex: 3;
}

.col-sm {
    flex: 2;
}

.menu-items .col-lg {
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-preview-img {
    position: relative;
    border-radius: 15px;
    width: 45%;
    height: 100%;
    overflow: hidden;
}

.menu-preview-img img {
    position: absolute;
    will-change: transform, opacity;
}

.menu-items .col-sm {
    display: flex;
    flex-direction: column;
    gap: 2.5em;
    padding: 2.5em 0;
}

.menu-links,
.menu-socials {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.link,
.social {
    clip-path: polygon(0% 0%, 100% 0, 100% 100%, 0% 100%);
    padding-bottom: 6px;
}

.link a,
.social a {
    display: inline-block;
    transition: color 0.5s;
    will-change: transform;
}

.link a {
    font-size: 3.5rem;
    letter-spacing: -0.02rem;
}

.social a {
    color: #8f8f8f;
}

.social a:hover {
    color: #fff;
}

.menu-footer {
    position: absolute;
    bottom: 0;
}

.menu-footer .col-sm {
    display: flex;
    justify-content: space-between;
}

.link a::after,
.social a::after,
.menu-footer a::after {
    position: absolute;
    top: 102.5%;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.6, 0, 0.4, 1);
    background: #fff;
    width: 100%;
    height: 2px;
    content: "";
}

.link a:hover::after,
.social a:hover::after,
.menu-footer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
/* Site menu Finish*/

/* default hidden state of the menu */
.menu-toggle p#menu-close {
    transform: translateX(-5px) translateY(10px) rotate(5deg);
    opacity: 0;
}

.link a,
.social a {
    transform: translateY(120%);
    opacity: 0.25;
}

.menu-content {
    transform: translateX(-100px) translateY(-100px) scale(1.5) rotate(-15deg);
    opacity: 0.25;
}

.menu-overlay {
    clip-path: polygon(0% 0%, 100% 0, 100% 0%, 0% 0%);
}
/* default hidden state of the menu  finish*/

/* hero */
.home-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 0 auto;
    padding: 5rem 2.5rem;
    width: 100%;
    max-width: 1300px;
    color: #fff;
}
.home-container > :nth-child(1) {
    flex: 1;
}
.home-container > :nth-child(2) {
    flex: 1.1;
}

.home-title {
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
    font-size: 5rem;
    line-height: 1.05;
}
.home-title span {
    color: var(--gold);
}

.home-tagline {
    margin-bottom: 2rem;
    max-width: 42ch;
    color: #dcdcdc;
    font-weight: 300;
    font-size: 1.2rem;
}

.home-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.home-btn {
    align-items: center;
    cursor: pointer;
    border: none;
    border-radius: 14px;
    background: var(--gold);
    padding: 0.9rem 1.25rem;
    color: #000;
    font-weight: 600;
}

.home-preview {
    border-radius: 20px;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}
.home-preview img {
    transform: scale(1.08);
    transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-preview:hover img {
    transform: scale(1);
}
/* hero finish*/

h1 {
    color: #fff;
    font-weight: 400;
    font-size: 7rem;
    line-height: 1;
    letter-spacing: -0.2rem;
}

/* --- gallery section --- */
/* Gallery - site language */
.gallery-header {
    margin-bottom: 1.75rem;
}
.gallery-cats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.gallery-cats button {
    transition: all 0.18s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: transparent;
    padding: 0.6rem 1rem;
    color: #fff;
    font-weight: 600;
}
.gallery-cats button[aria-selected="true"] {
    box-shadow: 0 0 10px var(--gold);
    background: var(--gold);
    color: #000;
}
.gallery-grid {
    gap: 1rem;
    columns: 300px;
}
.gallery-thumb {
    display: inline-block;
    transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
    cursor: pointer;
    margin-bottom: 1rem;
    border: none;
    border-radius: 6px;
    background: none;
    padding: 0;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}
.gallery-thumb img {
    display: block;
    transition: none;
    will-change: transform, opacity;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* --- gallery section finish --- */

/* --- About & Contact --- */
/* About & Contact: menu-like language */
.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 3rem;
}

/* preview image block (matches menu preview vibe) */
.about-preview-img {
    position: relative;
    border-radius: 20px;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}
.about-preview-img img {
    position: absolute;
    transform: scale(1.05);
    transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1);
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-preview-img:hover img {
    transform: scale(1);
}

/* typography — large, menu-style */
.big-title {
    margin-bottom: 0.5rem;
    color: var(--gold);
    font-weight: 600;
    font-size: 4.25rem;
    letter-spacing: 0.02rem;
}
.lead {
    margin-bottom: 1.5rem;
    max-width: 48ch;
    color: #e6e6e6;
    font-weight: 300;
    font-size: 1.05rem;
}

/* action links styled like menu */
.about-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.about-links a {
    padding-bottom: 6px;
    width: fit-content;
    font-size: 2.25rem;
}
.about-links a::after {
    position: absolute;
    top: 102%;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.6, 0, 0.4, 1);
    background: #fff;
    width: 100%;
    height: 2px;
    content: "";
}
.about-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* contact side */
.contact-info .pill {
    display: inline-block;
    margin-right: 0.8rem;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem 1rem;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.9rem 1rem;
    width: 100%;
    color: #fff;
    font-size: 1rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9b9b9b;
}

.submit-btn {
    cursor: pointer;
    margin-top: 0.6rem;
    border: 1px solid var(--gold);
    border-radius: 14px;
    background: transparent;
    padding: 0.9rem 1.25rem;
    color: var(--gold);
    font-weight: 600;
}
/* --- About & Contact finish --- */

/* developer */
.developer-container {
    position: absolute;
    bottom: 0px;
    width: 100%;
    margin: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}
.developer-container p,
.developer-container a {
    font-size: 0.9rem;
}
.developer-name {
    color: var(--gold);
}
.developer-name::after {
    position: absolute;
    top: 102%;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.6, 0, 0.4, 1);
    background: var(--gold);
    width: 100%;
    height: 2px;
    content: "";
}
.developer-name:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.heart {
    display: inline-block;
    color: var(--gold);
    animation: beat 1s infinite;
    transform-origin: center;
}

@keyframes beat {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.25);
    }
    40% {
        transform: scale(1);
    }
    60% {
        transform: scale(1.25);
    }
    80% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

/* developer finish */

/* mobile view */
@media (max-width: 900px) {
    .section-max {
        padding: 3rem 1.5rem;
    }
    /* full screen menu */
    .menu-items .col-lg {
        display: none;
    }
    /* full screen menu finish */

    /* home section */
    .hero h1 {
        width: 100%;
        font-size: 4rem;
        letter-spacing: 0;
    }
    .home-container {
        flex-direction: column-reverse;
    }
    /* home section finish */

    /* gallery section */
    .gallery-cats button {
        font-size: 0.8rem;
    }
    .f-button.is-arrow {
        display: none;
    }
    /* gallery section finish */

    /* about and contact section */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .contact-form {
        padding: unset;
    }
    .about-preview-img {
        border-radius: 12px;
        height: 40vh;
    }
    .big-title {
        font-size: 3.5rem;
    }
    .about-links a {
        font-size: 1.8rem;
    }
    /* about and contact mobile view finish*/
}
