/* Color variables for the entire site */
:root {
  --custom-dark-blue: #0a1828;
  --custom-white: #bfa181;
  --custom-light-blue: #178582;
}

/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  /* look for font-family*/
}

/* Base body styling */
body {
  background: var(--custom-dark-blue);
  color: var(--custom-white);
}

/* Fixed header/navigation bar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;

  background: var(--custom-dark-blue);

  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 100;
}

/* Logo styling */
.logo {
  position: relative;
  font-size: 25px;
  color: var(--custom-white);
  text-decoration: none;
  font-weight: 600;
}

/* Animation for logo reveal */
.logo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  width: 100%;
  height: 100%;
  background: var(--custom-dark-blue);

  animation: showRight 1s ease forwards;
  animation-delay: 0.4s;
}

/* Navigation links styling */
.navbar a {
  font-size: 18px;
  color: var(--custom-white);
  text-decoration: none;
  font-weight: 500;

  margin-left: 35px;

  transition: 0.3s;
}

/* Hover and active states for navigation links */
.navbar a:hover,
.navbar a.active {
  color: var(--custom-light-blue);
}

/* Main home section styling */
.home {
  display: flex;
  align-items: center;

  height: 100vh;

  padding: 0 10%;
}

/* Content container for the home page */
.home-content {
  max-width: 600px;
}

/* Main heading styling */
.home-content h1 {
  position: relative;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
}

/* Animation for main heading reveal */
.home-content h1::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  width: 100%;
  height: 100%;
  background: var(--custom-dark-blue);

  animation: showRight 1s ease forwards;
  animation-delay: 1s;
}

/* Subheading styling */
.home-content h3 {
  position: relative;
  font-size: 32px;
  font-weight: 700;
  color: var(--custom-light-blue);
}

/* Animation for subheading reveal */
.home-content h3::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  width: 100%;
  height: 100%;
  background: var(--custom-dark-blue);

  animation: showRight 1s ease forwards;
  animation-delay: 1.3s;
}

/* Paragraph text styling */
.home-content p {
  font-size: 16px;

  margin: 20px 0 40px;
}

/* Animation for paragraph text reveal */
.home-content p::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  width: 100%;
  height: 100%;
  background: var(--custom-dark-blue);

  animation: showRight 1s ease forwards;
  animation-delay: 1.6s;
}

/* Container for action buttons */
.home-content .btn-box {
  position: relative;
  display: flex;
  justify-content: space-between;

  width: 345px;
  height: 50px;
}

/* Animation for button container reveal */
.home-content .btn-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  width: 100%;
  height: 100%;
  background: var(--custom-dark-blue);

  animation: showRight 1s ease forwards;
  animation-delay: 1.9s;

  z-index: 2;
}

/* Button styling */
.btn-box a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;

  width: 150px;
  height: 100%;

  background: var(--custom-light-blue);
  border: 2px solid var(--custom-light-blue);
  border-radius: 8px;

  color: var(--custom-dark-blue);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;

  overflow: hidden;
  transition: 0.5s;

  z-index: 1;
}

/* Hover effect for buttons */
.btn-box a:hover {
  color: var(--custom-light-blue);
}

/* Style for the second button (transparent background) */
.btn-box a:nth-child(2) {
  background: transparent;
  color: var(--custom-light-blue);
}

/* Hover effect for the second button */
.btn-box a:nth-child(2):hover {
  color: var(--custom-dark-blue);
}

/* Background animation for the second button */
.btn-box a:nth-child(2)::before {
  background: var(--custom-light-blue);
}

/* Hover animation element for buttons */
.btn-box a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 0;
  height: 100%;
  background: var(--custom-dark-blue);

  transition: 0.5s;

  z-index: -1;
}

/* Expand the hover animation on mouseover */
.btn-box a:hover::before {
  width: 100%;
}

/* Social media links container */
.home-sci {
  position: absolute;
  bottom: 40px;
  display: flex;
  justify-content: space-between;

  width: 100px;
}

/* Animation for social links reveal */
.home-sci::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  width: 100%;
  height: 100%;
  background: var(--custom-dark-blue);

  animation: showRight 1s ease forwards;
  animation-delay: 2.3s;

  z-index: 2;
}

/* Individual social media link styling */
.home-sci a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;

  width: 40px;
  height: 40px;
  background: transparent;

  border: 2px solid var(--custom-light-blue);
  border-radius: 50%;

  font-size: 20px;
  color: var(--custom-light-blue);
  text-decoration: none;

  overflow: hidden;
  transition: 0.5s;

  z-index: 1;
}

/* Hover effect for social media links */
.home-sci a:hover {
  color: var (--custom-dark-blue);
}

/* Background fill animation for social links */
.home-sci a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 0;
  height: 100%;
  background: var(--custom-light-blue);

  transition: 0.5s;

  z-index: -1;
}

/* Expand the background on hover */
.home-sci a:hover::before {
  width: 100%;
}

/* Blinking text animation */
.clignotant-text {
  animation: wink 1s infinite !important;
}

/* KEYFRAMES ANIMATION */
/* Animation to reveal content from right to left */
@keyframes showRight {
  100% {
    width: 0;
  }
}

/* Blinking animation */
@keyframes wink {
  0%,
  100% {
    visibility: visible;
  }

  50% {
    visibility: hidden;
  }
}

/* RESPONSIVE DESIGN */
/* Large screens */
@media (max-width: 1200px) {
  .home-content h1 {
    font-size: 48px;
  }
  
  .home-content h3 {
    font-size: 28px;
  }
}

/* Medium screens */
@media (max-width: 991px) {
  .header {
    padding: 20px 5%;
  }
  
  .home {
    padding: 0 5%;
  }
  
  .home-content h1 {
    font-size: 42px;
  }
  
  .home-content h3 {
    font-size: 24px;
  }
}

/* Small screens/tablets */
@media (max-width: 768px) {
  .header {
    padding: 15px 5%;
  }
  
  .navbar a {
    font-size: 16px;
    margin-left: 20px;
  }
  
  .home {
    flex-direction: column;
    justify-content: center;
  }
  
  .home-content {
    max-width: 100%;
    text-align: center;
  }
  
  .home-content h1 {
    font-size: 36px;
  }
  
  .home-content h3 {
    font-size: 22px;
  }
  
  .home-content p {
    font-size: 14px;
  }
  
  .home-content .btn-box {
    margin: 0 auto;
  }
  
  .home-sci {
    position: relative;
    margin-top: 40px;
    margin-bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Mobile phones */
@media (max-width: 580px) {
  .header {
    padding: 10px 5%;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .navbar a {
    margin-left: 10px;
    font-size: 14px;
  }
  
  .home-content h1 {
    font-size: 28px;
  }
  
  .home-content h3 {
    font-size: 18px;
  }
  
  .home-content .btn-box {
    width: 100%;
    flex-direction: column;
    height: auto;
    gap: 15px;
  }
  
  .btn-box a {
    width: 200px;
  }
}