@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    justify-content: center;
}

main {
    width: 1120px;
}

/* HEADER */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
    height: 80px;
    position: fixed;
    top: 0;
    z-index: 999;
    box-shadow: 0 1px 0 #F9FAFB;
    background: #fff;
    max-width: 1120px;
    width: 100%;
}

.logo-home {
    font-size: 24px;
    font-weight: 500;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-link {
    cursor: pointer;
    text-decoration: none;
    color: rgb(107,57,245);
    padding: 13px 16px;
    font-size: 16px;
}

.nav-link:hover {
    background-color: #D9D9D9;
    opacity: 0.9;
    border-radius: 8px;
}

.menu-btn {
    display: none;
    cursor: pointer;
    color: rgb(107,57,245);
}

/* HOME */

section#home {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 5px 20px;
}

.home-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

h2 {
    font-weight: 500;
    color: #42446E;
    font-size: 32px;
}

.name {
    font-size: 36px;
    font-weight: 700;
}

.name,
.logo-home {
    background: linear-gradient(315deg, #742DF6 25%, #25A2EF);
    background-clip: text;
    color: transparent;
}

.role {
    display: block;
    font-weight: 700;
    color: #42446E;
    font-size: 26px;
    white-space: nowrap;
    overflow: hidden;
    width: 0ch;
    border-right: 2px solid #42446E;
    animation: mark 0.5s step-end infinite, write 6s steps(40, end) infinite;
}

@keyframes mark {
    50% {
        border-right: transparent;
    }
}

@keyframes write {
    20% {
        width: 40ch;
    }
    70% {
        width: 40ch;
    }
    85% {
        width: 0;
    }
    100% {
        width: 0;
    }
}

.summary {
    color: #666666;
    font-size: 18px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 160px;
}

.social-links i {
    font-size: 28px;
    margin-bottom: 10px;
}

.social-links .instagram {
    color: #ee2a7b;
}

.social-links .linkedin {
    color: #0A66C2;
}

.social-links .github {
    color: #000;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.home-info button {
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    width: 140px;
    background: linear-gradient(315deg, #742DF6 25%, #25A2EF);
    font-size: 16px;
    opacity: 0.9;
}

.home-info button.resume-btn {
    background: linear-gradient(315deg, #25A2EF 25%, #742DF6);
    width: 150px;
}

a {
    text-decoration: none;
}

.home-info button:hover {
    opacity: 1;
}

.home-info button a {
    color: #FFF;
}

.profile {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile img {
    width: 250px;
    height: 250px;
    animation: float 5s ease-in-out infinite;
    box-shadow: 0 10px 10px;
    border-radius: 50%;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* ABOUT */

section#about {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
    padding: 5px 20px;
}

.about-info {
    width: 100%;
    margin-top: 12px;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.technology-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 200px;
    height: 80px;
    background: #F9FAFB;
    padding: 12px 12px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    margin: 24px 0 10px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out;
}

.technology-item img {
    width: 48px;
    height: 48px;
}

.technology-item h4 {
    margin-left: 12px;
    font-size: 16px;
}

.technologies .technology-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* PROJECTS */

section#projects {
    min-height: calc(100vh + 80px);
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    padding: 5px 20px;
}

.projects-info {
    width: 100%;
    margin-top: 12px;
}

.projects-summary {
    text-align: center;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
    align-items: stretch;
}

.project {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef0f3;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.project:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(116, 45, 246, 0.15);
}

.project-logo {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0ecff 0%, #e4f3fd 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-logo img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.project-body {
    padding: 18px 18px 14px;
    flex: 1;
}

.project h4 {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 600;
    color: #42446E;
    line-height: 1.4;
}

.tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-badge {
    background: linear-gradient(315deg, rgba(116, 45, 246, 0.08) 25%, rgba(37, 162, 239, 0.08));
    border: 1px solid rgba(116, 45, 246, 0.2);
    color: #5a3db5;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.project-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-top: 1px solid #f0f0f5;
    margin-top: auto;
}

.btn-description {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(315deg, #742DF6 25%, #25A2EF);
    color: #FFF;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-description:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.repository {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid #e0e0e8;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.repository:hover {
    border-color: #742DF6;
    background: rgba(116, 45, 246, 0.05);
}

.repository i {
    font-size: 18px;
    color: #333;
}

.repository span {
    color: #333;
    font-size: 13px;
    font-weight: 500;
}

#show-more-btn {
    display: none;
    margin: 28px auto 0;
    padding: 10px 28px;
    background: linear-gradient(315deg, #742DF6 25%, #25A2EF);
    color: #FFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.9;
}

#show-more-btn:hover {
    opacity: 1;
}

.projects-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    width: 100%;
}

.page-btn {
    padding: 8px 16px;
    border: 1.5px solid #742DF6;
    border-radius: 8px;
    background: none;
    color: #742DF6;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s;
}

.page-btn.active,
.page-btn:hover {
    background: linear-gradient(315deg, #742DF6 25%, #25A2EF);
    color: #FFF;
    border-color: transparent;
}

/* CONTACT */

section#contact {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 450px;
    width: 100%;
    padding: 5px 10px;
}

input,
textarea {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    border: none;
    padding: 16px;
    border-radius: 8px;
    outline: none;
    resize: none;
}

#contact form button {
    background: linear-gradient(315deg, #742DF6 25%, #25A2EF);
    color: #FFF;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.9;
    border: none;
    padding: 16px;
    border-radius: 8px;
    outline: none;
}

#contact form button:hover {
    opacity: 1;
}

/* FOOTER */

footer {
    padding: 20px;
    text-align: center;
    color: #42446E;
    font-size: 14px;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.logo-footer {
    color: #42446E;
    font-size: 16px;
    font-weight: 600;
}

.social-links-footer {
    display: flex;
    justify-content: space-between;
    width: 100px;
}

.social-links-footer i {
    font-size: 24px;
    color: #42446E;
}

/* DARK MODE */

.dark-mode, .dark-mode header {
    background:  #191919;
}

.dark-mode header {
    box-shadow: 0 1px 0 #A7A7A7;
}

.dark-mode .menu-btn {
    color: #A7A7A7;
}

.dark-mode .open {
    background:  #191919;
}

.dark-mode .nav-link {
    color: #A7A7A7;
}

.dark-mode .nav-link:hover {
    background-color: #42446E;
}

.dark-mode h2 {
    color: #D9D9D9;
}

.dark-mode .role {
    color: #D9D9D9;
    border-right: 2px solid #D9D9D9;
}

.dark-mode .summary {
    color: #A7A7A7;
}

.dark-mode .social-links .github {
    color: #fff;
}

.dark-mode .profile img {
    box-shadow: 0 10px 10px #A7A7A7;
}

.dark-mode .technology-item {
    box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.5);
}

.dark-mode .project {
    background: #2a2a2a;
    border-color: #3a3a3a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dark-mode .project:hover {
    box-shadow: 0 12px 32px rgba(116, 45, 246, 0.25);
}

.dark-mode .project-logo {
    background: linear-gradient(135deg, #1e1a2e 0%, #1a2435 100%);
}

.dark-mode .title {
    color: #D9D9D9;
}

.dark-mode .project h4 {
    color: #D9D9D9;
}

.dark-mode .description, .dark-mode .tech {
    color: #A7A7A7;
}

.dark-mode .tech-badge {
    background: rgba(116, 45, 246, 0.18);
    border-color: rgba(155, 111, 247, 0.35);
    color: #c4a5ff;
}

.dark-mode .repository {
    border-color: #444;
}

.dark-mode .repository:hover {
    border-color: #9b6ff7;
    background: rgba(116, 45, 246, 0.1);
}

.dark-mode .repository i,
.dark-mode .repository span {
    color: #D9D9D9;
}

.dark-mode input, .dark-mode textarea {
    box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.5);
}

.dark-mode footer {
    color: #A7A7A7;
}

.dark-mode .logo-footer {
    color: #A7A7A7;
}

.dark-mode .social-links-footer i {
    color: #A7A7A7;
}

/* DARK MODE — NEW ELEMENTS */

.dark-mode .subsection-title {
    color: #D9D9D9;
}

.dark-mode .education-block {
    background: #2a2a2a;
    border-left-color: #9b6ff7;
}

.dark-mode .edu-institution {
    color: #D9D9D9;
}

.dark-mode .edu-degree {
    color: #A7A7A7;
}

.dark-mode .course-pill {
    color: #D9D9D9;
    border-color: rgba(155, 111, 247, 0.5);
    background: rgba(116, 45, 246, 0.12);
}

.dark-mode .project-actions {
    border-top-color: #3a3a3a;
}

.dark-mode .page-btn {
    border-color: #9b6ff7;
    color: #A7A7A7;
}

.dark-mode .page-btn.active,
.dark-mode .page-btn:hover {
    color: #FFF;
    border-color: transparent;
}

/* DARK MODE — PROJECT DETAIL */

.dark-mode .project-detail-back a {
    color: #9b6ff7;
}

.dark-mode .project-detail-hero {
    background: #2a2a2a;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
}

.dark-mode .project-detail-meta h1 {
    color: #D9D9D9;
}

.dark-mode .project-detail-meta p.overview {
    color: #A7A7A7;
}

.dark-mode .tech-tag {
    color: #D9D9D9;
    border-color: rgba(155, 111, 247, 0.4);
    background: rgba(116, 45, 246, 0.12);
}

.dark-mode .project-section h3 {
    color: #D9D9D9;
    border-bottom-color: rgba(155, 111, 247, 0.35);
}

.dark-mode .project-section p.section-content {
    color: #A7A7A7;
}

.dark-mode .project-references h3 {
    color: #D9D9D9;
}

.dark-mode .project-references {
    border-top-color: #444;
}

.dark-mode .project-references ul li a {
    color: #9b6ff7;
}

/* ABOUT — EDUCATION & COURSES */

.subsection-title {
    color: #42446E;
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 12px 0;
}

.education-block {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #742DF6;
}

.edu-institution {
    font-size: 17px;
    font-weight: 600;
    color: #42446E;
    margin-bottom: 4px;
}

.edu-degree {
    font-size: 15px;
    color: #666666;
}

.courses-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.course-pill {
    background: linear-gradient(315deg, rgba(116, 45, 246, 0.08) 25%, rgba(37, 162, 239, 0.08));
    border: 1.5px solid rgba(116, 45, 246, 0.3);
    color: #42446E;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* PROJECT DETAIL PAGE */

.project-detail-container {
    padding: 100px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.project-detail-back {
    margin-bottom: 24px;
}

.project-detail-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #742DF6;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.project-detail-back a:hover {
    opacity: 0.75;
}

.project-detail-hero {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.project-detail-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.project-detail-img-wrap {
    flex-shrink: 0;
    width: 180px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef0f3;
}

.project-detail-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-detail-meta {
    flex: 1;
}

.project-detail-meta h1 {
    color: #42446E;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-detail-meta p.overview {
    color: #666666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-tag {
    background: linear-gradient(315deg, rgba(116, 45, 246, 0.1), rgba(37, 162, 239, 0.1));
    border: 1.5px solid rgba(116, 45, 246, 0.25);
    color: #42446E;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.github-link-hero {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: #24292e;
    color: #FFF;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.github-link-hero:hover {
    opacity: 0.85;
}

.github-link-hero i {
    font-size: 18px;
}

.project-section {
    margin-bottom: 32px;
}

.project-section h3 {
    color: #42446E;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(116, 45, 246, 0.2);
}

.project-section p.section-content {
    color: #666666;
    font-size: 15px;
    line-height: 1.75;
}

.code-block {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
}

.code-header {
    background: #2d2d2d;
    padding: 8px 16px;
    display: flex;
    align-items: center;
}

.code-lang {
    color: #A7A7A7;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-block pre {
    margin: 0;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d4d4d4;
    white-space: pre;
    overflow-x: auto;
    line-height: 1.6;
}

.section-image img {
    width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.img-caption {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-top: 6px;
}

.project-references {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.project-references h3 {
    color: #42446E;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
}

.project-references ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-references ul li a {
    color: #742DF6;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.project-references ul li a:hover {
    opacity: 0.75;
}

/* PROJECT DETAIL — URL section */

.section-url-block {
    margin-top: 8px;
}

.section-url-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(315deg, rgba(116,45,246,0.08) 25%, rgba(37,162,239,0.08));
    border: 1.5px solid rgba(116,45,246,0.25);
    border-radius: 8px;
    color: #742DF6;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.section-url-link:hover {
    background: linear-gradient(315deg, rgba(116,45,246,0.15) 25%, rgba(37,162,239,0.15));
    border-color: #742DF6;
}

.section-url-desc {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.6;
}

/* PROJECT DETAIL — Markdown body */

.markdown-body {
    color: #444;
    font-size: 15px;
    line-height: 1.8;
    font-family: 'Montserrat', sans-serif;
    white-space: normal;
    background: none;
    border: none;
    padding: 0;
    overflow: visible;
}

.markdown-body h1,.markdown-body h2,.markdown-body h3 {
    color: #42446E;
    margin: 16px 0 8px;
}

.markdown-body p { margin: 0 0 12px; }

.markdown-body ul,.markdown-body ol {
    padding-left: 22px;
    margin-bottom: 12px;
}

.markdown-body li { margin-bottom: 4px; }

.markdown-body code {
    background: #f0ecff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 13px;
    color: #742DF6;
}

.markdown-body pre {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    color: #d4d4d4;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.markdown-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.markdown-body blockquote {
    border-left: 4px solid #742DF6;
    padding-left: 14px;
    color: #666;
    margin: 12px 0;
    font-style: italic;
}

/* Project logo placeholder */
.project-logo-placeholder {
    font-size: 48px;
    color: #c4b5fd;
}

.project-detail-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0ecff 0%, #e4f3fd 100%);
    font-size: 48px;
    color: #c4b5fd;
}

/* Dark mode — url section */

.dark-mode .section-url-link {
    background: rgba(116,45,246,0.15);
    border-color: rgba(155,111,247,0.4);
    color: #c4a5ff;
}

.dark-mode .section-url-desc {
    color: #A7A7A7;
}

.dark-mode .markdown-body {
    color: #A7A7A7;
}

.dark-mode .markdown-body h1,.dark-mode .markdown-body h2,.dark-mode .markdown-body h3 {
    color: #D9D9D9;
}

.dark-mode .markdown-body code {
    background: rgba(116,45,246,0.18);
    color: #c4a5ff;
}

/* Notification styles */
.notification {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    width: 100%;
}

.success-message {
    background-color: #12d241;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
