/* 7R Ventures Thesis Landing Page Styles */

/* Additional refinements and overrides */
.page-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Enhanced DNA animation */
.dna-strand::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 20px,
    rgba(16, 185, 129, 0.15) 20px,
    rgba(16, 185, 129, 0.15) 22px
  );
  animation: dnaBasePairs 8s infinite linear;
}

@keyframes dnaBasePairs {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-40px);
  }
}

/* Enhanced neural network connections */
.neural-connection {
  position: absolute;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 129, 0.3),
    transparent
  );
  animation: neuralConnection 5s infinite ease-in-out;
}

.neural-connection:nth-child(1) {
  top: 25%;
  left: 25%;
  width: 120px;
  transform: rotate(45deg);
  animation-delay: 0s;
}

.neural-connection:nth-child(2) {
  top: 45%;
  left: 65%;
  width: 100px;
  transform: rotate(-30deg);
  animation-delay: 1.5s;
}

.neural-connection:nth-child(3) {
  top: 65%;
  left: 35%;
  width: 140px;
  transform: rotate(15deg);
  animation-delay: 3s;
}

@keyframes neuralConnection {
  0%, 100% {
    opacity: 0.2;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 0.6;
    transform: scaleX(1.3);
  }
}

/* Enhanced text animations */
.manifesto {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(16, 185, 129, 0.6) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.thesis-code {
  position: relative;
  display: inline-block;
}

.thesis-code::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 129, 0.8),
    transparent
  );
  animation: codeUnderline 3s infinite ease-in-out;
}

@keyframes codeUnderline {
  0%, 100% {
    opacity: 0.3;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.2);
  }
}

/* Enhanced portal button */
.portal-button {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 0 20px rgba(16, 185, 129, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.portal-button:hover {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 
    0 0 30px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Enhanced chat interface */
.chat-interface {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0, 2, 18, 0.95);
  border-top-left-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 
    -10px -10px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(16, 185, 129, 0.1);
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.5);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  max-width: 80%;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: rgba(16, 185, 129, 0.6);
  border-radius: 50%;
  animation: typingPulse 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingPulse {
  0%, 60%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  30% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Enhanced focus states */
.portal-button:focus,
.chat-input:focus,
.close-chat:focus {
  outline: 2px solid rgba(16, 185, 129, 0.5);
  outline-offset: 2px;
}

/* Loading states */
.portal-button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.portal-button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid rgba(16, 185, 129, 0.8);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive enhancements */
@media (max-width: 480px) {
  .manifesto {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .identity {
    font-size: 1.1rem;
  }
  
  .thesis {
    font-size: 0.8rem;
  }
  
  .portal-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.75rem;
  }
  
  .chat-header {
    padding: 1.2rem;
  }
  
  .chat-title {
    font-size: 1.1rem;
  }
  
  .chat-subtitle {
    font-size: 0.75rem;
  }
  
  .chat-interface {
    width: 100%;
    height: 70%;
    border-top-left-radius: 0;
    border-top-right-radius: 20px;
  }
  
  .chat-header {
    border-top-left-radius: 0;
    border-top-right-radius: 20px;
  }
  
  .chat-messages {
    max-height: calc(70vh - 120px);
  }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .chat-interface {
    width: 35%;
    height: 50%;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .thesis-code {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.8);
  }
  
  .portal-button {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
  }
  
  .portal-button:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .dna-strand,
  .neural-node,
  .pulse-light,
  .portal-button::before,
  .thesis-code::after {
    animation: none;
  }
  
  .portal-button:hover {
    transform: none;
  }
  
  .manifesto,
  .identity,
  .thesis,
  .portal-button {
    animation: none;
    opacity: 1;
  }
}

/* Print styles */
@media print {
  .dna-background,
  .dna-helix,
  .neural-network,
  .pulse-light,
  .portal-button {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .content-container {
    height: auto;
    padding: 2rem;
  }
  
  .manifesto {
    background: none;
    -webkit-text-fill-color: black;
    color: black;
    text-shadow: none;
  }
  
  .thesis-code {
    color: black;
  }
} 