/* Google Photos inspired design - Clean, modern, spacious */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@300;400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --primary: #1a73e8;
  --secondary: #34a853;
  --danger: #ea4335;
  --warning: #fbbc05;
  --gray-50: #fafafa;
  --gray-100: #f8f9fa;
  --gray-200: #e8eaed;
  --gray-300: #dadce0;
  --gray-400: #bdc1c6;
  --gray-500: #9aa0a6;
  --gray-600: #80868b;
  --gray-700: #5f6368;
  --gray-800: #3c4043;
  --gray-900: #202124;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --font-family-display: 'Google Sans', Arial, sans-serif;
  --font-family-base: 'Roboto', Arial, sans-serif;
  --border-radius: 8px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 80px;
  --spacing-5xl: 96px;
  --spacing-6xl: 128px;
  --spacing-7xl: 192px;
  --spacing-8xl: 256px;
  --spacing-9xl: 320px;
  --spacing-10xl: 384px;
  --spacing-11xl: 448px;
  --spacing-12xl: 512px;
  --spacing-13xl: 576px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  color: var(--text-primary);
  background-color: #fff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------- Header & Navigation -------- */
nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

nav-bar.nav-hidden {
  transform: translateY(-100%);
}

header {
  background: transparent;
  border: none;
  box-shadow: none;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.logo img {
  width: auto;
  height: 32px;
}

.logo-mobile {
  display: none;
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--spacing-sm);
  gap: 4px;
}

.mobile-menu-button span {
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-button.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-button.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 14px;
  transition: color 0.2s ease;
  position: relative;
  padding: var(--spacing-sm) 0;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  font-weight: 500;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 1px;
}

.lang-switch {
  display: flex;
  gap: var(--spacing-xs);
}

.lang-switch button {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--text-secondary);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 500;
  height: 32px;
  min-width: 40px;
}

.lang-switch button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-switch button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* -------- Main Layout -------- */
body[data-home] {
  padding-top: 72px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* -------- Hero Section -------- */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
  padding: 200px 0 var(--spacing-xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  min-height: 100vh;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(26, 115, 232, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(66, 165, 245, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 115, 232, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(144, 202, 249, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 30% 90%, rgba(0, 162, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(26, 115, 232, 0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-background-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-background-shapes .shape-1 {
  position: absolute;
  top: 15%;
  left: 5%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.1), transparent 70%);
  border-radius: 50%;
  animation: floatShapeSmall1 15s ease-in-out infinite;
}

.hero-background-shapes .shape-2 {
  position: absolute;
  top: 70%;
  left: 85%;
  width: 80px;
  height: 160px;
  background: linear-gradient(180deg, rgba(66, 165, 245, 0.08), transparent);
  border-radius: 40px;
  animation: floatShapeSmall2 18s ease-in-out infinite reverse;
  transform: rotate(15deg);
}

.hero-background-shapes .shape-3 {
  position: absolute;
  top: 40%;
  left: 2%;
  width: 100px;
  height: 100px;
  background: conic-gradient(from 45deg, rgba(144, 202, 249, 0.06), transparent, rgba(26, 115, 232, 0.04), transparent);
  border-radius: 30% 70% 70% 30%;
  animation: floatShapeSmall3 22s ease-in-out infinite;
}

@keyframes floatShapeSmall1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50% { transform: translate(30px, -20px) scale(1.2); opacity: 0.4; }
}

@keyframes floatShapeSmall2 {
  0%, 100% { transform: translate(0, 0) rotate(15deg) scale(1); opacity: 0.6; }
  50% { transform: translate(-20px, 25px) rotate(25deg) scale(0.8); opacity: 0.9; }
}

@keyframes floatShapeSmall3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
  33% { transform: translate(15px, -15px) rotate(120deg); opacity: 0.3; }
  66% { transform: translate(-10px, 20px) rotate(240deg); opacity: 0.8; }
}

.hero-background-shapes::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 15%;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.08), transparent);
  border-radius: 50% 30% 50% 70%;
  animation: floatShape1 20s ease-in-out infinite;
  transform: rotate(45deg);
}

.hero-background-shapes::after {
  content: '';
  position: absolute;
  top: 60%;
  right: 10%;
  width: 150px;
  height: 300px;
  background: linear-gradient(45deg, rgba(66, 165, 245, 0.06), transparent);
  border-radius: 30% 70% 40% 60%;
  animation: floatShape2 25s ease-in-out infinite reverse;
  transform: rotate(-30deg);
}

