/* ==========================================================================
   QuestArchives CSS - Main Stylesheet
   ========================================================================== */

/* Variables
   ========================================================================== */
:root {
  /* Primary colors */
  --primary: #3273dc;
  --primary-dark: #2160c4;
  --primary-light: #5e8ae4;
  
  /* Complementary colors */
  --complementary: #dc7232;
  --complementary-dark: #c45921;
  --complementary-light: #e48f5e;
  
  /* Neutral colors */
  --dark: #363636;
  --dark-lighter: #4a4a4a;
  --grey: #7a7a7a;
  --grey-light: #b5b5b5;
  --white: #ffffff;
  --off-white: #f5f5f5;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary), var(--primary-light));
  --complementary-gradient: linear-gradient(135deg, var(--complementary), var(--complementary-light));
  --hero-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  
  /* Typography */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-round: 50%;
}

/* Base Styles
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

a:hover, a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition-fast);
  position: relative;
  padding-right: 20px;
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover::after {
  transform: translate(5px, -50%);
}

/* Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-lg) 0;
  position: relative;
}

.section-heading {
  margin-bottom: var(--spacing-md);
}

.section-heading .title {
  position: relative;
  display: inline-block;
}

.section-heading .title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
}

.has-text-centered .section-heading .title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Buttons
   ========================================================================== */
.button {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition-medium);
}

.button.is-primary {
  background: var(--primary-gradient) !important;
  border-color: transparent;
}

.button.is-primary:hover {
  background: var(--primary-dark) !important;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.button.is-light {
  background: var(--white);
  color: var(--primary);
}

.button.is-light:hover {
  background: var(--off-white);
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.button.is-outlined {
  background-color: transparent;
  border-width: 2px;
}

.pulse-button {
  position: relative;
}

.pulse-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Navbar
   ========================================================================== */
.navbar {
  transition: background-color var(--transition-medium);
  padding: 0.5rem 1rem;
}

.navbar-brand .title {
  margin-bottom: 0;
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary);
}

.navbar-burger {
  height: auto;
  width: 3.25rem;
}

.navbar-burger span {
  height: 2px;
}

/* Hero Section
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
}

header {
  background: #fff !important;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
}

.hero-body {
  position: relative;
  z-index: 1;
}

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Features Section
   ========================================================================== */
.feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card .card-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.feature-card .card-content {
  flex: 1;
  padding: var(--spacing-md);
}

.progress-container {
  margin: var(--spacing-sm) 0;
  position: relative;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -20px;
  font-size: 0.8rem;
  color: var(--grey);
}

/* Methodology Section
   ========================================================================== */
.methodology-content {
  padding: var(--spacing-sm);
}

.methodology-process {
  margin-top: var(--spacing-md);
}

.process-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-round);
  font-weight: bold;
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.methodology-standards li {
  margin-bottom: var(--spacing-xs);
  position: relative;
  padding-left: 20px;
}

.methodology-standards li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.methodology-quote {
  padding: var(--spacing-sm);
  background: var(--off-white);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
}

/* Innovation Section
   ========================================================================== */
.has-background-primary {
  position: relative;
  background: var(--primary-gradient);
}

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

.innovation-card .card-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.innovation-card .card-content {
  flex: 1;
  padding: var(--spacing-md);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag.is-primary {
  background: var(--primary-light);
  color: var(--white);
}

.innovation-cta {
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(5px);
  margin-top: var(--spacing-lg);
}

/* Careers Section
   ========================================================================== */
.careers-content {
  padding: var(--spacing-md) 0;
}

.career-values {
  margin-top: var(--spacing-md);
}

.value-item {
  padding: var(--spacing-sm);
  background: var(--off-white);
  border-radius: var(--radius-sm);
  height: 100%;
}

.value-item h4 {
  display: flex;
  align-items: center;
  color: var(--primary);
}

.value-item h4 span {
  margin-right: 10px;
}

.careers-positions {
  height: 100%;
}

.job-listing {
  margin-bottom: var(--spacing-sm);
}

.job-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  margin-right: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.is-hidden {
  display: none;
}

/* Contact Section
   ========================================================================== */
.contact-form-card,
.contact-info-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-form-card .card-content,
.contact-info-card .card-content {
  flex: 1;
  padding: var(--spacing-md);
}

.contact-info-item {
  display: flex;
  margin-bottom: var(--spacing-sm);
  align-items: flex-start;
}

.contact-info-item span {
  margin-right: 15px;
  color: var(--primary);
  font-size: 1.2rem;
}

.map-container {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Resources Section
   ========================================================================== */
.resource-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.resource-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-round);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

/* Footer
   ========================================================================== */
.footer {
  padding: var(--spacing-lg) 0;
  background-color: var(--dark);
  color: var(--white);
}

.footer-brand .title,
.footer-brand .subtitle {
  color: var(--white);
}

.footer-heading {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  position: relative;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--grey-light);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  color: var(--grey-light);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
}

.newsletter-form .input {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
}

.newsletter-form .input::placeholder {
  color: var(--grey-light);
}

.footer-bottom {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Special Pages
   ========================================================================== */
.privacy-content, 
.terms-content {
  padding-top: 100px;
}

.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--spacing-md);
}

/* Responsive Adjustments
   ========================================================================== */
@media screen and (max-width: 768px) {
  .section {
    padding: var(--spacing-md) 0;
  }
  
  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .hero .title.is-1 {
    font-size: 2rem !important;
  }
  
  .hero .subtitle.is-3 {
    font-size: 1.25rem !important;
  }
  
  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .contact-info-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .contact-info-item span {
    margin-right: 0;
    margin-bottom: 5px;
  }
  
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Animation & Effects
   ========================================================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Icon Styles (Font Icons)
   ========================================================================== */
[class^="icon-"] {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

.icon-book:before {
  content: "📚";
}
.icon-university:before {
  content: "🏛️";
}
.icon-museum:before {
  content: "🏛️";
}
.icon-users:before {
  content: "👥";
}
.icon-gamepad:before {
  content: "🎮";
}
.icon-book-open:before {
  content: "📖";
}
.icon-code-branch:before {
  content: "🔀";
}
.icon-lightbulb:before {
  content: "💡";
}
.icon-map-marker:before {
  content: "📍";
}
.icon-phone:before {
  content: "📱";
}
.icon-envelope:before {
  content: "✉️";
}
.icon-clock:before {
  content: "🕒";
}

/* Particles Animation
   ========================================================================== */
@keyframes particle-movement {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100px) translateX(20px);
    opacity: 0;
  }
}

.particles-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 10%),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 15%),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 8%),
    radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 12%),
    radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 10%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 8%);
  animation: particle-movement 8s linear infinite;
}