/* Import base styles */
@import 'base.css';
@font-face {
    font-family: 'Helvetic1';
    src: url('../fonts/test-fonts/HelveticaNeue1.ttf') format('truetype');
}
@font-face {
    font-family: 'Nateli';
    src: url('../fonts/nateli/fonts/nateli.ttf') format('truetype');
}
/* Project page styles */
.project-page {
    padding: 0;
    min-height: 100vh;
    background: black;
    overflow-x: hidden;
}

.project-page .main-nav {
    position: absolute;
    top: 40px;
    left: 2px;
    z-index: 100;
}


.project-page .main-nav a {
    font-family: 'Lexend Tera', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 100;
    letter-spacing: -0.05em;
    color: white;
    position: absolute;
    top: 1px;
    left: 31px;
    z-index: 90;
    text-decoration: none;
    transition: all 0.5s ease;
}

.project-page .main-nav a:hover {
    opacity: 0.8;
    letter-spacing: 0.03em;
}

.project-content {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.project-details {
    margin-top: 160px;
    width: 100%;
}

.project-title {
    font-family: 'Lexend Tera', sans-serif;
    font-size: 1.7rem;
    margin-bottom: 10px;
    font-weight: 100;
    letter-spacing: -0.05em;
    color: white;
    position: absolute;
    top: 90px;
    left: 31px;
    z-index: 90;
    animation: fadeIn 1s ease-out forwards;
    transition: all 0.5s ease;
}


.project-text {
    margin-top: 70px;
    margin-left: 15px;
    max-width:2000px;
    position: relative;
    z-index: 80;
    transform: translateY(-30px);
}

.project-text p {
    font-family: 'Lexend Tera', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 100;
    letter-spacing: 0.02em;
    color: white;
}

.photo-gallery {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.gallery-container {
    display: flex;
    gap: 20px;
    animation: scrollGallery 60s linear infinite;
    /* Pause animation on hover */
    &:hover {
        animation-play-state: paused;
    }
}

.photo-card {
    flex: 0 0 auto;
    /* Adjust width as needed */
    width: 300px;
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.3s;
}

.photo-card img:hover {
    opacity: 0.8;
}

/* Language switcher styles */
.language-switcher {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 100;
}

.lang-btn {
    background: none;
    border: none;
    color: rgb(255, 255, 255);
    font-family: 'Lexend Tera', sans-serif;
    font-size: 1rem;
    font-weight: 100;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 5px 10px;
    transition: opacity 0.3s ease;
}

.lang-btn:hover {
    opacity: 0.8;
}


.thin-text {
    font-weight: 100;
    letter-spacing: 0.22em;
    width: 50%;
    font-size: 240px;
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Adjust this value based on your gallery width */
        transform: translateX(-100%);
    }
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

/* Style for Georgian text */
[data-ka] {
    font-family: 'Lexend Tera', sans-serif; /* default font */
}

/* When Georgian is active */
[data-ka].georgian-active {
    font-family: 'Nateli', sans-serif !important;
}

/* Keep English text unchanged */
[data-en]:not(.georgian-active) {
    letter-spacing: 0.02em; /* Your existing English letter-spacing */
}

/* Georgian title specific spacing */
.project-title[data-ka].georgian-active {
    font-family: 'Nateli', sans-serif !important;
    letter-spacing: 0.08em !important; /* Different spacing for titles */
}

/* Georgian body text specific spacing */
.thin-text[data-ka].georgian-active {
    font-family: 'Nateli', sans-serif !important;
    letter-spacing: 0.05em !important; /* Different spacing for body text */
}

/* Georgian specific styles hamleti */
.georgian-active.project-title {
    font-family: 'Nateli', sans-serif !important;
    font-size: 3.8rem !important;
    letter-spacing: 0.1em !important;
    line-height: 1.2 !important;
}

.georgian-active.thin-text {
    font-family: 'Helvetic1', sans-serif !important;
    font-size: 1.4rem !important;
    letter-spacing: 0.05em !important;
    line-height: 1.8 !important;
}

/* Georgian navigation link */
.main-nav a.georgian-active {
    font-family: 'Helvetic1', sans-serif !important;
    font-size: 2rem !important;
    letter-spacing: 0.08em !important;
}

/* Georgian language button */
.lang-btn.georgian-active {
    font-family: 'Nateli', sans-serif !important;
    font-size: 1.2rem !important;
    letter-spacing: 0.05em !important;
}


/* Update all Georgian text styles to use Nateli */
[data-ka].georgian-active {
    font-family: 'Nateli', sans-serif !important;
}

/* Georgian specific styles */
.georgian-active.project-title {
    font-family: 'Nateli', sans-serif !important;
    font-size: 2rem !important;
    letter-spacing: 0.1em !important;
    line-height: 1.2 !important;
    opacity: 0.85;
    transform: translateY(-30px);
    margin-left: 4px;
}

.georgian-active.thin-text {
    font-family: 'Havletic1 Light', sans-serif !important;
    font-size: 1rem !important;
    letter-spacing: 0.05em !important;
    line-height: 1.8 !important;
    opacity: 0.85;
    transform: translateX(5px);
}

.main-nav a.georgian-active {
    font-family: 'Nateli', sans-serif !important;
    font-size: 1.5rem !important;
    letter-spacing: 0.08em !important;
    opacity: 0.85;
}

.lang-btn.georgian-active {
    font-family: 'Nateli', sans-serif !important;
    font-size: 1.2rem !important;
    letter-spacing: 0.05em !important;
}

/* Add these new styles */
/* .credits-container {
    display: flex;
    gap: 60px;
    margin: 20px 0;
    
} */

.crew-list, .cast-list {
    flex: 1;
}

/* Specific font styles for the credits and cast lists */
.georgian-active .credits-container,
.georgian-active .crew-list,
.georgian-active .cast-list {
    font-family: 'Halvetic1 Light', sans-serif !important;
    font-size: 1rem !important;
    letter-spacing: 0.05em !important;
    line-height: 1.8 !important;
    opacity: 0.97;
}



/* Specific positioning for Georgian hamlet title */
.project-title.georgian-active {
    top: 110px;  /* more down */
    left: 30px;  /* more to the right */
}


/* Positioning control for Georgian main text */
.thin-text.georgian-active {
    position: relative;
    top: 0px;        /* moves down 50px */
    left: -6px;       /* moves right 30px */
    margin-top: 20px; /* adds extra space at top */
}

/* Credits container positioning when in Georgian */
.georgian-active .credits-container {
    position: relative;
    top: 0px;
    left: 0px;
    margin-top: 0px;
    margin-left: 0px;
}

.lang-btn{
    border-radius: none;
    border: none;
}
.lang-btn:hover{
    background-color: rgba(255, 255, 255, 0);
    color: rgb(189, 189, 189);
}
@media screen and (max-width: 768px) {
    .project-title {
        font-size: 1.3rem;
        margin-top: 0px;
        left:33px;
    }

    .thin-text {
        font-size: 120px;
        width: 85%;
    }

    .project-text {
        margin-top: 150px;
        margin-left: 15px;
    }

    .project-text p {
        font-size: 0.95rem;
    }

    .main-nav a {
        font-size: 1.2rem;
        left: 25px;
    }

    .language-switcher {
        top: 30px;
        right: 30px;
    }

    .photo-card {
        width: 250px;
    }

    /* Georgian text adjustments for tablet */
    

    .georgian-active .main-text,
    .georgian-active .credits-container,
    .georgian-active .crew-list,
    .georgian-active .crew {
        font-size: 0.95rem !important;
    }
    .georgian-active.project-title{
        margin-top: 5px;
        margin-left: -3px;
        font-size: 1.2rem !important;
    }
    .georgian-active.thin-text{
        margin-top: 160px;
    }
    .georgian-active.projects{
        margin-left: -11px;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    .project-title {
        font-size: 1.3rem;
        margin-left: -6.5px;
        margin-top: 0px;
    }
    .projects{
        margin-left: -7px;
    }

    .thin-text {
        font-size: 60px;
        width: 95%;

    }

    .project-text {
        margin-top: 200px;
        margin-left: 10px;
    }

    .project-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .main-nav a {
        font-size: 1rem;
        left: 20px;
    }

    .language-switcher {
        top: 20px;
        right: 20px;
    }

    .lang-btn {
        font-size: 0.9rem;
    }

    .photo-card {
        width: 180px;
    }

    .lightbox img {
        max-width: 95%;
    }

    /* Georgian text adjustments for mobile */
    .georgian-active.project-title {
        font-size: 1.5rem !important;
        margin-left: -3px;
    }
    .georgian-active.thin-text{
        margin-top: 200px;
    }
    .georgian-active.projects{
        margin-left: -7px;
    }

    .georgian-active .main-text,
    .georgian-active .credits-container,
    .georgian-active .crew-list,
    .georgian-active .crew {
        font-size: 0.9rem !important;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .gallery-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .photo-card img:hover,
    .lang-btn:hover {
        opacity: 1;
    }
}

/* Landscape mode optimization */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .project-title {
        top: 60px;
    }

    .project-text {
        margin-top: 100px;
    }

    .thin-text {
        font-size: 50px;
    }

    .lightbox img {
        max-height: 85vh;
    }
}

/* Print styles */
@media print {
    .photo-gallery,
    .language-switcher,
    .main-nav {
        display: none;
    }

    .project-text {
        margin-top: 50px;
    }

    .project-title {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 20px;
    }
}