/* 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.4rem;
    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: 20px;
    width: 100%;
}

.project-title {
    font-family: 'Lexend Tera', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 100;
    letter-spacing: -0.05em;
    color: white;
    position: absolute;
    top: 110px;
    left: 34px;
    z-index: 90;
    animation: fadeIn 1s ease-out forwards;
    transition: all 0.5s ease;
    transform: translateY(-20px);
}


.project-text {
    margin-top: 160px;
    margin-left: 20px;
    max-width: 2000px;
    position: relative;
    z-index: 80;
}

.project-text p {
    font-family: 'Lexend Tera', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 100;
    letter-spacing: 0.02em;
    color: white;
    transform: none;
}

.photo-gallery {
    width: 100%;
    overflow-x: auto;
    position: relative;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
}

.photo-gallery::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari/Opera */
}

.gallery-container {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    width: max-content; /* This ensures the container fits all content */
    animation: scrollGallery 180s linear infinite;
    animation-play-state: running;
}

.gallery-container:hover {
    animation-play-state: paused;
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px)); /* Smoother scrolling, adjusts for gap */
    }
}

/* Touch-specific gallery styles - only disable animation if actually scrolling */
@media (pointer: coarse) {
    .photo-gallery {
        touch-action: pan-x; /* Enables horizontal panning/scrolling */
    }
    
    .photo-gallery.scrolling .gallery-container {
        animation-play-state: paused;
    }
    
    .photo-card:first-child {
        margin-left: 0;
    }
    
    .photo-card:last-child {
        margin-right: 20px;
    }
}

.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;

}

/* 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;
    font-size: 1rem !important;
    letter-spacing: 0.05em !important;
    line-height: 1.8 !important;
    opacity: 0.97;
}

/* 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: 2rem !important;
    letter-spacing: 0.1em !important;
    line-height: 1.2 !important;
    opacity: 0.85;
    transform: none;
}

.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;
}



/* Add the new Nateli font */
/* @font-face {
    font-family: 'Nateli';
    src: url('../../fonts/nateli/fonts/nateli.ttf') format('truetype'); */
/* } */

/* 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: none;
}

.georgian-active.thin-text {
    font-family: 'Nateli', sans-serif !important;
    font-size: 1rem !important;
    letter-spacing: 0.05em !important;
    line-height: 1.8 !important;
    opacity: 0.85;
}

.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: 'Helvetic1 Light', sans-serif !important;
    font-size: 1rem !important;
    letter-spacing: 0.05em !important;
    line-height: 1.6 !important;
    opacity: 0.97;
    transform: none;
    margin: 0;
    padding: 0;
}
/* .crew{
    font-family: 'Helvetic1', sans-serif !important;
} */



/* 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);
}

.credits-container {
    margin-bottom: 30px;
}

.crew-list {
    margin: 0;
    padding: 0;
}

.crew {
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-family: 'Helvetic1 Light', sans-serif;
    opacity: 0.97;
}

.main-text {
    margin-top: 30px;
}

.main-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Update existing Georgian specific styles */
.georgian-active .credits-container,
.georgian-active .crew-list,
.georgian-active .crew {
    font-family: 'Helvetic1 Light', sans-serif;
    font-size: 1rem !important;
    letter-spacing: 0.05em !important;
    line-height: 1.6 !important;
    opacity: 0.97;
    margin-top: -30px;
}

.georgian-active .main-text {
    font-family: 'Helvetic1 Light', sans-serif;
    font-size: 1rem !important;
    letter-spacing: 0.05em !important;
    line-height: 1.6 !important;
    opacity: 0.97;
}

.georgian-active .main-text p {
    margin-bottom: 20px;
}

/* Responsive Design */
/* Tablet (768px and below) */
@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.1rem;
        margin-left: -5px;
        margin-top: 15px;
    }
    .projects{
        margin-left: -7px;
    }

    .thin-text {
        font-size: 60px;
        width: 95%;

    }

    .project-text {
        margin-top: 150px;
        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: -11px;
    }
    .georgian-active.thin-text{
        margin-top: 200px;
    }

    .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;
    }
}

