/* ===== Base Styles and Variables ===== */
:root {
  /* Primary Colors */
  --primary-color: #4e54c8;
  --primary-color-dark: #3e44a9;
  --primary-color-light: #7b7fdd;
  
  /* Secondary Colors */
  --secondary-color: #8258ea;
  --secondary-color-dark: #6040c7;
  --secondary-color-light: #a584f2;
  
  /* Accent Colors */
  --accent-color: #43cea2;
  --accent-color-dark: #37b68c;
  --accent-color-light: #6eefc5;
  
  /* Neutral Colors */
  --dark-color: #333333;
  --light-color: #ffffff;
  --gray-color: #f5f5f5;
  --gray-color-dark: #e0e0e0;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --accent-gradient: linear-gradient(135deg, var(--accent-color), #185a9d);
  --dark-gradient: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
  --light-gradient: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  
  /* Shadows for Neuromorphism */
  --neuro-shadow-light: 12px 12px 24px rgba(163, 177, 198, 0.4), -12px -12px 24px rgba(255, 255, 255, 0.8);
  --neuro-shadow-dark: 5px 5px 10px rgba(0, 0, 0, 0.2), -5px -5px 10px rgba(255, 255, 255, 0.05);
  --neuro-shadow-inset: inset 3px 3px 6px rgba(0, 0, 0, 0.1), inset -3px -3px 6px rgba(255, 255, 255, 0.7);
  
  /* Border Radius */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
}

/* ===== Global Styles ===== */
body {
  font-family: 'Work Sans', sans-serif;
  color: var(--dark-color);
  background-color: #f8f9fa;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

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

a:hover {
  color: var(--primary-color-dark);
  text-decoration: none;
}

.section {
  padding: 5rem 0;
}

.container {
  padding: 0 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
}

/* ===== Neuromorphic Elements ===== */
.neuromorphic-card {
  background-color: #f0f2f5;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--neuro-shadow-light);
  padding: var(--spacing-md);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.neuromorphic-card:hover {
  transform: translateY(-5px);
  box-shadow: 16px 16px 32px rgba(163, 177, 198, 0.5), -16px -16px 32px rgba(255, 255, 255, 0.9);
}

.neuromorphic-button {
  position: relative;
  overflow: hidden;
  border: none;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--neuro-shadow-dark);
  transition: all 0.3s ease;
  font-weight: 600;
  z-index: 1;
}

.neuromorphic-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.neuromorphic-button:hover {
  transform: translateY(-3px);
  box-shadow: 7px 7px 14px rgba(0, 0, 0, 0.25), -7px -7px 14px rgba(255, 255, 255, 0.1);
  color: white;
}

.neuromorphic-button:hover::before {
  opacity: 1;
}

.neuromorphic-input, 
.neuromorphic-textarea, 
.neuromorphic-select select {
  background-color: #f0f2f5;
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--neuro-shadow-inset);
  padding: 1rem;
  transition: all 0.3s ease;
}

