/* 
 * Main Stylesheet for Genetic Learning Scientific Proof Hub
 * Author: AI Assistant
 * Version: 1.0
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

/* Top Contact Bar - NEW IMPLEMENTATION */
.top-contact-bar {
  background-color: #1e293b;
  color: #fff;
  padding: 8px 0;
  font-size: 0.9rem;
  width: 100%;
}

.top-contact-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item i {
  color: #3b82f6;
}

/* Ensure items stay side by side on all screen sizes */
@media (max-width: 768px) {
  .top-contact-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
}

/* No special handling for RTL in flexbox - natural RTL support */
[dir="rtl"] .contact-item i {
  margin-left: 5px;
  margin-right: 0;
}

/* Contact button styles */
.contact-btn {
  color: #3b82f6 !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
}

.contact-btn:hover {
  color: #1d4ed8 !important;
  background-color: rgba(59, 130, 246, 0.1);
}

.contact-btn i {
  color: #3b82f6;
  font-size: 1rem;
}

/* Neural Network Brain Background Pattern */
.neural-bg {
  background-color: rgba(15, 23, 42, 0.03); /* Very subtle dark background tint */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1200' viewBox='0 0 1600 1200'%3E%3Cg fill='none' stroke='rgba(59, 130, 246, 0.2)' stroke-width='1.5'%3E%3C!-- Enhanced Brain Outline Shape --%3E%3Cpath d='M400,200 C450,150 550,150 600,200 C650,150 750,150 800,200 C850,250 850,350 800,400 C850,450 850,550 800,600 C750,650 650,650 600,600 C550,650 450,650 400,600 C350,550 350,450 400,400 C350,350 350,250 400,200 Z' stroke-width='2.5' opacity='0.55' stroke='rgba(59, 130, 246, 0.35)'/%3E%3C!-- Brain Detail Shapes --%3E%3Cpath d='M450,240 C485,215 530,215 570,235 C610,255 640,225 660,255 C680,285 670,330 645,355 C620,380 610,425 630,460 C650,495 635,535 600,550 C565,565 525,550 495,520 C465,490 425,495 410,460 C395,425 420,380 450,360 C480,340 490,290 450,240 Z' stroke-width='1.8' opacity='0.4' stroke='rgba(59, 130, 246, 0.3)'/%3E%3Cpath d='M610,260 C650,240 690,250 715,280 C740,310 750,350 735,385 C720,420 740,460 720,490 C700,520 660,525 625,510 C590,495 570,520 550,490 C530,460 550,425 575,405 C600,385 590,340 610,305 C630,270 610,260 610,260 Z' stroke-width='1.8' opacity='0.4' stroke='rgba(59, 130, 246, 0.3)'/%3E%3C!-- Enhanced Neural Network Nodes --%3E");
  background-position: center;
  background-repeat: repeat;
  background-size: 1600px 1200px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  animation: pulse 15s infinite alternate, fadeInNeuralBg 2s ease-in-out;
  overflow: hidden;
}

