html {
    overflow-x: hidden;
}

body {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Responsive scaling: keeps the exact design and zooms the whole page to fit
   any screen width. Driven by the script at the bottom of the HTML. */
.scale-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    transform-origin: top left;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 70px;
    background-color: #212121;
    opacity: 0.9;
}

.header-logo {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.header-logo img {
    width: 70px;
    height: auto;
}

.site-header a {
    text-decoration: none;
}

.header-name {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 30px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 30px;
    color: #fffdf4;
    /* offset half a letter-spacing so the wide tracking stays optically centered */
    padding-left: 30px;

}

.social-media {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== Projects ("პროექტები") section ===== */
.proj {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    font-family: 'Noto Sans Georgian', sans-serif;
}

.proj-title {
    text-align: center;
    font-family: 'Noto Serif Georgian', serif;
    font-weight: 500;
    font-size: 50px;
    letter-spacing: 12px;
    color: #212121;
    margin: 0 0 10px;
    text-transform: uppercase;
    /* nudge to keep the wide tracking optically centered */
    text-indent: 12px;
}

/* red underline accent matching the site's sale theme */
.proj-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 5px;
    margin: 18px auto 0;
    background-color: rgb(150, 1, 1);
    border-radius: 3px;
}

.proj-subtitle {
    text-align: center;
    font-family: 'Noto Serif Georgian', serif;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: 6px;
    color: grey;
    margin: 14px 0 0;
    text-transform: uppercase;
    text-indent: 6px;
}

/* thin line separating the title block from the projects */
.proj-divider {
    border: none;
    border-top: 1px solid #e2e2e2;
    max-width: 1120px;
    margin: 40px auto 60px;
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.proj-card {
    display: flex;
    flex-direction: column;
}

/* numbered title row that also acts as a thin fence above each video box */
.proj-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.proj-num {
    font-family: 'Noto Serif Georgian', serif;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 4px;
    color: #212121;
    /* keep the centered number clear of the fences on each side */
    padding: 0 4px;
}

.proj-fence {
    flex: 1;
    height: 1px;
    background-color: #e2e2e2;
}

/* video box for each project */
.proj-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background-color: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    /* defined frame so each video box reads as a distinct card */
    border: 1px solid #d8d8d8;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.proj-thumb video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* horizontally scrollable photo gallery that fills the same vertical box */
.proj-gallery {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* hide the scrollbar; navigation is via the arrows */
    scrollbar-width: none;
}

.proj-gallery::-webkit-scrollbar {
    display: none;
}

/* minimalist grey chevron arrows, no background */
.proj-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    margin: 0;
    line-height: 0;
    cursor: pointer;
    color: rgba(110, 110, 110, 0.85);
    transition: color 0.15s ease;
    z-index: 2;
}

.proj-arrow:hover {
    color: #3a3a3a;
}

.proj-arrow--prev {
    left: 4px;
}

.proj-arrow--next {
    right: 4px;
}

.proj-arrow svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* each photo takes the full box width and snaps into place */
.proj-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    scroll-snap-align: start;
}

/* minimalist "end of projects" ornament: thin line + small red diamond */
.proj-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 700px;
    margin: 50px auto 0;
    margin-top: 200px;
}

.proj-end-line {
    flex: 1;
    height: 1px;
    background-color: #e2e2e2;
}

.proj-end-dot {
    width: 7px;
    height: 7px;
    background-color: rgb(150, 1, 1);
    transform: rotate(45deg);
}

/* ===== Footer section (copied from GEORGETTI.html, top offsets rebased -3000px
   so the block sits right under the header instead of 3000px down the page) ===== */
.footer-section {
    position: relative;
    left: 0;
    width: 100%;
    height: 1500px;
    overflow: hidden;
    /* clear gap between the video boxes and the footer + map block */
    margin-top: 160px;
}

.company-name-2 {
    position: absolute;
    top: 500px;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, serif;
    color: rgb(255, 255, 255);
    text-align: center;
    text-transform: uppercase;
    font-size: 250px;
    letter-spacing: 5px;
}

