/*====================================================
        ANIMATIONS.CSS
        Part 1
====================================================*/

.hidden {
  opacity: 0;
  transform: translateY(35px);
}

.show {
  opacity: 1;
  transform: translateY(0);
  transition: 0.6s ease;
}

/***************
    Keyframes
****************/

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-70px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(70px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.75);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-18px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 15px rgba(0, 255, 132, 0.15);
  }

  50% {
    box-shadow: 0 0 35px rgba(0, 255, 132, 0.45);
  }

  100% {
    box-shadow: 0 0 15px rgba(0, 255, 132, 0.15);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/**********************
    Hero Animation
**********************/

.hero-left {
  animation: fadeLeft 1s ease forwards;
}

.hero-right {
  animation: fadeRight 1.2s ease forwards;
}

.badge {
  animation: fadeDown 0.9s ease;
}

.hero h1 {
  animation: fadeUp 1s ease;
}

.hero p {
  animation: fadeUp 1.2s ease;
}

.hero-buttons {
  animation: fadeUp 1.4s ease;
}

.hero-cards {
  animation: fadeUp 1.6s ease;
}

/**********************
    Floating Image
**********************/

.profile-card {
  animation:
    float 5s ease-in-out infinite,
    glow 4s ease infinite;
}

/**********************
    Buttons
**********************/

.btn {
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    background 0.35s;
}

.btn:hover {
  transform: translateY(-6px) scale(1.02);
}

.btn:active {
  transform: scale(0.95);
}

.btn-outline {
  transition: 0.35s;
}

.btn-outline:hover {
  transform: translateY(-6px);
}

/**********************
    Cards Hover
**********************/

.mini-card,
.service,
.project,
.glass {
  transition: 0.4s ease;
}

.mini-card:hover,
.service:hover,
.glass:hover {
  transform: translateY(-12px);

  box-shadow: 0 15px 40px rgba(0, 255, 132, 0.08);
}

/**********************
    Images
**********************/

.project {
  overflow: hidden;
}

.project img {
  transition:
    transform 0.7s ease,
    filter 0.7s ease;
}

.project:hover img {
  transform: scale(1.12);

  filter: brightness(0.7);
}

/**********************
    Overlay
**********************/

.overlay {
  transition: 0.45s;
}

.project:hover .overlay {
  transform: translateY(-8px);
}

/**********************
    Navigation
**********************/

nav a {
  transition: 0.35s;
}

nav a:hover {
  transform: translateY(-2px);
}

/**********************
    Logo
**********************/

.logo {
  transition: 0.35s;
}

.logo:hover {
  transform: scale(1.05);
}

/**********************
    Section Title
**********************/

section h2 {
  animation: fadeUp 0.8s ease;
}

/**********************
    Glow Border
**********************/

.glass,
.service,
.project,
.profile-card {
  position: relative;
}

.glass::before,
.service::before,
.project::before {
  content: "";

  position: absolute;

  inset: 0;

  border-radius: inherit;

  padding: 1px;

  background: linear-gradient(
    135deg,
    rgba(0, 255, 132, 0.3),
    transparent,
    rgba(255, 255, 255, 0.05)
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity: 0;

  transition: 0.4s;
}

.glass:hover::before,
.service:hover::before,
.project:hover::before {
  opacity: 1;
}
/*====================================================
        ANIMATIONS.CSS
        Part 2
====================================================*/

/*==============================
        Section Reveal
==============================*/

.hero,
.about,
.services,
.projects,
.stats,
.contact {
  animation: fadeUp 1s ease both;
}

/*==============================
        Hover Lift
==============================*/

.service {
  overflow: hidden;
  position: relative;
}

.service::after {
  content: "";

  position: absolute;

  left: -120%;
  top: 0;

  width: 70%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );

  transform: skewX(-25deg);

  transition: 1s;
}

.service:hover::after {
  left: 150%;
}

/*==============================
        Card Shine
==============================*/

.mini-card {
  position: relative;
  overflow: hidden;
}

.mini-card::before {
  content: "";

  position: absolute;

  width: 200px;
  height: 200px;

  background: rgba(255, 255, 255, 0.03);

  border-radius: 50%;

  top: -120px;
  right: -120px;

  transition: 0.5s;
}

.mini-card:hover::before {
  transform: scale(2);
}

/*==============================
        Image Float
==============================*/

.project {
  transition: 0.4s;
}

.project:hover {
  transform: translateY(-10px) rotateX(3deg);
}

/*==============================
        Statistics
==============================*/

.counter {
  transition: 0.35s;
}

.counter:hover {
  transform: translateY(-10px);
}

.counter h1 {
  animation: pulse 3s infinite;
}

/*==============================
        Button Ripple
==============================*/

.btn {
  position: relative;

  overflow: hidden;
}

.btn::before {
  content: "";

  position: absolute;

  width: 0;
  height: 0;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.25);

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  transition: 0.6s;
}

.btn:hover::before {
  width: 420px;
  height: 420px;
}

/*==============================
        Profile
==============================*/

.profile-card {
  position: relative;

  overflow: hidden;
}

.profile-card::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(transparent, rgba(0, 255, 132, 0.08));

  opacity: 0;

  transition: 0.4s;
}

.profile-card:hover::after {
  opacity: 1;
}

/*==============================
        Navigation
==============================*/

header {
  transition:
    background 0.4s,
    padding 0.4s,
    box-shadow 0.4s;
}

header:hover {
  background: rgba(2, 8, 6, 0.75);
}

/*==============================
        Links
==============================*/

.social a {
  transition: 0.35s;
}

.social a:hover {
  color: var(--green);

  transform: translateY(-5px) scale(1.15);
}

/*==============================
        Title Underline
==============================*/

section h2 {
  position: relative;

  display: inline-block;
}

section h2::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -12px;

  width: 70px;
  height: 4px;

  border-radius: 10px;

  background: var(--green);
}

/*==============================
        Glow Background
==============================*/

.hero::before {
  content: "";

  position: absolute;

  width: 550px;
  height: 550px;

  border-radius: 50%;

  background: radial-gradient(rgba(0, 255, 132, 0.08), transparent 70%);

  top: 80px;
  right: -150px;

  animation: float 8s ease infinite;

  z-index: -1;
}

/*==============================
        Animated Border
==============================*/

.project {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project:hover {
  border-color: rgba(0, 255, 132, 0.35);
}

/*==============================
        Glass Effect
==============================*/

.glass {
  backdrop-filter: blur(20px);

  background: rgba(255, 255, 255, 0.03);
}

/*==============================
        Mouse Hover Scale
==============================*/

.project img {
  will-change: transform;
}

.service,
.glass,
.counter,
.mini-card {
  will-change: transform;
}

/*==============================
        Delay Animation
==============================*/

.hero-cards .mini-card:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-cards .mini-card:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-cards .mini-card:nth-child(3) {
  animation-delay: 0.6s;
}

footer {
  position: relative;
}

footer::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 100%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 132, 0.25),
    transparent
  );
}
