/* ============================================
   PROFICIENCY PATH — Main Stylesheet
   Brand Colors: Navy #0A2A43 | Teal #1E6F86 | Green #39B54A
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --navy: #0A2A43;
  --navy-light: #0E3A5C;
  --teal: #1E6F86;
  --teal-light: #2A8FA8;
  --green: #39B54A;
  --green-light: #4CD35E;
  --white: #FFFFFF;
  --off-white: #F7F9FB;
  --light-gray: #E8EDF2;
  --mid-gray: #8899AA;
  --dark-gray: #4A5568;
  --gradient-brand: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
  --gradient-dark: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  --shadow-sm: 0 2px 8px rgba(10, 42, 67, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 42, 67, 0.12);
  --shadow-lg: 0 8px 40px rgba(10, 42, 67, 0.16);
  --shadow-glow: 0 0 30px rgba(57, 181, 74, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--white);
  background: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.6em;
}
h2, h3, h4, h5, h6 {
  margin-top: 1.5em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
p { color: var(--mid-gray); line-height: 1.7; margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* --- Layout Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--navy-light); }
.text-center { text-align: center; }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: all var(--transition);
  background: transparent;
}
.nav.scrolled {
  background: rgba(10, 42, 67, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo img {
  height: 96px;
  width: auto;
  transition: height var(--transition);
}
.nav.scrolled .nav-logo img { height: 64px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.nav-links a:hover {
  color: var(--green);
  background: rgba(57, 181, 74, 0.1);
}
.nav-links a.active {
  color: var(--green);
}
.nav-links .btn-nav {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav-links .btn-nav:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}
.nav-external {
  color: var(--mid-gray) !important;
  font-size: 0.85rem !important;
  border-left: 1px solid rgba(255,255,255,0.15);
  margin-left: 8px;
  padding-left: 16px !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(30, 111, 134, 0.15) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(57, 181, 74, 0.08) 0%, transparent 70%);
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(30px, -20px) scale(1.1); opacity: 1; }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}
.hero-logo {
  width: 480px;
  max-width: 90vw;
  margin-bottom: 40px;
  animation: fadeInDown 1s ease;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.2s both;
}
.hero h1 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  color: var(--mid-gray);
  font-size: 1.25rem;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.4s both;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animated particles background */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--teal);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(57, 181, 74, 0.3);
}
.btn-primary:hover {
  background: var(--green-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(57, 181, 74, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  border-color: var(--teal);
  background: rgba(30, 111, 134, 0.1);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--teal-light);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--navy-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all var(--transition);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.card-image {
  height: 200px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 42, 67, 0.8) 100%);
}
.card-image .card-icon {
  font-size: 3rem;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.card-body {
  padding: 28px;
}
.card-body h3 {
  margin-bottom: 12px;
  color: var(--white);
}
.card-body p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.card-tag {
  display: inline-block;
  background: rgba(57, 181, 74, 0.1);
  color: var(--green);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.card-price span {
  font-size: 0.9rem;
  color: var(--mid-gray);
  font-weight: 400;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-header .overline {
  display: inline-block;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.section-header h2 {
  margin-bottom: 16px;
  color: var(--white);
}
.section-header p {
  font-size: 1.1rem;
}

/* ============================================
   FEATURES / VALUE PROPS
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.feature {
  padding: 32px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.feature:hover {
  background: var(--navy-light);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(30, 111, 134, 0.25);
}
.feature h3 { margin-bottom: 12px; font-size: 1.2rem; color: var(--white); }
.feature p { font-size: 0.95rem; }

/* ============================================
   PODCAST SECTION
   ============================================ */
.podcast-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--navy-light);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition);
}
.podcast-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateX(8px);
}
.podcast-art {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.podcast-info h3 { margin-bottom: 8px; color: var(--white); }
.podcast-info p { font-size: 0.9rem; margin-bottom: 12px; }
.podcast-links { display: flex; gap: 12px; }
.podcast-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  transition: all var(--transition);
}
.podcast-links a:hover {
  background: var(--green);
  color: var(--white);
}

/* ============================================
   SHOP / E-COMMERCE
   ============================================ */
.product-card {
  background: var(--navy-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.product-image {
  height: 240px;
  background: var(--gradient-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(30, 111, 134, 0.3) 0%, transparent 60%);
}
.product-image .product-icon {
  font-size: 4rem;
  z-index: 1;
}
.product-body {
  padding: 24px;
}
.product-body h3 { margin-bottom: 8px; color: var(--white); }
.product-body p { font-size: 0.9rem; margin-bottom: 16px; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.snipcart-add-item {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.snipcart-add-item:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--gradient-dark);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at center right, rgba(57, 181, 74, 0.1) 0%, transparent 70%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: var(--mid-gray); margin-bottom: 32px; font-size: 1.15rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.9rem; margin-top: 16px; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-brand img { height: 40px; }
.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.3); }
.footer-bottom a:hover { color: var(--green); }

/* ============================================
   PAGE HEADERS (inner pages)
   ============================================ */
.page-header {
  background: var(--gradient-dark);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(30, 111, 134, 0.2) 0%, transparent 50%);
}
.page-header h1 { color: var(--white); margin-bottom: 16px; position: relative; z-index: 1; }
.page-header p { color: var(--mid-gray); font-size: 1.15rem; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

/* ============================================
   SNIPCART CART BUTTON
   ============================================ */
.cart-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: var(--green);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(57, 181, 74, 0.4);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.cart-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(57, 181, 74, 0.5);
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .podcast-card { flex-direction: column; text-align: center; }
  .podcast-links { justify-content: center; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 42, 67, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-external { border-left: none; margin-left: 0; padding-left: 16px !important; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.page-transition.loaded {
  opacity: 0;
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat { padding: 24px; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
}
.stat-label { color: var(--mid-gray); font-size: 0.95rem; }
