/* Base Variables */
:root {
  /* Tetrad Color Scheme */
  --primary: #3273dc;
  --primary-dark: #2160c4;
  --primary-light: #4a89e8;
  
  --secondary: #dc3232;
  --secondary-dark: #c41c1c;
  --secondary-light: #e84a4a;
  
  --tertiary: #32dc82;
  --tertiary-dark: #1cb46a;
  --tertiary-light: #4ae89a;
  
  --quaternary: #dc9b32;
  --quaternary-dark: #c4841c;
  --quaternary-light: #e8b34a;
  
  /* Neutral Colors */
  --dark: #363636;
  --dark-2: #4a4a4a;
  --dark-3: #707070;
  --light: #f5f5f5;
  --light-2: #e8e8e8;
  --light-3: #d4d4d4;
  
  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  /* Borders & Shadows */
  --border-radius: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  
  /* Transition */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
html, body {
  font-family: var(--font-body);
  color: var(--dark);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.section {
  padding: var(--spacing-xl) var(--spacing-md);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

/* Navbar Styles */
.navbar {
  transition: all var(--transition-medium);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.navbar.is-fixed-top {
  backdrop-filter: blur(10px);
}

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

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

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

.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;
  transform: scale(1.05);
  transition: transform var(--transition-slow);
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.7) 100%);
}

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

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

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

.hero-body .subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--spacing-md);
}

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

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

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

.button.is-light {
  background-color: transparent;
  border-color: white;
  color: white;
}

.button.is-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.button.is-primary.is-outlined {
  color: var(--primary);
  border-color: var(--primary);
}

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

/* Cards */
.card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  width: 100%;
  overflow: hidden;
}

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

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

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

.card-content .title {
  margin-bottom: var(--spacing-sm);
}

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

