/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --primary-bg: #1d283a;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #1d283a;
}

body {
    position: relative;
}

img {
    aspect-ratio: attr(width) / attr(height);
}

h2 {
    font-size: inherit;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Background Lines
   ========================================================================== */

.vertical-line,
.horizontal-line {
    position: absolute;
    background-color: white;
    z-index: -1;
    box-shadow: 0px 0px 30px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Vertical Lines */
.vertical-line {
    width: 2px;
    height: 100%;
}

.vertical-line1 {
    left: 35.75%;
    top: 0;
}

.vertical-line2 {
    left: 72.75%;
    top: 0;
}

.vertical-line3 {
    left: 10%;
    top: 0;
}

/* Horizontal Lines */
.horizontal-line {
    width: 100%;
    height: 2px;
    min-height: 2px;
    left: 0;
    will-change: transform;
}

.horizontal-line1 {
    top: 0%;
}

.horizontal-line2 {
    top: 4%;
}

.horizontal-line3 {
    top: 8%;
}

.horizontal-line4 {
    top: 13%;
}

.horizontal-line5 {
    top: 17%;
}

.horizontal-line6 {
    top: 22%;
}

.horizontal-line7 {
    top: 27%;
}

.horizontal-line8 {
    top: 32%;
}

.horizontal-line9 {
    top: 38%;
}

.horizontal-line10 {
    top: 43%;
}

.horizontal-line11 {
    top: 48%;
}

.horizontal-line12 {
    top: 53%;
}

.horizontal-line13 {
    top: 57%;
}

.horizontal-line14 {
    top: 61%;
}

.horizontal-line15 {
    top: 65%;
}

.horizontal-line16 {
    top: 69%;
}

.horizontal-line17 {
    top: 73%;
}

.horizontal-line18 {
    top: 77%;
}

.horizontal-line19 {
    top: 80%;
}

.horizontal-line20 {
    top: 83%;
}

.horizontal-line21 {
    top: 86%;
}

.horizontal-line22 {
    top: 89%;
}

.horizontal-line23 {
    top: 92%;
}

.horizontal-line24 {
    top: 95%;
}

.horizontal-line25 {
    top: 97%;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.main-content {
    position: relative;
    z-index: 1;
}

.divider {
    width: 100%;
    height: 2px;
    background-color: white;
}

/* ==========================================================================
   Video Container
   ========================================================================== */

#video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--primary-bg) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#video-background {
    position: absolute;
    width: 100%;
    height: 100vh;
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-bg) !important;
    aspect-ratio: 16 / 9;
}

/* ==========================================================================
   Popup Overlay & Content
   ========================================================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup-content {
    box-sizing: border-box;
    height: 90vh;
    aspect-ratio: 1 / 1;
    container-type: size;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    overflow: hidden;
    border: 0px solid white;
}

.popup-overlay.open .popup-content {
    transform: scale(1);
}

/* Popup Close Button */
.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: url('https://rerodev.com/wp-content/uploads/2024/11/Untitled-2.png') 16 16, auto;
    font-weight: bold;
    font-size: 26px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 0 !important;
    border-radius: 50%;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    transition: all 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.popup-close:hover {
    cursor: url('https://rerodev.com/wp-content/uploads/2024/11/Untitled-2.png') 16 16, auto;
    background: rgba(255, 255, 255, 0.8);
    color: black;
    transform: scale(1.1);
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Image Container
   ========================================================================== */

.image-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    margin: 0;
    box-shadow: 0px 3px 65px rgba(0, 0, 0, 1);
    z-index: 0;
    cursor: url('https://rerodev.com/wp-content/uploads/2024/11/Untitled-2.png') 16 16, auto;
    transition: transform 0.6s ease;
}

.image-container:hover {
    transform: scale(1.02);
}

/* Grey overlay above the image */
.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.4);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.image-container:hover::before {
    opacity: 0;
}

/* Image styling */
.image-container img {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
    filter: saturate(0.5);
    transition: filter 1.2s ease;
    border: 2px solid white;
    position: relative;
    z-index: 1;
}

.image-container:hover img {
    filter: saturate(1);
}

/* Text overlay */
.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em !important;
    font-weight: normal !important;
    color: white !important;
    transition: opacity 0.4s ease;
    opacity: 1;
    text-align: center;
    z-index: 3;
    cursor: pointer;
}

.image-container:hover .overlay-text {
    opacity: 0;
    cursor: url('https://rerodev.com/wp-content/uploads/2024/11/Untitled-2.png') 16 16, auto;
}

/* Custom image container img */
.custom-image-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom overlay text */
.custom-overlay-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
}

