/* ===== CSS RESET & BASE TYPOGRAPHY ===== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
  background: #000 !important;
  color: #e5f6f7 !important;
  min-height: 100vh;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #000 !important;
  color: #e5f6f7 !important;
  font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden !important;
}

:root {
  --color-primary: #08b6b9;
  --color-secondary: radial-gradient(circle, #118ab2 0%, #003459 100%);
  --color-accent: #5eead4;
  --color-purple-accent: #a855f7; 
  --color-text-light: #e5f6f7;
  --color-text-light-muted: #b5dbe3;
  --color-bg-dark: #000000;
  --color-bg-darker: #000000;
}


/* ========== GLOBAL LAYOUT CONTAINER ========== */
.site-container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .site-container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ===== PARAGRAPH WIDTH & TYPOGRAPHY ===== */
.narrow-paragraph, p {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5em;
}
@media (max-width: 600px) {
  .narrow-paragraph, p {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ===== HEADINGS ===== */

.article-card:hover {
    border-image: linear-gradient(90deg, #5eead4, #a855f7) 1;
    border-width: 2px;
    border-style: solid;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
  font-weight: 700 !important;
  text-align: center !important;
  background: linear-gradient(90deg,#00fff7 0%,#5efcf1 18%,#4eead4 36%,#24e0e0 60%,#06b6d4 85%,#178ca4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin: 1.5em 0 0.5em 0;
  line-height: 1.3;
}
h1 { 
  font-size: 3rem;
  margin: 2em 0 1em 0;
}
h2 { 
  font-size: 2.25rem;
  margin: 1.75em 0 0.75em 0;
}
h3 { 
  font-size: 1.75rem;
  margin: 1.5em 0 0.6em 0;
}
h4 { 
  font-size: 1.25rem;
  margin: 1.25em 0 0.5em 0;
}
h5 { 
  font-size: 1rem;
  margin: 1em 0 0.4em 0;
}
h6 { 
  font-size: 0.85rem;
  margin: 1em 0 0.4em 0;
}


/* ========== HERO SECTION STANDARD STYLES ========== */
.hero-section {
  min-height: 100vh;
  width: 100vw;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.hero-section.hero-bg-image {
  background-image: url('/assets/images/ai-diamond-gradient.jpeg');
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  min-width: 100vw !important;
  object-fit: cover !important;
  position: relative;
  overflow: hidden;
}
.hero-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  padding-top: 64px;
  padding-bottom: 32px;
  text-align: center;
}
.hero-title {
  background: linear-gradient(90deg, #00ffd0 0%, #06b6d4 40%, #a855f7 100%);  
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-left: 20px;
  padding-right:20px;
}

.hero-section h1,
.hero-section .hero-title {
  margin-top: 128px;
}

.hero-desc {
  color: #e5e7eb;
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}

/* ========== LINKS ========== */
a {
  color: #00fff7;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  background: linear-gradient(90deg, #178ca4 0%, #5efcf1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  outline: none;
  text-decoration: underline;
}

/* regional link */

.cta-regional {
  color: #0e7490;
  font-weight: 600;
  position: relative;
}

.cta-regional::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #0e7490;
  transition: width 0.3s;
}

.cta-regional:hover::after {
  width: 100%;
}



/* ========== LISTS ========== */
ul, ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}
li {
  margin-bottom: 0.5rem;
}

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



/* ========== FEATURE LIST GLOBAL ========== */
.feature-list {
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.feature-icon {
  color: var(--color-accent);
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  position: relative;
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.15;
  z-index: -1;
}




/* ========== cards ========== */

/* Responsive two-column layout for value section feature cards */
.feature-card-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.feature-card-col {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 280px;
  max-width: 500px;
}
@media (max-width: 900px) {
  .feature-card-grid {
    flex-direction: column;
    gap: 0;
  }
  .feature-card-col {
    max-width: 100%;
    min-width: 0;
  }
}




.ocai-invest-card, .service-card, .card, .feature-card, .ecosystem-item, .skill-card {
  background: #000;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease-in-out, border-color 0.3s;
  position: relative;
  border: 1px solid rgba(8, 182, 185, 0.3);
  padding: 2rem;
  overflow: hidden;
  z-index: 1;
  color: var(--color-text-light, #e5f6f7);
}

.ocai-invest-card:hover, .service-card:hover, .card:hover, .feature-card:hover, .ecosystem-item:hover, .skill-card:hover {
  transform: translateY(-5px);
  border-image: linear-gradient(90deg, #5eead4, #a855f7) 1;
  border-width: 1.5px;
  border-style: solid;
  border-radius: 8px;
  z-index: 2;
}

/* Glow effect using ::before */
.ocai-invest-card::before, .service-card::before, .card::before, .feature-card::before, .ecosystem-item::before, .skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  pointer-events: none;
  background: transparent;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
  opacity: 0;
  animation: pulse 2s infinite alternate;
}

/* Horizontal line animation using ::after */
.ocai-invest-card::after, .service-card::after, .card::after, .feature-card::after, .ecosystem-item::after, .skill-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #06b6d4, transparent);
  animation: line-x 3s infinite ease-in-out;
  pointer-events: none;
}

/* Additional vertical line animation using a pseudo class and extra styling */
.ocai-invest-card, .service-card, .card, .feature-card, .ecosystem-item, .skill-card {
  background-image: linear-gradient(180deg, transparent, transparent);
  background-size: 1px 0%;
  background-repeat: no-repeat;
  background-position: left top;
}

.ocai-invest-card:hover, .service-card:hover, .card:hover, .feature-card:hover, .ecosystem-item:hover, .skill-card:hover {
  animation: line-y 3s 1.5s infinite ease-in-out;
  background-image: linear-gradient(180deg, transparent, #06b6d4, transparent);
}

/* Animation keyframes */
@keyframes pulse {
  0% { opacity: 0; }
  100% { opacity: 0.5; }
}

@keyframes line-x {
  0% { left: 0; width: 0%; }
  50% { left: 0; width: 100%; }
  100% { left: 100%; width: 0%; }
}

@keyframes line-y {
  0% { background-size: 1px 0%; background-position: left top; }
  50% { background-size: 1px 100%; background-position: left top; }
  100% { background-size: 1px 0%; background-position: left bottom; }
}





/* ========== BUTTONS ========== */
button, .btn, .btn-primary {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5em 1.25em;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #1a0033 0%, #000a20 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
button:hover, .btn:hover, .btn-primary:hover {
  background: linear-gradient(135deg, #2e4456 0%, #08b6b9 100%);
  color: #fff;
}

/* ========== FORMS ========== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5em;
  border-radius: 4px;
  border: 1px solid #333;
  background: #181f23;
  color: #fff;
  margin-bottom: 1rem;
}

/* Custom range slider styling */
input[type=range] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #222c36;
  border-radius: 3px;
  outline: none;
  box-shadow: 0 1px 4px rgba(8,182,185,0.16);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary, #08b6b9);
  border: 2px solid #5eead4;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8,182,185,0.18);
  transition: background 0.2s;
}
input[type=range]:focus::-webkit-slider-thumb {
  outline: 2px solid #5eead4;
}
input[type=range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary, #08b6b9);
  border: 2px solid #5eead4;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8,182,185,0.18);
  transition: background 0.2s;
}
input[type=range]::-ms-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary, #08b6b9);
  border: 2px solid #5eead4;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8,182,185,0.18);
  transition: background 0.2s;
}
input[type=range]::-ms-fill-lower {
  background: #222c36;
  border-radius: 3px;
}
input[type=range]::-ms-fill-upper {
  background: #222c36;
  border-radius: 3px;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]:focus::-ms-fill-lower {
  background: #2dd4bf;
}
input[type=range]:focus::-ms-fill-upper {
  background: #2dd4bf;
}
input[type=range]::-moz-range-track {
  background: #222c36;
  border-radius: 3px;
  height: 6px;
}
input[type=range]::-ms-tooltip {
  display: none;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid #00fff7;
  border-color: #00fff7;
}


/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }

/* ========== SECTION DIVIDER ========== */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  margin: 3rem 0;
  border: none;
  border-radius: 2px;
}


/* ========== ACCESSIBILITY ========== */
:focus {
  outline: 2px solid #00fff7;
  outline-offset: 2px;
}



/* ===== CUSTOM COMPONENT & CHART STYLES ===== */
.svg-container {
  width: 100%;
  overflow-x: auto;
  display: block;
  padding: 0;
}
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.audio-container {
  background-color: #dbeafe;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.key-highlight {
  background-color: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 5px 5px 0;
}
.takeaway-box {
  background-color: #e0f2fe;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.takeaway-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #0369a1;
}
.decision-tree-container {
  margin: 40px 0;
  background-color: #f0f9ff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.result-box {
  background-color: #dbeafe;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  border: 1px solid #93c5fd;
}
.emoji {
  font-size: 1.2rem;
  margin-right: 5px;
}
.highlight {
  background-color: #dbeafe;
  padding: 0 3px;
  border-radius: 3px;
}
.node circle {
  fill: #93c5fd;
  stroke: #3b82f6;
  stroke-width: 2px;
  transition: all 0.3s ease;
}
.node:hover circle {
  fill: #bfdbfe;
  cursor: pointer;
}
.node text {
  font-size: 14px;
  font-family: sans-serif;
}
.link {
  fill: none;
  stroke: #93c5fd;
  stroke-width: 2px;
}
.active-node circle {
  fill: #3b82f6;
}
.active-node text {
  font-weight: bold;
}

/* ===== UTILITIES (from main.css, not covered by Tailwind) ===== */
.max-w-7xl { max-width: 80rem; margin: 0 auto; }
.max-w-6xl { max-width: 72rem; margin: 0 auto; }
.max-w-4xl { max-width: 56rem; margin: 0 auto; }
.max-w-3xl { max-width: 48rem; margin: 0 auto; }
.max-w-2xl { max-width: 42rem; margin: 0 auto; }
.max-w-xl { max-width: 36rem; margin: 0 auto; }

.flex { display: flex; }
.flex-col { flex-direction: column; }

/* ===== ANIMATIONS (404.html example) ===== */
.wave {
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: wave 2s infinite;
  filter: drop-shadow(0 0 6px #087E8B);
}
@keyframes wave {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(20deg); }
  100% { transform: rotate(0deg); }
}

/* Highlight central SVG node with pink gradient */
#coastal-zone.central-node, .central-node, #coastal-zone {
  fill: url(#centralNodePinkGradient) !important;
}


  /* ============ custom teal scrollbar ========== */  
  ::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 8px;
}
/* Firefox support */
html, body, * {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-bg-darker);
}


  /* Typing animation effect */
.typing-effect {
  position: relative;
  display: inline-block;
  color: transparent;
}

.typing-effect::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  color: transparent;
  background: linear-gradient(90deg,#00fff7 0%,#5efcf1 18%,#4eead4 36%,#24e0e0 60%,#06b6d4 85%,#178ca4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  border-right: 4px solid var(--color-accent);
  overflow: hidden;
  animation: typing 3s steps(30) forwards, cursor-blink 0.75s step-end infinite;
  white-space: nowrap;
}

/* Animation keyframes */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes cursor-blink {
  from, to { border-color: transparent }
  50% { border-color: var(--color-accent) }
}