/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/* Theme Variables */
:root {
  --primary-bg: #f8f8ff;
  --secondary-bg: #ffffff;
  --text-color: #343434;
  --nav-bg: #343434;
  --nav-text: #f8f8ff;
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --link-color: #26a69a;
  --border-color: rgba(0, 0, 0, 0.1);
  --hover-bg: rgba(0, 0, 0, 0.02);
  --warning-bg: #fff3cd;
  --warning-text: #856404;
  --danger-bg: #f8d7da;
  --danger-text: #721c24;
  --info-bg: #cce5ff;
  --info-text: #004085;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --primary-bg: #121212;
    --secondary-bg: #1e1e1e;
    --text-color: #ffffff;
    --nav-bg: #000000;
    --nav-text: #ffffff;
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0, 0, 0, 0.5);
    --link-color: #4db6ac;
    --border-color: rgba(255, 255, 255, 0.15);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --warning-bg: #332701;
    --warning-text: #ffd970;
    --danger-bg: #2c0b0e;
    --danger-text: #f8d7da;
    --info-bg: #002752;
    --info-text: #9fcdff;
    color-scheme: dark;
  }
}

[data-theme="dark"] {
  --primary-bg: #121212;
  --secondary-bg: #1e1e1e;
  --text-color: #ffffff;
  --nav-bg: #000000;
  --nav-text: #ffffff;
  --card-bg: #2d2d2d;
  --card-shadow: rgba(0, 0, 0, 0.5);
  --link-color: #4db6ac;
  --border-color: rgba(255, 255, 255, 0.15);
  --hover-bg: rgba(255, 255, 255, 0.1);
  --warning-bg: #332701;
  --warning-text: #ffd970;
  --danger-bg: #2c0b0e;
  --danger-text: #f8d7da;
  --info-bg: #002752;
  --info-text: #9fcdff;
  color-scheme: dark;
}

[data-theme="dark"] .card-panel {
  background-color: var(--card-bg);
  border: none !important;
  box-shadow: none !important;
}

[data-theme="dark"] .yellow.lighten-4 {
  background-color: var(--warning-bg) !important;
  color: var(--warning-text) !important;
}

[data-theme="dark"] .red.lighten-5 {
  background-color: var(--danger-bg) !important;
  color: var(--danger-text) !important;
}

[data-theme="dark"] .flow-text {
  color: var(--text-color);
}

[data-theme="dark"] .card-panel h4 {
  color: var(--text-color);
}

[data-theme="dark"] .material-icons {
  color: var(--link-color);
}

[data-theme="dark"] a {
  color: var(--link-color);
}

[data-theme="dark"] .collection,
[data-theme="dark"] .collection-item {
  background-color: transparent !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] h3.center-align {
  color: var(--text-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card-panel.yellow.lighten-4 h4,
[data-theme="dark"] .card-panel.red.lighten-5 h4 {
  color: inherit;
}

[data-theme="dark"] ul li {
  color: var(--text-color);
}

[data-theme="dark"] pre {
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

html {
  font-family: "Open Sans Condensed";
}

.logo {
  margin: 5px 0px;
  height: 55px;
}

.brand {
  margin: 0px 10px;
  position: absolute;
}

.side-nav-heading {
  margin: 20px 0px;
  font-size: 1.9rem;
  text-align: center;
}

.side-nav li:hover {
  background-color: transparent;
}

.jet {
  background-color: var(--nav-bg);
}

.jet-text {
  color: var(--text-color);
}

.jet-hover:hover {
  background-color: transparent;
}

.ghost-white {
  background-color: var(--primary-bg);
}

.ghost-white-text {
  color: var(--nav-text);
}

.ghost-white-hover:hover {
  background-color: transparent;
}

.side-nav li {
  padding: 0;
}

.justify-align {
  text-align: justify;
}

.divider {
  border: 0;
  height: 1px;
  background: var(--nav-bg);
  background-image: linear-gradient(to right,
      var(--primary-bg),
      var(--nav-bg),
      var(--primary-bg));
}

.divider-inverse {
  background: var(--primary-bg);
  background-image: linear-gradient(to right,
      var(--nav-bg),
      var(--primary-bg),
      var(--nav-bg));
}

.link-inverse {
  color: var(--nav-text);
  transition: opacity 0.2s ease;
}

.link-inverse:hover {
  opacity: 0.9;
  color: var(--nav-text);
}

.circle-list-style {
  padding: 0px 20px;
  list-style-type: circle;
  list-style-position: inside;
}

footer.page-footer {
  background-color: var(--nav-bg);
  color: var(--nav-text);
}

/* Theme-aware transitions */
* {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Base styles with theme variables */
body {
  background-color: var(--primary-bg);
  color: var(--text-color);
}

nav {
  background-color: var(--nav-bg);
  color: var(--nav-text);
}

/* Card styles */
.card-panel {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 4px var(--card-shadow);
}

/* Notice panels */
.card-panel.yellow.lighten-4 {
  background-color: var(--warning-bg);
  color: var(--warning-text);
}

.card-panel.red.lighten-5 {
  background-color: var(--danger-bg);
  color: var(--danger-text);
}

/* Text and headings */
h3,
h4,
h5,
h6 {
  color: var(--text-color);
}

.flow-text {
  color: var(--text-color);
}

/* Links */
a {
  color: var(--link-color);
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.9;
}

/* List items */
main.container .collection,
.collection,
#about .collection {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  margin: 0.5rem 0 1rem 0;
}

main.container .collection .collection-item,
.collection .collection-item,
#about .collection-item {
  background-color: transparent !important;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color) !important;
  padding-left: 0;
}

main.container .collection .collection-item:last-child,
.collection .collection-item:last-child,
#about .collection-item:last-child {
  border-bottom: none !important;
}

