@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

@font-face {
  font-family: "VisbySemibold";
  /* <-- This is what you should use */
  src: url(../fonts/visby/VisbySemibold.woff2);
}

@font-face {
  font-family: "Visbybold";
  /* <-- This is what you should use */
  src: url(../fonts/visby/Visbybold.woff2);

}

@font-face {
  font-family: "VisbyExtrabold";
  /* <-- This is what you should use */
  src: url(../fonts/visby/VisbyExtrabold.woff2);

}

@font-face {
  font-family: "VisbyMedium";
  /* <-- This is what you should use */
  src: url(../fonts/visby/VisbyMedium.woff2);

}

@font-face {
  font-family: "VisbyRegular";
  /* <-- This is what you should use */
  src: url(../fonts/visby/VisbyRegular.woff2);

}

@font-face {
  font-family: "VisbyHeavy";
  /* <-- This is what you should use */
  src: url(../fonts/visby/VisbyHeavy.woff2);

}

@font-face {
  font-family: "Geraldica";
  /* <-- This is what you should use */
  src: url(../fonts/Geraldica.woff2);

}

@font-face {
  font-family: "Dashing";
  /* <-- This is what you should use */
  src: url(../fonts/Dashing.woff2);

}

@font-face {
  font-family: "ViableLogic";
  /* <-- This is what you should use */
  src: url(../fonts/ViableLogic.woff2);

}

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}
body {
  font-family: 'VisbySemibold';
  background: #f8f8f8;
  min-width: 415px;
}

main {
  padding-top: 15%;
}

/* NAVIGATION BAR */
.icon:hover {
  fill: #d60029;
}

.navbar {
  background-color: rgba(248, 248, 248, 0.65);
  /* semi-transparent */
  backdrop-filter: blur(10px);
  /* apply blur to what's behind */
  -webkit-backdrop-filter: blur(10px);
  /* for Safari support */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* optional: adds subtle shadow */
}


.special-txt {
  font-family: 'Geraldica';
  color: #d60029;
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding-top: 0.5%;
}


/* LOGO */
.nav-logo {
  padding-left: 2%;
  gap: 0.5rem;
  /* space between icons */
  cursor: pointer;
}

.nav-logo a {
  display: flex;
  align-items: center;
  height: 2.5em;
  flex-shrink: 0;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.home a {
  transition: transform 0.3s ease, fill 0.3s ease;
}

.nav-logo svg,
.nav-logo img {
  width: auto;
  height: clamp(100%, 4vw, 2.5em);
  transition: transform 0.3s ease, fill 0.3s ease;
}

.nav-logo:hover svg {
  transform: scale(1.05);
  cursor: pointer;
}

.nav-logo:hover svg path {
  fill: #d60029;
  /* hover color:, change as you like */
}

.home:hover svg path {
  fill: #d60029;
  /* hover color:, change as you like */
  transform: scale(1.05);
  cursor: pointer;

}

/* HAMBURGER MENU BUTTON */
.nav-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  /* Default: hidden */
  z-index: 1100;
  /* Makes sure it stays above the menu */
}

/* NAV LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  grid-column: 2;
  padding-right: 5%;
}

.nav-links li a {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  transition: color 0.2s, transform 0.3s ease;
  font-family: 'VisbyExtrabold';
}

.nav-links li a:hover {
  color: #d60029;
  transform: scale(1.1);
}

/* Home Landing img */
.hero-container {
  position: relative;
  width: 100%;
  height: 100vh; /* or desired height */
  overflow: hidden;
}



.background-img {
 position: absolute; /* Important for layering */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* Ensures it scales to fill */
  object-position: center; /* Optional: keep it centered */
  z-index: 1;
}
/* Main big heading */
.main-heading {
  position: absolute;
  top: 5%;
  left:50%;
  transform: translateX(-50%);
  color: rgb(63, 63, 63);
  font-size: clamp(4rem, 6vw, 8rem);
  font-weight: 800;
  text-align: left;
  z-index: 5;
  margin: 0;
  padding: 0 1rem;
  max-width: 90%;
  font-family:'VisbyExtrabold', sans-serif;
}
.overlay-content {
  position: absolute;
  top: 0;
  left: 20%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white; /* Text color */
  text-align: center;
  padding: 1rem;
}

.logo-animation {
  width: 50%;
  filter: brightness(0) invert(1); /* Makes the Lottie appear white */
  align-self: self-start;
}
.land-overlay-text {
  position: relative;
  z-index: 5;
  top:35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #2b2b2b;
  padding: 2rem 1rem;
  width:60%;
}

.land-overlay-text h1 {
  font-size: clamp(2em, 2.5vw,3.4em);
  margin-top: 1rem;
font-family: 'VisbyExtrabold', sans-serif;  
}