/* Additional neural network layer */
.neural-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='1000' viewBox='0 0 1400 1000'%3E%3Cg fill='none' stroke='rgba(59, 130, 246, 0.15)' stroke-width='1'%3E%3C!-- Additional Nodes --%3E%3Ccircle cx='150' cy='150' r='3' fill='rgba(59, 130, 246, 0.4)'/%3E%3Ccircle cx='250' cy='100' r='4' fill='rgba(59, 130, 246, 0.4)'/%3E%3Ccircle cx='350' cy='150' r='5' fill='rgba(59, 130, 246, 0.5)'/%3E%3Ccircle cx='450' cy='120' r='3' fill='rgba(59, 130, 246, 0.4)'/%3E%3Ccircle cx='550' cy='180' r='6' fill='rgba(59, 130, 246, 0.5)'/%3E%3Ccircle cx='650' cy='130' r='4' fill='rgba(59, 130, 246, 0.4)'/%3E%3Ccircle cx='750' cy='190' r='5' fill='rgba(59, 130, 246, 0.5)'/%3E%3Ccircle cx='200' cy='250' r='6' fill='rgba(59, 130, 246, 0.5)'/%3E%3Ccircle cx='300' cy='220' r='3' fill='rgba(59, 130, 246, 0.4)'/%3E%3Ccircle cx='400' cy='270' r='5' fill='rgba(59, 130, 246, 0.5)'/%3E%3Ccircle cx='500' cy='230' r='4' fill='rgba(59, 130, 246, 0.4)'/%3E%3Ccircle cx='600' cy='280' r='6' fill='rgba(59, 130, 246, 0.5)'/%3E%3Ccircle cx='150' cy='350' r='3' fill='rgba(59, 130, 246, 0.4)'/%3E%3Ccircle cx='250' cy='320' r='5' fill='rgba(59, 130, 246, 0.5)'/%3E%3Ccircle cx='350' cy='370' r='4' fill='rgba(59, 130, 246, 0.4)'/%3E%3Ccircle cx='450' cy='330' r='6' fill='rgba(59, 130, 246, 0.5)'/%3E%3Ccircle cx='550' cy='380' r='3' fill='rgba(59, 130, 246, 0.4)'/%3E%3Ccircle cx='650' cy='340' r='5' fill='rgba(59, 130, 246, 0.5)'/%3E%3Ccircle cx='850' cy='490' r='7' fill='rgba(59, 130, 246, 0.6)'/%3E%3Ccircle cx='900' cy='450' r='5' fill='rgba(59, 130, 246, 0.5)'/%3E%3Ccircle cx='1000' cy='420' r='8' fill='rgba(59, 130, 246, 0.6)'/%3E%3Ccircle cx='950' cy='520' r='6' fill='rgba(59, 130, 246, 0.5)'/%3E%3Ccircle cx='1050' cy='570' r='4' fill='rgba(59, 130, 246, 0.4)'/%3E%3C!-- Enhanced Neural Connections --%3E%3Cpath d='M150,150 S225,100 250,100 S325,150 350,150 S425,120 450,120 S525,180 550,180 S625,130 650,130' stroke-width='1.2' stroke='rgba(59, 130, 246, 0.25)'/%3E%3Cpath d='M200,250 S250,220 300,220 S350,270 400,270 S450,230 500,230 S550,280 600,280' stroke-width='1.2' stroke='rgba(59, 130, 246, 0.25)'/%3E%3Cpath d='M150,350 S200,320 250,320 S300,370 350,370 S400,330 450,330 S500,380 550,380 S600,340 650,340' stroke-width='1.2' stroke='rgba(59, 130, 246, 0.25)'/%3E%3Cpath d='M150,150 S170,200 200,250 S230,300 250,320 S270,335 300,370' stroke-width='1.2' stroke='rgba(59, 130, 246, 0.25)'/%3E%3Cpath d='M450,120 S460,150 500,230 S530,280 550,380' stroke-width='1.2' stroke='rgba(59, 130, 246, 0.25)'/%3E%3Cpath d='M350,150 S375,210 400,270 S425,290 450,330' stroke-width='1.2' stroke='rgba(59, 130, 246, 0.25)'/%3E%3Cpath d='M250,100 S275,125 300,220 S325,270 350,370' stroke-width='1.2' stroke='rgba(59, 130, 246, 0.25)'/%3E%3Cpath d='M550,180 S575,205 600,280 S625,310 650,340' stroke-width='1.2' stroke='rgba(59, 130, 246, 0.25)'/%3E%3Cpath d='M850,490 C875,470 925,470 950,520 C975,570 1025,570 1050,570' stroke-width='1.5' stroke='rgba(59, 130, 246, 0.3)'/%3E%3Cpath d='M900,450 C925,435 962,435 1000,420 C1037,405 1012,497 1050,570' stroke-width='1.5' stroke='rgba(59, 130, 246, 0.3)'/%3E%3Cpath d='M850,490 C825,510 810,505 800,540 C790,575 825,590 900,600' stroke-width='1.5' stroke='rgba(59, 130, 246, 0.3)'/%3E%3Cpath d='M650,340 C700,360 800,430 850,490' stroke-width='1.3' stroke='rgba(59, 130, 246, 0.28)'/%3E%3Cpath d='M550,380 C600,410 650,510 700,540 C750,570 800,550 850,490' stroke-width='1.3' stroke='rgba(59, 130, 246, 0.28)'/%3E%3Cpath d='M900,450 C850,400 825,300 800,250 C775,200 700,160 650,130' stroke-width='1.3' stroke='rgba(59, 130, 246, 0.28)'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-repeat: repeat;
  background-size: 1400px 1000px;
  opacity: 0.9;
  z-index: -1;
  animation: floatBrainNetwork 90s infinite alternate ease-in-out;
}

