/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background: #111;
  color: #ffffff;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
button {
  cursor: pointer;
  border: none;
  outline: none;
}
/* Header */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1050px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 40px;
  z-index: 1000;
  transition: all 0.3s ease;
  height: 40px;
  outline: rgba(255, 255, 255, 0) 0px solid;
  pointer-events: none;
  animation: menubarFadeIn 0.5s ease-out;
}
.header img {
  height: 50px;
  padding: 10px;
  transition: padding 0.3s ease;
  cursor: pointer;
  margin: 10px 0;
  background-color: rgba(0, 0, 0, 0);
  outline: rgba(255, 255, 255, 0) 0px solid;
  pointer-events: all;
}
.header img:hover {
  padding: 8px 10px;
  background-color: rgba(0, 0, 0, 0.516);
  border-radius: 20px 8px 8px 20px;
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  outline: rgba(255, 255, 255, 0.145) 1px solid;
}
.header nav ul {
  display: flex;
  gap: 1.5rem;
  list-style-type: none
}
.header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  outline: rgba(255, 255, 255, 0) 0px solid;
  pointer-events: all;
}
.header nav a:hover {
  background-color: rgba(0, 0, 0, 0.516);
  padding: 5px 15px;
  border-radius: 8px;
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  outline: rgba(255, 255, 255, 0.145) 1px solid;
}
.header-scrolled {
  background-color: #00000099;
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  max-width: 1000px;
  height: 50px;
  outline: rgba(255, 255, 255, 0.145) 1px solid;
  box-shadow: #111 0px 0px 10px;
}
.header-scrolled img:hover {
  background-color: rgba(0, 0, 0, 0);
  outline: rgba(255, 255, 255, 0) 0px solid;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
}
.lastlink {
  border-radius: 8px 20px 20px 8px !important;
  font-weight: bold !important;
  margin-right: 20px !important;
}
.lastlink:hover {
  margin-right: 10px !important;
  padding-right: 20px !important;
  padding-left: 15px !important;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeIn 1s ease-in-out;
}
.video-transition-box {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to top, #2a2a2a, #11111100, #11111100);
  z-index: 1;
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  padding: 0 1rem;
}
.hero-content h1 {
  font-family: 'Duplet', cursive;
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInFromBottom 0.5s ease-in-out;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInFromBottom 1s ease-in-out;
}
.hero-buttons {
  animation: fadeInFromBottom 1.5s ease-in-out;
}
.btn-primary {
  background: #1e40af;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: #374db8;
  padding: 0.8rem 1.8rem;
}
.fa-arrow-right {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}
.btn-primary:hover .fa-arrow-right {
  transform: translateX(10px) rotate(90deg) scale(1.2);
}

/* currently unused */
.pause-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: #fff;
  border: none;
  padding: 2px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  z-index: 20;
  font-size: 1.5rem;
  color: #ffffff55;
}

/* services */
.services {
  position: relative;
  z-index: 10;
  background: #111;
  padding: 4rem 2rem;
  margin: 0rem 5vw;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}
.cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
}
.card {
  background: #222;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  /* dash outline animation
  --dash-length: 100px;
  --outline-thickness: 2px;
  --outline-color: rgba(255, 255, 255, 0.382);
  */
}
/*
.card:hover::before {
  content: '';
  position: absolute;
  background-color: white;
  animation: outline-dash-around 2s linear infinite;
}
*/
.card:hover {
  transform: scale(1.05);
  box-shadow: #111 0px 0px 10px;
  animation: outlineFadeInOn 0.3s ease-in-out forwards;
  outline: rgba(255, 255, 255, 0.318) 1px solid;
}
.card:hover .icon {
  transform: scale(1.2);
}
.card-animation {
  animation: fadeInFromBottom 0.6s ease-out;
}
.icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  transition: transform 0.3s ease;
}
.icon img {
  max-height: 70px;
}
.card h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}
.card p {
  color: #bbb;
}

/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: none;
  margin: 0rem 5vw;
}
.about-text {
  flex: 1 1 300px;
}
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.about-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #ccc;
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 2px solid #5a80fb;
  color: #5a80fb;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}