@keyframes floatShape1 {
  0%, 100% {
    transform: translate(0, 0) rotate(45deg) scale(1);
  }
  25% {
    transform: translate(20px, -30px) rotate(55deg) scale(1.1);
  }
  50% {
    transform: translate(-10px, 20px) rotate(35deg) scale(0.9);
  }
  75% {
    transform: translate(30px, 10px) rotate(65deg) scale(1.05);
  }
}

@keyframes floatShape2 {
  0%, 100% {
    transform: translate(0, 0) rotate(-30deg) scale(1);
  }
  33% {
    transform: translate(-25px, 15px) rotate(-20deg) scale(0.95);
  }
  66% {
    transform: translate(15px, -20px) rotate(-40deg) scale(1.08);
  }
}

.hero-animation {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-width: 600px;
  max-height: 450px;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.1s ease-out;
}

/* Parallax zoom effect will be controlled by JavaScript */
.hero-animation.parallax-zoom {
  transform: translate(-50%, -50%) scale(var(--parallax-scale, 1));
}

.fractal-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(ellipse 80% 60%,
      rgba(0, 162, 255, 0.9) 0%,
      rgba(26, 115, 232, 0.7) 25%,
      rgba(66, 165, 245, 0.5) 50%,
      rgba(144, 202, 249, 0.3) 75%,
      transparent 100%);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
  filter: blur(0.5px);
  box-shadow:
    0 0 60px rgba(26, 115, 232, 0.4),
    inset 0 0 40px rgba(0, 162, 255, 0.3);
}

.fractal-sphere::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  right: 15%;
  bottom: 15%;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 162, 255, 0.8) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(26, 115, 232, 0.6) 0%, transparent 40%),
    linear-gradient(45deg,
      rgba(0, 162, 255, 0.7) 0%,
      rgba(26, 115, 232, 0.5) 50%,
      rgba(66, 165, 245, 0.3) 100%);
  border-radius: 50%;
  animation: rotate 12s linear infinite;
  opacity: 0.9;
}

.fractal-sphere::after {
  content: '';
  position: absolute;
  top: 25%;
  left: 25%;
  right: 25%;
  bottom: 25%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(0, 162, 255, 0.4) 30%,
      transparent 70%);
  border-radius: 50%;
  animation: rotate 8s linear infinite reverse;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: radial-gradient(circle, rgba(0, 162, 255, 1) 0%, rgba(26, 115, 232, 0.8) 100%);
  border-radius: 50%;
  animation: fractalFloat 8s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(0, 162, 255, 0.6);
}

.particle:nth-child(1) {
  top: 40%;
  left: 25%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 35%;
  left: 75%;
  animation-delay: 0.3s;
}

.particle:nth-child(3) {
  top: 65%;
  left: 20%;
  animation-delay: 0.6s;
}

.particle:nth-child(4) {
  top: 60%;
  left: 80%;
  animation-delay: 0.9s;
}

.particle:nth-child(5) {
  top: 25%;
  left: 45%;
  animation-delay: 1.2s;
}

.particle:nth-child(6) {
  top: 75%;
  left: 55%;
  animation-delay: 1.5s;
}

.particle:nth-child(7) {
  top: 30%;
  left: 30%;
  animation-delay: 1.8s;
}

.particle:nth-child(8) {
  top: 70%;
  left: 70%;
  animation-delay: 2.1s;
}

.particle:nth-child(9) {
  top: 45%;
  left: 15%;
  animation-delay: 2.4s;
}

.particle:nth-child(10) {
  top: 55%;
  left: 85%;
  animation-delay: 2.7s;
}

.particle:nth-child(11) {
  top: 20%;
  left: 60%;
  animation-delay: 3s;
}

.particle:nth-child(12) {
  top: 80%;
  left: 40%;
  animation-delay: 3.3s;
}

.particle-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border: 1px solid rgba(0, 162, 255, 0.3);
  border-radius: 50%;
  animation: spin 16s linear infinite;
  filter: drop-shadow(0 0 8px rgba(0, 162, 255, 0.2));
}

.particle-ring::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, rgba(0, 162, 255, 1) 0%, rgba(26, 115, 232, 0.8) 100%);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 162, 255, 0.7);
}

.particle-ring-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border: 1px solid rgba(0, 162, 255, 0.15);
  border-radius: 50%;
  animation: spin 24s linear infinite reverse;
  filter: drop-shadow(0 0 6px rgba(0, 162, 255, 0.1));
}