/* Dark theme neural network */
[data-theme="dark"] .neural-bg::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='1000' viewBox='0 0 1400 1000'%3E%3Cg fill='none' stroke='rgba(219, 234, 254, 0.2)' stroke-width='1'%3E%3C!-- Additional Nodes --%3E%3Ccircle cx='150' cy='150' r='3' fill='rgba(219, 234, 254, 0.5)'/%3E%3Ccircle cx='250' cy='100' r='4' fill='rgba(219, 234, 254, 0.5)'/%3E%3Ccircle cx='350' cy='150' r='5' fill='rgba(219, 234, 254, 0.6)'/%3E%3Ccircle cx='450' cy='120' r='3' fill='rgba(219, 234, 254, 0.5)'/%3E%3Ccircle cx='550' cy='180' r='6' fill='rgba(219, 234, 254, 0.6)'/%3E%3Ccircle cx='650' cy='130' r='4' fill='rgba(219, 234, 254, 0.5)'/%3E%3Ccircle cx='750' cy='190' r='5' fill='rgba(219, 234, 254, 0.6)'/%3E%3Ccircle cx='200' cy='250' r='6' fill='rgba(219, 234, 254, 0.6)'/%3E%3Ccircle cx='300' cy='220' r='3' fill='rgba(219, 234, 254, 0.5)'/%3E%3Ccircle cx='400' cy='270' r='5' fill='rgba(219, 234, 254, 0.6)'/%3E%3Ccircle cx='500' cy='230' r='4' fill='rgba(219, 234, 254, 0.5)'/%3E%3Ccircle cx='600' cy='280' r='6' fill='rgba(219, 234, 254, 0.6)'/%3E%3Ccircle cx='150' cy='350' r='3' fill='rgba(219, 234, 254, 0.5)'/%3E%3Ccircle cx='250' cy='320' r='5' fill='rgba(219, 234, 254, 0.6)'/%3E%3Ccircle cx='350' cy='370' r='4' fill='rgba(219, 234, 254, 0.5)'/%3E%3Ccircle cx='450' cy='330' r='6' fill='rgba(219, 234, 254, 0.6)'/%3E%3Ccircle cx='550' cy='380' r='3' fill='rgba(219, 234, 254, 0.5)'/%3E%3Ccircle cx='650' cy='340' r='5' fill='rgba(219, 234, 254, 0.6)'/%3E%3Ccircle cx='850' cy='490' r='7' fill='rgba(219, 234, 254, 0.7)'/%3E%3Ccircle cx='900' cy='450' r='5' fill='rgba(219, 234, 254, 0.6)'/%3E%3Ccircle cx='1000' cy='420' r='8' fill='rgba(219, 234, 254, 0.7)'/%3E%3Ccircle cx='950' cy='520' r='6' fill='rgba(219, 234, 254, 0.6)'/%3E%3Ccircle cx='1050' cy='570' r='4' fill='rgba(219, 234, 254, 0.5)'/%3E%3C!-- Enhanced Neural Connections --%3E%3Cpath d='M150,150 S225,100 250,100 S325,150 350,150 S425,120 450,120 S525,180 550,180 S625,130 650,130' stroke-width='1.2' stroke='rgba(219, 234, 254, 0.3)'/%3E%3Cpath d='M200,250 S250,220 300,220 S350,270 400,270 S450,230 500,230 S550,280 600,280' stroke-width='1.2' stroke='rgba(219, 234, 254, 0.3)'/%3E%3Cpath d='M150,350 S200,320 250,320 S300,370 350,370 S400,330 450,330 S500,380 550,380 S600,340 650,340' stroke-width='1.2' stroke='rgba(219, 234, 254, 0.3)'/%3E%3Cpath d='M150,150 S170,200 200,250 S230,300 250,320 S270,335 300,370' stroke-width='1.2' stroke='rgba(219, 234, 254, 0.3)'/%3E%3Cpath d='M450,120 S460,150 500,230 S530,280 550,380' stroke-width='1.2' stroke='rgba(219, 234, 254, 0.3)'/%3E%3Cpath d='M350,150 S375,210 400,270 S425,290 450,330' stroke-width='1.2' stroke='rgba(219, 234, 254, 0.3)'/%3E%3Cpath d='M250,100 S275,125 300,220 S325,270 350,370' stroke-width='1.2' stroke='rgba(219, 234, 254, 0.3)'/%3E%3Cpath d='M550,180 S575,205 600,280 S625,310 650,340' stroke-width='1.2' stroke='rgba(219, 234, 254, 0.3)'/%3E%3Cpath d='M850,490 C875,470 925,470 950,520 C975,570 1025,570 1050,570' stroke-width='1.5' stroke='rgba(219, 234, 254, 0.35)'/%3E%3Cpath d='M900,450 C925,435 962,435 1000,420 C1037,405 1012,497 1050,570' stroke-width='1.5' stroke='rgba(219, 234, 254, 0.35)'/%3E%3Cpath d='M850,490 C825,510 810,505 800,540 C790,575 825,590 900,600' stroke-width='1.5' stroke='rgba(219, 234, 254, 0.35)'/%3E%3Cpath d='M650,340 C700,360 800,430 850,490' stroke-width='1.3' stroke='rgba(219, 234, 254, 0.32)'/%3E%3Cpath d='M550,380 C600,410 650,510 700,540 C750,570 800,550 850,490' stroke-width='1.3' stroke='rgba(219, 234, 254, 0.32)'/%3E%3Cpath d='M900,450 C850,400 825,300 800,250 C775,200 700,160 650,130' stroke-width='1.3' stroke='rgba(219, 234, 254, 0.32)'/%3E%3C/g%3E%3C/svg%3E");
}

