/* ===== VARIABLES ===== */
:root {
  /* Colors - Neo-Brutalist Pastel Palette */
  --color-primary: #FF90E8;
  --color-primary-dark: #D66BC5;
  --color-secondary: #9CEAEF;
  --color-secondary-dark: #7BBFC3;
  --color-accent: #FFD700;
  --color-accent-dark: #D4B200;
  --color-dark: #2D3142;
  --color-light: #F9F9F9;
  --color-gray: #B0B0B0;
  --color-gray-light: #E0E0E0;
  --color-success: #93E1D8;
  --color-warning: #FFA62B;
  --color-error: #FF6B6B;
  
  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-width: 3px;
  
  /* Shadows */
  --shadow-sm: 4px 4px 0 rgba(0, 0, 0, 0.8);
  --shadow-md: 8px 8px 0 rgba(0, 0, 0, 0.8);
  --shadow-lg: 12px 12px 0 rgba(0, 0, 0, 0.8);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

p {
  margin-bottom: var(--spacing-md);
}

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

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

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

ul {
  list-style-position: inside;
  margin-bottom: var(--spacing-md);
}

/* ===== BUTTONS ===== */
.button {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: var(--border-width) solid transparent;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

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

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

.button.is-primary:hover {
  background-color: var(--color-primary-dark);
}

.button.is-outlined {
  background-color: transparent;
  border-color: currentColor;
}

.button.is-outlined:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.button.is-rounded {
  border-radius: 2rem;
}

.button.is-large {
  font-size: 1.25rem;
  padding: var(--spacing-md) var(--spacing-xl);
}

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

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

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background-color var(--transition-normal);
  border-bottom: var(--border-width) solid transparent;
}

.header.scrolled {
  background-color: var(--color-light);
  border-bottom-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand h1 {
  margin-bottom: 0;
  font-size: 1.75rem;
  color: var(--color-primary);
}

.navbar-menu {
  display: flex;
}

.navbar-item {
  margin-left: var(--spacing-lg);
  position: relative;
  font-weight: 500;
}

.navbar-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 3px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}

.navbar-item:hover::after {
  width: 100%;
}

.navbar-burger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.navbar-burger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: var(--color-dark);
  border-radius: 3px;
  transition: all var(--transition-normal);
}

.navbar-burger span:nth-child(1) {
  top: 0;
}

.navbar-burger span:nth-child(2) {
  top: 10px;
}

.navbar-burger span:nth-child(3) {
  top: 20px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding-top: 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  z-index: 0;
}

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

.hero .title,
.hero .subtitle,
.hero p {
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
}

.hero .buttons {
  margin-top: var(--spacing-lg);
}

.hero .has-text-white {
  color: white !important;
}

/* ===== CARD STYLES ===== */
.card {
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: var(--border-width) solid var(--color-dark);
  display: flex;
  flex-direction: column;
}

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

.card-image {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

.card-content {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content .title {
  margin-top: 0;
  color: var(--color-dark);
}

/* ===== ABOUT SECTION ===== */
#about .columns {
  margin-top: var(--spacing-xl);
}

/* ===== VISION SECTION ===== */
#vision .card {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HISTORY SECTION ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 4px;
  background-color: var(--color-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
  padding-left: 50px;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 4px solid white;
  box-shadow: 0 0 0 4px var(--color-primary);
  z-index: 1;
}

.timeline-content {
  background-color: white;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  border: var(--border-width) solid var(--color-dark);
}

.timeline-content .heading {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

/* ===== RESEARCH SECTION ===== */
.progress-container {
  margin-bottom: var(--spacing-lg);
}

.progress {
  height: 25px;
  border-radius: var(--border-radius-md);
  background-color: var(--color-gray-light);
  overflow: hidden;
}

.progress::-webkit-progress-bar {
  background-color: var(--color-gray-light);
}

.progress::-webkit-progress-value {
  background-color: var(--color-primary);
}

.progress::-moz-progress-bar {
  background-color: var(--color-primary);
}

/* ===== PORTFOLIO SECTION ===== */
#portfolio .card {
  height: 100%;
}

/* ===== PROJECTS SECTION ===== */
#projects .image-container {
  height: 400px;
}

/* ===== RESOURCES SECTION ===== */
.resource-links {
  margin-top: var(--spacing-lg);
}

.resource-links .card {
  height: 100%;
  padding: var(--spacing-md);
}

.resource-links ul {
  list-style-type: none;
}

.resource-links li {
  margin-bottom: var(--spacing-sm);
}

.resource-links a {
  display: inline-block;
  position: relative;
  padding-left: var(--spacing-md);
}

.resource-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  transition: transform var(--transition-fast);
}

.resource-links a:hover::before {
  transform: translateX(3px);
}

/* ===== CONTACT SECTION ===== */
.contact-form .field {
  margin-bottom: var(--spacing-lg);
}

.contact-form .label {
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--color-dark);
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form .button {
  margin-top: var(--spacing-lg);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--color-dark);
  color: white;
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xxl);
}

.footer .title {
  color: var(--color-primary);
}

.footer p {
  margin-bottom: var(--spacing-sm);
}

.footer a {
  color: var(--color-secondary);
}

.footer a:hover {
  color: var(--color-secondary-dark);
}

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

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

.footer hr {
  margin: var(--spacing-lg) 0;
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.social-links p {
  margin-bottom: var(--spacing-xs);
}

.social-links a {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.social-links a:hover {
  transform: translateX(5px);
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* For drawing animations */
@keyframes draw {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.draw-animation {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2s forwards;
}

/* ===== UTILITIES ===== */
.has-text-centered {
  text-align: center;
}

.has-text-right {
  text-align: right;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-lg);
}

.success-content {
  max-width: 600px;
  padding: var(--spacing-xl);
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: var(--border-width) solid var(--color-dark);
}

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

/* ===== PRIVACY & TERMS PAGES ===== */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

.privacy-content,
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: var(--border-width) solid var(--color-dark);
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: var(--spacing-md);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    border-bottom: var(--border-width) solid var(--color-dark);
  }
  
  .navbar-menu.is-active {
    display: flex;
  }
  
  .navbar-item {
    margin-left: 0;
    margin-bottom: var(--spacing-md);
  }
  
  .navbar-burger {
    display: block;
  }
  
  .columns {
    flex-direction: column;
  }
  
  .column {
    width: 100% !important;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
  }
  
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .card-image .image-container {
    height: 200px;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-marker {
    width: 18px;
    height: 18px;
  }
  
  .timeline-item {
    padding-left: 40px;
  }
}