@keyframes pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fractalFloat {

  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.6;
  }

  25% {
    transform: translateY(-15px) translateX(8px) scale(1.1);
    opacity: 0.9;
  }

  50% {
    transform: translateY(-25px) translateX(0px) scale(1.3);
    opacity: 1;
  }

  75% {
    transform: translateY(-15px) translateX(-8px) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero h1 {
  font-family: var(--font-family-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  background: linear-gradient(45deg,
      var(--text-primary) 0%,
      var(--text-primary) 30%,
      #1a73e8 60%,
      #8e24aa 90%,
      #6a1b9a 100%);
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  margin-bottom: var(--spacing-xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  padding: 0 var(--spacing-xl);
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-top: var(--spacing-5xl);
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
  .hero h1 {
    background: none !important;
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    animation: none !important;
  }
}

.hero p {
  max-width: 650px;
  margin-bottom: var(--spacing-2xl);
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
  padding: 0 var(--spacing-xl);
  position: relative;
  z-index: 2;
}

/* -------- Buttons -------- */
.button-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  height: 48px;
  font-family: var(--font-family-display);
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 13px;
  min-width: 160px;
  justify-content: center;
}

.button-primary:hover {
  background: #1557b0;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
  transform: translateY(-1px);
  letter-spacing: 0.75px;
}

/* -------- Scroll Arrow Animation -------- */
.scroll-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--spacing-2xl);
  animation: bounce 2s infinite;
  position: relative;
  z-index: 2;
}

.arrow-down {
  width: 24px;
  height: 24px;
  border-right: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  transform: rotate(45deg);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-arrow:hover .arrow-down {
  opacity: 1;
}

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

/* -------- Sections -------- */
section {
  padding: var(--spacing-5xl) 0;
  scroll-margin-top: 90px;
}

section h1 {
  font-family: var(--font-family-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
}

section p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* -------- Partners Carousel -------- */
.partners {
  overflow: hidden;
  padding: var(--spacing-2xl) 0;
  background: var(--gray-50);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.partners-track {
  display: flex;
  gap: var(--spacing-3xl);
  align-items: center;
  animation: scroll 30s linear infinite;
}

.partners-track img {
  height: 48px;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.3s ease;
}

.partners-track img:hover {
  filter: none;
}

.partners:hover .partners-track {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* -------- Mission Section -------- */
.mission {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  padding: var(--spacing-5xl) 0;
  text-align: center;
  background: var(--gray-50);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.mission .mission-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.mission-wrapper {
  display: contents;
}

.mission img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--spacing-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mission-text {
  font-family: var(--font-family-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 600px;
  margin: 0 auto;
}

/* -------- Products Grid -------- */
#products {
  background: #fff;
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.product-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--spacing-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--gray-300);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-primary);
}

.product-info .arrow {
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.product-card:hover .arrow {
  transform: translateX(4px);
}

/* -------- Academic Section -------- */
#academic {
  background: var(--gray-50);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: var(--spacing-5xl) 0;
}

#academic .academic-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}



.academic-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.academic-post-card {
  background: #fff;
  border-radius: 8px;
  padding: var(--spacing-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.academic-post-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}



.academic-post-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.academic-post-excerpt {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 14px;
  margin: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.academic-post-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-top: auto;
}

.academic-post-read-more:hover {
  color: var(--primary-dark, #1557b0);
  text-decoration: none;
}

.academic-post-read-more svg {
  width: 14px;
  height: 14px;
}

.academic-explore-link {
  margin-top: var(--spacing-lg);
  text-align: center;
}

.academic-explore-link a {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: #fff;
}

.academic-explore-link a:hover {
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.academic-explore-link svg {
  opacity: 0.7;
}

/* Loading & Error States */
.academic-loading {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-secondary);
}

.academic-error {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--danger);
  background: rgba(234, 67, 53, 0.1);
  border-radius: 8px;
  margin: var(--spacing-lg) 0;
}

.academic-no-posts {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-secondary);
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .academic-posts-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .academic-post-card {
    margin: 0 var(--spacing-sm);
  }
  
  .academic-posts-header {
    margin-bottom: var(--spacing-lg);
  }
  
  .academic-posts-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  #academic .academic-content {
    padding: 0 var(--spacing-md);
  }
  
  .academic-post-content {
    padding: var(--spacing-md);
  }
  
  .academic-post-title {
    font-size: 18px;
  }
}

/* -------- Contact Form -------- */
#contact {
  background: var(--gray-50);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: var(--spacing-5xl) 0;
}

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

#contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

input,
textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 16px;
  background: #fff;
  color: var(--text-primary);
  transition: all 0.2s ease;
  font-family: var(--font-family-base);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-family-base);
}

