/* ============================
   ChainPass - Futuristic UI
   AI / Web3 / QA Automation Theme
   ============================ */

:root {
  /* Core palette */
  --bg: #070A12;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.12);

  /* Neon accents */
  --primary: #00F5FF;
  --secondary: #7C3AED;
  --accent: #00FFB2;
  --danger: #FF3D81;

  /* Text */
  --text: #E6EDF7;
  --text-dim: rgba(230, 237, 247, 0.7);

  /* Effects */
  --blur: blur(18px);
  --glow: 0 0 40px rgba(0, 245, 255, 0.25);
  --glow-strong: 0 0 80px rgba(124, 58, 237, 0.35);

  /* Borders */
  --border: rgba(255, 255, 255, 0.12);
}

/* ============================
   GLOBAL
   ============================ */

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(circle at top, #0B1020, #05060A);
  color: var(--text);
  line-height: 1.6;
}

/* subtle grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  pointer-events: none;
}

/* ============================
   HEADER
   ============================ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;

  padding: 14px 24px;

  /* background:
    linear-gradient(
      135deg,
      rgba(8, 12, 24, 0.92),
      rgba(12, 18, 32, 0.82)
    ); */

  backdrop-filter: blur(40px);

  border-bottom: 1px solid rgba(255,255,255,0.06);

  box-shadow:
    0 10px 40px rgba(0,0,0,0.25),
    0 0 40px rgba(0,245,255,0.04);

  overflow: visible;
}

/* subtle neon bottom line */
.masthead::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 0;

  transform: translateX(-50%);

  width: 92%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(0,245,255,0.45),
    rgba(124,58,237,0.45),
    transparent
  );

  opacity: 0.7;
}

/* ============================
   NAV CONTAINER
   ============================ */

.greedy-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: 1280px;
  margin: 0 auto;

  background: transparent !important;
  border: none !important;

  min-height: 64px;
}

/* ============================
   BRAND
   ============================ */

.site-title {
  display: flex;
  flex-direction: column;

  text-decoration: none;
  line-height: 1.1;

  transition: transform 0.25s ease;
}

.site-title:hover {
  transform: translateY(-1px);
}

/* logo text */
.site-title {
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* accent gradient */
.site-title span {
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--accent)
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* optional subtitle */
.site-subtitle {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);

  margin-top: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================
   NAVIGATION
   ============================ */

.greedy-nav a {
  color: var(--text-dim);
  transition: all 0.3s ease;
}

.greedy-nav a:hover {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.5);
}

.greedy-nav .btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: var(--glow);
  transition: all 0.3s ease;
}

.greedy-nav .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
}

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

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-illustration img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;

  /* futuristic glow effect */
  filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.25)) drop-shadow(0 0 80px rgba(140, 0, 255, 0.15));

  transform: translateY(0);
  transition: transform 0.3s ease;
}

.hero-illustration img:hover {
  transform: translateY(-6px);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  align-items: stretch;
}


.course-card a.btn-primary {
  margin-top: auto;
  align-self: flex-start;
  /* keeps button left-aligned */
}

.course-card::before,
.course-card::after {
  pointer-events: none;
}

.btn-primary {
  position: relative;
  z-index: 10;
}

.hero-section {
  position: relative;
  padding: 100px 20px;
  background: radial-gradient(circle at 20% 20%, rgba(0, 245, 255, 0.15), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(124, 58, 237, 0.2), transparent 50%),
    #060912;
  overflow: hidden;
}

/* animated glow blobs */
.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  filter: blur(80px);
  opacity: 0.4;
  border-radius: 50%;
  animation: float 10s infinite alternate ease-in-out;
}

.hero-section::before {
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.hero-section::after {
  background: var(--secondary);
  bottom: -120px;
  right: -120px;
}

@keyframes float {
  from {
    transform: translateY(0px) scale(1);
  }

  to {
    transform: translateY(30px) scale(1.1);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 900;
}

.hero-text h1 .highlight {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-dim);
  font-size: 1.2rem;
}

.hero-text li {
  color: var(--text-dim);
  font-size: 1.2rem;
}




/* ============================
   IMAGES
   ============================ */




.services-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 20px;
}

