@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&family=Poppins:wght@300;400;600;700&display=swap");

:root {
    --primary-color: #f9f38b;
    --secondary-color: #202221;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --background-color: #f4f4f4;
    --card-background: #ffffff;
    --card-border: rgba(0, 0, 0, 0.1);
    --nav-background: rgba(249, 243, 139, 0.95);
    --button-text: #ffffff;
    --section-background: #ffffff;
}

/* Tema oscuro paleta colores */
[data-theme="dark"] {
    --primary-color: #f9f38b;
    --secondary-color: #202221;
    --accent-color: #ff8585;
    --text-color: #e1e1e1;
    --background-color: #161616;
    --card-background: #1e1e1e;
    --card-border: rgba(255, 255, 255, 0.05);
    --nav-background: rgba(30, 30, 30, 0.95);
    --button-text: #161616;
    --section-background: #1e1e1e;
}

/* Actualizaciones para el modo oscuro */
[data-theme="dark"] {
    .section::after {
        background-color: var(--primary-color);
    }

    & .bento-section {
        background-color: var(--background-color);
    }

    & .work-tech li {
        background-color: var(--accent-color);
        color: var(--button-text);
    }

    & .subtitle-card {
        background: var(--primary-color);
        color: var(--button-text);
    }

    & .mascot-card {
        background: var(--accent-color);
    }

    & .chat-card {
        background: #292a2a;
    }

    & .chat-message.sender {
        background-color: var(--primary-color);
        color: var(--button-text);
    }

    & .chat-message.receiver {
        background-color: var(--accent-color);
        color: var(--button-text);
    }

    & .chat-button {
        background-color: var(--accent-color);
        color: var(--button-text);
    }

    & .section {
        background-color: var(--background-color);
    }

    & .work-item,
    & .project-item {
        background-color: var(--card-background);
        border-color: var(--accent-color);
        color: var(--text-color);
    }

    & .tech-category {
        background-color: var(--card-background);
        border-color: var(--accent-color);
    }

    & .tech-category-title {
        color: var(--text-color);
    }

    & .tech-item {
        background-color: var(--accent-color);
        color: var(--button-text);
    }
    & .tech-item:hover
    {
        background-color: var(--primary-color);
    }

    & .contact-section {
        background-color: var(--background-color);
    }

    & .contact-title,
    & .contact-link,
    & .form-label {
        color: var(--text-color);
    }

    & .form-input {
        background-color: var(--card-background);
        border-color: var(--accent-color);
        color: var(--text-color);
    }

    & .submit-btn {
        background-color: var(--accent-color);
        color: var(--button-text);
    }

    & .project-item a {
        color: var(--accent-color);
    }

    /* Sombras y efectos hover */
    & .bento-item:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    & .chat-button:hover {
        background-color: var(--text-color);
    }

    & .social-link {
        color: var(--accent-color);
    }

    & .social-link:hover {
        color: var(--text-color);
    }
}

/* Estilos del botón de tema actualizados */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-background);
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-color);
}

[data-theme="dark"] .theme-toggle {
    background-color: var(--accent-color);
    color: var(--button-text);
    box-shadow: 0 2px 10px rgba(255, 133, 133, 0.3);
}