#about .collection {
  border: 1px solid #e0e0e0 !important;
  border-radius: 2px;
  background-color: transparent !important;
  margin: 0.5rem 0 1rem 0;
  box-shadow: none !important;
  overflow: hidden;
}

#about .collection .collection-item {
  background-color: transparent !important;
  border-bottom: 1px solid #e0e0e0 !important;
  line-height: 1.5rem;
  padding: 15px 20px;
}

#about .collection .collection-item:last-child {
  border-bottom: none !important;
}

#about .collection-item i.tiny {
  margin-top: 3px;
}

#about .collection-item span {
  display: block;
  margin-left: 30px;
}

#about .collection-item strong {
  color: #26a69a;
}

#contribute .collection {
  border: 1px solid #e0e0e0 !important;
  border-radius: 2px;
  background-color: transparent !important;
  box-shadow: none !important;
  margin: 0.5rem 0 1rem 0;
  overflow: hidden;
}

#contribute .collection .collection-item {
  background-color: transparent !important;
  color: var(--text-color);
  border-bottom: 1px solid #e0e0e0 !important;
  line-height: 1.5rem;
  padding: 15px 20px;
}

#contribute .collection .collection-item:last-child {
  border-bottom: none !important;
}

#contribute .collection-item .title {
  margin-top: 0;
  color: #26a69a;
}

#contribute .mailing-actions {
  margin-top: 10px;
}

#contribute .mailing-actions .btn-small {
  margin-right: 10px;
}

#contribute .chat-space-btn {
  color: #fff;
}

#contribute .chip {
  height: fit-content;
}

#contribute .collection-item .chip {
  max-width: 100%;
  word-break: break-all;
  overflow-wrap: anywhere;
}

#contribute .collection-item .chip i {
  flex-shrink: 0;
}

#resources .collection {
  border: 1px solid #e0e0e0 !important;
  border-radius: 2px;
  background-color: transparent !important;
  box-shadow: none !important;
  margin: 0.5rem 0 1rem 0;
  overflow: hidden;
}

#resources .collection .collection-item {
  background-color: transparent !important;
  color: var(--text-color);
  border-bottom: 1px solid #e0e0e0 !important;
  line-height: 1.5rem;
  padding: 15px 20px;
  transition: background-color 0.2s ease;
}

#resources .collection .collection-item:last-child {
  border-bottom: none !important;
}

#resources .collection .collection-item:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] #resources .collection .collection-item:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

#resources .collection .collection-item strong {
  color: #26a69a;
}

/* Icons */
.material-icons {
  color: var(--link-color);
}

/* Theme toggle positioning */
.nav-links {
  display: flex;
  align-items: center;
}

.theme-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
  background: transparent;
  border: 0;
}

