/* LAYOUT PRINCIPAL — Grid del container*/
   .container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto 1fr auto auto;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
      "Logo Icons Settings"
      "Works Works Works"
      "Links Suscribe Social"
      "FOOTER FOOTER FOOTER";
    min-height: 100vh;
  }
  
  .Logo    { grid-area: Logo; }
  .Icons   { grid-area: Icons; }
  .Settings { grid-area: Settings; }
  .Works   { grid-area: Works; }
  .Links   { grid-area: Links; }
  .Suscribe { grid-area: Suscribe; }
  .Social  { grid-area: Social; }
  .FOOTER  { grid-area: FOOTER; }
  
  /*  WORKS — subgrid interno*/
  .Works {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 0px;
  }
  
  .ANIMACIONES { grid-area: 1 / 1 / 2 / 2; }
  .TEXTURAS    { grid-area: 2 / 1 / 3 / 2; }
  .MODELADO    { grid-area: 3 / 1 / 4 / 2; }
  .Edicion     { grid-area: 4 / 1 / 5 / 2; }
  
  /* 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*/
  .Settings {
    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: '☀️';
  }
  
  /*ANIMACIONES (seccion Works)*/

.welcome-message, .ULTIMOS, .intro { /* Texto de bienvenida */
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px var(--bg-dark);
    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; }
}


.trabajo-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  max-width: 90%;
  margin: 16px auto;
}

.trabajo-card video {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 6px;
  display: block;
  background: #000;
}

.trabajo-card_header {
  grid-column: 1 / -1;
  padding: 16px;
  background-color: var(--primary);
}

.ImagenTrabajo {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.5s ease;
  -webkit-transition: transform 0.5s ease;
  -moz-transition: transform 0.5s ease;
  -ms-transition: transform 0.5s ease;
  -o-transition: transform 0.5s ease;
}

.ImagenTrabajo:hover {
  transform: scale(1.05);
}

.trabajo-card_header .trabajo-card_nombre {
  font-size: 16px;
  text-align: center;
}
  /* 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);
  }
  
  /* FOOTER — Redes Sociales */
  .Social {
    padding: 30px;
    text-align: center;
  }
  
  .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);
  }
  
  /* FOOTER — Copyright*/
  .FOOTER {
    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);
  }
  
  /*Tamaño— Móviles (hasta 768px)*/
  @media (max-width: 768px) {
    .container {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
  
    .Logo {
      order: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 10px;
    }
  
    .Icons {
      order: 2;
      padding: 20px;
    }
  
    .Settings {
      position: fixed;
      top: 15px;
      right: 15px;
      z-index: 100;
    }
  
    .Works {
      order: 3;
      flex: 1;
      padding: 20px;
    }
  
    .Links,
    .Suscribe,
    .Social {
      padding: 10px;
      order: 4;
      display: flex;
      align-items: center;
      flex-direction: column;
    }
  
    .FOOTER {
      order: 5;
    }
  }
  
  /*Tamaño — Tablets (769px – 1024px) */
  @media (min-width: 769px) and (max-width: 1024px) {
    .container {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
  
    .Logo {
      order: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 10px;
    }
  
    .Icons {
      order: 2;
      padding: 20px;
    }
  
    .Settings {
      position: fixed;
      top: 15px;
      right: 15px;
      z-index: 100;
    }
  
    .Works {
      order: 3;
      flex: 1;
      padding: 20px;
    }
  
    .Links,
    .Suscribe,
    .Social {
      padding: 10px;
      order: 4;
      display: flex;
      align-items: center;
      flex-direction: column;
    }
  
    .FOOTER {
      order: 5;
    }
  }
  
  /*  Tamaño — Ordenadores (desde 1025px)*/
  @media (min-width: 1025px) {
    .container {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-rows: auto 1fr auto auto;
      grid-template-areas:
        "Logo Icons Settings"
        "Works Works Works"
        "Links Suscribe Social"
        "FOOTER FOOTER FOOTER";
      gap: 0px;
      min-height: 100vh;
    }
  }