/* ==========================================================================
   1. VARIABLES & GLOBAL RESET
   ========================================================================== */
:root {
  --mint-300: #5FDDAC;
  --mint-200: #96EBC9;
  --gray-50: #F9FAFA;
  --gray-900: #1A1D1C;
  --gray-500: #9AA19E;
  --gray-600: #6B726F;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-md: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: #F9FAFA;
  color: var(--gray-900);
  overflow-x: hidden;
}

/* ==========================================================================
   2. MACOS FLOATING LIQUID GLASS DOCK
   ========================================================================== */
header.glass-dock {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;
  height: 64px;

  /* Translucent Liquid Glass Effect */
  background: rgba(22, 25, 24, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.35),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18);

  z-index: 1000;
  padding: 0 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  position: relative;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu-btn {
  display: none;
  cursor: pointer;
  color: var(--gray-50);
}

.menu-btn svg {
  width: 24px;
  height: 24px;
}

.navbar-logo {
  height: 38px;
  width: auto;
  display: block;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.navbar-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-50);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.navbar-link:hover {
  color: var(--mint-300);
  background: rgba(255, 255, 255, 0.06);
}

.navbar-link.active {
  color: var(--mint-300);
  background: rgba(95, 221, 172, 0.12);
}

.navbar-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mint-300);
  color: var(--gray-900);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(95, 221, 172, 0.25);
  transition: all 0.25s ease;
}

.submit-btn:hover {
  background-color: var(--mint-200);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(95, 221, 172, 0.35);
}

.navbar-icon {
  color: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.navbar-icon svg {
  width: 20px;
  height: 20px;
}

.navbar-icon:hover {
  color: var(--mint-300);
  background-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   3. HERO SECTION (CUSTOM DARK + BLURRED BG)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 24px 70px 24px;
  overflow: hidden;
  background-color: #121514;
  border-radius: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(rgba(18, 21, 20, 0.65), rgba(18, 21, 20, 0.75)),
    url('Assets/hero-bg.jpg') center/cover no-repeat;

  filter: blur(10px) brightness(0.8);
  transform: scale(1.08);
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}

.hero-title {
  color: #FFFFFF;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 32px;
  background-color: var(--mint-300);
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(95, 221, 172, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta svg {
  transition: transform 0.25s ease;
}

.hero-cta:hover {
  background-color: var(--mint-200);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(95, 221, 172, 0.4);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   4. TUTORIAL SECTION & SCROLL ANIMATIONS
   ========================================================================== */
.tutorial {
  background-color: #F9FAFA;
  padding: 80px 24px;
  width: 100%;
  text-align: center;
}

.tut-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.tut-sub {
  font-size: 16px;
  color: var(--gray-900);
  max-width: 620px;
  margin: 0 auto 48px auto;
  line-height: 1.5;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   5. TUTORIAL CARDS (BORDER MATCHES CARD BACKGROUND)
   ========================================================================== */
.tut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  text-align: left;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card--dark {
  background-color: #1A1D1C;
  color: var(--gray-50);

  /* Border color set exactly to card background color */
  border: 2px solid #1A1D1C;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);

  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card--dark:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.card-img-wrapper {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background-color: #2A2D2C;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Image Zoom-In Effect on Hover */
.card:hover .card-img {
  transform: scale(1.08);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-category {
  background: var(--mint-300);
  color: var(--gray-900);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}

time {
  color: var(--gray-500);
  font-size: 12px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-top: auto;
}

/* ==========================================================================
   6. EVENLY SPACED DESKTOP & MOBILE FOOTER
   ========================================================================== */
footer {
  background-color: #161817;
  color: var(--gray-50);
  padding: 60px 24px 32px 24px;
  margin-top: 80px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

.foot-brand {
  max-width: 320px;
}

.foot-logo img {
  height: 64px;
  width: auto;
  margin-bottom: -12px;
  margin-top: -25px;
  margin-left: -20px;
}

.foot-tagline {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.6;
}

/* Spreads columns evenly across remaining footer width */
.foot-columns {
  display: flex;
  flex: 1;
  justify-content: space-between;
  max-width: 650px;
}

.foot-col h4 {
  color: var(--gray-50);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;

  /* Matches category tag color accents */
  border-bottom: 2px solid var(--mint-300);
  display: inline-block;
  padding-bottom: 4px;
}

.foot-col ul {
  list-style: none;
}

.foot-col li {
  margin-bottom: 10px;
}

.foot-col a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.foot-col a:hover {
  color: var(--mint-300);
}

.footer-divider {
  max-width: 1200px;
  margin: 40px auto 24px auto;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
}

/* ==========================================================================
   7. MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  header.glass-dock {
    top: 12px;
    width: calc(100% - 24px);
    padding: 0 14px;
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 220px;

    background: rgba(22, 25, 24, 0.65) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 12px 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);

    flex-direction: column;
    gap: 4px;
    z-index: 1001;
  }

  .menu-toggle:checked~.navbar-left .navbar-links {
    display: flex;
    animation: popoverSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes popoverSlideIn {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.96);
    }

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

  .navbar-link {
    width: 100%;
    display: block;
    padding: 10px 16px;
    border-radius: 12px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-cta {
    font-size: 16px;
    padding: 12px 24px;
  }

  /* Responsive Footer Stacking & Layout */
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .foot-brand {
    max-width: 100%;
  }

  .foot-columns {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .foot-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}