/******************************************************/
/* =====           Base Styles                  ===== */
/******************************************************/
@font-face { font-family: DroidSansMNerdFontRegular;    src: url('../font/DroidSansMNerdFont-Regular.otf'); }
@font-face { font-family: DroidSans;                    src: url('../font/DroidSans.ttf');                  }
@font-face { font-family: DroidSansBold;                src: url('../font/DroidSans-Bold.ttf');             }
:root {
    --green: #9fef00;
    --bold: #141d2b;
    --super-bold: #111927;
    --white-1: #ebebeb;     /* White        */
    --white-2: #ddd;        /* Less White   */
    --grey-1: #b4c4e7;
    --grey-2: #868fa1;
    --background: #040331;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--green) transparent;
    font-family: DroidSans;

}
a           { text-decoration: none;                }
li::marker  { color: var(--green);                  }
p           { text-justify: auto; hyphens: auto;    }

/******************************************/
/* Headings and main CSS
/******************************************/
h1,h2,h3,h4,h5,h6 {
    font-family: DroidSansBold;
}
h1 {
    color: var(--white-1);
    font-size: 2.5rem;
}
h2 {
    color: var(--white-2);
}
h3 {
    font-size: 1.25rem;         /* 20 px */
    color: #daddea;
}
h4 {
    color: var(--white-2);
    font-size: 1.125rem;        /* 18 px*/
}
h5 {
    color: var(--white-1);
    font-size: 0.9rem;
}

@media only screen and (max-width: 767px) and (orientation: portrait) {
    header {
         margin-top: 2rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1rem;
    }
    h3 {
        font-size: 0.8rem;
    }
    h4 {
        font-size: 0.6rem;
    }
}

body {
    background-color: var(--background);
    color: var(--white-1);
    font-size: 0.95rem;
}

main {
    padding: 1rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    /* margin-top: 10rem; */
}

article {
    padding: 0.8rem 0rem;
}

header,
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header {
    padding: 0rem 2rem 1rem 2rem;
    height: 200px;
    /* position: fixed; */
    width: 100%;
    top: 0;
    z-index: 2;
}

footer {
    height: 120px;
    color: white;
    padding: 1rem;
    margin-top: 5rem;
    /* font-weight: 700; */
}

footer .left-side {
    display: flex;
    gap: 20px;
    align-items: center;
}

/*************************************************************************************
* Other CSS Classes                                 
* Imitamos a Tailwind CSS - añadirlo se sale mucho del scope del proyecto de clase            
*************************************************************************************/
.mw-40rem   { max-width: 40rem; }
.relative   { position: relative; }
.c-green    { color: var(--green); }
.bold       { font-family: DroidSansBold; }
.fs-15px    { font-size: 15px; }
.pb-05rem   { padding-bottom: 0.5rem; }
.pb-1rem    { padding-bottom: 1rem; }
.pb-2rem    { padding-bottom: 2rem; }
.mb-05rem   { margin-bottom: 0.5rem; }
.mb-1rem    { margin-bottom: 1rem; }
.divisor    { border-bottom: 1px solid #202837 !important; margin: 0rem 0rem 1rem 0rem; }
.no-anchor-colors { text-decoration: none; color: inherit;}
/******************************************************/
/*               NAVIGATION COMPONENTS         
/******************************************************/
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--green);
}

.logo img {
    border-radius: 150px;
    opacity: 0.9;
}

@media only screen and (max-width: 767px) and (orientation: portrait) {
    header {
         margin-top: 2rem;
    }
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

@media only screen and (max-width: 767px) and (orientation: portrait) {
    .nav-links {
        flex-direction: column;
    }
}

/******************************************/
/* Navigation Links
/******************************************/
.nav-links a {
    color: #daddea;
    text-decoration: none;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--green);
}
/******************************************/
/* Navigation <li> elements
/******************************************/
.nav-links li {
    padding: 0.5rem 1rem;
    /* background-color: #1a2332; */
    background-color: #0000001f;
    border: 1px solid #202837 !important;
    border-radius: 4px;
}
.nav-links li.active {
    border: 1px solid var(--green) !important;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
}

/******************************************/
/* Blur Effect
/******************************************/
.blur {
    background-size: 150%;
    background-position: center;
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(200px);
    opacity: 0.2;
    /* background: radial-gradient(ellipse at center, #9ae714 0%, #a331da 100%); */
    background: radial-gradient(ellipse at center, #6d2ed0eb 0%, #141d2b 100%);
    z-index: 0;
}

/******************************************/
/* Dark Box Component
/******************************************/
.dark-box {
    padding: 1rem;
    background-color: #0000004d;
    border-radius: 8px;
    box-shadow: 1px 1px 6px rgba(30, 50, 72, 0.51);
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); original */
    align-self: start;
    /* Prevent height increase || Hacemos que no crezcan de más. */
    border: 1px solid #252f41;
    transition: transform 0.15s linear, box-shadow 0.15s linear;
    /* transition: box-shadow 5s; */
}

