/* :root variables */
:root {
  --color-dark-gray: #232323;
  --color-light-gray: #e0dede;
  --color-white: #FFFFFF;
  --color-electric-blue: #00AEEF;
  --color-neon-purple: #8E44AD;
  --color-cyan: #1ABC9C;

  --font-primary: 'Poppins', sans-serif;

  --gradient-primary: linear-gradient(to bottom, #232323, #002244);
  --gradient-accent: linear-gradient(to top, #1ABC9C, #00AEEF, #002244);
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 2px #00AEEF;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #232323, #002244, #00AEEF);
  border-radius: 10px;
}

/* Selection styling */
::selection {
  background-color: var(--color-electric-blue);
  color: #000000;
}

/* Cursor styling */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-electric-blue);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.3s ease;
  z-index: 9999;
}

a:hover,
.btn-primary:hover,
.btn-secondary:hover {
  cursor: none;
}

a:hover~.cursor,
.btn-primary:hover~.cursor,
.btn-secondary:hover~.cursor {
  background-color: white;
  width: 30px;
  height: 30px;
}

.cursor-tail {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color-electric-blue);
  border-radius: 50%;
  transition: all 0.1s ease-out;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* Keyframes Animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  50% {
    opacity: 0.5;
    transform: translateY(10px);
  }

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

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes scaleUp {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

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

/* Global Styles */
body {
  background: var(--gradient-primary);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  color: var(--color-light-gray);
  line-height: 1.6;
}

/* Header Styling */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-dark-gray);
  color: var(--color-white);
  padding: 10px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: scaleUp 2s ease-out 0.5s forwards;
  animation-iteration-count: 1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1000;
}

.no-copy {
  -webkit-user-select: none;
  user-select: none;
}

.navbar .logo a {
  color: var(--color-white);
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a.home,
.nav-links a.about,
.nav-links a.solutions {
  color: var(--color-white);
  text-decoration: none;
  margin: 0px;
  padding: 5px;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s;
}

.get-in-touch {
  color: var(--color-white);
  text-decoration: none;
  margin: 0px;
  padding: 10px;
  font-size: 18px;
  font-weight: 400;
  transition: color 0.3s;
  box-shadow: 0px 0px 0px .5px var(--color-white);
}

.nav-links a:hover {
  color: var(--color-light-gray);
  box-shadow: 0px 3px 0px 0px var(--color-electric-blue);
}

/* Hamburger Styling */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  animation: fadeIn 2s ease-out 0.5s forwards;
  animation-iteration-count: 1;
}

.hamburger span {
  background-color: var(--color-white);
  height: 4px;
  width: 100%;
}

/* Section container */
.container {
  max-width: 800px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Home Hero Section */
.home-hero {
  min-height: 100vh;
  background: var(--gradient-primary);
  color: var(--color-white);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.home-hero h1 {
  font-style: italic;
  font-size: 3.0em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 3s ease-out 0.5s forwards;
  animation-iteration-count: 1;
}

.home-hero p {
  font-size: 1.5em;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 3s ease-out 1s forwards;
  animation-iteration-count: 1;
}

.hero-btn {
  background: linear-gradient(to right, #003366, #00AEEF);
  color: var(--color-white);
  padding: 15px 30px;
  font-size: 1.2em;
  text-decoration: none;
  border-radius: 5px;
  opacity: 0;
  animation: fadeIn 3s ease-out 1.5s forwards;
  animation-iteration-count: 1;
}

.hero-btn:hover {
  background: var(--color-electric-blue);
  box-shadow: 0 6px 15px rgba(0, 174, 239, 0.6);
  transition: transform 0.3 ease;
}

/* Section two */
.section-2 {
  min-height: 100vh;
  background: linear-gradient(to bottom, #00AEEF, #232323);
  color: var(--color-white);
  display: flex;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.section-2-heading {
  font-size: 2.5em;
  margin: 40px 30px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
  animation-iteration-count: 1;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  max-width: 100%;
}

.card {
  position: relative;
  height: 550px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  animation: fadeInUp 1.5s ease-out forwards;
  animation-iteration-count: 1;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.1);
}

.card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover .overlay {
  opacity: 1;
}

.overlay h3,
.overlay h4,
.overlay p {
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 0.6s forwards;
  animation-iteration-count: 1;
}

.overlay h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.overlay h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 1rem;
  font-weight: 700;
  padding: 0 15px;
}

/* Stats Styling */
.stats {
  background: linear-gradient(to top, #1ABC9C, #00AEEF, #002244);
  padding: 80px 0;
  animation: fadeIn 2s ease-out 0.5s forwards;
  animation-iteration-count: 1;
}

.stats-header h2,
.stats-header h3 {
  opacity: 0;
  animation: fadeInUp 1.5s ease-out 0.8s forwards;
  animation-iteration-count: 1;
}

.stats-header h2 {
  font-style: italic;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-light-gray);
  text-align: center;
}

.stats-header h3 {
  font-size: 2.0rem;
  font-weight: 500;
  color: var(--color-light-gray);
  text-align: center;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3,
.stat-item h4,
.stat-item p {
  opacity: 0;
  animation: fadeInUp 1.5s ease-out 0.6s forwards;
  animation-iteration-count: 1;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--color-white);
  margin-bottom: 10px;
  opacity: 0;
}

.stat-item h4 {
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 10px;
  font-weight: 400;
  opacity: 0;
}

.stat-item p {
  font-size: 1.2em;
  color: var(--color-light-gray);
  opacity: 0;
}

/* Footer Styling*/
.footer {
  background: var(--color-dark-gray);
  color: var(--color-light-gray);
  padding: 20px 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.footer-brand {
  margin-bottom: 15px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--color-white);
  text-transform: none;
}

.footer-brand p {
  font-size: 1rem;
  margin-top: 5px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-light-gray);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--color-electric-blue);
}

.footer-contact {
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--color-white);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--color-electric-blue);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-light-gray);
}

/* Media queries for devices */
@media (min-width: 768px) and (max-width: 1024px) {

  .nav-links,
  .logo {
    margin: 0 5px;
  }

  .section-2 {
    min-height: 70vh;
  }

  .card-container {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 5px;
  }

  .card {
    width: 250px;
    height: 450px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    margin-bottom: 10px;
  }

  .footer-nav ul {
    flex-direction: row;
    gap: 10px;
  }

}

@media (max-width: 768px) {
  ::-webkit-scrollbar {
    display: none;
  }

  header {
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
    width: 100%;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    background: var(--color-dark-gray);
    position: absolute;
    top: 56px;
    left: 0;
    padding: 16px;
  }

  .nav-links li {
    margin: 15px 0px;
  }

  .nav-links a {
    font-size: 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
    cursor: pointer;
  }

  .home-hero h1 {
    font-size: 2.0em;
  }

  .home-hero p {
    font-size: 1.3em;
  }

  .hero-btn {
    min-width: 200px;
    padding: 15px;
  }

  .section-2 {
    height: auto;
  }

  .section-heading {
    font-size: 2.0em;
    font-weight: 500;
  }

  .card-container {
    margin: 0 5px;
  }

  .card {
    width: auto;
    height: 500px;
    gap: 0px;
  }

  #card3 {
    margin-bottom: 50px;
  }

  .stats-header h2 {
    font-size: 1.8rem;
  }

  .stats-header h3 {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav ul {
    margin-bottom: 15px;
    gap: 10px;
  }

  .footer-copyright {
    margin-top: 10px;
  }

}