/* =========================
   GENERAL
========================= */

body {
  background-color: #0b1120;
  color: #e5e7eb;
  font-family: Arial, sans-serif;

  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);

  background-size: 40px 40px;
}


/* =========================
   NAVBAR
========================= */

.navbar {
  background-color: rgba(7, 12, 25, 0.95);
  border-bottom: 1px solid rgba(0, 200, 255, 0.15);
}

.navbar-brand {
  color: #00d9ff !important;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-link {
  color: #cbd5e1 !important;
  margin-left: 15px;
}

.nav-link:hover,
.nav-link.active {
  color: #00d9ff !important;
}


/* =========================
   PROJECT PAGE HEADER
========================= */

.page-header {
  text-align: center;
  padding: 70px 20px 30px;
}

.page-header h1 {
  color: #ffffff;
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-header p {
  color: #94a3b8;
  max-width: 700px;
  margin: auto;
  font-size: 17px;
}


/* =========================
   HOMEPAGE HERO
========================= */

.home-hero {
  text-align: center;
  padding: 90px 20px 55px;
}

.home-hero h1 {
  color: #ffffff;
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 15px;
}

.home-hero h2 {
  color: #00d9ff;
  font-size: 22px;
  font-weight: normal;
  margin-bottom: 20px;
}

.hero-description {
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 17px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.hero-buttons .btn {
  padding: 10px 20px;
}


/* =========================
   SYSTEM STATUS
========================= */

.system-status {
  max-width: 1000px;
  margin: 20px auto 50px;
  padding: 12px 20px;

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

  background-color: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 217, 255, 0.15);
  border-radius: 8px;

  color: #94a3b8;
  font-size: 13px;
  letter-spacing: 1px;
}

.status-online {
  color: #22c55e;
  font-weight: bold;
}


/* =========================
   PROJECT FLIP CARDS
========================= */

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 390px;
  perspective: 1000px;
  margin-bottom: 30px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;

  text-align: center;

  transition: transform 0.7s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  border-radius: 14px;
  border: 1px solid rgba(0, 217, 255, 0.2);

  background:
    linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.96),
      rgba(8, 15, 30, 0.96)
    );

  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(0, 217, 255, 0.04);
}


/* =========================
   PROJECT CARD FRONT
========================= */

.flip-card-front {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 30px;
}

.project-icon {
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.35));
}

.flip-card-front h3 {
  color: #ffffff;
  font-size: 23px;
  margin-bottom: 12px;
}

.flip-card-front p {
  color: #94a3b8;
  margin-bottom: 20px;
}

.hover-message {
  color: #00d9ff;
  font-size: 12px;
  letter-spacing: 1px;
  margin-top: 5px;
}


/* =========================
   TECHNOLOGY TAGS
========================= */

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.tech-tag {
  border: 1px solid rgba(0, 217, 255, 0.25);
  background-color: rgba(0, 217, 255, 0.06);

  color: #7dd3fc;

  padding: 5px 9px;
  border-radius: 20px;

  font-size: 11px;
}


/* =========================
   PROJECT CARD BACK
========================= */

.flip-card-back {
  transform: rotateY(180deg);

  display: flex;
  flex-direction: column;

  text-align: left;

  padding: 25px;
}

.flip-card-back h4 {
  color: #00d9ff;
  font-size: 18px;
  margin-bottom: 10px;
}

.project-status {
  color: #22d3ee;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: bold;
  margin-bottom: 12px;
}

.project-bullets {
  padding-left: 18px;
  margin: 0;
}

.project-bullets li {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 9px;
}

.project-bullets li::marker {
  color: #00d9ff;
}

.back-tech {
  margin-top: auto;
  padding-top: 12px;

  border-top: 1px solid rgba(255,255,255,0.08);

  color: #64748b;
  font-size: 11px;
  letter-spacing: 0.5px;
}


/* =========================
   HOMEPAGE ABOUT
========================= */

.home-section {
  padding: 30px 20px 60px;
  text-align: center;
}

.section-heading {
  margin-bottom: 25px;
}

.section-label {
  color: #00d9ff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-heading h2 {
  color: #ffffff;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 0;
}

.home-text {
  max-width: 850px;
  margin: 0 auto 20px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.7;
}


/* =========================
   LINKS
========================= */

.links-section {
  padding: 30px 20px 70px;
}

.link-card {
  display: block;
  height: 100%;
  padding: 30px;

  text-align: center;
  text-decoration: none;

  background-color: rgba(15, 23, 42, 0.75);

  border: 1px solid rgba(0, 217, 255, 0.15);
  border-radius: 12px;

  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}

.link-card:hover {
  transform: translateY(-5px);

  border-color: rgba(0, 217, 255, 0.5);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(0, 217, 255, 0.08);
}

.link-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.link-card h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 10px;
}

.link-card p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}


/* =========================
   CONTACT
========================= */

.home-contact {
  padding: 50px 20px 80px;
  border-top: 1px solid rgba(0, 217, 255, 0.1);
}

.home-contact h2 {
  color: #ffffff;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 10px;
}

.home-contact p {
  color: #94a3b8;
}

.contact-email {
  color: #00d9ff;
  text-decoration: none;
  font-size: 17px;
}

.contact-email:hover {
  color: #7dd3fc;
  text-decoration: underline;
}


/* =========================
   COMP335 FOOTER
========================= */

.comp335-footer {
  max-width: 1000px;
  margin: 30px auto 50px;
  padding: 30px;

  text-align: center;

  background-color: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 217, 255, 0.15);
  border-radius: 10px;
}

.comp335-footer h2 {
  color: #00d9ff;
  font-size: 22px;
  margin-bottom: 12px;
}

.comp335-footer p {
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}


/* =========================
   MOBILE
========================= */

@media only screen and (max-width: 720px) {

  /* PROJECT PAGE */

  .page-header {
    padding-top: 45px;
  }

  .page-header h1 {
    font-size: 34px;
  }


  /* HOMEPAGE */

  .home-hero {
    padding-top: 60px;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .home-hero h2 {
    font-size: 18px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 200px;
  }


  /* SYSTEM STATUS */

  .system-status {
    margin-left: 15px;
    margin-right: 15px;

    flex-direction: column;
    gap: 8px;

    text-align: center;
  }


  /* PROJECT CARDS */

  .flip-card {
    height: 410px;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 22px;
  }

  .project-bullets li {
    font-size: 12px;
  }


  /* LINKS */

  .links-section {
    padding-top: 10px;
    padding-bottom: 50px;
  }

  .link-card {
    padding: 25px;
  }


  /* ABOUT */

  .section-heading h2 {
    font-size: 25px;
  }

}