#contact button {
  align-self: flex-start;
}

/* Form validation styles */
input.error,
textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(234, 67, 53, 0.1);
}

.field-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
  display: none;
  font-weight: 400;
  line-height: 1.4;
}

.field-error[style*="display: block"] {
  display: block !important;
}

/* Enhanced Loading state for submit button */
.button-primary.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  overflow: hidden;
}

.button-primary.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 1.5s infinite;
  z-index: 1;
}

.button-primary.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 2;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Form Modal Styles - Complementares aos estilos inline do componente */
.form-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: var(--spacing-lg);
}

.form-modal-overlay--active {
  opacity: 1;
}

.form-modal {
  background: #fff;
  border-radius: 16px;
  padding: var(--spacing-xl);
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.form-modal--active {
  transform: translateY(0) scale(1);
}

.form-modal__content {
  text-align: center;
}

.form-modal__icon {
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.form-modal__icon--success {
  color: var(--secondary, #34a853);
}

.form-modal__icon--error {
  color: var(--danger, #ea4335);
}

.form-modal__icon--loading {
  color: var(--primary, #1a73e8);
}

.form-modal__title {
  font-family: var(--font-family-display, 'Google Sans', Arial, sans-serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 var(--spacing-md);
  color: var(--text-primary, #202124);
}

.form-modal__message {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary, #5f6368);
  margin: 0 0 var(--spacing-xl);
}

.form-modal__close {
  margin: 0 auto;
  min-width: 120px;
}

/* Loading spinner animation for modal - Animação aprimorada */
.loading-spinner {
  animation: spin 1s linear infinite;
  transform-origin: center center;
  display: block;
  margin: 0 auto;
}

.loading-spinner circle {
  animation: loading-dash 2s ease-in-out infinite;
  stroke-linecap: round;
}

@keyframes loading-dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Responsive modal */
@media (max-width: 768px) {
  .form-modal {
    padding: var(--spacing-lg);
    max-width: 320px;
  }
  
  .form-modal__title {
    font-size: 18px;
  }
  
  .form-modal__message {
    font-size: 14px;
  }
  
  .form-modal__icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .form-modal-overlay {
    padding: var(--spacing-md);
  }
  
  .form-modal {
    padding: var(--spacing-md);
    max-width: 280px;
  }
}

/* Character counter (opcional) */
.character-counter {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  margin-top: var(--spacing-xs);
}

.character-counter.error {
  color: var(--danger);
}

/* Better focus states */
input:focus:not(.error),
textarea:focus:not(.error) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Improved accessibility */
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

/* Mobile improvements */
@media (max-width: 768px) {
  .form-message {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    font-size: 14px;
  }
  
  .field-error {
    font-size: 12px;
  }
}

/* -------- Footer -------- */
footer {
  background: var(--gray-100);
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid var(--gray-200);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

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

.footer-content {
  margin-bottom: var(--spacing-xl);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-2xl);
}

.footer-column h4 {
  font-family: var(--font-family-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

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

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

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 14px;
  line-height: 1.5;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--gray-200);
}

.footer-bottom-left .footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.7;
}

.footer-bottom-center {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-bottom-center a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 14px;
}

.footer-bottom-center a:hover {
  color: var(--primary);
}

.lang-switch-footer {
  display: flex;
  gap: var(--spacing-xs);
}

.lang-switch-footer button {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--text-secondary);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 500;
  height: 32px;
  min-width: 60px;
}

.lang-switch-footer button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-switch-footer button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Social Media Icons */
.social-media {
  margin-top: 0;
}

.social-icons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--gray-500);
  transition: all 0.2s ease;
  border: 1px solid var(--gray-300);
}

.social-icons a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(26, 115, 232, 0.05);
  transform: translateY(-1px);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

/* -------- Scroll to Top Button -------- */
.scroll-to-top {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.scroll-to-top:hover {
  background: #1557b0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top svg {
  display: block;
  margin: 0 auto;
}

/* -------- Responsive Design -------- */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 16px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;
    --spacing-4xl: 48px;
    --spacing-5xl: 64px;
  }

  .hero-animation {
    top: 30%;
    max-width: 450px;
    max-height: 350px;
  }

  .hero-background-shapes .shape-1,
  .hero-background-shapes .shape-2,
  .hero-background-shapes .shape-3 {
    animation-duration: 20s;
  }

  .hero-background-shapes::before,
  .hero-background-shapes::after {
    animation-duration: 30s;
  }

  .hero h1 {
    /* Ensure gradient still works on mobile */
    background-size: 250% 100%;
    animation-duration: 3s;
  }

  nav {
    padding: var(--spacing-md) var(--spacing-xl);
    height: 72px;
  }

  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
    height: 28px;
  }

  .mobile-menu-button {
    display: flex;
  }

  .nav-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--spacing-xl);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 0;
  }

  .nav-content.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
  }

  .nav-links a {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
  }

  .lang-switch {
    justify-content: center;
  }

  body[data-home] {
    padding-top: 72px;
  }

  .hero {
    padding: var(--spacing-5xl) 0 var(--spacing-3xl) 0;
    min-height: 100vh;
  }

  .hero h1 {
    font-size: 2.25rem;
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
  }

  .hero p {
    font-size: 16px;
    margin-bottom: var(--spacing-xl);
  }

  .mission {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }

  .mission .mission-content {
    gap: var(--spacing-xl);
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  section {
    padding: var(--spacing-3xl) 0;
  }

  .button-primary {
    font-size: 12px;
    padding: var(--spacing-sm) var(--spacing-lg);
    min-width: 140px;
  }
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: center;
  }
  
  .footer-bottom-center {
    order: -1;
  }
}