/* Portfolio Section */
.portfolio-section {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.portfolio-section::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  background-color: rgba(50, 115, 220, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.portfolio-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 300px;
  height: 300px;
  background-color: rgba(220, 50, 50, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.portfolio-tabs {
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-lg);
}

.portfolio-tabs ul {
  border-bottom-color: var(--primary);
}

.portfolio-tabs li a {
  font-family: var(--font-heading);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.portfolio-tabs li.is-active a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
  animation: fadeIn var(--transition-medium);
}

.tab-content.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 1; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.image-container {
  height: 300px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

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

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

/* Team Section */
.team-section {
  background-color: white;
  position: relative;
}

.team-card {
  text-align: center;
}

.team-card .card-image {
  height: 250px;
}

.team-card .card-content {
  padding-top: var(--spacing-md);
}

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

.team-card .subtitle {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

/* Innovation Section */
.innovation-section {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.innovation-card .card-image {
  height: 240px;
}

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

/* Projects Section */
.projects-section {
  background-color: white;
}

.project-card {
  text-align: center;
}

.project-card .card-image {
  height: 220px;
}

.project-card .title {
  color: var(--quaternary-dark);
}

.project-card .tags {
  justify-content: center;
  margin-top: var(--spacing-sm);
}

.project-card .tag {
  background-color: var(--quaternary-light);
  color: white;
  font-weight: 500;
}

/* Resources Section */
.resources-section {
  background-color: var(--light);
}

.resource-card {
  height: 100%;
}

.resource-card .title {
  font-size: 1.25rem;
  color: var(--dark);
  line-height: 1.4;
}

.resource-card a.button {
  margin-top: auto;
}

/* Events Section */
.events-section {
  background-color: white;
}

.event-card {
  position: relative;
  overflow: hidden;
}

.event-card .card-image {
  height: 220px;
}

.event-date {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  z-index: 2;
}

.event-date .tag {
  font-family: var(--font-heading);
  font-weight: 600;
}

.event-card .title {
  color: var(--tertiary-dark);
}

/* Accolades Section */
.accolades-section {
  background-color: var(--light);
}

.accolade-card {
  text-align: center;
}

.accolade-card .card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
}

.accolade-card .title {
  color: var(--primary);
  font-size: 1.25rem;
}

.testimonial-card {
  background-color: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 6rem;
  color: var(--primary-light);
  opacity: 0.2;
  font-family: var(--font-heading);
  line-height: 1;
}

.testimonial-card p {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  margin-top: var(--spacing-md);
  text-align: right;
}

/* Community Section */
.community-section {
  background-color: white;
}

.community-card .card-image {
  height: 240px;
}

.community-card .title {
  color: var(--secondary-dark);
}

.newsletter-form {
  margin-top: var(--spacing-md);
}

/* Contact Section */
.contact-section {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

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

.contact-item {
  margin-bottom: var(--spacing-md);
}

.contact-item strong {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--primary);
}

.map-container {
  height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.contact-form .label {
  color: var(--dark);
  font-weight: 600;
}

.contact-form .input, 
.contact-form .textarea, 
.contact-form .select select {
  border-radius: var(--border-radius);
  border-color: var(--light-3);
  box-shadow: none;
  transition: all var(--transition-fast);
}

.contact-form .input:focus, 
.contact-form .textarea:focus, 
.contact-form .select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(50, 115, 220, 0.25);
}

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

.footer .title {
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer p {
  color: var(--light-2);
}

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

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

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

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.footer-social li {
  margin-right: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
}

.footer-social a {
  color: var(--light-2);
  transition: color var(--transition-fast);
  display: inline-block;
  font-weight: 500;
}

.footer-social a:hover {
  color: var(--primary-light);
}

.footer-newsletter .input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.footer-newsletter .input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter .input:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.15);
}

/* Cookie Consent */
#cookie-consent {
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

#cookie-consent a {
  text-decoration: underline;
}

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

.success-content {
  text-align: center;
  padding: var(--spacing-xl);
  max-width: 600px;
}

.success-icon {
  font-size: 4rem;
  color: var(--tertiary);
  margin-bottom: var(--spacing-md);
}

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

.privacy-content, .terms-content {
  background-color: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.privacy-content h2, .terms-content h2 {
  color: var(--primary);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.privacy-content p, .terms-content p {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

/* Tags */
.tag {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 20px;
  padding: 0.25em 1em;
}

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

.tag.is-success {
  background-color: var(--tertiary);
  color: white;
}

.tag.is-warning {
  background-color: var(--quaternary);
  color: white;
}

.tag.is-danger {
  background-color: var(--secondary);
  color: white;
}

/* Parallax Effects */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Responsive Adjustments */
@media screen and (max-width: 1023px) {
  .hero-body .title {
    font-size: 2.5rem;
  }
  
  .hero-body .subtitle {
    font-size: 1.25rem;
  }
  
  .section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .tab-content .columns {
    flex-direction: column-reverse;
  }
  
  .image-container {
    margin-bottom: var(--spacing-md);
  }
}

@media screen and (max-width: 768px) {
  .hero-body .title {
    font-size: 2rem;
  }
  
  .hero-body .subtitle {
    font-size: 1.1rem;
  }
  
  .accolade-card {
    margin-bottom: var(--spacing-md);
  }
  
  .team-card, 
  .innovation-card, 
  .project-card, 
  .event-card, 
  .community-card {
    margin-bottom: var(--spacing-md);
  }
  
  .footer {
    text-align: center;
  }
  
  .footer-links, 
  .footer-social {
    margin-bottom: var(--spacing-lg);
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .testimonial-card {
    margin-bottom: var(--spacing-md);
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn var(--transition-medium);
}

.slide-up {
  animation: slideUp var(--transition-medium);
}

@keyframes slideUp {
  from { opacity: 1; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Curved Grid Effect */
.curved-grid {
  position: relative;
}

.curved-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(50, 115, 220, 0.05) 0%, rgba(220, 50, 50, 0.05) 100%);
  clip-path: ellipse(80% 60% at 50% 40%);
  z-index: -1;
}

/* Read More Links */
.read-more {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-right: 20px;
  transition: all var(--transition-fast);
}

.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%);
}

/* Glassmorphism Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Utility Classes */
.has-text-primary { color: var(--primary) !important; }
.has-text-secondary { color: var(--secondary) !important; }
.has-text-tertiary { color: var(--tertiary) !important; }
.has-text-quaternary { color: var(--quaternary) !important; }

.has-bg-primary { background-color: var(--primary) !important; }
.has-bg-secondary { background-color: var(--secondary) !important; }
.has-bg-tertiary { background-color: var(--tertiary) !important; }
.has-bg-quaternary { background-color: var(--quaternary) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-xs) !important; }
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mb-5 { margin-bottom: var(--spacing-xl) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-xs) !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }
.mt-5 { margin-top: var(--spacing-xl) !important; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}