@font-face {
  font-family: "General Sans";
  src: url("./fonts/GeneralSans-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General Sans Medium";
  src: url("./fonts/GeneralSans-Medium.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'General Sans';
  scroll-behavior: smooth;
}

body {
  height: 100%;
  width: 100%;
  background-color: #1c1410;
}

#minicircle {
  transition: all cubic-bezier(0.19, 1, 0.22, 1) 1s;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  z-index: 9999;
}

#bounding {
  width: fit-content;
  overflow: hidden;

}

#bounding .boundingelem {
  transform: translateY(100%);
}

#main {
  width: 100%;
  height: auto;
}

#hero {
  width: 100%;
  height: 100vh;
  background-color: 0d0d0d;
  color: #fff;
  position: relative;
}

#nav {
  width: 100%;
  padding: 20px 40px;
  color: white;
  display: flex;
  justify-content: space-between;
}

#nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

#heading {
  margin-top: 90px;
}

#heading h1 {
  font-size: 9vw;
  text-transform: uppercase;
  font-family: "General Sans Medium";
  font-weight: 900;
  line-height: 1;
  opacity: 0.6;
  margin-left: 30px;
}

#heading #second {
  margin-left: 230px;
}

.blocktext {
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: end;
}

.blocktext h5 {
  text-align: right;
  font-size: 0.5vw;
  text-transform: uppercase;
}

#smallheadings {
  margin-top: 100px;
  padding-right: 52px;
  text-align: right;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: end;
}

#herofooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  bottom: 3%;
  padding: 0 2vw;
}

#herofooter a {
  color: white;
  text-transform: uppercase;
  text-decoration: none;
}



#herofooter #iconset {
  display: flex;
  gap: 5px;
}

#herofooter .circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #888;
}

#second-page {
  padding-right: 10vw;
  padding-top: 200px;
  background-color: 0d0d0d;
  height: 100vh;
  width: 100%;
  color: #fff;

}

.elem {
  width: 100%;
  padding: 3.5vw 3vw;
  padding-right: 0vw;
  border-top: 1px solid #888;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.elem h1 {
  text-transform: uppercase;
  font-size: 8vw;
  opacity: 0.6;

}

.elemlast {
  border-bottom: 1px solid #888;
}

.elem img {
  height: 140%;
  opacity: 0;
  z-index: 999;
  position: absolute;

}

#about {
  display: flex;
  align-items: center;
  gap: 50px;
  color: #fff;
  padding: 10vw 10vw;
  padding-left: 40vw;
  width: 100%;
  background-color: 0d0d0d;
  margin-top: 200px;
}

#textabout {
  width: 25rem;

}

#textabout h5 {
  opacity: 0.6;
  margin-bottom: 10px;
  text-transform: uppercase;

}

#textabout p {
  line-height: 1.7;
  margin-bottom: 30px;
  width: 25rem;
}

#about img {
  width: 200px;
  border-radius: 50%;
}

#textabout a {
  padding: 12px 22px;
  border: 1px solid #fff;
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}

#subscribe {
  background-color: #1c1410;
  color: #fff;
  padding: 20px 30px;
  padding-bottom: 7vw;
}

#subscribe h5 {
  text-transform: uppercase;
  opacity: 0.3;
}

#subscribe h3 {
  text-transform: uppercase;
  font-size: 14px;
  margin-top: 10px;
}

#footer {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 30px;
  background: #1c1410;
}

#footerleft {
  display: flex;
  gap: 20px;
}

#footer a {
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

#footerright {
  display: flex;
  gap: 30px;
}

#footerright a {
  text-decoration: none;
}

@media (max-width: 1024px) {
  #heading h1 {
    font-size: 12vw;
  }

  #heading #second {
    margin-left: 100px;
  }

  .elem h1 {
    font-size: 10vw;
  }

  #about {
    padding-left: 10vw;
  }
}

