
/* ===== GRID PARA LA PAGINA PRINCIPAL ===== */
.container {  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0px 0px;
  grid-auto-flow: row;
  min-height: 100vh;
}


/* ===== GRID AREAS  ===== */
.LOGO { grid-area: 1 / 1 / 2 / 2;    }

.ICONS { grid-area: 1 / 2 / 2 / 3; }

.SETTIGNS { grid-area: 1 / 3 / 2 / 4; }

.MAIN { grid-area: 2 / 1 / 3 / 4; }

.LINKS { grid-area: 3 / 1 / 4 / 2; }

.SUSCRIBE { grid-area: 3 / 2 / 4 / 3; }

.SOCIAL { grid-area: 3 / 3 / 4 / 4; }


  /*LOGO */
.LOGO {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 12px;
  }
  
.LOGO img {
    max-width: 100px;
    max-height: 150px;
    width: auto;
    height: auto;
    box-shadow: 0 4px 8px var(--bg-dark);
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }
  
  .Logo img:hover {
    transform: scale(1.1);
  }
  
.LOGO a {
    text-decoration: none;
  }
  
.LOGO-text {
    display: flex;
    flex-direction: column;
  }
  
.portfolio-title {
    font-size: 11px;
    margin: 0;
    text-shadow: 1px 1px 2px var(--bg-dark);
  }
  
.name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px var(--bg-dark);
    transition: all 0.5s ease;
  }
  
.name::after {
    content: "Zakhar Oleksenko Shapoval";
  }
  
.name:hover::after {
    content: "Zakerii";
  }
  
  /*NAVEGACION */
.ICONS {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .NAVEGACION svg {
    filter: drop-shadow(3px 3px 2px #312e2e);
    stroke: var(--primary);
    -webkit-filter: drop-shadow(3px 3px 2px #312e2e);
    width: 40px;
    height: 40px;
  }
  
  .NAVEGACION a:hover svg {
    stroke: var(--secondary);
    filter: drop-shadow(0 0 8px var(--secondary));
  }
  
  .NAVEGACION ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 30px;
  }
  
  .NAVEGACION li {
    display: flex;
  }
  
  .NAVEGACION a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.4s;
  }
  
  .NAVEGACION a:hover {
    transform: scale(1.5);
  }
  
  /*SETTINGS*/
  .SETTIGNS {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
  }
  
  #lightmode-toggle {
    display: none;
  }
  
  .toggle {
    cursor: pointer;
    font-size: 22px;
    z-index: 200;
  }
  
  .toggle::after {
    content: '🌙';
    display: inline-block;
    line-height: 1;
  }
  
  #lightmode-toggle:checked + .toggle::after {
    content: '☀️';
  }


/* ===== MAIN ===== */