/* ==========================================================================
   Swiper Overrides
   ========================================================================== */

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Video slide in popups */
.swiper-slide.video-slide {
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.swiper-slide.video-slide video {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Swiper Navigation Arrows */
.swiper-button-prev,
.swiper-button-next {
    cursor: url('https://rerodev.com/wp-content/uploads/2024/11/Untitled-2.png') 16 16, auto;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    cursor: url('https://rerodev.com/wp-content/uploads/2024/11/Untitled-2.png') 16 16, auto;
    font-size: 22px !important;
    font-weight: bold;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    cursor: url('https://rerodev.com/wp-content/uploads/2024/11/Untitled-2.png') 16 16, auto;
    background: rgba(255, 255, 255, 0.8);
    color: black;
    transform: scale(1.1);
    box-shadow: 0px 0px 12px rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Two-Column Layouts
   ========================================================================== */

/* Standard two-column */
.two-column-container {
    display: flex;
    width: 100%;
    height: var(--pc-height, 63vw);
    padding: 0 5%;
    gap: 5%;
}













/* New two-column */
.new-two-column-container {
    display: flex;
    width: 100%;
    height: var(--pc-height, 80vw);
    padding: 0 5%;
    gap: 10%;
}







/* Alt two-column (Right higher than Left) */
.alt-two-column-container {
    display: flex;
    width: 100%;
    height: var(--pc-height, 50vw);
    padding: 0 5%;
    gap: 10%;
}



















/* Custom two-column */
.custom-two-column-container {
    display: flex;
    width: 100%;
    height: var(--pc-height, 80vw);
    padding: 0 5%;
    gap: 5%;
}



















/* ==========================================================================
   Section-Specific Styles
   ========================================================================== */





/* Kutaisi Travel */


/* Chiora */


/* Mdevari Cover */


/* Kalandi Webpage */


/* Kultura Cover */


/* Odyssey: Sakutaiso */


/* Blueberry Stocks */






/* International Celebrations */


/* Kutaisi Branding */


/* Dachi Online Store */


/* Kakabadze (Commemorating Posters) */


/* Mdevari Digital Publishment */


/* Spacy Video Game */


/* Saphere Photo Editing */


/* Memorial Movie */


/* Georgian Language Day */


/* ==========================================================================
   Audio Player
   ========================================================================== */

.audio-player-container {
    width: 100%;
    background: var(--primary-bg) !important;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-player-container audio {
    width: 80%;
    max-width: 500px;
    filter: brightness(1.2);
}

/* ==========================================================================
   Slide Text & Link Overlays
   ========================================================================== */

.swiper-slide.link-slide {
    position: relative;
}

.watch-link {
    position: absolute;
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    font-size: 2vw;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    color: #000000;
    background: rgba(255, 255, 255, 1);
    border-radius: 30px;
}

.slide-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: var(--fs-pc, 4.6cqw);
    padding: var(--text-padding, 5% 10%);
    line-height: 1.28;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    -webkit-hyphenate-limit-chars: 8 4 4;
    hyphenate-limit-chars: 8 4 4;
    overflow-wrap: break-word;
    color: #fff;
}

/* ==========================================================================
   Desktop (min-width: 769px)
   ========================================================================== */



/* ==========================================================================
   Mobile (max-width: 768px)
   ========================================================================== */

@media screen and (max-width: 768px) {

    /* Hide all horizontal lines on mobile */
    .horizontal-line1,
    .horizontal-line2,
    .horizontal-line3,
    .horizontal-line4,
    .horizontal-line5,
    .horizontal-line6,
    .horizontal-line7,
    .horizontal-line8,
    .horizontal-line9,
    .horizontal-line10,
    .horizontal-line11,
    .horizontal-line12,
    .horizontal-line13,
    .horizontal-line14,
    .horizontal-line15,
    .horizontal-line16,
    .horizontal-line17,
    .horizontal-line18,
    .horizontal-line19,
    .horizontal-line20,
    .horizontal-line21,
    .horizontal-line22,
    .horizontal-line23,
    .horizontal-line24,
    .horizontal-line25 {
        display: none;
    }

    .overlay-text {
        font-size: 2.5em !important;
    }



































    .two-column-container,
    .new-two-column-container,
    .custom-two-column-container,
    .alt-two-column-container {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 10vh;
    }

    .generic-column {
        width: 100% !important;
        margin: 0 !important;
        padding: 5% 0 !important;
    }

    /* Default mobile style for all project wrappers — overrides inline styles */
    .project-wrapper {
        padding-left: 5% !important;
        padding-right: 5% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center;
        width: 100% !important;
        height: auto;
    }

    /* Popup styles */
    .popup-content {
        height: auto;
        width: 95vw;
    }

    .popup-close {
        top: 8px;
        right: 8px;
        font-size: 22px;
        width: 35px;
        height: 35px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }

    .watch-link {
        font-size: 3cqw;
    }
}

.generic-column {
    display: flex;
}

.generic-column.col-img-full .image-container {
    width: 100%;
}

.generic-column.col-img-auto .image-container {
    width: auto;
    max-width: 100%;
    height: auto;
}

.project-spacer {
    height: 10vh;
}