.minaweri {
    position: absolute;
    top: 938px;
    left: 20%;
    transform: translateX(-50%);
    color: rgb(255, 255, 255);
    text-align: center;
    font-size: 20px;
    letter-spacing: 2px;
}

.underline {
    text-decoration: underline;
    text-decoration-color: rgb(150, 1, 1);
    text-decoration-thickness: 8px;
    text-underline-offset: 15px;
}

.misamarti {
    position: absolute;
    top: 510px;
    left: 20%;
    transform: translateX(-50%);
    color: rgb(0, 0, 0);
    font-family: 'Noto Sans Georgian', sans-serif;
    text-align: center;
    width: auto;
}

.misamarti h4,
.misamarti h6 {
    text-align: center;
    margin: 0 auto;
    width: 45%;
}

.misamarti h4 {
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: rgb(0, 0, 0);
}

.misamarti h6 {
    color: grey;
}

.dagvikavshirdit {
    position: absolute;
    top: 510px;
    left: 47%;
    transform: translateX(-50%);
    color: rgb(0, 0, 0);
    font-family: 'Noto Sans Georgian', sans-serif;
    text-align: center;
    width: auto;
}

.dagvikavshirdit h4,
.dagvikavshirdit h6 {
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.dagvikavshirdit h4 {
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.dagvikavshirdit h6 {
    color: grey;
}

.samushao-saatebi {
    position: absolute;
    top: 510px;
    left: 75%;
    transform: translateX(-50%);
    color: rgb(0, 0, 0);
    font-family: 'Noto Sans Georgian', sans-serif;
    text-align: center;
    width: auto;
}

.samushao-saatebi h4,
.samushao-saatebi h6 {
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.samushao-saatebi h4 {
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.samushao-saatebi h6 {
    color: grey;
}

.map {
    position: absolute;
    color: rgb(0, 0, 0);
    top: 10px;
    width: 100%;
    transform: translateX(-50%);
    text-align: center;
    left: 50%;
    display: flex;
    justify-content: center;
    border-top: 2px solid #000;
    filter: grayscale(100%) hue-rotate(180deg) brightness(100%) contrast(90%);
}

.hr4 {
    position: absolute;
    top: 700px;
    color: black;
    width: 100%;
    border: none;
    border-bottom: 800px solid black;
}

.footer1 {
    position: absolute;
    top: 1050px;
    left: 36%;
    transform: translateX(-50%);
    color: rgb(255, 255, 255);
    text-align: center;
    font-family: 'Noto Sans Georgian', sans-serif;
    width: 1%;
}

.footer1 h5 {
    color: grey;
}

.footer2 {
    position: absolute;
    top: 1050px;
    right: 90%;
    transform: translateX(-50%);
    color: rgb(255, 255, 255);
    text-align: center;
    font-family: 'Noto Sans Georgian', sans-serif;
    width: 1%;
}

.footer2 h5 {
    color: grey;
}

.footer3 {
    position: absolute;
    top: 1050px;
    left: 23%;
    transform: translateX(-50%);
    color: rgb(255, 255, 255);
    text-align: center;
    font-family: 'Noto Sans Georgian', sans-serif;
    width: 1%;
}

.footer3 h5 {
    color: grey;
}

.footer4text {
    position: absolute;
    color: rgb(255, 255, 255);
    top: 1060px;
    right: 200px;
    font-family: 'Noto Sans Georgian', sans-serif;
    font-size: 8px;
}

.footer4 {
    position: absolute;
    top: 1110px;
    right: 200px;
    display: flex;
    gap: 15px;
}

.footer4 img {
    height: 30px;
    width: 30px;
}

.vl1 {
    position: absolute;
    top: 505px;
    left: 630px;
    transform: translateX(-50%);
    height: 80px;
    border-left: 2px solid rgb(0, 0, 0);
}

.vl2 {
    position: absolute;
    top: 505px;
    left: 1170px;
    transform: translateX(-50%);
    height: 80px;
    border-left: 2px solid rgb(0, 0, 0);
}
