.content {
    display: flex;
    width: 70%;
    margin: auto;
    margin-top: 30px;
    border-radius: 12px;
    flex-wrap: wrap; /* for responsiveness */
    justify-content: center;
}

.project-content {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 40px; /* space between text and image */
    background: rgba(0, 0, 0, 0.6); /* optional overlay */
    padding: 30px;
    border-radius: 12px;
    flex-wrap: wrap; /* for responsiveness */
}

.back-arrow-container{
    position: relative;
    max-width: 25px;
    height: auto;
    aspect-ratio: 4/4;
    margin-left: 50px;
    display: flex;
    align-items: center;
}


.text {
    flex: 1 1 500px; /* grows to fill available space, min 500px */
    width: 50%;
}

.text h1 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: white;
}

.text p {
    line-height: 1.6;
    font-size: 1rem !important;
    text-align: justify;

}

.image {
    flex: 1 1 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 50%;
}

.image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}


.gallery {
    display: flex;
    flex-wrap: wrap;       /* allow images to wrap */
    gap: 20px;
    justify-content: flex-start;
    width: 100%;
}

.gallery-item img {
    width: 200px !important;         
    height: 200px !important;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05); /* subtle zoom on hover */
}

.keywords-section {
    margin-top: 20px; 
    font-size: 1rem;
    line-height: 1.6;
    color: white;
    text-align: center; 
}

.highlight {
    background-color: yellow;
    color: black;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
        white-space: nowrap;

}

.link {
    color: white;
    font-weight: bold;
    word-break: break-all;
}


html,
body {
    margin: 0;
    padding: 0;
}

.image-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.image-popup img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.image-popup:target {
    display: flex;
}

.image-popup a.close {
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    text-decoration: none;
}

@font-face {
    font-family: 'Optika';
    src: local('Optika'), url('../fonts/Optika-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Optika';
    src: local('Optika Bold'), url('../fonts/Optika-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: bold;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
        monospace;
}

body {
    font-family: 'Optika', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Optika', sans-serif;
    font-weight: 700;
    margin: 0;
}



.main-content {
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

.section-link {
    text-decoration: none;
    color: #888;
}

.menu {
    display: flex;
    width: auto;

    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin-left: 15%;
}

.menu.animated {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu {
    display: none;
}

.header-button-underline-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    width: 23%;
    height: auto;
}


.header-button.active .header-button-underline-container {
    display: block;
}

.header-button-underline {
    height: 2px;
    color: white;
    background: linear-gradient(to right, rgb(124, 75, 250), rgb(255, 67, 135));
}

.header-buttons {
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    text-align: center;
}

.header-buttons button.active {
    background: linear-gradient(to right, #7e4eff, #ff4185);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-button {
    border: none;
    padding: 10px 20px;
    background-color: transparent;
    color: #888;
    cursor: pointer;
    font-size: 1.5vw;
    position: relative;
}


.error-message {
    text-align: center;
    margin-top: 100px;
    padding: 40px;
    color: #fff;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.error-message h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.error-message p {
    color: #ccc;
    margin-bottom: 20px;
}

.error-message .back-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.error-message .back-link:hover {
    text-decoration: underline;
}




.first-section {
    overflow: hidden;
    position: relative;
    padding-bottom: 1vw;
}

.background-image {
    width: 100% !important;
    object-fit: cover;
    object-position: center top; /* centers the image horizontally & vertically */
    height: 100vh !important;
    display: block;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

.image-wrapper {
    position: absolute;
    width: 100%;
    height: auto;
}

.title-span {
    font-size: 8vw;
    color: white;
    text-align: left;
    display: block;
    width: 70%;
    font-weight: bold;
    opacity: 0;
    animation: slideIn 0.8s ease-in-out forwards;
}

.subtitle-delay {
    animation-delay: 0.4s;
}

@keyframes slideIn {
    from {
        transform: translateX(-100vw);
        filter: blur(10px);
    }

    to {
        transform: translateX(0);
        filter: blur(0);
        opacity: 1;
    }
}

.title-hint {
    font-size: 3vw;
    color: white;
    text-align: left;
    display: block;
    width: 70%;
    animation: slideDown 0.8s ease-in-out forwards;
    opacity: 0;
    animation-delay: 1s;
}

@keyframes slideDown {
    from {
        transform: translateY(-10vh);
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-content img {
    max-width: 100%;
    height: auto;
    max-height: 800px;
    width: auto;
}

.main-content .container {
    position: relative;
}

.main-content .container>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-content p {
    color: #fff;
    font-size: 24px;
}

.main-content .talk-to-us {
    margin-right: 20%;
}


.down-button {
    background-color: transparent;
    border: transparent;
    cursor: pointer;
}

.final-section {
    background-image: url("/assets/tunel.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    top: 0;
    position: relative;
}

.navbar {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-text {
  color: white;
  padding-left: 2vw;
  padding-right: 20px;
  font-size: 1vw;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  height: 80px;
  z-index: 1;
  width: 70%;
  padding: 0 24px;
  align-items: center;
  flex-direction: row;
}

.navbar-header {
  display: flex;
  align-items: center;
}


.navbar-logo {
  color: #fff;
  justify-self: start;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  margin-left: 24px;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  text-align: center;
  margin-right: -22px;
}

.nav-item {
  height: 80px;
}

.nav-links {
  color: #fff;
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  height: 100%;
  cursor: pointer;
  background-color: transparent;
  border: transparent;
}

.navbar-logo img {
  max-width: 100px;
  max-height: 50px;
  height: auto;
  aspect-ratio: 4/4;
}

.nav-links:hover {
  border-bottom: 2px solid #fff;
}

.menu-icon {
  display: none;
}

.navbar-divider {
    width: 50%;
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
  }

@media screen and (max-width: 970px) {
 
  .navbar-divider {
    display: none;
    width: 50%;
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    position: absolute;
    top: 80px;
    left: -100%;
    opacity: 1;
    transition: all 0.5s ease;
  }

  .nav-menu.active {
    background: linear-gradient(to right, #3eabfe 0%, #a137fe 100%);
    left: 0;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 1;
  }

  .nav-item {
    width: 100%;
  }

  .nav-links {
    text-align: center;
    padding: 2rem;
    width: 100%;
    display: table;
  }

  .nav-links:hover {
    border: none;
  }


}

@media (max-width: 970px) {

  .navbar {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: flex-start;
  }

  .navbar-text {
    font-size: 2vw;
  }


  .navbar-container {
    width: 90%;
    display: flex;
    justify-content: space-around;
    height: 10%;
    z-index: 1;
    padding: 10px 0 0 0;
    align-items: center;
    /* Add this line */
  }

  .navbar-logo img {
    max-width: 50px;
    height: auto;
    max-height: 25px;
    width: auto;
  }

  .navbar-mobile-placeholder {
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 1.8rem;
    margin-left: 10%;
    margin-right: 10%;
  }

  .menu {
        display: none !important;
    }

    .main-title {
        padding-bottom: 10%;
    }

    .content {
        width: 90%;
    }

    .gallery {
        justify-content: center;
    }

}