/*
  Marketing Courses Website
  Design System: Neomorphism, Volumetric UI
  Color Scheme: Pastel
  Animation Style: 3D Effects
  Framework: Tailwind CSS Complement
*/

/* ---------------------------------- */
/*          1. CSS Variables          */
/* ---------------------------------- */
:root {
  /* Color Palette */
  --bg-color: #f0f2f5;
  --bg-color-alt: #e0e5ec;
  --shadow-light: #ffffff;
  --shadow-dark: #d1d9e6;

  /* Primary & Accent Colors */
  --primary-color: #5b86e5;
  --accent-color: #36d1dc;
  --primary-gradient: linear-gradient(145deg, var(--primary-color), var(--accent-color));

  /* Text Colors */
  --text-primary: #3d4a59;
  --text-headings: #2c3e50;
  --text-light: #ffffff;
  --text-dark: #222222;

  /* Fonts */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;

  /* UI Elements */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-speed: 0.3s;
}

/* ---------------------------------- */
/*          2. Base & Typography      */
/* ---------------------------------- */
body {
  background-color: var(--bg-color);
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-headings);
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

a {
  color: var(--primary-color);
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-color);
}

.container {
  max-width: 1200px;
}

/* Section Padding */
section {
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  section {
    padding: 6rem 1.5rem;
  }
}

/* Ensure text on light backgrounds is dark and readable */
.bg-light-section {
    color: var(--text-dark);
}
.bg-light-section h1, .bg-light-section h2, .bg-light-section h3 {
    color: var(--text-dark);
}

/* ---------------------------------- */
/*        3. Neomorphism & UI Kit     */
/* ---------------------------------- */

/* Outset (Raised) Style */
.neumorph-outset {
  background: var(--bg-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  transition: all var(--transition-speed) ease-in-out;
}

/* Inset (Pressed) Style */
.neumorph-inset {
  background-color: var(--bg-color);
  border-radius: var(--border-radius-md);
  box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
  border: none;
  outline: none;
}

/* Global Button Styles */
.neumorph-button, button[type="submit"], .btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  outline: none;
  color: var(--text-primary);
  background: var(--bg-color);
  border-radius: var(--border-radius-md);
  box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
  transition: all var(--transition-speed) ease-in-out;
}

.neumorph-button:hover, button[type="submit"]:hover, .btn:hover {
  box-shadow: 2px 2px 5px var(--shadow-dark), -2px -2px 5px var(--shadow-light);
  transform: translateY(-2px);
  color: var(--primary-color);
}

.neumorph-button:active, button[type="submit"]:active, .btn:active {
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  transform: translateY(1px);
}

/* Gradient Button */
.neumorph-button.bg-gradient-to-r {
  color: var(--text-light);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 5px 5px 15px rgba(91, 134, 229, 0.4), -5px -5px 15px rgba(54, 209, 220, 0.4);
}

.neumorph-button.bg-gradient-to-r:hover {
  box-shadow: 2px 2px 8px rgba(91, 134, 229, 0.5), -2px -2px 8px rgba(54, 209, 220, 0.5);
}

/* General Card Styles */
.neumorph-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.card-image-container {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  overflow: hidden;
  margin: 0 auto; /* Center the container */
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area without distortion */
  transition: transform 0.4s ease;
}

.neumorph-card:hover .card-image-container img {
  transform: scale(1.05);
}

.neumorph-card .card-content {
    flex-grow: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------------------------------- */
/*      4. Layout & Section Styles    */
/* ---------------------------------- */

/* Header & Navigation */
header.sticky {
  background-color: rgba(240, 242, 245, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px var(--shadow-dark);
}

#mobile-menu {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  border-top: 1px solid var(--shadow-dark);
}

/* Hero Section */
#hero {
  color: var(--text-light);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
}

#hero .text-shadow-strong {
  text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7);
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* History (Timeline) Section */
.right-timeline .scroll-animate { transform: translateX(50px); }
.left-timeline .scroll-animate { transform: translateX(-50px); }
.right-timeline .scroll-animate.visible, .left-timeline .scroll-animate.visible { transform: translateX(0); }

/* Pricing Section */
#pricing .lg\:scale-110 {
  z-index: 10;
}

/* Resources Section */
#resources .neumorph-outset:hover {
  transform: translateY(-5px);
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}
#resources a[target="_blank"] {
  font-weight: 700;
}
#resources a[target="_blank"]::after {
  content: ' \2197'; /* North East Arrow */
  display: inline-block;
  transition: transform var(--transition-speed) ease;
}
#resources a[target="_blank"]:hover::after {
  transform: translate(3px, -3px);
}

/* Footer */
footer a {
  font-weight: 700;
}

footer .flex.space-x-6 a {
  position: relative;
  padding: 5px 0;
}
footer .flex.space-x-6 a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease-in-out;
}
footer .flex.space-x-6 a:hover::after {
  width: 100%;
}

/* ---------------------------------- */
/*    5. Animation & Interactivity    */
/* ---------------------------------- */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Barba.js Page Transitions */
.barba-leave-active,
.barba-enter-active {
  transition: opacity .5s ease;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}

/* ---------------------------------- */
/*       6. Specific Page Styles      */
/* ---------------------------------- */

/* success.html */
body.page-success {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.success-container {
    text-align: center;
    background-color: var(--bg-color);
    padding: 3rem 4rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light);
}

/* privacy.html & terms.html */
.legal-content-container {
    padding-top: 120px;
    padding-bottom: 80px;
}

.legal-content-container .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-color);
    padding: 2rem 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.legal-content-container h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--text-headings);
}

.legal-content-container h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--primary-color);
}
.legal-content-container p, .legal-content-container li {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* ---------------------------------- */
/*         7. Cookie Popup            */
/* ---------------------------------- */
#cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(44, 62, 80, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--text-light);
  padding: 20px;
  z-index: 9999;
  text-align: center;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#cookie-popup p {
  margin: 0;
}

#accept-cookie-button {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 10px 25px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color var(--transition-speed);
}

#accept-cookie-button:hover {
  background-color: var(--accent-color);
  transform: none; /* Override default button hover */
}