/* ===== GRID PRINCIPAL ===== */
.container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 80px 1fr auto;
  gap: 0px 0px;
  grid-auto-flow: row;
  min-height: 100vh;
  grid-template-areas:
    "Logo Icons Settings"
    "sobre-mi sobre-mi Imagen"
    "links suscribirse Redes"
    "FOOTER FOOTER FOOTER";
}

.Icons    { grid-area: Icons; }
.Logo     { grid-area: Logo; }
.Settings { grid-area: Settings; }
.links    { grid-area: links; }
.suscribirse { grid-area: suscribirse; }
.Redes    { grid-area: Redes; }
.Imagen   { grid-area: Imagen; }
.sobre-mi { grid-area: sobre-mi; }
.FOOTER   { grid-area: FOOTER; }

/* ===== 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;
}

.Logo img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.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);
}

.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);
}

.NAVEGACION svg {
    width: 40px;
    height: 40px;
}

/* ===== 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: '☀️';
}

/* ===== IMAGEN DE PERFIL ===== */
.Imagen {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
}

.foto-perfil {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--bg-dark);
    
}
.foto-perfil:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* ===== SOBRE MI ===== */
.sobre-mi {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.intro {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.word-animation {
    color: var(--primary);
    font-weight: 600;
    display: inline-block;
    min-width: 180px;
}

.word-animation::after {
    content: "SOBRE MI";
    animation: wordChangeFade 12s infinite;
    -webkit-animation: wordChangeFade 12s infinite;
}

@keyframes wordChangeFade {
    0%, 12%   { content: "PERSONAL";   opacity: 1; }
    13%, 14%  { opacity: 0; }
    15%, 26%  { content: "LABORAL";    opacity: 1; }
    27%, 28%  { opacity: 0; }
    29%, 40%  { content: "ACADÉMICO";  opacity: 1; }
    41%, 42%  { opacity: 0; }
    43%, 54%  { content: "HOBBIES";    opacity: 1; }
    55%, 100% { opacity: 0; }
}

.Personal, .Laboral, .Academico, .Hobies {
    padding: 16px 20px;
    border-left: 3px solid var(--primary);
    background: var(--highlight)
}

.Personal p, .Laboral p, .Academico p, .Hobies p {
    font-size: 32px;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    font-family: i; 
}

.info-personal, .info-laboral, .info-academico, .info-hobies {
    font-size: 20px;
    line-height: 1.7;
    display: block;
    
}

/* ===== FOOTER ===== */
.links {
    padding: 30px;
    text-align: center;
}

.links h4 {
    margin-bottom: 12px;
}

.links nav ul {
    list-style: none;
    padding: 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 {
    padding: 30px;
    text-align: center;
}

.suscribirse 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);
}

.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;
}

.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);
}
/* Tamaño de los iconos de redes sociales */
.Redes svg { 
    width: 36px;
    height: 36px;
}

/* ===== 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);
}

  .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;
    }
.Personal p, .Laboral p, .Academico p, .Hobies p {
    font-size: 18px;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    font-family: i; 
}
    .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;
    }

    .Personal p, .Laboral p, .Academico p, .Hobies p {
    font-size: 20px;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    font-family: i; 
}

    .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;
    }
}