.btn-secondary:hover {
  background-color: #5a80fb;
  color: #fff;
}
.fa-comments {
  margin-left: 0.5rem;
}
.about-image {
  flex: 1 1 300px;
  /* overflow: hidden; */
}
.about-image img {
  width: 100%;
  border-radius: 15px;
  max-height: 600px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.about-image-scaled {
  transform: scale(1.05);
}
/* .about:hover .about-image img {
  transform: scale(1.05);
} */

/* Footer */
.footer {
  text-align: center;
  outline: rgba(255, 255, 255, 0.501) 3px dashed;
  padding: 1rem 8rem;
  margin: 0 auto;
  max-width: fit-content;
  color: #aaa;
  border-radius: 50px 50px 0 0;
  position: relative;
  z-index: 30;
}
.footer-nav a {
  color: #aaa;
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s;
}
.footer-nav a:hover {
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  padding: 0 1rem;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.card, .about-text, .about-image {
  /* opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out; */
  opacity: 1 !important;
  transform: none !important;
}

.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.services, .about {
  position: relative;
  z-index: 20;
  background: #111;
  padding: 6rem 2rem;
}

.footer-svg-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  z-index: 50;
  color: #fff;
  position: relative;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 5;
}

/* contact */
.contact {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact .section-title {
  margin-bottom: 20px;
  color: #ffffff;
  font-family: 'Duplet', sans-serif;
  font-size: 2.5em;
  text-align: center;
  width: 100%;
}

.contact-intro {
  text-align: center;
  max-width: 700px;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1em;
  color: #ccc;
  line-height: 1.6;
  width: 100%;
}

.contact-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  align-items: flex-start;
}

.contact-form {
  width: 100%;
  max-width: none;
  background-color: #ffffff00;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
  margin-bottom: 0px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #ccc;
  background-color: #111;
  width: fit-content;
  padding: 0px 5px;
  transform: translate(10px, 20px);
  transition: color 0.3s ease;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px dashed #dddddd;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 1em;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  color: rgb(255, 255, 255);
  background-color: #ffffff00;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #007bff;
  outline: none;
}

.contact-label-focus {
  color: #007bff !important;
}

.contact-form textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 300px;
}

.contact-form .btn-primary {
  width: 100%;
  display: block;
  margin: 20px auto 0 auto;
  padding: 12px 30px;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  animation: border 0.3s ease-in-out;
}

.contact-form .btn-primary:hover {
  background-color: #0056b3;
  transform: scale(0.99);
}

.fa-paper-plane {
  margin-right: 10px;
}

.contact-form .btn-primary:hover .fa-paper-plane {
  animation: smoothPaperPlane 0.5s forwards;
}

/* contact info */
.contact-info {
  width: 100%;
  padding: 30px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  font-family: 'Duplet', sans-serif;
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 25px;
  text-align: center;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.contact-info ul li {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1em;
  color: #ccc;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-info ul li a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #ccc; 
  transition: color 0.3s ease;
  padding: 10px 15px;
  border-radius: 5px;
  outline: 2px solid #007bff00;
  transition: all 0.3s ease;
}

.contact-info ul li a i {
  color: #ccc;
  font-size: 1.3em;
}

.contact-info ul li a:hover {
  color: #ffffff;
  outline: 2px solid #007bff;
  background-color: #007bff2d;
}

.contact-info ul li a:hover i {
  color: #fff;
}

/* resolution warning */
.resolution-warning-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(0, 0, 0);
  z-index: 9999;
  display: none;
}
.resolution-warning {
  position: fixed;
  transform: translateY(-50%);
  top: 50%;
  margin: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0px;
  border-radius: 20px;
  text-align: center;
  outline: rgba(255, 255, 255, 0.318) 1px solid;
}
.resolution-warning p {
  margin: 20px;
}
.resolution-warning button {
  width: calc(100% - 40px);
  margin: 20px;
  margin-top: 0;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  outline: rgba(255, 255, 255, 0.474) 1px dashed;
  cursor: pointer;
  border: none;
}
.resolution-warning button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  outline: rgba(255, 255, 255, 0.474) 1px solid;
}
.resolution-warning-container img {
  width: 50vw;
  max-width: 200px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 200px));
}

/* animations */
.fade-in {
  animation: fadeInFromBottom 0.6s forwards;
}
.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.6s ease-out;
}