.theme-toggle i {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .theme-toggle i {
  transform: rotate(180deg);
}

.theme-toggle:hover {
  opacity: 0.9;
}

.theme-toggle:focus {
  background: transparent;
}

/* Solution Providers section */
.solution-providers {
  padding: 3rem 0;
  background-color: var(--card-bg);
  border-radius: 8px;
  margin: 2rem 0;
}

[data-theme="dark"] .solution-providers {
  background: linear-gradient(
    145deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-providers h3 {
  color: var(--text-color);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

[data-theme="dark"] .solution-providers h3 {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.solution-providers .intro-text {
  color: var(--text-color);
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

[data-theme="dark"] .solution-providers .intro-text {
  color: rgba(255, 255, 255, 0.9);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.feature-card {
  background-color: var(--secondary-bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--link-color);
}

.feature-card h4 {
  color: var(--text-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
}

[data-theme="dark"] .feature-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .feature-card i {
  color: var(--link-color);
}

[data-theme="dark"] .feature-card h4 {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .feature-card p {
  color: rgba(255, 255, 255, 0.85);
}

/* Dividers */
.divider {
  border: 0;
  height: 1px;
  background: var(--text-color);
  opacity: 0.2;
}

.btn,
.btn-large {
  background-color: var(--link-color);
  color: var(--nav-text);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover,
.btn-large:hover {
  background-color: var(--link-color);
  opacity: 0.9;
  box-shadow: 0 2px 4px var(--card-shadow);
}

.link-inverse {
  color: var(--nav-text);
  transition: opacity 0.2s ease;
}

.link-inverse:hover {
  opacity: 0.9;
}

main.container .card-panel,
.card-panel,
#about .card-panel {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: none !important;
  box-shadow: none !important;
}

/* Navigation transitions */
.nav-link {
  transition: opacity 0.2s ease;
  position: relative;
}

.nav-link:hover {
  opacity: 0.9;
}

.section {
  transition: opacity 0.3s ease;
}

/* Table row subtle highlight */
table.highlight>tbody>tr {
  transition: background-color 0.2s ease;
}

table.highlight>tbody>tr:hover {
  background-color: var(--hover-bg);
}

/* Verification section styles */
.verification-section {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 6px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.verification-section h4 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  color: var(--text-color);
}

.verification-section h4 i {
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.verification-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0.75rem 0;
}

.verification-method {
  padding: 0.75rem;
  border-radius: 4px;
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
}

.method-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.method-header i {
  font-size: 1rem;
  margin-right: 0.5rem;
  color: var(--link-color);
}

.method-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.verification-method p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.9;
}

.verification-guide {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.verification-guide p {
  margin: 0;
}

.guide-link {
  font-size: 0.9rem;
}

.guide-link i {
  font-size: 0.9rem;
  vertical-align: middle;
}

[data-theme="dark"] .verification-section {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.02) 100%);
}

[data-theme="dark"] .verification-method {
  background: rgba(255, 255, 255, 0.03);
}

/* Downloads table styles */
.downloads-table {
  background-color: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin: 2rem 0;
}

.downloads-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.downloads-table th {
  background-color: var(--secondary-bg);
  color: var(--text-color);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
}

.downloads-table td {
  padding: 1rem;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--secondary-bg);
}

.downloads-table tr:last-child td {
  border-bottom: none;
}

.downloads-table tr:hover td {
  background-color: var(--hover-bg);
}

[data-theme="dark"] .downloads-table td {
  background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .downloads-table th {
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .downloads-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.07);
}

.downloads-table a {
  color: var(--link-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.downloads-table a:hover {
  opacity: 0.8;
}

/* File type indicators */
.downloads-table .file-type {
  color: var(--text-color);
  opacity: 0.8;
  font-size: 0.9em;
}

/* Version column */
.downloads-table .version-col {
  font-weight: 500;
  color: var(--text-color);
}

@media screen and (max-width: 992px) {
  .brand {
    display: none;
    visibility: hidden;
  }
}

@media screen and (max-width: 600px) {
  .logo {
    margin: 5px 0px;
    height: 45px;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .solution-providers {
    padding: 2rem 0;
  }

  .solution-providers h3 {
    font-size: 1.8rem;
  }
}

/* Base styles and CSS reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--primary-bg);
  color: var(--text-color);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 1600px) {
  .container {
    max-width: 1600px;
  }
}

/* Navigation Optimization */
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  height: 64px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Section Layout */
.section {
  padding: 4rem 0;
  margin: 2rem 0;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.section.hidden {
  opacity: 0;
  transform: translateY(20px);
}

/* Grid System */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Scale */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 2rem);
}

/* Card Components */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Performance Optimizations */
.hardware-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Cross-browser Flexbox */
.flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.flex-wrap {
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

/* Desktop Optimizations */
@media (min-width: 1024px) {
  .desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .desktop-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .desktop-content {
    flex: 1;
    max-width: calc(100% - 300px);
  }

  .desktop-nav {
    height: 80px;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Dark Mode Optimizations */
[data-theme="dark"] {
  color-scheme: dark;
}

/* High Contrast Mode */
@media (forced-colors: active) {
  * {
    border-color: ButtonText;
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .touch-scroll {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
}

/* Mission and Benefits Layout */
.mission-points,
.benefits-list {
  padding: 20px 0;
}

.mission-item,
.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.mission-item i,
.benefit-item i {
  margin-right: 15px;
  color: #26a69a;
  font-size: 2rem;
  margin-top: 0;
}

.mission-item p {
  margin: 0;
  font-size: 1.1rem;
}

.benefit-content {
  flex: 1;
}

.benefit-content h4,
.benefit-content h5 {
  margin: 0;
  color: #26a69a;
  font-size: 1.25rem;
  font-weight: 500;
}

.benefit-content p {
  margin: 5px 0 0 0;
  font-size: 1rem;
}

/* Animations and Opacity */
.section {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.card-panel {
  opacity: 0;
  animation: slideIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Cube Loader */
.cube-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  perspective: 1000px;
  display: none;
  z-index: 9999;
}

.cube-loader.show {
  display: block;
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotate 4s infinite linear;
}

.cube .face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(186, 0, 143, 0.9);
  border: 2px solid rgba(186, 0, 143, 1);
  box-sizing: border-box;
}

.inner-cube {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  transform-style: preserve-3d;
}

.inner-cube .face {
  background: rgba(0, 119, 190, 0.9);
  border: 2px solid rgba(0, 119, 190, 1);
}

.inner-cube::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  background: rgba(141, 198, 63, 0.9);
  border: 2px solid rgba(141, 198, 63, 1);
  transform: translateZ(0);
}

.cube .face.front {
  transform: rotateY(0deg) translateZ(60px);
}

.cube .face.back {
  transform: rotateY(180deg) translateZ(60px);
}

.cube .face.right {
  transform: rotateY(90deg) translateZ(60px);
}

.cube .face.left {
  transform: rotateY(-90deg) translateZ(60px);
}

.cube .face.top {
  transform: rotateX(90deg) translateZ(60px);
}

.cube .face.bottom {
  transform: rotateX(-90deg) translateZ(60px);
}

.inner-cube .face.front {
  transform: rotateY(0deg) translateZ(36px);
}

.inner-cube .face.back {
  transform: rotateY(180deg) translateZ(36px);
}

.inner-cube .face.right {
  transform: rotateY(90deg) translateZ(36px);
}

.inner-cube .face.left {
  transform: rotateY(-90deg) translateZ(36px);
}

.inner-cube .face.top {
  transform: rotateX(90deg) translateZ(36px);
}

.inner-cube .face.bottom {
  transform: rotateX(-90deg) translateZ(36px);
}

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

  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes shadow {
  0% {
    transform: scaleX(1.5);
    opacity: 0.6;
  }

  50% {
    transform: scaleX(1);
    opacity: 0.2;
  }

  100% {
    transform: scaleX(1.5);
    opacity: 0.6;
  }
}

/* Feature grid responsiveness */
@media (max-width: 600px) {
  .feature-card {
    max-width: 100%;
  }
}

@media only screen and (max-width: 1300px) {
  .brand-logo {
    transform: translateX(-50%);
    left: 50%;
    max-width: calc(100% - 120px);
  }

  .logo-container {
    gap: 10px;
  }

  .logo-img {
    height: 46px;
  }

  .brand-name {
    font-size: 1.6rem;
  }

  .nav-links {
    display: none !important;
  }

  .button-collapse {
    display: block !important;
  }
}

@media only screen and (max-width: 992px) {
  .brand-logo {
    transform: translateX(-50%);
    left: 50%;
  }

  .logo-img {
    height: 46px;
  }

  .brand-name {
    font-size: 1.6rem;
  }
}

@media only screen and (max-width: 600px) {
  .logo-img {
    height: 40px;
  }

  .brand-name {
    font-size: 1.4rem;
  }
}

.side-nav {
  height: 100vh;
  top: 0;
  padding-bottom: 0;
  overflow-y: auto;
}

.side-nav li {
  width: 100%;
  margin-right: 15px;
}

.button-collapse {
  position: absolute;
  left: 15px;
}

.button-collapse i {
  margin-left: -56px;
}

.side-nav-header {
  padding: 16px;
}

.side-nav-header .logo-container {
  flex-direction: column;
  align-items: center;
}

.side-nav-header .brand {
  color: white;
  margin-top: 10px;
  text-align: center;
}

.side-nav-link {
  display: flex !important;
  align-items: center;
  padding: 15px !important;
  height: auto !important;
}

.side-nav-link i {
  margin-right: 15px !important;
  color: var(--link-color);
}

/* Mission and Benefits Layout */
.mission-points,
.benefits-list {
  padding: 20px 0;
}

.mission-item,
.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.mission-item i,
.benefit-item i {
  margin-right: 15px;
  color: var(--link-color);
  font-size: 2rem;
  margin-top: 0;
}

.mission-item p {
  margin: 0;
  font-size: 1.1rem;
}

.benefit-content {
  flex: 1;
}

.benefit-content h4,
.benefit-content h5 {
  margin: 0;
  color: var(--link-color);
  font-size: 1.25rem;
  font-weight: 500;
}

.benefit-content p {
  margin: 5px 0 0 0;
  font-size: 1rem;
}

/* Animations and Opacity */
.section {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.card-panel {
  opacity: 0;
  animation: slideIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Cube Loader */
.cube-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  perspective: 1000px;
  display: none;
  z-index: 9999;
}

.cube-loader.show {
  display: block;
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotate 4s infinite linear;
}

.cube .face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(186, 0, 143, 0.9);
  border: 2px solid rgba(186, 0, 143, 1);
  box-sizing: border-box;
}

.inner-cube {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  transform-style: preserve-3d;
}

.inner-cube .face {
  background: rgba(0, 119, 190, 0.9);
  border: 2px solid rgba(0, 119, 190, 1);
}

.inner-cube::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  background: rgba(141, 198, 63, 0.9);
  border: 2px solid rgba(141, 198, 63, 1);
  transform: translateZ(0);
}

.cube .face.front {
  transform: rotateY(0deg) translateZ(60px);
}

.cube .face.back {
  transform: rotateY(180deg) translateZ(60px);
}

.cube .face.right {
  transform: rotateY(90deg) translateZ(60px);
}

.cube .face.left {
  transform: rotateY(-90deg) translateZ(60px);
}

.cube .face.top {
  transform: rotateX(90deg) translateZ(60px);
}

.cube .face.bottom {
  transform: rotateX(-90deg) translateZ(60px);
}

.inner-cube .face.front {
  transform: rotateY(0deg) translateZ(36px);
}

.inner-cube .face.back {
  transform: rotateY(180deg) translateZ(36px);
}

.inner-cube .face.right {
  transform: rotateY(90deg) translateZ(36px);
}

.inner-cube .face.left {
  transform: rotateY(-90deg) translateZ(36px);
}

.inner-cube .face.top {
  transform: rotateX(90deg) translateZ(36px);
}

.inner-cube .face.bottom {
  transform: rotateX(-90deg) translateZ(36px);
}

.cube-loader::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  filter: blur(5px);
  animation: shadow 4s infinite linear;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 5px 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 52px;
  width: auto;
  margin: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.reference-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.ref-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 800px;
}

.ref-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ref-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ref-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.ref-link:hover::before {
  width: 200px;
  height: 200px;
}

.ref-link i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.ref-link:hover i {
  transform: scale(1.1);
}

.ref-link span {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.event-banner {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.event-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.site-footer-legal {
  padding: 2rem 0 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.6;
}

.site-footer-legal a {
  text-decoration: none;
  background-image: none;
  padding-bottom: 2px;
}

.divider-inverse {
  background: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
  height: 1px;
  position: relative;
  overflow: hidden;
}

.divider-inverse::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  animation: shimmer 3s infinite linear;
}