/* text takes more space */
.services-text {
  flex: 1;
}

/* image side */
.hero-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-illustration img {
  max-width: 100%;
  height: auto;
}

/* responsive for mobile */
@media (max-width: 768px) {
  .services-wrapper {
    flex-direction: column;
  }
}

/* ============================
   BUTTONS
   ============================ */

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff !important;
  text-decoration: none !important;

  padding: 14px 28px;
  border-radius: 14px;

  font-weight: 700;
  font-size: 1rem;
  line-height: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;
  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;

  box-shadow:
    0 0 20px rgba(0, 245, 255, 0.35),
    0 0 40px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--glow-strong);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: var(--blur);
}

/* ============================
   CARDS (AI / SERVICES / COURSES)
   ============================ */

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  width: fit-content;
  padding: 8px 16px;
  margin-bottom: 14px;

  border-radius: 999px;

  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;

  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);

  position: relative;
  overflow: hidden;
}

/* animated glow */
.course-badge::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.03));

  opacity: 0.7;
}

.course-list {
  margin: 20px 0 0 0;   /* consistent start spacing from text above */
  padding-left: 18px;   /* consistent indent */
  text-align: left;
}

.course-list li {
  margin: 6px 0;        /* consistent spacing between items */
  line-height: 1.5;     /* consistent text height */
}

.course-card-badge {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.course-card-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* small spacing */
  align-items: flex-start;
}

.course-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}


.course-level {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--accent, #7dd3fc);
  letter-spacing: 0.3px;
}

/* price styling (distinct visual identity) */
.course-price {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--accent, #7dd3fc);
  letter-spacing: 0.3px;
}

/* highlight animation 
.course-card:target {
  animation: cardFocusGlow 2.2s ease;
}
  */

/* animated glow 
@keyframes cardFocusGlow {
  0% {
    transform: translateY(0) scale(1);

    border-color: rgba(0, 245, 255, 0.2);

    box-shadow:
      0 0 0 rgba(0,245,255,0),
      0 0 0 rgba(124,58,237,0);
  }

  30% {
    transform: translateY(-6px) scale(1.015);

    border-color: rgba(0, 245, 255, 0.9);

    box-shadow:
      0 0 30px rgba(0,245,255,0.35),
      0 0 80px rgba(124,58,237,0.28);
  }

  100% {
    transform: translateY(0) scale(1);

    border-color: rgba(255,255,255,0.12);

    box-shadow:
      0 0 0 rgba(0,245,255,0),
      0 0 0 rgba(124,58,237,0);
  }
}
*/

.course-card,
.service-card {
  width: 100%;
  background: var(--surface);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 1;
  margin-top: auto;
  gap: 12px;
  align-items: flex-start;
  scroll-margin-top: 120px;
}

/* glow border effect */
.course-card::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.3s;
}

.course-card:hover::before,
.service-card:hover::before {
  opacity: 1;
}

.course-card:hover,
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
}

/* ============================
   SECTIONS
   ============================ */

.section-header h2 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================
   FORMS
   ============================ */

input,
textarea,
select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: var(--blur);
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
  outline: none;
}

/* ============================
   GLOW
   ============================ */

.page-glow {
  position: relative;
  background: #060912;
  overflow: hidden;
}

/* continuous ambient glow */
.page-glow::before,
.page-glow::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

/* top-left glow */
.page-glow::before {
  background: var(--primary);
  top: -120px;
  left: -120px;
  animation: float 12s ease-in-out infinite alternate;
}

/* bottom-right glow */
.page-glow::after {
  background: var(--secondary);
  bottom: -120px;
  right: -120px;
  animation: float 14s ease-in-out infinite alternate;
}

/* ensure content stays above glow */
.content-section,
.hero-content {
  position: relative;
  z-index: 1;
}


/* =============================

NAVIGATION

==================================*/

.greedy-nav {
  position: relative;
  z-index: 10;

  background: rgba(6, 9, 18, 0.75);
  backdrop-filter: blur(14px);

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

  transition: all 0.3s ease;
}

/* container alignment (if nav has inner wrapper) */
.greedy-nav .visible-links,
.greedy-nav .hidden-links {
  background: transparent;
}


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