/* Animation for the floating brain network */
@keyframes floatBrainNetwork {
  0% {
    transform: translate(-20px, -15px) scale(1.02);
  }
  50% {
    transform: translate(15px, 10px) scale(0.98);
  }
  100% { 
    transform: translate(-10px, -25px) scale(1.05);
  }
}

/* Add a moving glow light effect */
.neural-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(59, 130, 246, 0.18) 0%,
    rgba(59, 130, 246, 0.12) 20%,
    rgba(59, 130, 246, 0) 60%
  );
  animation: moveGlow 30s infinite linear;
  z-index: -1;
}

/* Dark theme glow effect */
[data-theme="dark"] .neural-bg::before {
  background: radial-gradient(
    circle at center,
    rgba(219, 234, 254, 0.15) 0%,
    rgba(219, 234, 254, 0.1) 20%,
    rgba(219, 234, 254, 0) 60%
  );
}

/* Animation for the moving glow */
@keyframes moveGlow {
  0% {
    transform: translate(10%, 10%) rotate(0deg);
  }
  25% {
    transform: translate(-10%, 30%) rotate(90deg);
  }
  50% {
    transform: translate(-30%, -10%) rotate(180deg);
  }
  75% {
    transform: translate(30%, -30%) rotate(270deg);
  }
  100% {
    transform: translate(10%, 10%) rotate(360deg);
  }
}

/* Animation to introduce the neural pattern with a prominent pulse */
@keyframes fadeInNeuralBg {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  50% {
    opacity: 1.5;
    transform: scale(1);
  }
  100% {
    opacity: 0.7;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.7;
  }
}