@media (max-width: 480px) {
  .hero-animation {
    top: 30%;
    max-width: 350px;
    max-height: 250px;
  }

  .hero h1 {
    /* Simplify gradient on small screens for better performance */
    background-size: 200% 100%;
    animation-duration: 2.5s;
  }

  .nav-content {
    padding: var(--spacing-lg);
    gap: 0;
  }

  .nav-links {
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
  }

  .nav-links a {
    font-size: 16px;
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-column h4 {
    font-size: 14px;
  }
  

  
  .social-icons a {
    width: 32px;
    height: 32px;
  }
  
  .social-icons svg {
    width: 16px;
    height: 16px;
  }
  
  .scroll-to-top {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 44px;
    height: 44px;
  }

  .hero h1 {
    font-size: 3rem;
    margin-top: var(--spacing-7xl);
  }

  .hero p {
    font-size: 16px;
  }

  .mission-text {
    font-size: 1.25rem;
  }

  .hero {
    min-height: 90vh;
    padding: var(--spacing-5xl) 0 var(--spacing-2xl) 0;
  }

  section {
    padding: var(--spacing-2xl) 0;
  }
}

/* -------- Legal Pages Styles (Terms & Privacy) -------- */
.legal-document {
  padding: var(--spacing-5xl) var(--spacing-lg) var(--spacing-3xl);
  max-width: 1000px;
  margin: 0 auto;
}

.legal-container {
  background: transparent;
  padding: var(--spacing-3xl);
  margin-top: var(--spacing-2xl);
}

.legal-document h1 {
  font-family: var(--font-family-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.last-updated {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--gray-200);
}

.last-updated p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.terms-section,
.privacy-section {
  margin-bottom: var(--spacing-3xl);
}

.terms-section h2,
.privacy-section h2 {
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--gray-100);
}

.terms-section h3,
.privacy-section h3 {
  font-family: var(--font-family-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
}

.terms-section p,
.privacy-section p {
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  text-align: justify;
}

.terms-section ul,
.privacy-section ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-xl);
}

.terms-section li,
.privacy-section li {
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.legal-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
  .legal-document {
    padding: var(--spacing-3xl) var(--spacing-md) var(--spacing-lg);
    margin-top: var(--spacing-4xl);
  }
  
  .legal-container {
    padding: var(--spacing-xl);
  }
  
  .legal-document h1 {
    font-size: 2rem;
  }
  
  .terms-section h2,
  .privacy-section h2 {
    font-size: 1.3rem;
  }
  
  .terms-section h3,
  .privacy-section h3 {
    font-size: 1.1rem;
  }
  
  .terms-section p,
  .privacy-section p {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .legal-document h1 {
    font-size: 1.8rem;
  }
  
  .legal-container {
    padding: var(--spacing-lg);
  }
}