@media (max-width: 768px) {
  #nav {
    padding: 20px;
  }

  #heading {
    margin-top: 60px;
  }

  #heading h1 {
    font-size: 14vw;
    margin-left: 10px;
  }

  #heading #second {
    margin-left: 0;
  }

  .blocktext {
    align-items: flex-start;
    margin-left: 10px;
  }

  .blocktext h5 {
    font-size: 2.5vw;
    text-align: left;
  }

  #smallheadings {
    align-items: flex-start;
    padding-right: 0;
    margin-left: 10px;
  }

  #herofooter {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #second-page {
    height: auto;
    padding-top: 100px;
  }

  .elem {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Disable hover images on touch devices */
  .elem img {
    display: none;
  }

  #about {
    flex-direction: column;
    padding: 10vw;
    gap: 30px;
  }

  #about img {
    width: 150px;
  }

  #textabout {
    width: 100%;
  }

  #textabout p {
    width: 100%;
  }

  #footer {
    flex-direction: column;
    gap: 20px;
  }

  #footerright {
    flex-wrap: wrap;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  #heading h1 {
    font-size: 16vw;
  }

  .elem h1 {
    font-size: 12vw;
  }

  #subscribe h3 {
    font-size: 12px;
  }
}

/* Hide the blocker on desktop by default */
.mobile-overlay {
  display: none;
}

/* Show the blocker only on mobile screens */
@media only screen and (max-width: 767px) {
  .mobile-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    /* Dark background */
    z-index: 9999;
    /* Ensure it's on top of everything */
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
  }

  .mobile-popup {
    padding: 20px;
    background: #222;
    border-radius: 10px;
    max-width: 80%;
  }
}

.navlinks {
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease
}

.arrow {
  display: inline-block;
  /* Initial rotation: 0 degrees relative to the container */
  transform: rotate(0deg);

  /* Ensure the animation is smooth */
  transition: transform 0.3s ease
}


.navlinks:hover i {
  transform: rotate(45deg)
}


#second-page h1 {
  font-size: 4vw;
  text-transform: uppercase;
  font-family: "General Sans Medium";
  font-weight: 900;
  line-height: 1;
  opacity: 0.6;
  margin-left: 30px;
}

/* Preloader */
#loader {
  height: 100vh;
  width: 100%;
  background-color: #000;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Align to bottom right */
  padding: 5vw;
  color: #fff;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  overflow: hidden;
}

#counter {
  font-size: 15vw;
  font-family: "General Sans Medium";
  line-height: 1;
  margin-right: -20px;
  /* Slight offset */
}

.loader-text-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 10px;
  opacity: 0;
  /* Hidden initially, to be animated */
}

