/*
  style.css
  Theme: AI & The Future of Technology
  Design: Glassmorphism, Adaptive Typography
  Color Scheme: Neutral
*/

/* --- CSS Variables --- */
:root {
  /* Color Palette */
  --primary-color: #485fc7; /* A vibrant blue for the tech theme */
  --primary-color-darker: #3e51b3;
  --background-color: #111118;
  --light-bg-color: #f5f5f5;
  --text-color: #cccccc;
  --heading-color: #ffffff;
  --dark-text-color: #333333;
  --dark-heading-color: #222222;
  --border-color: #3a3a4a;

  /* Glassmorphism */
  --glass-bg: rgba(22, 22, 30, 0.45);
  --glass-border-color: rgba(255, 255, 255, 0.15);
  --glass-blur: 10px;

  /* Fonts */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 6rem) 1.5rem;
  --card-padding: 1.5rem;
}

/* --- Base & Reset Styles --- */
html {
  scroll-behavior: smooth;
  background-color: var(--background-color);
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--background-color);
  font-size: 1.1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Adaptive Typography */
.title.is-1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.title.is-2 { font-size: clamp(2rem, 5vw, 3rem); }
.title.is-3 { font-size: clamp(1.5rem, 4vw, 2rem); }
.title.is-4 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

/* High-contrast text on light backgrounds */
.has-background-light .title,
.has-background-light .subtitle,
.has-background-light .content,
.has-background-light p,
.has-background-light .label {
  color: var(--dark-text-color);
  text-shadow: none;
}
.has-background-light .section-title {
  color: var(--dark-heading-color);
}
.resource-card .title, .resource-card p {
    color: var(--dark-text-color);
}
.resource-card .title a {
    color: var(--dark-text-color);
}
.resource-card .title a:hover {
    color: var(--primary-color) !important;
}

p, .content {
  font-family: var(--font-body);
  line-height: 1.7;
}

a {
  color: var(--primary-color);
  transition: color 0.3s ease;
}
a:hover {
  color: var(--primary-color-darker);
}

/* --- Layout & Sections --- */
.section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden; /* For pseudo-elements */
}

.has-background-light {
    background-color: var(--light-bg-color) !important;
}

.section-title {
  margin-bottom: 3rem !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  margin: 1rem auto 0;
}

/* --- Header & Navigation --- */
.navbar.is-fixed-top {
  background: rgba(17, 17, 24, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border-color);
  transition: background-color 0.3s ease;
}
.navbar-item, .navbar-link {
  color: var(--heading-color);
  font-family: var(--font-body);
  font-weight: 700;
  transition: all 0.3s ease;
}
.navbar-item:hover, .navbar-item.is-active {
  background-color: transparent !important;
  color: var(--primary-color) !important;
}
.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.navbar-burger {
  color: var(--heading-color);
}
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background: rgba(17, 17, 24, 0.95);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 1.5rem;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }
}

/* --- Hero & Background Image Sections --- */
.hero, .page-hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}
/* Dark overlay for readability */
.hero::before, .page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}
.hero .hero-body, .page-hero .hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}
.hero.is-fullheight .hero-body {
    min-height: 100vh;
}
.hero-title, .hero-subtitle {
  color: #FFFFFF !important; /* STRICT requirement */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8) !important;
}

/* --- Glassmorphism Components --- */
.glass-container, .glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border: 1px solid var(--glass-border-color);
  padding: 2rem;
  color: var(--heading-color);
}

/* --- Card Styles --- */
.card {
  background-color: #2a2a38;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}
.card .card-image {
  margin: 0 auto;
  width: 100%;
}
.card .image-container {
  overflow: hidden;
  position: relative;
  padding-top: 75%; /* 4:3 Aspect Ratio */
}
.card .image-container img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .image-container img {
  transform: scale(1.05);
}
.card .card-content {
  padding: var(--card-padding);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card .card-content .title, .card .card-content .subtitle {
  color: var(--heading-color);
}
.card .card-content .content {
  color: var(--text-color);
  flex-grow: 1;
}
.card .button {
    margin-top: auto; /* Pushes button to the bottom */
}

/* --- Global Button Styles --- */
.button, button, input[type='submit'] {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 5px;
  padding: 1rem 2rem;
  transition: all 0.3s ease-in-out;
  border: none;
  cursor: pointer;
  line-height: 1.5; /* Align text vertically */
}
.button.is-primary {
  background-color: var(--primary-color);
  color: var(--heading-color);
  box-shadow: 0 4px 15px rgba(72, 95, 199, 0.4);
}
.button.is-primary:hover {
  background-color: var(--primary-color-darker);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(72, 95, 199, 0.5);
}
.button.is-link {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important; /* Override bulma specificity */
    padding: calc(1rem - 2px) calc(2rem - 2px);
}
.button.is-link:hover {
    background-color: var(--primary-color);
    color: var(--heading-color) !important;
}

/* --- Form Styles --- */
.input, .textarea, .select select {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  box-shadow: none;
  border-radius: 5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input::placeholder, .textarea::placeholder {
  color: rgba(204, 204, 204, 0.5);
}
.input:focus, .textarea:focus, .select select:focus {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.125em rgba(72, 95, 199, 0.25);
  color: var(--heading-color);
}
.label { color: var(--heading-color); }
.select::after { border-color: var(--primary-color); }

/* --- Resource List Section --- */
.resource-list { list-style: none; margin: 0; padding: 0; }
.resource-card {
  background-color: #ffffff;
  border-left: 5px solid var(--primary-color);
  transition: all 0.3s ease;
}
.resource-card:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* --- Testimonials Section --- */
#testimonials .box.glass-card {
  border-left: 4px solid var(--primary-color);
  background: var(--glass-bg);
}

/* --- Legal & Success Pages --- */
main[data-barba-namespace="privacy"] .section,
main[data-barba-namespace="terms"] .section {
    padding-top: 10rem;
    padding-bottom: 6rem;
    background-color: white;
}
main[data-barba-namespace="privacy"] .content,
main[data-barba-namespace="terms"] .content {
    color: var(--dark-text-color);
    max-width: 800px;
    margin: 0 auto;
}
main[data-barba-namespace="privacy"] .content h1,
main[data-barba-namespace="terms"] .content h1 {
    color: var(--dark-heading-color);
}
main[data-barba-namespace="success"] .hero {
    background: var(--background-color);
}

/* --- Footer --- */
.footer {
  background-color: #0d0d12;
  color: var(--text-color);
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
}
.footer .title { color: var(--heading-color); }
.footer a { color: var(--text-color); }
.footer a:hover { color: var(--primary-color); }
.footer ul { list-style: none; margin: 0; }
.footer hr { background-color: var(--border-color); }

/* --- Barba.js Page Transitions --- */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.5s;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
  position: absolute;
  width: 100%;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    color: #fff !important;
    opacity: 0.9;

}