
@import url('floating-unified.css');    /* ← ÚLTIMO */
@import url('reset.css');      /* General reset: MUST come first */
@import url('footer-header.css');     /* floatingheaderfooter*/
@import url('layout.css');     /* Layout styles for structure */
@import url('components2.css'); /* Component-specific styles */
@import url('utilities.css');  /* Helper classes and utilities */
@import url('animations.css'); /* Animations */
@import url('responsive.css'); /* Media queries and responsive design */




/* General Styles */
body {
    position: relative; /* Creates stacking context */
    margin: 0;
    background: #f0f0f0; /* Set a fallback background color */
    margin: 0;
    font-family: 'Poppins', 'Chivo Mono', 'Roboto', sans-serif;
    font-size: 16px; /* Tamaño base */
    line-height: 1.5; /* Espaciado entre líneas */
    
}



.wrapper > * {
    z-index: 2 !important;
}

/* Canvas for Links */
.wrapper {
    display: grid; /* Initially hidden */
    grid-template-columns: repeat(9, 1fr); /* 9 columnas iniciales */
    grid-auto-rows: minmax(150px, auto); /* Altura adaptable para las filas */
    grid-template-areas:
        ". c . . a . d . . "
        ". . j . . b . . . "
        "h . . i . . f . . "
        ". . g . . e . . . "
        ". . . . . . . . . ";
    
    width: 100vw; /* Ocupa todo el ancho del contenedor padre */
    gap: 20px;
    position: relative; /* Relativo para posicionar sus elementos */
    height: 100vh;
    min-height: 100vh; /* Match viewport height */
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #242424, #2d2d2d); /* Softer gradient */
    background-size: cover;
    transition: opacity 1s ease; /* Smooth transition for fading in */

}


/* Prevent Overflow Clipping */
.wrapper > * {
    z-index: 0; /* Ensure interactive items appear on top */
}

@supports not (display: grid) {
    .wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
    }
  }

/* Ensure wrapper is initially hidden */
#Miwrapper {
    display: grid;
    opacity: 0;
}

/* Chaotic Canvas styles */
#chaoticCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    font-family: 'Chivo Mono', sans-serif;
    overflow: hidden;
    z-index: 1000;
    pointer-events: none;
}

#chaoticCanvas span {
    position: absolute;
    color: white;
    font-size: 0.9rem;
    will-change: transform;
}



.animation-layer {
    position: fixed;
    z-index: 10;
    pointer-events: none;
}

#animation-area {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.word span {
    display: inline-block;
    transition: transform 0.3s ease;
}





/* Sections */
.section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
      padding: 5rem 1.5rem;
      text-align: left;
  }
  

/* Connection dots */
.link-dot {
    display: block;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Connection lines */
#connections {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.connection-line {
    stroke: #fcfbfb;
    stroke-width: 2;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.connection-line.highlight {
    stroke-width: 1.5;
    opacity: 0.9;
    stroke: #ffffff;
}

/* Link items */
.link-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
}

  /* Canvas for Links */
  .connection-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100 !important; /* Higher than link items */
    overflow: visible;
}




.connections-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow: visible;
}


/* Position each item in the grid */
.link-item.a { grid-area: a; }
.link-item.b { grid-area: b; }
.link-item.c { grid-area: c; }
.link-item.d { grid-area: d; }
.link-item.e { grid-area: e; }
.link-item.f { grid-area: f; }
.link-item.g { grid-area: g; }
.link-item.h { grid-area: h; }
.link-item.i { grid-area: i; }
.link-item.j { grid-area: j; }



/* Letter Effects */
.letter {
    display: inline-block;
    transition: transform 0.3s ease;
}

#Miwrapper, #animation-area {
    z-index: 100; /* Asegura que los links estén encima */
}

@keyframes pulseLines {
    0% { stroke-width: 1px; opacity: 0.4; }
    50% { stroke-width: 2px; opacity: 0.6; }
    100% { stroke-width: 1px; opacity: 0.4; }
}