.neuromorphic-input:focus, 
.neuromorphic-textarea:focus, 
.neuromorphic-select select:focus {
  outline: none;
  box-shadow: var(--neuro-shadow-inset), 0 0 0 3px rgba(78, 84, 200, 0.1);
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar {
  min-height: 80px;
}

.navbar-brand {
  font-weight: 700;
}

.navbar-item {
  font-weight: 500;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

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

.navbar-burger {
  height: 4rem;
  width: 4rem;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.5s ease;
}

.hero-body {
  z-index: 2;
  padding: 9rem 1.5rem;
}

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

.hero .title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.scroll-down {
  display: inline-block;
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* ===== Our Process Section ===== */
.process-section {
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(rgba(78, 84, 200, 0.05) 8%, transparent 8%);
  background-position: 0 0;
  background-size: 30px 30px;
  top: -50%;
  left: -50%;
  z-index: 0;
  transform: rotate(30deg);
}

.timeline {
  position: relative;
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  left: -10px;
  top: 10px;
  border-radius: 50%;
  background: var(--primary-gradient);
  box-shadow: 0 0 0 4px rgba(78, 84, 200, 0.2);
}

.timeline-content {
  padding-left: 1.5rem;
}

.process-statistics {
  margin-top: 4rem;
}

.statistic-widget {
  text-align: center;
  padding: 2rem;
}

.statistic-icon {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  color: var(--primary-color);
}

.statistic-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.statistic-label {
  font-size: 1.1rem;
  color: var(--dark-color);
}

/* ===== Services Section ===== */
.services-section {
  position: relative;
  background-color: #ffffff;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-image {
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  margin-bottom: 1rem;
}

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

/* ===== External Resources Section ===== */
.resources-section {
  background-color: #f0f2f5;
}

.resource-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resource-card h3 {
  margin-bottom: 1rem;
}

.resource-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.resource-card a.button {
  align-self: flex-start;
}

/* ===== Awards Section ===== */
.awards-section {
  background-color: #ffffff;
}

.award-card {
  text-align: center;
  height: 100%;
}

.award-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.award-image img {
  max-height: 100%;
  object-fit: contain;
}

.award-content h3 {
  margin-bottom: 0.5rem;
}

/* ===== Partners Section ===== */
.partners-section {
  background-color: #f0f2f5;
}

.partner-card {
  text-align: center;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.partner-card img {
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.partner-name {
  font-weight: 600;
}

/* ===== Behind the Scenes Section ===== */
.behind-scenes-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
}

.behind-scenes-card {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--dark-color);
}

/* ===== Blog Section ===== */
.blog-section {
  background-color: #ffffff;
}

.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-image {
  height: 250px;
  overflow: hidden;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  color: #888;
  margin-bottom: 1rem;
}

.blog-content p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.blog-content a.button {
  align-self: flex-start;
}

/* ===== Community Section ===== */
.community-section {
  background-color: #f0f2f5;
}

.community-image {
  height: 400px;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  margin-bottom: 1.5rem;
}

.community-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.testimonial-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--neuro-shadow-light);
}

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

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  margin-bottom: 0;
}

.testimonial-position {
  color: #888;
}

/* ===== Media Section ===== */
.media-section {
  background-color: #ffffff;
}

.media-card {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media-card img {
  height: 150px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.press-card {
  height: 100%;
}

.press-date {
  color: #888;
  margin-bottom: 1rem;
}

/* ===== Careers Section ===== */
.careers-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
}

.career-content, .open-positions {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--dark-color);
}

.job-listing {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-color-dark);
}

.job-listing:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* ===== Contact Section ===== */
.contact-section {
  background-color: #f0f2f5;
}

.contact-form, .contact-info {
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item .icon {
  margin-right: 1rem;
  color: var(--primary-color);
}

.social-media .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== Footer Section ===== */
.footer {
  background-color: #2d3748;
  color: white;
  padding: 5rem 0 2rem;
}

.footer h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

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

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer .social-links a {
  margin-right: 1rem;
}

.footer hr {
  background-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* ===== Success Page ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-content {
  max-width: 600px;
}

.success-icon {
  font-size: 5rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

/* ===== Privacy & Terms Pages ===== */
.privacy-page, .terms-page {
  padding-top: 100px;
}

.privacy-content, .terms-content {
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--neuro-shadow-light);
  padding: 3rem;
  margin-bottom: 3rem;
}

/* ===== Animation Effects ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== Responsive Styles ===== */
@media screen and (max-width: 1023px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .community-image {
    height: 300px;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  
  .hero-body {
    padding: 6rem 1.5rem;
  }
  
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .timeline-marker {
    left: 0;
  }
  
  .community-image {
    height: 250px;
  }
  
  .contact-form, .contact-info {
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero-body {
    padding: 5rem 1rem;
  }
  
  .hero .title {
    font-size: 1.8rem;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
  }
}

/* ===== Custom Scroll Bar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--primary-color-dark), var(--secondary-color-dark));
}

.image.is-4by3 {
  width: 100%;
}

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

@media (max-width:768px){
    header {
      position: relative !important;
    }
    .contact-item {
      flex-direction: column !important;
    }
}

@media (min-width:768px){
    main {
          padding-top: 80px;
    }
    
}

body {
  overflow-x: hidden !important;
}