/* VantaVerve Page Specific Styles */
.section-character {
  z-index: auto;
  flex-flow: row;
  justify-content: space-around;
  align-items: stretch;
  width: 100%;
  height: auto;
  margin-top: 4rem;
  display: flex;
  position: relative;
  inset: 0%;
  overflow: visible;
}

.section-hero-image {
  z-index: auto;
  flex-flow: row;
  justify-content: space-around;
  align-items: stretch;
  width: 100%;
  height: auto;
  margin-top: 8rem;
  display: flex;
  position: relative;
  inset: 0%;
  overflow: visible;
}
/* Character Container */
.character-container {
  margin-top: 2em;
  margin-bottom: 2em;
  position: relative;
  width: 100%;
}

/* Portrait Card Styles */
.portrait-card {
  border: .2px solid var(--swatch--dark-secondary);
  border-radius: var(--size--4-5rem) var(--radius--small);
  opacity: 1;
  background-color: #0006;
  width: 25rem;
  height: 35rem;
  position: relative;
  overflow: hidden;
}

.portrait-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 255, 255, 0.1) 50%,
      rgba(255, 0, 255, 0.1) 100%);
  z-index: 2;
}

.no-margin-bottom{
  margin-bottom: 0;
}
.neural-interface {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
}

.circuit-lines {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: var(--size--4-5rem) var(--radius--small);
}

.circuit-lines::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 255, 255, 0.5);
  border-radius: 50%;
}

.glow-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
  animation: neuralPulse 3s ease-in-out infinite;
}

/* Name Overlay */
.name-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgb(0 0 0 / 47%);
  padding: 30px;
  border-radius: 1.7425rem 0;
  border: 0.929px solid var(--gradients-white-transparent-2, rgba(255, 255, 255, 0.20));
  background: var(--gradients-white-transparent-05, rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 1.859px 0 #3D1B72 inset;
  backdrop-filter: blur(18.58672332763672px);
  width: 90%;
}

.name-hero-image{
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 30px;
}

.name-text {
  color: white;
  font-family: 'xirod', monospace;
  font-size: 4.6rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

/* Side Icons */
.side-icons {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.icon-item {
  width: 50px;
  height: 50px;
  opacity: 0.9;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-item img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.9)) drop-shadow(0 0 20px rgba(0, 0, 0, 0.9));
  transition: all 0.3s ease;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  border: 0.929px solid rgba(255, 255, 255, 0.785);
  border-radius: 0 1rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 0 1.859px 0 #f8f7fa inset;
}

/* Thumbnail Elements */
.thumbnail-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.thumbnail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.thumbnail-item:hover {
  transform: translateY(-5px);
  filter: brightness(1.2);
}

.thumbnail-image {
  width: 80px;
  height: 80px;
  border-radius: 1rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid rgba(239, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(239, 255, 255, 0.2);
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(128, 0, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
  opacity: 1;
}

.thumbnail-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(251, 130, 0, 0.943) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
}

.thumbnail-label {
  font-family: 'Tx 02', monospace;
  font-size: 10px;
  font-weight: 500;
  color: #fffffe;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 162, 0, 0.5);
}

/* Cyber Plant Element */
.cyber-plant {
  margin-top: 30px;
  padding: 20px;
  background: rgba(0, 255, 100, 0.05);
  border: 1px solid rgba(0, 255, 100, 0.3);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.cyber-plant::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(0, 255, 100, 0.1) 0%, 
    rgba(0, 255, 150, 0.05) 50%, 
    rgba(0, 255, 100, 0.1) 100%);
  animation: plantPulse 3s ease-in-out infinite;
}