/* Brain network pattern specifically for dark theme */
[data-theme="dark"] .neural-bg {
  background-color: rgba(219, 234, 254, 0.02); /* Very subtle light background tint for dark mode */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900' viewBox='0 0 1200 900'%3E%3Cg fill='none' stroke='rgba(219, 234, 254, 0.15)' stroke-width='1.2'%3E%3C!-- Brain Outline Shape --%3E%3Cpath d='M400,200 C450,150 550,150 600,200 C650,150 750,150 800,200 C850,250 850,350 800,400 C850,450 850,550 800,600 C750,650 650,650 600,600 C550,650 450,650 400,600 C350,550 350,450 400,400 C350,350 350,250 400,200 Z' stroke-width='1.5' opacity='0.45'/%3E%3C!-- Nodes --%3E%3Ccircle cx='150' cy='150' r='2'/%3E%3Ccircle cx='250' cy='100' r='2.5'/%3E%3Ccircle cx='350' cy='150' r='2'/%3E%3Ccircle cx='450' cy='120' r='2.5'/%3E%3Ccircle cx='550' cy='180' r='2'/%3E%3Ccircle cx='650' cy='130' r='2'/%3E%3Ccircle cx='750' cy='190' r='2.5'/%3E%3Ccircle cx='850' cy='150' r='2'/%3E%3Ccircle cx='950' cy='120' r='2.5'/%3E%3Ccircle cx='1050' cy='170' r='2'/%3E%3Ccircle cx='200' cy='250' r='2.5'/%3E%3Ccircle cx='300' cy='220' r='2'/%3E%3Ccircle cx='400' cy='270' r='2.5'/%3E%3Ccircle cx='500' cy='230' r='2'/%3E%3Ccircle cx='600' cy='280' r='2.5'/%3E%3Ccircle cx='700' cy='240' r='2'/%3E%3Ccircle cx='800' cy='290' r='2.5'/%3E%3Ccircle cx='900' cy='250' r='2'/%3E%3Ccircle cx='1000' cy='220' r='2.5'/%3E%3Ccircle cx='150' cy='350' r='2'/%3E%3Ccircle cx='250' cy='320' r='2.5'/%3E%3Ccircle cx='350' cy='370' r='2'/%3E%3Ccircle cx='450' cy='330' r='2.5'/%3E%3Ccircle cx='550' cy='380' r='2'/%3E%3Ccircle cx='650' cy='340' r='2'/%3E%3Ccircle cx='750' cy='390' r='2.5'/%3E%3Ccircle cx='850' cy='350' r='2'/%3E%3Ccircle cx='950' cy='320' r='2.5'/%3E%3Ccircle cx='1050' cy='370' r='2'/%3E%3Ccircle cx='200' cy='450' r='2.5'/%3E%3Ccircle cx='300' cy='420' r='2'/%3E%3Ccircle cx='400' cy='470' r='2.5'/%3E%3Ccircle cx='500' cy='430' r='2'/%3E%3Ccircle cx='600' cy='480' r='2.5'/%3E%3Ccircle cx='700' cy='440' r='2'/%3E%3Ccircle cx='800' cy='490' r='2.5'/%3E%3Ccircle cx='900' cy='450' r='2'/%3E%3Ccircle cx='1000' cy='420' r='2.5'/%3E%3Ccircle cx='150' cy='550' r='2'/%3E%3Ccircle cx='250' cy='520' r='2.5'/%3E%3Ccircle cx='350' cy='570' r='2'/%3E%3Ccircle cx='450' cy='530' r='2.5'/%3E%3Ccircle cx='550' cy='580' r='2'/%3E%3Ccircle cx='650' cy='540' r='2'/%3E%3Ccircle cx='750' cy='590' r='2.5'/%3E%3Ccircle cx='850' cy='550' r='2'/%3E%3Ccircle cx='950' cy='520' r='2.5'/%3E%3Ccircle cx='1050' cy='570' r='2'/%3E%3Ccircle cx='200' cy='650' r='2.5'/%3E%3Ccircle cx='300' cy='620' r='2'/%3E%3Ccircle cx='400' cy='670' r='2.5'/%3E%3Ccircle cx='500' cy='630' r='2'/%3E%3Ccircle cx='600' cy='680' r='2.5'/%3E%3Ccircle cx='700' cy='640' r='2'/%3E%3Ccircle cx='800' cy='690' r='2.5'/%3E%3Ccircle cx='900' cy='650' r='2'/%3E%3Ccircle cx='1000' cy='620' r='2.5'/%3E%3C!-- Connections --%3E%3Cpath d='M150,150 C200,125 225,112 250,100 C275,125 312,137 350,150 C375,135 412,127 450,120 C500,150 525,165 550,180 C600,155 625,142 650,130'/%3E%3Cpath d='M750,190 C800,170 825,160 850,150 C875,135 912,127 950,120 C975,145 1012,157 1050,170'/%3E%3Cpath d='M200,250 C250,235 275,227 300,220 C350,245 375,257 400,270 C450,250 475,240 500,230 C550,255 575,267 600,280'/%3E%3Cpath d='M700,240 C750,265 775,277 800,290 C850,270 875,260 900,250 C950,235 975,227 1000,220'/%3E%3Cpath d='M150,350 C200,335 225,327 250,320 C275,345 312,357 350,370 C375,350 412,340 450,330 C500,355 525,367 550,380 C600,360 625,350 650,340'/%3E%3Cpath d='M750,390 C800,370 825,360 850,350 C875,335 912,327 950,320 C975,345 1012,357 1050,370'/%3E%3Cpath d='M200,450 C250,435 275,427 300,420 C350,445 375,457 400,470 C450,450 475,440 500,430 C550,455 575,467 600,480'/%3E%3Cpath d='M700,440 C750,465 775,477 800,490 C850,470 875,460 900,450 C950,435 975,427 1000,420'/%3E%3Cpath d='M150,550 C200,535 225,527 250,520 C275,545 312,557 350,570 C375,550 412,540 450,530 C500,555 525,567 550,580 C600,560 625,550 650,540'/%3E%3Cpath d='M750,590 C800,570 825,560 850,550 C875,535 912,527 950,520 C975,545 1012,557 1050,570'/%3E%3Cpath d='M200,650 C250,635 275,627 300,620 C350,645 375,657 400,670 C450,650 475,640 500,630 C550,655 575,667 600,680'/%3E%3Cpath d='M700,640 C750,665 775,677 800,690 C850,670 875,660 900,650 C950,635 975,627 1000,620'/%3E%3C!-- Diagonal Connections --%3E%3Cpath d='M150,150 C175,200 187,225 200,250 C175,300 162,325 150,350 C175,400 187,425 200,450'/%3E%3Cpath d='M250,100 C275,160 287,190 300,220 C275,270 262,295 250,320 C275,370 287,395 300,420'/%3E%3Cpath d='M350,150 C375,210 387,240 400,270 C375,320 362,345 350,370 C375,420 387,445 400,470'/%3E%3Cpath d='M450,120 C475,175 487,202 500,230 C475,280 462,305 450,330 C475,380 487,405 500,430'/%3E%3Cpath d='M550,180 C575,230 587,255 600,280 C575,330 562,355 550,380 C575,430 587,455 600,480'/%3E%3Cpath d='M650,130 C675,190 687,215 700,240 C675,290 662,315 650,340 C675,390 687,415 700,440'/%3E%3Cpath d='M750,190 C775,240 787,265 800,290 C775,340 762,365 750,390 C775,440 787,465 800,490'/%3E%3Cpath d='M850,150 C875,200 887,225 900,250 C875,300 862,325 850,350 C875,400 887,425 900,450'/%3E%3Cpath d='M950,120 C975,175 987,202 1000,220 C975,270 962,295 950,320 C975,370 987,395 1000,420'/%3E%3C!-- Crossing Connections --%3E%3Cpath d='M150,150 C225,200 262,210 300,220 C360,170 400,150 450,120 C525,200 562,240 600,280'/%3E%3Cpath d='M250,100 C325,190 362,230 400,270 C450,225 500,202 550,180 C475,325 437,397 400,470'/%3E%3Cpath d='M150,350 C225,385 262,402 300,420 C350,400 400,365 450,330 C525,385 562,432 600,480'/%3E%3Cpath d='M150,550 C240,600 285,610 330,620 C395,595 427,577 460,530 C535,580 568,630 600,680'/%3E%3Cpath d='M700,240 C775,317 812,333 850,350 C910,297 940,283 950,320 C1025,397 1062,433 1000,420'/%3E%3Cpath d='M700,440 C775,385 812,367 850,350 C900,375 925,452 950,520 C1025,445 1062,407 1000,420'/%3E%3Cpath d='M650,540 C725,503 762,485 800,490 C860,545 890,532 900,450 C975,385 1012,365 1050,370'/%3E%3Cpath d='M750,590 C825,527 862,507 900,450 C960,395 990,370 1050,370'/%3E%3C/g%3E%3C/svg%3E");
  animation: pulse-dark 25s infinite alternate, fadeInNeuralBg 2s ease-in-out;
}