.greedy-nav a {
  position: relative;

  color: rgba(255,255,255,0.72);

  font-size: 1rem;
  font-weight: 500;

  text-decoration: none;

  padding: 10px 14px;
  border-radius: 12px;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

/* hover */
.greedy-nav a:hover {
  color: #ffffff;

  background: rgba(124,58,237,0.12);

  transform: translateY(-1px);
}

/* active link */
.greedy-nav a.active,
.greedy-nav a.current {
  color: var(--primary);

  background: rgba(0,245,255,0.08);

  box-shadow:
    inset 0 0 0 1px rgba(0,245,255,0.12);
}

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

.page__footer {
  position: relative;
  z-index: 2;
  background: rgba(6, 9, 18, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 20px;
  margin-top: 80px;
}

/* optional subtle glow continuation */
.page__footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 245, 255, 0.4),
      rgba(124, 58, 237, 0.4),
      transparent);
  opacity: 0.6;
}

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

.footer-copy {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
  text-align: center;
}

/* optional hover polish (if you later add links) */
.page__footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page__footer a:hover {
  color: var(--primary);
}


/* ============================
   UTILITIES
   ============================ */

.text-center {
  text-align: center;
}

.glow {
  filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}


/* ============================
   CONTACT FORM
   Futuristic Glassmorphism Style
   ============================ */

.contact-form {
  max-width: 720px;
  margin: 60px auto;

  padding: 32px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);

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

  position: relative;
  overflow: hidden;

  box-shadow:
    0 0 30px rgba(0, 245, 255, 0.08),
    0 0 80px rgba(124, 58, 237, 0.08);
}

/* animated glow border */
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: 24px;
  padding: 1px;

  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.7),
    rgba(124, 58, 237, 0.7)
  );

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

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

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

  pointer-events: none;
  opacity: 0.7;
}

/* ============================
   LABELS
   ============================ */

.contact-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: -10px;
}

/* ============================
   INPUTS
   ============================ */

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;

  padding: 16px 18px;

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

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);

  color: var(--text);
  font-size: 1rem;

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

  outline: none;

}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* textarea sizing */
.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

/* placeholder */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

/* focus state */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(0, 245, 255, 0.6);

  box-shadow:
    0 0 0 4px rgba(0, 245, 255, 0.08),
    0 0 24px rgba(0, 245, 255, 0.15);

  transform: translateY(-1px);
}

/* ============================
   SEND BUTTON
   ============================ */

.contact-form button,
.contact-form input[type="submit"] {
  align-self: flex-start;

  padding: 14px 28px;

  border: none;
  border-radius: 14px;

  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  );

  color: white;
  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;

  box-shadow:
    0 0 20px rgba(0, 245, 255, 0.25),
    0 0 40px rgba(124, 58, 237, 0.2);
}

.contact-form button:hover,
.contact-form input[type="submit"]:hover {
  transform: translateY(-3px);

  box-shadow:
    0 0 30px rgba(0, 245, 255, 0.35),
    0 0 60px rgba(124, 58, 237, 0.3);
}

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

@media (max-width: 768px) {
  .contact-form {
    padding: 24px;
    border-radius: 20px;
  }

  .contact-form button,
  .contact-form input[type="submit"] {
    width: 100%;
    justify-content: center;
  }
}

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

.greedy-nav__toggle {
  background: rgba(255,255,255,0.04) !important;

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

  border-radius: 12px;

  color: var(--text);

  transition: all 0.25s ease;
}

.greedy-nav__toggle:hover {
  background: rgba(124,58,237,0.12) !important;
}

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

.greedy-nav .hidden-links {
  background: rgba(8, 12, 24, 0.96) !important;

  backdrop-filter: blur(18px);

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

  border-radius: 18px;

  padding: 12px;

  box-shadow:
    0 0 40px rgba(0,245,255,0.08),
    0 0 80px rgba(124,58,237,0.08);
}

.greedy-nav .hidden-links::before,
.greedy-nav .hidden-links::after {
  display: none !important;
}

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

   @media (max-width: 768px) {
  .services-grid,
  .courses-grid,
  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}