/*
  File: style.css
  Project: DevPath AU'25 Website
  Design System: Corporate with Neo-Brutalism elements
  Color Scheme: Tetrad
  Animation Style: Non-linear movements
*/

/* -------------------------------------------------- */
/* 1. CSS Variables & Root Configuration
/* -------------------------------------------------- */

:root {
  /* Tetrad Color Scheme */
  --primary-color: #0074D9; /* Corporate Blue */
  --secondary-color: #2ECC40; /* Tech Green */
  --accent-color-1: #FF4136; /* Brutalist Red */
  --accent-color-2: #FF851B; /* Vibrant Orange */

  /* Neutral Palette */
  --text-dark: #222222;
  --text-light: #F4F4F4;
  --background-dark: #1a1a1a;
  --background-light: #fdfdfd;
  --border-color: #dddddd;

  /* Typography */
  --font-header: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;

  /* Sizing & Spacing */
  --navbar-height: 52px;
}

/* -------------------------------------------------- */
/* 2. Global Styles & Resets
/* -------------------------------------------------- */

html {
  scroll-behavior: smooth;
  background-color: var(--background-light);
}

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

/* -------------------------------------------------- */
/* 3. Typography
/* -------------------------------------------------- */

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-header);
  font-weight: 800;
  color: var(--text-dark);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.title {
    color: var(--text-dark);
}

.subtitle {
    color: #555;
    font-weight: 400;
}

.section-title {
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* -------------------------------------------------- */
/* 4. Global Components & Overrides
/* -------------------------------------------------- */

/* --- Buttons --- */
.button {
  font-family: var(--font-header);
  font-weight: 700;
  border-radius: 4px; /* A slight curve for a modern corporate feel */
  border-width: 2px;
  border-style: solid;
  transition: all 0.25s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Non-linear transition */
  box-shadow: 4px 4px 0px var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--text-dark);
}

.button:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
}
.button.is-primary:hover {
  background-color: var(--accent-color-2);
  border-color: var(--accent-color-2);
  color: var(--text-light);
}

/* --- Form Inputs --- */
.input, .textarea {
  border: 2px solid var(--border-color);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-body);
  transition: all 0.2s ease-in-out;
}

.input:focus, .textarea:focus,
.input:active, .textarea:active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 116, 217, 0.25);
}

/* --- Cards --- */
.card {
  height: 100%;
  border: 2px solid var(--text-dark);
  border-radius: 0;
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px) translateX(-5px);
  box-shadow: 13px 13px 0px var(--accent-color-1);
}

.card .card-image {
  border-bottom: 2px solid var(--text-dark);
  padding: 0;
  margin: 0;
  height: 250px;
  overflow: hidden;
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.card .card-content {
  flex-grow: 1;
}

.card .card-content .title {
  margin-bottom: 0.75rem;
}

/* -------------------------------------------------- */
/* 5. Header & Navigation
/* -------------------------------------------------- */

.navbar.is-fixed-top {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-item.logo {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.navbar-item {
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.navbar-item:hover, .navbar-item.is-active {
  background-color: transparent !important;
  color: var(--primary-color) !important;
}

.navbar-burger span {
  background-color: var(--text-dark);
  height: 2px;
  width: 20px;
}

/* -------------------------------------------------- */
/* 6. Section-Specific Styles
/* -------------------------------------------------- */

/* --- Hero Section --- */
.hero#hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Dark overlay for text readability */
.hero#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

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

.hero .hero-title, .hero .hero-subtitle {
  color: #FFFFFF; /* STRICTLY WHITE */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero .hero-title {
  font-size: 4rem;
  font-weight: 800;
}

.hero .hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .hero-button {
  margin-top: 2.5rem;
}

/* --- Parallax Background Sections (Statistics, Contact) --- */
.parallax-background {
    position: relative;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Simple parallax effect */
    color: var(--text-light);
}

.parallax-background .background-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1;
}
.parallax-background .container {
    position: relative;
    z-index: 2;
}

.parallax-background .title, .parallax-background .subtitle, .parallax-background .heading {
    color: var(--text-light) !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- Statistics Section --- */
#statistics .level-item .title {
  font-size: 3rem;
}
#statistics .level-item .heading {
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Webinars Section --- */
#webinars .card {
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
}
#webinars .card:hover {
    transform: translateY(-3px) translateX(-3px);
    box-shadow: 7px 7px 0px var(--secondary-color);
}
#webinars .media-left img {
    border: 2px solid var(--text-dark);
}

/* --- External Resources Section --- */
.resource-list {
    display: grid;
    gap: 1.5rem;
}
.resource-item a {
    display: block;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 0;
}
.resource-item a:hover {
    border-color: var(--primary-color);
    box-shadow: 6px 6px 0 var(--primary-color);
    transform: translate(-3px, -3px);
    color: var(--text-dark);
}
.resource-item .title {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.resource-item .description {
    color: #555;
    margin-bottom: 0.75rem;
}
.resource-item .url-display {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* -------------------------------------------------- */
/* 7. Footer
/* -------------------------------------------------- */
.footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 4rem 1.5rem;
}

.footer .title {
  color: var(--text-light);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer a {
  color: var(--text-light);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  color: var(--text-light);
  opacity: 1;
  text-decoration: underline;
}

.footer .content p {
  color: var(--text-light);
  opacity: 0.7;
}

/* -------------------------------------------------- */
/* 8. Animations & Page-Specific Styles
/* -------------------------------------------------- */

/* --- GSAP Scroll Animation Initial State --- */
.anim-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- Content pages (Privacy, Terms) --- */
.page-content-container {
    padding-top: calc(var(--navbar-height) + 3rem); /* Header height + spacing */
    padding-bottom: 3rem;
}

.page-content-container .content {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Success Page --- */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--background-light);
    padding: 2rem;
}

.success-page-container .icon {
    font-size: 5rem;
    color: var(--secondary-color);
}
.success-page-container .title {
    color: var(--text-dark);
    margin-top: 1.5rem;
}

/* -------------------------------------------------- */
/* 9. Media Queries & Responsiveness
/* -------------------------------------------------- */

@media screen and (max-width: 768px) {
  .hero .hero-title {
    font-size: 2.5rem;
  }
  .hero .hero-subtitle {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  #statistics .level-item {
      margin-bottom: 2rem;
  }
}

.title:not(.is-spaced)+.subtitle {
  margin-top: 0 !important;
}

@media screen and (min-width: 1024px) {
    .section.is-large {
        padding: 10rem 6rem !important;
    }
}

.level.is-mobile {
  flex-wrap: wrap;
}