.plant-container {
  position: relative;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Main stem with organic curves */
.plant-stem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.stem-segment {
  position: relative;
  background: linear-gradient(to bottom, #00ff64, #00cc51);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 255, 100, 0.6);
  animation: stemGlow 2s ease-in-out infinite alternate;
}

.main-stem {
  width: 8px;
  height: 80px;
  border-radius: 4px;
  background: linear-gradient(to bottom, #00ff64, #00cc51, #00994a);
  transform: rotate(2deg);
}

.branch-1 {
  width: 6px;
  height: 40px;
  position: absolute;
  top: 20px;
  left: -15px;
  transform: rotate(-25deg);
  background: linear-gradient(to bottom, #00ff64, #00cc51);
}

.branch-2 {
  width: 5px;
  height: 35px;
  position: absolute;
  top: 35px;
  right: -12px;
  transform: rotate(20deg);
  background: linear-gradient(to bottom, #00ff64, #00cc51);
}

.branch-3 {
  width: 4px;
  height: 30px;
  position: absolute;
  top: 50px;
  left: -10px;
  transform: rotate(-15deg);
  background: linear-gradient(to bottom, #00ff64, #00cc51);
}

/* Organic leaf structures */
.plant-leaves {
  position: relative;
  margin: 10px 0;
  z-index: 3;
}

.leaf {
  position: absolute;
  background: linear-gradient(45deg, #00ff64, #00cc51, #00994a);
  border-radius: 50% 0 50% 0;
  box-shadow: 0 0 20px rgba(0, 255, 100, 0.8);
  animation: leafSway 4s ease-in-out infinite;
}

.leaf-1 {
  top: -15px;
  left: -25px;
  width: 25px;
  height: 15px;
  transform: rotate(-45deg);
  animation-delay: 0s;
}

.leaf-2 {
  top: -10px;
  right: -20px;
  width: 22px;
  height: 14px;
  transform: rotate(45deg);
  animation-delay: 0.5s;
}

.leaf-3 {
  bottom: -8px;
  left: -18px;
  width: 20px;
  height: 12px;
  transform: rotate(-30deg);
  animation-delay: 1s;
}

.leaf-4 {
  bottom: -5px;
  right: -15px;
  width: 18px;
  height: 11px;
  transform: rotate(35deg);
  animation-delay: 1.5s;
}

.leaf-5 {
  top: 15px;
  left: -12px;
  width: 16px;
  height: 10px;
  transform: rotate(-20deg);
  animation-delay: 2s;
}

/* Leaf details */
.leaf-vein {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 80%;
  background: linear-gradient(to bottom, #00ff88, #00cc51);
  border-radius: 1px;
}

.leaf-tip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 6px solid #00ff64;
}

/* Realistic root system */
.plant-roots {
  position: relative;
  margin-top: 15px;
  z-index: 1;
}

.root {
  position: absolute;
  background: linear-gradient(to bottom, #00ff64, #00cc51, #00994a);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 255, 100, 0.6);
  animation: rootGrow 3s ease-in-out infinite;
}

.root-1 {
  left: -12px;
  width: 4px;
  height: 25px;
  transform: rotate(-20deg);
  animation-delay: 0s;
}

.root-2 {
  left: -4px;
  width: 3px;
  height: 20px;
  transform: rotate(-10deg);
  animation-delay: 0.5s;
}

.root-3 {
  right: -4px;
  width: 3px;
  height: 22px;
  transform: rotate(8deg);
  animation-delay: 1s;
}

.root-4 {
  right: -10px;
  width: 4px;
  height: 18px;
  transform: rotate(15deg);
  animation-delay: 1.5s;
}

/* Root details */
.root-tip {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  border-top: 4px solid #00cc51;
}

.root-hair {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 8px;
  background: #00ff64;
  border-radius: 0.5px;
}

.root-hair::before,
.root-hair::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 6px;
  background: #00ff64;
  border-radius: 0.5px;
}

.root-hair::before {
  left: -3px;
  transform: rotate(-15deg);
}

.root-hair::after {
  right: -3px;
  transform: rotate(15deg);
}

/* Plant glow and energy effects */
.plant-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, 
    rgba(0, 255, 100, 0.15) 0%, 
    rgba(0, 255, 100, 0.08) 40%, 
    transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.energy-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 4;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #00ff64;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 255, 100, 0.8);
  animation: particleFloat 6s ease-in-out infinite;
}

.p1 {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.p2 {
  top: 40%;
  right: 25%;
  animation-delay: 1.5s;
}

.p3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 3s;
}

.p4 {
  bottom: 20%;
  right: 35%;
  animation-delay: 4.5s;
}

.plant-data {
  margin-top: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 100, 0.2);
}

.data-line {
  color: #00ff64;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  margin: 5px 0;
  text-shadow: 0 0 5px rgba(0, 255, 100, 0.5);
  animation: dataFlicker 2s ease-in-out infinite;
}

.data-line:nth-child(2) {
  animation-delay: 0.3s;
}

.data-line:nth-child(3) {
  animation-delay: 0.6s;
}

/* Radar Display */
.ui-radar-display {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.radar-container {
  position: absolute;
  right: 10rem;
  bottom: 10rem;
}

.radar-label {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  color: rgba(0, 255, 255, 0.8);
  font-family: 'Tx 02', monospace;
}

.radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Tx 02', monospace;
}

/* Animations */
@keyframes neuralPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes plantPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes stemGlow {
  0% { box-shadow: 0 0 10px rgba(0, 255, 100, 0.6); }
  100% { box-shadow: 0 0 20px rgba(0, 255, 100, 0.9); }
}

@keyframes leafSway {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.1); }
}

@keyframes rootGrow {
  0% { height: 15px; opacity: 0.7; }
  50% { height: 20px; opacity: 1; }
  100% { height: 15px; opacity: 0.7; }
}

@keyframes glowPulse {
  0%, 100% { 
    opacity: 0.3; 
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    opacity: 0.6; 
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes dataFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-10px) translateX(5px) scale(1.1); opacity: 0.6; }
  100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 1200px) {
  .radar-container {
    right: 5rem;
    bottom: 5rem;
  }
}

@media (max-width: 1024px) {
  /* Tablet landscape */
  .portrait-card {
    width: 22rem;
    height: 30rem;
  }
  
  .radar-container {
    right: 3rem;
    bottom: 3rem;
  }
  
  .thumbnail-row {
    gap: 1.5rem;
  }
  
  .thumbnail-image {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  /* Tablet portrait and mobile landscape */
  
  /* Force single column layout */
  .container.flex-horizontal {
    flex-direction: column !important;
  }
  
  .section-col {
    width: 100% !important;
    margin-bottom: 2rem;
  }
  
  /* Invert column order - first becomes last, middle stays middle, last becomes first */
  .section-col:nth-child(1) {
    order: 3;
  }
  
  .section-col:nth-child(2) {
    order: 2;
  }
  
  .section-col:nth-child(3) {
    order: 1;
  }
  
  /* Center only the first and third elements */
  .section-col:nth-child(1),
  .section-col:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* Center the text content within the first and third columns */
  .section-col:nth-child(1) .text-card,
  .section-col:nth-child(3) .text-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  
  /* Adjust portrait card for mobile */
  .portrait-card {
    width: 100%;
    max-width: 20rem;
    height: 28rem;
    margin: 0 auto;
  }
  
  /* Improve cyber plant mobile layout */
  .cyber-plant {
    margin-top: 20px;
    padding: 15px;
    width: 100%;
    max-width: 100%;
  }
  
  .plant-container {
    height: 100px;
  }
  
  .leaf {
    width: 16px;
    height: 10px;
  }
  
  .data-line {
    font-size: 11px;
  }
  
  /* Optimize thumbnail layout for mobile */
  .thumbnail-row {
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .thumbnail-image {
    width: 60px;
    height: 60px;
  }
  
  .thumbnail-label {
    font-size: 9px;
  }
  
  /* Adjust radar position for mobile */
  .radar-container {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
  }
  
  /* Mobile name overlay adjustments */
  .name-overlay {
    padding: 20px;
    width: 85%;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .name-text {
    font-size: 1.5rem;
  }
  
  /* Mobile side icons adjustments */
  .side-icons {
    right: 15px;
    gap: 8px;
  }
  
  .icon-item {
    width: 40px;
    height: 40px;
  }
  
  /* Improve text readability on mobile */
  .text-card {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .u-text-main p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  /* Mobile-specific layout improvements */
  .section-wrap-content {
    margin-top: 2em;
    margin-bottom: 2em;
  }
  
  .text-card.slide-in-left {
    margin-top: 2rem;
  }
  
  .image-card {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  /* Mobile portrait */
  
  /* Invert column order - first becomes last, middle stays middle, last becomes first */
  .section-col:nth-child(1) {
    order: 3;
  }
  
  .section-col:nth-child(2) {
    order: 2;
  }
  
  .section-col:nth-child(3) {
    order: 1;
  }
  
  /* Center only the first and third elements */
  .section-col:nth-child(1),
  .section-col:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* Center the text content within the first and third columns */
  .section-col:nth-child(1) .text-card,
  .section-col:nth-child(3) .text-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  
  .portrait-card {
    max-width: 18rem;
    height: 25rem;
  }
  
  .cyber-plant {
    margin-top: 15px;
    padding: 10px;
  }
  
  .plant-container {
    height: 80px;
  }
  
  .thumbnail-row {
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .thumbnail-image {
    width: 50px;
    height: 50px;
  }
  
  .thumbnail-label {
    font-size: 8px;
  }
  
  .name-overlay {
    padding: 15px;
    width: 80%;
  }
  
  .name-text {
    font-size: 1.2rem;
  }
  
  .icon-item {
    width: 35px;
    height: 35px;
  }
  
  .side-icons {
    right: 10px;
    gap: 6px;
  }
  
  /* Improve mobile spacing */
  .character-container {
    margin-top: 1em;
    margin-bottom: 1em;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .text-card {
    padding: 1rem;
  }
  
  .u-text-main p {
    font-size: 0.85rem;
  }
  
  /* Additional mobile optimizations */
  .section-wrap-content {
    margin-top: 1em;
    margin-bottom: 1em;
  }
  
  .text-card.slide-in-left {
    margin-top: 1rem;
  }
}

@media (max-width: 360px) {
  /* Small mobile devices */
  
  /* Invert column order - first becomes last, middle stays middle, last becomes first */
  .section-col:nth-child(1) {
    order: 3;
  }
  
  .section-col:nth-child(2) {
    order: 2;
  }
  
  .section-col:nth-child(3) {
    order: 1;
  }
  
  /* Center only the first and third elements */
  .section-col:nth-child(1),
  .section-col:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* Center the text content within the first and third columns */
  .section-col:nth-child(1) .text-card,
  .section-col:nth-child(3) .text-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  
  .portrait-card {
    max-width: 16rem;
    height: 22rem;
  }
  
  .name-overlay {
    padding: 12px;
    width: 75%;
  }
  
  .name-text {
    font-size: 1rem;
  }
  
  .thumbnail-image {
    width: 45px;
    height: 45px;
  }
  
  .icon-item {
    width: 30px;
    height: 30px;
  }
  
  .side-icons {
    right: 8px;
    gap: 5px;
  }
  
  .cyber-plant {
    padding: 8px;
  }
  
  .plant-container {
    height: 70px;
  }
  
  .data-line {
    font-size: 10px;
  }
  
  /* Ultra-small mobile optimizations */
  .section-wrap-content {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
  }
  
  .text-card {
    padding: 0.8rem;
  }
  
  .u-text-main p {
    font-size: 0.8rem;
  }
}
