@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;
}

video{
  
}
body {
  font-family: 'VisbySemibold';
  background: #f8f8f8;
  min-width: 400px;
}

main {
  padding-top: 5%;
}

/* NAVIGATION BAR */
.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);
}

/* ================================================  BODY ================================================ */

.project-section {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 5%;
}

.title h1 {
  font-family: 'VisbyHeavy';
  font-size: clamp(2rem, 5vw, 4rem);
  /* Responsive size */
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
}

.title {
  flex: 1 1 40%;
  min-width: 280px;

}

.description {
  flex: 1 1 55%;
  min-width: 280px;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  font-family: 'VisbyMedium';
  line-height: 1.6;
  max-width: 950px;
  margin-left: 0;

}

.port-branding {
  width: 100%;
  height: auto;
}

.port-branding img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  /* Removes extra space below image */
}

.port-branding-txt {
  padding: 8%;
  padding-left: 18%;
  padding-right: 18%;
  font-size: clamp(0.4rem, 4vw, 1rem);
  text-align: center;
  font-family: 'VisbyRegular';
  line-height: 2;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.see-more-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid #333;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 90vw;
  word-wrap: break-word;
}

.see-more-btn:hover {
  background-color: #333;
  color: #fff;
}
/* Container for the video - enables centering */
.animation-tera {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2rem 0;
  padding: 1rem;
  box-sizing: border-box;
}
/* Video element styling */
.animation-tera video {
    border-radius: 5px; /* Rounded corners for the video */
    width: 50%; /* Responsive width: min 280px, preferred 60% of viewport width, max 600px */
    height: auto;             /* Maintain aspect ratio */
    display: block;           /* Remove extra space below */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Optional: subtle shadow */
   
}
.video-wrapper {
  position: relative;
  width: 300px; /* Match video width or set desired fixed size */
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
/* Custom Volume Controls Container */
.custom-video-volume-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  padding: 8px 12px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Show controls on hover */
.video-wrapper:hover .custom-video-volume-controls {
  opacity: 1;
  pointer-events: auto;
}


/* Show controls on hover */
.animation-tera:hover .custom-video-volume-controls {
    opacity: 1;
    pointer-events: auto; /* Make them clickable again */
}

/* Style for the Mute/Unmute button */
.custom-video-volume-controls button {
    background: #555; /* Darker button background */
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
    /* Center the icon within the button */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style for the icon inside the button */
.custom-video-volume-controls button i {
    font-size: 1.2em; /* Adjust icon size */
}

/* Style for the Volume Slider */
.custom-video-volume-controls input[type="range"] {
    -webkit-appearance: none; /* Remove default WebKit styling */
    appearance: none;
    width: 100px; /* Adjust slider width */
    height: 6px;
    background: #ddd; /* Track color */
    outline: none;
    border-radius: 3px;
    transition: opacity .2s;
    opacity: 0.8;
}

/* Style for the slider thumb (handle) */
.custom-video-volume-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff; /* Thumb color */
    cursor: pointer;
}

/* For Firefox compatibility */
.custom-video-volume-controls input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}
/* ================================================ FOOTER ================================================ */

.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;
  transition: color 0.2s, transform 0.3s ease;
}

.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 {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.lottie-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scale-fix {
  transform: scale(1.15);
  /* Adjust this value until both Lotties match visually */
  transform-origin: center;
}

.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);
}

/* Home Lottie Button with Link */

.lottie-btn {
  background-color: transparent;
  border: 2px solid #d8d8d8;
  padding: 2px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1a1a;
  font-family: 'VisbySemibold', sans-serif;
  font-size: clamp(0.7rem, 1vw, 1.5rem);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  user-select: none;
  height: 3%;
}

/* Lottie Button Hover */
.lottie-btn:hover {
  transform: scale(1.1);
  background-color: #d60029;
  color: #fff;
  border: none;
}

/* Ensure Lottie player matches icon size */
.lottie-btn dotlottie-player {
  width: 70px !important;
  height: 70px !important;
  flex-shrink: 0;
  /* prevent it from shrinking */
  pointer-events: none;
  /* ensures player doesn't intercept hover */
}


/* Projects Gif Button with Link */
.gif-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10%;
  /* adjust as needed */
  flex-wrap: wrap;
  /* makes them stack on small screens */
  height: 10vh;
  margin-top: 5%;
}


/* Make the link look like a button */
.gif-btn {
  background-color: #002547;
  border: 2px;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  /* vertical centering */
  gap: 10px;
  /* space between text and image */
  color: #fff;
  font-family: 'VisbySemibold', sans-serif;
  font-size: clamp(0.7rem, 1vw, 1.5rem);
  text-decoration: none;
  transition: transform 0.2s ease;
  user-select: none;
}

.gif-btn img {
  width: 50px;
  height: 50px;
  transition: transform 0.2s ease;
}

/* Scale whole button on hover */
.gif-btn:hover {
  transform: scale(1.1);
  background-color: #d60029;
  color: #fff;
}

.gif-btn-wrapper a {
  text-decoration: none;
}

/* ================================================  MEDIA QUERIES ================================================ */

/* Mobile-first (small screens) */

@media (max-width: 480px) {
  .see-more-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .lottie-btn {
    height: 5%;
    padding: 1px 12px;
    gap: 2px;
  }

  .lottie-btn dotlottie-player {
    width: 30px;
    height: 30px;
  }

  .gif-btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
    gap: 0.4rem;
  }

  .gif-btn img {
    width: 35px;
    height: 35px;
  }
}

@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%;
  }

  .port-branding-txt {
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  .insta {
    width: 10%;
    height: auto;
    border-radius: 3px;
  }

  .mailing {
    width: 95%;
    height: auto;
  }

  .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.home-title {
    font-size: 3.5rem;
  }

  .project-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }



  .project-title h2 {
    text-align: left;
    font-size: clamp(2rem, 6vw, 4rem);
  }



  .project-description .project-services {
    font-size: clamp(0.8rem, 2vw, 1rem);
    max-width: 90%;

  }

  .lottie-btn {
    height: 60px;
    padding: 2px 15px;
    gap: 3px;
  }

  .lottie-btn dotlottie-player {
    width: 50px;
    height: 50px;
  }

  .gif-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  .gif-btn img {
    width: 40px;
    height: 40px;
  }

  .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.home-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.home-title {
    font-size: 3.8em !important;
  }

}

@media (max-width: 991px) {
  .nav-links li a {
    font-size: 1rem;
  }
  .social-icons a.insta dotlottie-player {
    width: 68% !important;
  }

  .social-icons a.mailing dotlottie-player {
    width: 15% !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.home-title {
    font-size: 5em !important;
  }


  /* Hidden by default */
  .nav-toggle {
    display: none;
  }

  .hero {
    font-size: 3rem;
  }
}

@media (max-width: 599px) {
  h1.home-title {
    font-size: 2rem !important;
  }
}

@media (max-width: 769px) {
  .social-icons a.insta dotlottie-player {
    width: 92% !important;
  }

  .social-icons a.mailing dotlottie-player {
    width: 20% !important;
  }
}