.MAIN h3, .MAIN p {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}
.intro {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.word-animation { /* Donde esta la animacion */
    color: var(--primary);
    font-weight: 600;
    display: inline-block;
    min-width: 200px;
    text-align: center ;
}

.word-animation::before { /* Duracion de la animacion*/
    content: "ANIMACIÓN 2D";
    animation: wordChangeFade 21s infinite;
    -webkit-animation: wordChangeFade 21s infinite;
}


@keyframes wordChangeFade {  /* Mediante el control de keyframe podemos dicir al texto que se vea y y cambie a otro nombre */
    0%, 12% { 
        content: "ANIMACIÓN 2D"; 
        opacity: 1;
    }
    13%, 14% { opacity: 0; }
    
    15%, 26% { 
        content: "ANIMACIÓN 3D"; 
        opacity: 1;
    }
    27%, 28% { opacity: 0; }
    
    29%, 40% { 
        content: "ENTORNOS INTERACTIVOS"; 
        opacity: 1;
    }
    41%, 42% { opacity: 0; }
    
    43%, 54% { 
        content: "VIDEOJUEGOS"; 
        opacity: 1;
    }
    55%, 56% { opacity: 0; }
    
    57%, 68% { 
        content: "MODELADO"; 
        opacity: 1;
    }
    69%, 70% { opacity: 0; }
    
    71%, 82% { 
        content: "TEXTURIZADO"; 
        opacity: 1;
    }
    83%, 84% { opacity: 0; }
    
    85%, 97% { 
        content: "EDICIÓN DE VIDEO"; 
        opacity: 1;
    }
    98%, 100% { opacity: 0; }
}



/* ===== SLIDER DE IMÁGENES ===== */
.wrapper {
    max-width: 1000px;  /* Limita el ancho máximo */
    margin: 30px auto;  /* Centra y añade espacio arriba/abajo */
   padding: 0 20px 60px 20px;   /* Espacio lateral en móvil */

}

.slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slides {
    position: relative;
    display: flex;
    overflow: hidden;
    aspect-ratio: 16/9;  /* Mantiene proporción 16:9 */
}

.slide {
    width: 100%;  /* Cada slide ocupa el 100% del contenedor */
    flex-shrink: 0;
    animation-name: slide;
    animation-duration: 20s;  /* Más lento = 5 segundos por imagen */
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;  /* Transición suave */
}

/* Pausar animación al hacer hover */
.slides:hover .slide {
    animation-play-state: paused;
}

/* Estilos de las imágenes */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Controles de navegación mejorados */
.slider-controler {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    text-align: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);  /* Efecto blur en el fondo */
    z-index: 100;
    border-radius: 30px;
    display: flex;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.slider-controler li {
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.slider-controler a {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    text-indent: -9999px;  /* Oculta el • */
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-controler a:hover {
    background: var(--secondary);
    border-color: white;
}

/* Animación del slider con transiciones suaves */
@keyframes slide {
    0%, 14% { 
        transform: translateX(0); 
    }
    16%, 30% { 
        transform: translateX(-100%); 
    }
    32%, 46% { 
        transform: translateX(-200%); 
    }
    48%, 62% { 
        transform: translateX(-300%); 
    }
    64%, 78% { 
        transform: translateX(-400%); 
    }
    80%, 94% { 
        transform: translateX(-500%); 
    }
    96%, 100% { 
        transform: translateX(0); 
    }
}


  /* FOOTER — Links */
  .LINKS {
    padding: 30px;
    text-align: center;
  }
  
  .LINKS h4 {
    margin-bottom: 12px;
  }
  
  .LINKS nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .LINKS nav ul li {
    margin-bottom: 8px;
  }
  
  .LINKS nav ul li a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
  }
  
  .LINKS nav ul li a:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--secondary);
  }
  
  /*Suscribirse */
  .SUSCRIBE {
    padding: 30px;
    text-align: center;
  }
  
  .SUSCRIBE h4 {
    margin-bottom: 15px;
    font-size: 18px;
  }
  
  .correo {
    padding: 10px;
    width: 200px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
  }
  
  .enviarboton {
    background-color: var(--danger);
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: white;
  }
  
  .enviarboton:hover {
    background-color: var(--success);
  }
  
  /*Redes Sociales*/
  .Redes {
    padding: 30px;
    text-align: center;
  }
  
  .Redes nav.redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .sigueme {
    font-weight: 600;
  }
  
  .Redes svg {
    filter: drop-shadow(3px 3px 2px #312e2e);
    stroke: var(--primary);
    width: 36px;
    height: 36px;
  }
  
  .Redes a:hover svg {
    stroke: var(--secondary);
    filter: drop-shadow(0 0 8px var(--secondary));
  }
  
  .Redes ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .Redes li {
    display: flex;
  }
  
  .Redes a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.4s;
  }
  
  .Redes a:hover {
    transform: scale(1.3);
  }

  /*Copyright*/

.FOOTER {
  grid-column: 1 / -1;
  padding: 20px 30px;
  text-align: center;
  border-top: 1px solid var(--border-muted);
}  
  .FOOTER h4,
  .FOOTER p {
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text);
} 
  .email a {
    color: var(--danger);
    text-decoration: none;
} 
.email a::before {
    content: "✉ ";
}
.email a:hover {
    color: var(--primary);
}

/* Ajestes de pantalas para móviles*/
@media (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .LOGO {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .ICONS {
        order: 3;
        padding: 20px;
    }

    .SETTIGNS {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 100;
    }

    .MAIN {
        order: 4;
        flex: 1;
        padding: 20px;
    }

    .FOOTER {
        order: 5;
    }

    .LINKS,
    .SUSCRIBE,
    .SOCIAL {
        padding: 10px;
        order: 6;
        align-items: center;
        flex-direction: column;
    }
}
/* Ajestes de pantalas para tablets*/
@media (max-width: 1024px) {
    .container {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .LOGO {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .ICONS {
        order: 3;
        padding: 20px;
    }

    .SETTIGNS {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 100;
    }

    .MAIN {
        order: 4;
        flex: 1;
        padding: 20px;
    }

    .FOOTER {
        order: 5;
    }

    .LINKS,
    .SUSCRIBE,
    .SOCIAL {
        padding: 10px;
        order: 6;
        align-items: center;
        flex-direction: column;
    }
}
/* Ajustes de pantallas para ordenadores */
@media (min-width: 1025px) {
    .container {
        display: grid;
        grid-template-columns: 0.9fr 1.1fr 1fr;
        grid-template-rows: auto 1fr auto;
        gap: 0px 0px;
        grid-auto-flow: row;
        min-height: 100vh;
    }
}