@keyframes pulse-dark {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.6;
  }
}

:root {
  /* Outstanding Modern Imageless Design */
  --primary-color: #3b82f6;
  --secondary-color: #6366f1;
  --accent-color: #22d3ee;
  --highlight-color: #a21caf;
  --lime-accent: #a3e635;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
  --section-gradient: linear-gradient(120deg, #1e293b 0%, #3b82f6 100%);
  --card-glass: rgba(255,255,255,0.12);
  --card-border: rgba(255,255,255,0.18);
  --shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
  --glass-blur: blur(8px);
  --text-color: #1e293b;
  --text-light: #475569;
  --bg-color: #f8fafc;
  --bg-secondary: #f1f5f9;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
}

[data-theme="dark"] {
  --primary-color: #3b82f6;
  --secondary-color: #6366f1;
  --accent-color: #60a5fa;
  --text-color: #f1f5f9;
  --text-light: #cbd5e1;
  --bg-color: #0f172a;
  --bg-secondary: #1e293b;
  --border-color: #334155;
  --card-bg: #1e293b;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

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

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

body {
  background: var(--bg-gradient);
  color: #f1f5f9;
  font-family: 'Inter', 'Roboto', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.site-logo {
  display: inline-block !important;
  height: 45px;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
}

/* RTL support for logo */
[dir="rtl"] .site-logo {
  margin-right: 0;
  margin-left: 10px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  vertical-align: middle;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #1e40af);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: textGradient 3s ease-in-out infinite alternate;
}

@keyframes textGradient {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 100% center;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links li a {
  color: var(--text-color);
  font-family: 'Montserrat', 'Poppins', 'Quicksand', 'Inter', 'Roboto', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.98rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
  text-decoration: none;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

.theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-color);
  cursor: pointer;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
}

.language-toggle {
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.language-toggle:hover {
  background-color: var(--border-color);
}

.admin-btn {
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 0.875rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.admin-btn:hover {
  background-color: var(--border-color);
  color: var(--text-color);
}

.admin-btn i {
  font-size: 0.875rem;
  margin-right: 0.25rem;
}

.nav-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

/* Hero Section with animated gradient */
.hero {
  background: linear-gradient(120deg, #312e81 0%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px; right: -100px; bottom: -100px;
  background: radial-gradient(circle at 60% 40%, var(--accent-color) 0%, transparent 70%),
              radial-gradient(circle at 20% 80%, var(--highlight-color) 0%, transparent 70%);
  opacity: 0.18;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--highlight-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.22), 0 1px 2px rgba(0,0,0,0.18);
  -webkit-text-stroke: 0.5px #fff;
  text-stroke: 0.5px #fff;
}
.hero p {
  font-size: 1.3rem;
  color: #e0e7ef;
  margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
}

/* Section backgrounds with SVG patterns */
.bg-secondary {
  background: linear-gradient(120deg, #1e293b 0%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}
.bg-secondary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="2" fill="%23a3e635" opacity="0.12"/><circle cx="80" cy="80" r="3" fill="%233b82f6" opacity="0.10"/><circle cx="60" cy="140" r="2.5" fill="%2322d3ee" opacity="0.10"/></svg>');
  opacity: 0.18;
  z-index: 0;
}

/* Section Styles */
section {
  padding: 4rem 0;
  position: relative;
  background: transparent;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary-color);
}

section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.section-divider {
  height: 4px;
  width: 80px;
  margin: 0 auto 3rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--lime-accent));
  box-shadow: 0 2px 12px 0 var(--accent-color), 0 1px 4px 0 var(--lime-accent);
  animation: scaleIn 1.2s 0.5s cubic-bezier(0.4,0,0.2,1) both;
}

/* Glassmorphism/Neumorphism Cards */
.card, .stat-card, .report-toc, .download-box, .chart-container {
  background: var(--card-glass);
  border: 1.5px solid var(--card-border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #000;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
  padding: 1.5rem 1.5rem;
}

/* Override text color for dark glass cards */
.card, .stat-card {
  color: #ffffff !important;
}
.card *, .stat-card * {
  color: #ffffff !important;
}

.card:hover, .stat-card:hover, .report-toc:hover, .download-box:hover {
  box-shadow: 0 12px 32px 0 rgba(34, 211, 238, 0.18), 0 2px 8px 0 rgba(163, 230, 53, 0.10);
  transform: translateY(-6px) scale(1.025);
}

/* Keep dark text only for white-background components */
.download-box *, .report-toc *, .chart-container * {
  color: #000 !important;
}

/* Headings with gradient text */
h1, h2, h3, h4, h5, h6 {
  background: none;
  color: #1e293b;
  -webkit-text-stroke: 0;
  text-stroke: 0;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.38),
    0 0.5px 0.5px rgba(0,0,0,0.22);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Buttons with animated gradient and glow */
.btn, .btn-primary, .btn-outline {
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px 0 var(--accent-color);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
.btn:hover, .btn-primary:hover, .btn-outline:hover {
  background: linear-gradient(90deg, var(--lime-accent), var(--highlight-color));
  box-shadow: 0 4px 24px 0 var(--lime-accent);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

.btn-outline {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--accent-color);
  color: #fff;
}

/* Statistic cards and grids */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}
.stat-card {
  min-width: 220px;
  max-width: 260px;
  text-align: center;
  background: var(--card-glass);
  border: 1.5px solid var(--card-border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  color: #000;
}
.stat-card .stat-value {
  font-size: 2.7rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent-color), var(--lime-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.stat-card .stat-label {
  font-size: 1.1rem;
  color: #bae6fd;
}

/* Modern grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  color: var(--text-light);
  padding: 3rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
}

/* Animation utilities */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scientific content specific styles */
.scientific-content {
  max-width: 800px;
  margin: 0 auto;
}

.scientific-content p,
.scientific-content ul,
.scientific-content ol {
  margin-bottom: 1.5rem;
}

.scientific-content ul,
.scientific-content ol {
  padding-left: 1.5rem;
}

.citation {
  background-color: var(--bg-secondary);
  padding: 1rem;
  border-left: 4px solid var(--primary-color);
  margin: 1.5rem 0;
  font-style: italic;
}

blockquote {
  color: #000 !important;
  background: #fff !important;
  border-left: 6px solid #22d3ee !important;
  font-style: italic !important;
  padding: 1.2rem 2rem !important;
  margin: 1.5rem 0 !important;
  font-size: 1.1rem !important;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04) !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

table, th, td {
  border: 1px solid var(--border-color);
}

th, td {
  padding: 0.75rem;
  text-align: left;
}

th {
  background-color: var(--bg-secondary);
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: var(--bg-secondary);
}

/* Report specific styles */
.report-container {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.report-sidebar {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.report-toc {
  background-color: #ffffff !important;
  color: #1e293b !important;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.report-toc h3 {
  color: #1e293b !important;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.toc-links {
  list-style: none;
}

.toc-links li {
  margin-bottom: 0.5rem;
}

.toc-links a {
  color: #1e293b !important;
  transition: color 0.3s ease;
}

.toc-links a:hover,
.toc-links a.active {
  color: var(--primary-color) !important;
  text-decoration: none;
}

.report-content {
  flex: 1;
}

.report-section {
  margin-bottom: 3rem;
}

.report-section h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.report-section h3 {
  margin: 2rem 0 1rem;
}

/* Chart container */
.chart-container {
  margin: 2rem 0;
  padding: 1rem;
  /* Ensure high contrast readability regardless of theme */
  background-color: #ffffff !important;
  color: #1e293b !important;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

/* Ensure nested text inside chart containers remains dark for readability */
.chart-container * {
  color: #1e293b !important;
}

/* Download box */
.download-box {
  /* Maintain white background in both light and dark themes for consistency */
  background-color: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: var(--shadow);
}

/* Ensure nested text inside download boxes remains dark */
.download-box *, .report-toc * {
  color: #1e293b !important;
}

.download-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    gap: 0;
    padding: 2rem 1rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin-bottom: 1rem;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .report-container {
    flex-direction: column;
  }
  
  .report-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    max-height: none;
    margin-bottom: 2rem;
  }
  
  .stat-card {
    max-width: 100%;
  }
}

/* RTL Support for Arabic */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .footer-links,
[dir="rtl"] .nav-links {
  padding-right: 0;
}

[dir="rtl"] blockquote,
[dir="rtl"] .citation {
  border-left: none;
  border-right: 4px solid var(--accent-color);
}

/* Modern Animations and Effects */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.fade-in {
  animation: fadeIn 1.2s cubic-bezier(0.4,0,0.2,1) both;
}

.slide-up {
  animation: slideUp 1.2s cubic-bezier(0.4,0,0.2,1) both;
}

.scale-in {
  animation: scaleIn 1.1s cubic-bezier(0.4,0,0.2,1) both;
}

/* Staggered animation for child elements */
.staggered > * {
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.4,0,0.2,1) both;
}
.staggered > *:nth-child(1) { animation-delay: 0.1s; }
.staggered > *:nth-child(2) { animation-delay: 0.3s; }
.staggered > *:nth-child(3) { animation-delay: 0.5s; }
.staggered > *:nth-child(4) { animation-delay: 0.7s; }
.staggered > *:nth-child(5) { animation-delay: 0.9s; }

/* Section divider animation */
.section-divider {
  opacity: 0;
  animation: scaleIn 1.2s 0.5s cubic-bezier(0.4,0,0.2,1) both;
}

/* Headings and paragraphs */
h1, h2, h3, h4, h5, h6 {
  animation: fadeIn 1.1s cubic-bezier(0.4,0,0.2,1) both;
}
p, ul, ol {
  animation: slideUp 1.2s cubic-bezier(0.4,0,0.2,1) both;
}

/* Button and card hover effects */
.btn, .card {
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s;
}
.btn:hover, .card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 32px rgba(34,181,115,0.12), 0 1.5px 6px rgba(0,0,0,0.08);
}

/* Animate nav and footer */
header, footer {
  animation: fadeIn 1.5s cubic-bezier(0.4,0,0.2,1) both;
}

/* Animate hero image */
.hero-img {
  animation: scaleIn 1.3s cubic-bezier(0.4,0,0.2,1) both;
}

/* Animate section images */
.section-img {
  animation: fadeIn 1.5s cubic-bezier(0.4,0,0.2,1) both;
}

/* Responsive design */
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .hero h1 { font-size: 2.1rem; }
  section { padding: 2.5rem 0; }
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.4rem;
    -webkit-text-stroke: 0.3px #fff;
    text-stroke: 0.3px #fff;
  }
  .hero p { font-size: 1rem; }
  .section-divider { width: 40px; }
  .btn, .btn-primary, .btn-outline { font-size: 1rem; padding: 0.7rem 1.2rem; }
}

/* Remove default image styles for imageless design */
img, .hero-img, .section-img {
  display: none !important;
}

.card .btn,
.stat-card .btn,
.download-box .btn {
  margin-top: 1.2rem;
  display: inline-block;
}

/* Ensure card headings inherit white color */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.stat-card h1, .stat-card h2, .stat-card h3, .stat-card h4, .stat-card h5, .stat-card h6,
.download-box h1, .download-box h2, .download-box h3, .download-box h4, .download-box h5, .download-box h6,
.report-toc h1, .report-toc h2, .report-toc h3, .report-toc h4, .report-toc h5, .report-toc h6,
.chart-container h1, .chart-container h2, .chart-container h3, .chart-container h4, .chart-container h5, .chart-container h6,
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* All other headings are white for dark backgrounds */
h1, h2, h3, h4, h5, h6 {
  color: #fff !important;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
  color: #000 !important;
  text-shadow: none !important;
}

/* Footer heading colors adapt to theme */
[data-theme="dark"] footer h1,
[data-theme="dark"] footer h2,
[data-theme="dark"] footer h3,
[data-theme="dark"] footer h4,
[data-theme="dark"] footer h5,
[data-theme="dark"] footer h6 {
  color: #ffffff !important;
} 