/******************************************/
/* Loading Animation
/******************************************/
.loading {
    position: relative;
    width: 85px;
    height: 50px;
    background-repeat: no-repeat;
    background-image:
        linear-gradient(var(--green) 50px, transparent 0),
        linear-gradient(var(--green) 50px, transparent 0),
        linear-gradient(var(--green) 50px, transparent 0),
        linear-gradient(var(--green) 50px, transparent 0),
        linear-gradient(var(--green) 50px, transparent 0),
        linear-gradient(var(--green) 50px, transparent 0);
    background-position: 0px center, 15px center, 30px center, 45px center, 60px center, 75px center, 90px center;
    animation: loader 0.65s linear infinite alternate;
}

@keyframes loader {
    0% {background-size: 10px 3px;}
    16% {background-size: 10px 50px, 10px 3px, 10px 3px, 10px 3px, 10px 3px, 10px 3px}
    33% {background-size: 10px 30px, 10px 50px, 10px 3px, 10px 3px, 10px 3px, 10px 3px}
    50% {background-size: 10px 10px, 10px 30px, 10px 50px, 10px 3px, 10px 3px, 10px 3px}
    66% {background-size: 10px 3px, 10px 10px, 10px 30px, 10px 50px, 10px 3px, 10px 3px}
    83% {background-size: 10px 3px, 10px 3px, 10px 10px, 10px 30px, 10px 50px, 10px 3px}
    100% {background-size: 10px 3px, 10px 3px, 10px 3px, 10px 10px, 10px 30px, 10px 50px}
}

/******************************************************/
/*               Profile Components
/******************************************************/
.profile-section {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-section section {
    padding: 0.8rem 0rem;
}

.info-container {
    padding: 1rem 0rem 0rem 0.5rem
}

.list-container {
    padding: 0rem 1rem;
}

.list-container.flex {
    display: flex;
    gap: 3rem;
}

.profile-section .skills-grid .dark-box:hover {
    transition: transform 0.15s linear, box-shadow 0.15s linear;
    transform: scale(1.05);
}

.profile-section .dark-box .horizontal-programming {
    display: flex;
    gap: 3.2rem;
    margin-bottom: 0.5rem;
}


/******************************************************/
/*               Experience Components
/******************************************************/
.experience-section, .academic-summary {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}
.academic-summary {
    margin: 0;
    gap: 0px;
}

.academic-summary h3 {
    color: var(--green);
}

.experience-section article h3 {
    color: var(--green);
}
.experience-section article:hover {
    transition: transform 0.2s linear;
    transform: scale(1.05);
    border: 1px solid var(--green);
    border-radius: 8px;
    cursor: pointer;
}

.experience-section article:hover h3 {
    color: var(--green);
}

.experience-section .dark-box p {
    margin-bottom: 0.5rem;
}

.experience-section .duration, .academic-summary .duration {
    color: #999;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.academic-summary .duration {
    color: var(--grey-1);
    margin: 0;
    margin-top: 0.5rem;
}

.experience-section p, ul .academic-summary p, ul {
    font-size: 0.9rem;
}

.academic-summary .list-container article {
    padding: 0;
}
.academic-summary .list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/******************************************************/
/*               Projects Components
/******************************************************/
.projects-section {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.projects-section h2 {
    margin-bottom: 0px;

}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #4CAF50;
    text-decoration: none;
}

.projects-section #repos {
    display: grid;
    gap: 1rem;
}

.projects-section #repos .description {
    color: #ddd;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.projects-section #repos h3 {
    color: var(--green);
}

.projects-section #repos a {
    transition: transform 0.2s linear;
}

.projects-section #repos a:hover {
    transition: transform 0.2s linear;
    transform: scale(1.05);
    border: 1px solid var(--green);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .contact-section {
        grid-template-columns: 1fr;
    }

    .skills-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }
}

/* Make the header effect background transparent */
#finisher-canvas {
    background-color: #ffffff00 !important;
}
/******************************************************/
/*               Contact Components
/******************************************************/
.section-spacing-small {
    margin-top: 15px;
}

.contact-intro {
    margin-bottom: 20px;
}