.land-overlay-text p {
  font-size: clamp(0.8em, 1.4vw,2.2em);
  opacity: 0.9;
  color: #2b2b2b;
   margin-bottom:10%;
  
}
.color-name{
  color: #1b1b1b;
}
h1.project-title {
  font-family: 'VisbyHeavy';
  text-align: center;
  color: #333;
  font-size: clamp(2rem, 6vw, 5em);
  margin-top: 10%;
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-footer {
  background-color: #fff;
  padding: 4rem 5%;
  font-family: 'VisbyRegular', sans-serif;
  font-size: 0.95rem;
  color: #111;
  border-top: 1px solid #eee;
  margin-top: 5%;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-left p {
  margin-bottom: 0.5rem;
}

.footer-buttons {
  margin-top: 1rem;
}

.footer-btn {
  display: inline-block;
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  background-color: #1a1a1a;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.3s;
}

.footer-btn:hover {
  background-color: #333;
}

.footer-right h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: 'VisbyBold', sans-serif;
}

.footer-right .highlight {
  color: #7474ff;
  /* Purple-ish highlight */
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
  min-width: 180px;
}

.newsletter-form button {
  padding: 0.6rem 1rem;
  background-color: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background-color: #333;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid #ddd;
  padding-top: 2rem;
  gap: 1rem;
}

.social-icons a img {
  width: 6.5%;
  height: auto;
  margin-right: 1rem;
  border-radius: 10%;
}

.footer-links a {
  display: inline-block;
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  background-color: #1a1a1a;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.3s, color 0.2s, transform 0.3s ease;
}

.footer-links a:hover {
  background-color: #d60029;
  color: #fff;
  transform: scale(1.1);
}


.page-descript {
  margin-top: 2%;
  width:80%;
  margin-left: 10%;
}

.page-descript p {
  font-size: clamp(0.9rem, 2vw, 1.5rem);
  text-align: justify;
}

.project-intro {
  text-align: center;
  margin-top: 5%;
  font-size: clamp(1.3rem, 3vw, 2.8rem);
}

.project-intro span {
  color: #d60029;

}
.proj-cards{
    padding-bottom:8%;
    margin-top: 5%;
}
.projects-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 5%;
  gap: 1rem;
 }

/* Shared project card class */
.project-card-click {
  position: relative;
  width: 45%;
  /* Set a height for the card to ensure content can be seen */
 aspect-ratio: 1 /1.2; 
  border-radius: 12px;
  overflow: hidden;
  background-color:none;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s ease, opacity 0.6s ease;
  cursor: pointer;
  margin-top:5%;
  perspective: 1000px;

}

/* Inner wrapper for 3D flip */
.flip-inner {
  width: 100%;
  height: 100%; /* Make sure inner takes full height of parent */
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

/* Flip on hover */
.project-card-click:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  width: 100%;
  height: 100%; /* Make sure front and back take full height */
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
}

.flip-front img,
.flip-back img {
  width: 100%;
   aspect-ratio: 1 /1.2;
  object-fit: cover;
  display: block;
  border-radius: 12px;

}

.flip-back {
  transform: rotateY(180deg);
}
/* Hover effect */
.project-card-click:hover {
  transform: translateY(-8px); /* Lift up on hover */
}

/* When scrolled into view */
.project-card-click.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effect */
.project-card-click:hover {
  transform: translateY(-8px);
}

.project-card-click img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: 0.5s ease;
}

/* Overlay text */
.overlay-text {
  position: absolute;
  bottom: 1%;
  color: #333;
  padding: 0.5em 1em;
  font-family: 'VisbySemibold', sans-serif;
  font-size: clamp(0.8rem, 2vw, 2rem);
  z-index: 2;
  pointer-events: none;
}

.left-text {
  left: 2%;
}

.right-text {
  right: 2%;
}


/* ============ MEDIA QUERIES ============ */

/* Mobile-first (small screens) */
@media (max-width: 600px) {
  .overlay-text {
    font-size: 0.6rem;
    max-width: 48%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


@media (max-width: 599px) {
  .nav-logo {
    font-size: 1rem;
  }

  .nav-logo img {
    width: 75%;
  }

  .nav-links li a {
    font-size: 0.8rem;
  }

  main {
    padding-top: 17%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 1rem;
    background: #f8f8f8;
    position: absolute;
    top: 60px;
    left: 0;
    /* aligned left */
    width: 200px;
    /* fixed width or adjust as needed */
    padding: 0 1rem;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    grid-column: 1 / span 1;
    /* make sure it only spans first column */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;

  }

  .nav-container {
    grid-template-columns: auto 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.active {
    max-height: 500px;
    /* enough height */
    padding: 1rem;
    transition: max-height 0.4s ease-in, padding 0.4s ease-in;
  }

  h1.project-title {
    font-size: 3.5rem;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* MEDIA QURIES */
/* Tablets */
@media (min-width: 600px) {
  .container {
    padding: 2rem;
  }

  .nav-logo img {
    width: 80%;
  }

  h1.project-title {
    font-size: 2.8rem;
  }
}

/* Grid utilities */
@media (min-width: 768px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .nav-toggle {
    display: block;
    order: 1;
  }

  .nav-logo {
    order: 0;
  }

  .nav-logo img {
    width: 90%;
  }

  .nav-links {
    top: 60px;
    /* make sure this is lower than logo/toggle */
    z-index: 1000;
  }
}

/* Optional safety: explicitly hide above 768px */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}

@media (min-width: 900px) {
  h1.project-title {
    font-size: 3.8em !important;
  }
}

@media (max-width: 991px) {
  .nav-links li a {
    font-size: 1rem;
  }
}
    .social-icons a.insta dotlottie-player {
    width: 49% !important;
  }

  .social-icons a.mailing dotlottie-player {
    width: 12% !important;
  }

@media (min-width: 992px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    font-size: 2.5rem;
  }

  .nav-logo img {
    width: 95%;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }

  h1.project-title {
    font-size: 5em !important;
  }


  /* Hidden by default */
  .nav-toggle {
    display: none;
  }

  .hero {
    font-size: 3rem;
  }
}

@media (max-width: 599px) {
  h1.project-title {
    font-size: 2rem !important;
  }
}
@media (max-width: 769px) {
.land-overlay-text {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #2b2b2b;
  width:60%;
  margin-right:40%;
}

  .social-icons a.insta dotlottie-player {
    width: 92% !important;
  }

  .social-icons a.mailing dotlottie-player {
    width: 20% !important;
  }
}