[data-theme="dark"] .theme-toggle:hover {
    box-shadow: 0 0 20px var(--accent-color);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto Mono", monospace;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    padding: 1rem;
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}
nav a:hover {
    color: var(--accent-color);
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: "Roboto Mono", monospace;
    color: var(--secondary-color);
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.nav-links {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: rgba(249, 243, 139, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
}

.nav-links.active {
    left: 0;
}

.nav-links li {
    margin: 1rem 0;
    list-style: none;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Main Content */
main {
    padding-top: 60px;
}

/* Bento Grid */
.bento-section {
    min-height: 100vh;
    padding: 1rem;
    background-color: #f4f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-grid {
    display: grid;
    gap: 1rem;
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
}

.bento-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Subtitle Card */
.subtitle-card {
    background: var(--primary-color);
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-row: 1 / 2;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.subtitle-top {
    font-size: 4vw;
    text-align: center;
    line-height: 1.2;
    opacity: 0.8;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.subtitle {
    font-size: 6vw;
    text-align: center;
    line-height: 1.2;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mascot Card (bento) */
.mascot-card {
    grid-row: 2 / 3;
    background: var(--accent-color);
    padding: 1rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mascot-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Chat Card */
.chat-card {
    grid-row: 3 / 4;
    padding: 1rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chat-message {
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    font-size: 0.9rem;
    max-width: 85%;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-message.sender {
    background-color: var(--primary-color);
    color: #202221;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.receiver {
    background-color: var(--accent-color);
    color: #f4f5f5;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.chat-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.7s ease;

}

/* Section Styles */
.section {
    width: 100%;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

.section h2 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    transform: skew(-5deg);
}

.section::after {
    content: "";
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    transform: rotate(45deg);
    z-index: -1;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 0 auto;
}

/* Container query */
.about-content {
    container-type: inline-size;
}

@container (max-width: 600px) {
    .about-text {
        font-size: 0.7rem;
    }
}

@container (min-width: 1024px) {
    .about-text {
        text-align: justify;
        text-align-last: center;
        margin-bottom: 1rem;
    }
}

/* Skills */
.skills {
    width: 100%;
    margin-top: 1rem;
}

.skills h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.skills ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    list-style-type: none;
    padding: 0;
}

.skill {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Achievements */
.achievements {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
    gap: 1rem;
}

.achievement {
    text-align: center;
}

.achievement i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}
/* Works & Projects Sections */
.section-title {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    transform: skew(-5deg);
}

.works-container,
.projects-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.work-item,
.project-item {
    background-color: var(--primary-color);
    padding: 1.5rem;
    border: 3px solid var(--secondary-color);
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}
.project-item a {
    color: var(--accent-color);
}
.work-title,
.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.work-description,
.project-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.work-tech li {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    transform: skew(-5deg);
    list-style: none;
}

/* Technologies Section */
#technologies {
    padding: 3rem 1rem;
}

.tech-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.tech-category {
    background-color: var(--primary-color);
    border: 3px solid var(--secondary-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.tech-category-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tech-item {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    width: 100%;
    transform: skew(-2deg);
    transition: all 0.3s ease;
    display: block;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    min-height: 100vh;
    padding: 2rem 1rem;
    overflow: hidden;
}

.contact-container {
    width: 100%;
}

.contact-title {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    /*animation: slideIn 1s ease forwards;*/
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.link-text {
    font-weight: 700;
    text-transform: uppercase;
}

.link-info {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-link {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.form-input {
    font-size: 0.9rem;
    padding: 0.8rem;
    border: 2px solid var(--secondary-color);
    background-color: transparent;
    color: var(--secondary-color);
    transition: border-color 0.3s ease;
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    align-self: flex-start;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Animations */

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hover Effects */
@media (hover: hover) {
    .bento-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .subtitle-card:hover .subtitle,
    .subtitle-card:hover .subtitle-top {
        transform: scale(1.05);
    }

    .mascot-card:hover .mascot-image {
        transform: scale(1.1) rotate(5deg);
    }

    .chat-card:hover .chat-message {
        transform: translateY(-3px);
    }

    .chat-button:hover {
        transform: translateY(-2px) ;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background-color: var(--accent-color);
        transition: all 0.3s ease;

    }

    .skill:hover {
        transform: translateY(-5px) rotate(3deg);
        background-color: var(--accent-color);
    }

    .work-item:hover,
    .project-item:hover {
        transform: rotate(1deg) scale(1.02);
    }

    .tech-item:hover {
        transform: skew(-2deg) translateX(10px);
        background-color: var(--accent-color);
    }

    .contact-link:hover {
        transform: translateX(20px);
    }

    .contact-link:hover .link-info {
        opacity: 1;
        transform: translateY(0);
    }

    .social-link:hover {
        color: var(--accent-color);
        transform: translateY(-5px);
    }

    .submit-btn:hover {
        background-color: var(--accent-color);
        transform: translateY(-5px);
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .logo {
        font-size: 1.8rem;

    }
    /* Bento Grid */
    .bento-grid {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr auto;
        height: 80vh;
    }

    .subtitle-card {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .subtitle-top {
        font-size: 3vw;
    }

    .subtitle {
        font-size: 4vw;
    }

    .mascot-card {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .chat-card {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
    }

    /* Sections */
    .section {
        padding: 4rem 2rem;
    }

    .section h2 {
        font-size: 2.5rem;
    }

    /* Works Section */
    .works-container,
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Technologies Section */
    .tech-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact Section  */
    .contact-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-title {
        font-size: 4vw;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    /* Navigation */
    .hamburger-menu {
        display: none;
    }

    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
    }

    .nav-links li {
        margin: 0 1rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    /* Bento Grid */
    .bento-section {
        padding: 2rem;
    }

    .bento-grid {
        max-width: 1400px;

    }

    .subtitle-top {
        font-size: 2vw;
    }

    .subtitle {
        font-size: 5vw;
    }

    /* Sections */
    .section {
        padding: 6rem 2rem;
    }

    .section h2 {
        font-size: 3rem;
    }

    /* About Section */
    .about-content {
        max-width: 800px;
    }

    .achievements {
        flex-direction: row;
        justify-content: space-around;
        margin-top: 5rem;
    }

    /* Works Section */
    .works-container,
    .projects-container {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Technologies Section */
    .tech-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Contact Section */
    .contact-container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .contact-title {
        font-size: 6vw;
    }

    .contact-link {
        font-size: 2rem;
    }

    .social-link {
        font-size: 2rem;
    }
}