.contact-section {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info .info-container, .contact-form .info-container {
    padding: 1rem 0rem 0rem 0rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 0 0;
}

.skills-grid h4 {
    color: var(--green);
}
.skills-grid .dark-box:hover {
    cursor: pointer;
    border: 1px solid var(--green);
}

.social-platforms {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.social-platform-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 20px;
    transition: transform 0.3s ease;
    width: 100%;
    
}

.social-platform-link:hover {
    transition: transform 0.2s linear;
    transform: scale(1.05);
    border: 1px solid var(--green);
    border-radius: 8px;
}

.social-platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.social-platform-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.linkedin-bg {
    background-color: #0077b5;
}

.github-bg {
    background-color: #6e5494;
}

.youtube-bg {
    background-color: #ff0000;
}

.social-platform-info {
    flex-grow: 1;
}

.social-platform-info h3 {
    color: var(--green);
    margin: 0 0 5px 0;
    font-size: 18px;
}

.social-platform-info p {
    color: var(--white-2);
    margin: 0;
    font-size: 14px;
}

.social-platform-arrow {
    margin-left: 20px;
}

.social-platform-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--green);
    stroke-width: 2;
}

.contact-form-container {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Ensure consistent appearance across fields */
    .form-row .form-group {
        margin-bottom: 0;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--green);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    width: 20px;
    height: 20px;
    opacity: 0.7;
    stroke: rgba(255, 255, 255, 0.7);
}

.textarea-icon {
    position: absolute;
    left: 12px;
    top: 12px;
    color: rgba(255, 255, 255, 0.7);
    width: 20px;
    height: 20px;
    opacity: 0.7;
    stroke: rgba(255, 255, 255, 0.7);
}

.form-input,
.form-textarea {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--white-1);
    border: 1px solid #4b5563;
    border-radius: 8px;
    padding: 12px 12px 12px 40px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Placeholder styling */
.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}


.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(159, 239, 0, 0.25);
    background-color: rgba(0, 0, 0, 0.4);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-container input {
    margin-right: 10px;
}

.checkbox-container label {
    font-size: 14px;
    color: var(--white-1);
}

.checkbox-container label a {
    color: var(--green);
    text-decoration: none;
}

.checkbox-container label a:hover {
    text-decoration: underline;
}

.form-submit {
    background-color: #202837;
    color: var(--white-1);
    font-weight: bold;
    padding: 12px 24px;
    border: 1px solid var(--green);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    background-color: rgba(159, 239, 0, 0.1);
}

.form-submit svg {
    margin-left: 8px;
    width: 20px;
    height: 20px;
    stroke: var(--green);
}

.submit-container {
    display: flex;
    gap: 20px;
}

.submit-wrapper {
    text-align: right;
    display: flex;
    align-items: center;
}

/* Security Information */
.security-info {
    margin-bottom: 20px;
}

.security-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.security-icon {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    color: var(--green);
    stroke: var(--green);
}

.security-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--green);
    margin: 0;
}

.security-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.security-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.security-item svg {
    width: 18px;
    height: 18px;
    color: var(--green);
    stroke: var(--green);
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.security-item-text {
    color: var(--white-1);
}

.security-note-box {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #4a5568;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.security-note-icon {
    width: 24px;
    height: 24px;
    color: var(--green);
    stroke: var(--green);
    margin-right: 12px;
    flex-shrink: 0;
}

.security-note-text {
    font-style: italic;
    color: var(--white-2);
    margin: 0;
}

/* Message Notification */
.message-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #202837;
    border: 1px solid var(--green);
    color: var(--white-1);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out forwards;
}

.message-notification.fadeOut {
    animation: fadeOut 0.5s ease-out forwards;
}

.notification-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    stroke: var(--green);
}

.notification-content p {
    margin: 0;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 4px;
    color: var(--green);
}

.notification-message {
    font-size: 14px;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* PGP Key Styles */
.pgp-key-container {
    margin-top: 20px;
}

.pgp-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    color: var(--white-1);
    font-size: 16px;
    text-align: left;
    transition: background-color 0.2s ease;
}

.pgp-toggle:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.pgp-toggle-icon {
    width: 20px;
    height: 20px;
    stroke: var(--green);
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.pgp-toggle.active .pgp-toggle-icon {
    transform: rotate(180deg);
}

.pgp-key-content {
    display: none;
    padding: 16px;
    margin-top: 1px;
    overflow: auto;
    font-family: monospace;
    font-size: 14px;
    color: var(--white-1);
    background-color: rgba(0, 0, 0, 0.3);
    max-height: 400px;
    white-space: pre-wrap;
}
@media (max-width: 768px) {
    .submit-container {
        flex-direction: column;
    }
}