.loader-text-wrapper h3 {
  font-weight: 300;
  font-size: 1.2vw;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Form Section */
#contact {
  width: 100%;
  background-color: #1c1410;
  color: #fff;
  padding: 100px 10vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact h1 {
  text-transform: uppercase;
  font-size: 4vw;
  font-family: "General Sans Medium";
  font-weight: 900;
  line-height: 1;
  opacity: 0.6;
  margin-bottom: 50px;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  text-transform: uppercase;
  font-size: 0.9rem;
  opacity: 0.7;
  letter-spacing: 1px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #555;
  padding: 10px 0;
  color: #fff;
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: #fff;
}

.contact-form button {
  margin-top: 20px;
  padding: 15px 40px;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 100px;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
  align-self: flex-start;
}

.contact-form button:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 768px) {

  /* Responsive Navigation */
  #nav {
    padding: 20px 20px;
  }

  #nav a {
    font-size: 14px;
  }

  /* Hero Section */
  #heading {
    margin-top: 60px;
  }

  #heading h1 {
    font-size: 14vw;
  }

  .blocktext {
    width: 100%;
  }

  .blocktext h5 {
    font-size: 4vw;
    letter-spacing: 0;
  }

  #herofooter {
    padding: 0 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    bottom: 5%;
  }

  #herofooter a {
    position: static;
    margin-top: 10px;
  }

  /* Second Page (Recent Works) */
  #second-page {
    margin-left: 0;
    width: 100%;
  }

  .elem {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 0 20px;
    margin-bottom: 40px;
  }

  .elem img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    opacity: 1;
    /* Show images by default on mobile */
    position: static;
    transform: none !important;
    margin-bottom: 15px;
    border-radius: 10px;
    display: block;
    /* Ensure visibility */
  }

  .elem h1 {
    font-size: 10vw;
    position: static;
    transform: none;
    opacity: 0.6;
    /* Slight dim to distinguish text */
    z-index: 10;
    margin-bottom: 10px;
  }

  .elem h5 {
    font-size: 4vw;
    color: #888;
    margin-top: 5px;
  }

  /* About Section */
  #about {
    flex-direction: column;
    padding: 50px 20px;
    gap: 40px;
  }

  #about img {
    width: 100%;
    margin-bottom: 20px;
  }

  #textabout {
    width: 100%;
    padding-left: 0;
  }

  #textabout p {
    font-size: 16px;
    margin-bottom: 30px;
  }

  #textabout a {
    padding: 12px 25px;
  }

  /* Contact Section */
  #contact {
    padding: 50px 5vw;
  }

  #contact h1 {
    font-size: 10vw;
  }

  .contact-form button {
    width: 100%;
    text-align: center;
  }

  /* Subscribe Section */
  #subscribe {
    padding: 50px 20px;
  }

  #subscribe h3 {
    font-size: 8vw;
  }

  /* Footer */
  #footer {
    flex-direction: column;
    padding: 40px 20px;
    height: auto;
    gap: 40px;
  }

  #footerleft,
  #footerright {
    flex-direction: column;
    gap: 15px;
    text-align: left;
  }

  /* Chatbot */
  #chatbot-container {
    bottom: 20px;
    right: 20px;
  }

  #chatbot-window {
    width: calc(100vw - 40px);
    right: 0;
    bottom: 70px;
    height: 60vh;
  }

  /* Hide Custom Cursor on Mobile */
  #minicircle {
    display: none;
  }

  /* Preloader */
  #counter {
    font-size: 25vw;
  }

  .loader-text-wrapper h3 {
    font-size: 4vw;
  }
}



/* Chatbot Widget */
#chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
  font-family: 'General Sans', sans-serif;
}

#chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

#chatbot-toggle i {
  font-size: 24px;
}

#chatbot-toggle:hover {
  transform: scale(1.1);
}

#chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 450px;
  background-color: #1a1a1a;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #333;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

#chatbot-window.active {
  opacity: 1;
  transform: translateY(0);
}

.chat-header {
  padding: 15px 20px;
  background-color: #0d0d0d;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-title img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-title h4 {
  font-size: 14px;
  color: #fff;
  margin: 0;
}

.online-status {
  font-size: 10px;
  color: #4CAF50;
  display: block;
}

#close-chat {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 20px;
}

#close-chat:hover {
  color: #fff;
}

#chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.4;
}

.bot-message {
  background-color: #333;
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.user-message {
  background-color: #fff;
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

#chat-options {
  padding: 15px;
  border-top: 1px solid #333;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-option-btn {
  padding: 8px 15px;
  background-color: transparent;
  border: 1px solid #555;
  color: #ccc;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-option-btn:hover {
  background-color: #fff;
  color: #000;
  border-color: #fff;
}

@media (max-width: 480px) {
  #chatbot-window {
    width: 300px;
    height: 400px;
    right: -20px;
    /* Adjust for mobile padding */
  }
}

/* Typing Indicator */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 10px 15px;
  background-color: #333;
  border-radius: 15px;
  border-bottom-left-radius: 2px;
  width: fit-content;
  align-self: flex-start;
  margin-bottom: 15px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

