
@import url('https://fonts.googleapis.com/css2?family=Edu+NSW+ACT+Cursive:wght@400..700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=SUSE+Mono:ital,wght@0,100..800;1,100..800&display=swap');

/* ===== Variables and reseat ===== */
:root {
    --secondary-color: #F2A2A2;
    --primary-color: #F20505;
    --background-color: #fff;
    --text-color: #222245;
    --border-color: #dddddd;
    --border-radius: 50%;
    --font-size-small: 15px;
    --font-size-medium: 18px;
    --font-size-large: 36px;
}

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

body{
    cursor: url("images/vintage_cursor_32.png") 0 0, auto;
}

a, button {
    cursor: url("images/cursor-point.png") 2 2, pointer;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* header :) */
header {
    background: #fff;
    border-bottom: 3px solid #000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: 'Edu NSW ACT Cursive', cursive;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: #000;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    font-family: 'SUSE Mono', monospace;
    color: var(--text-color);
    font-size: 16px;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--text-color);
    left: 0;
    bottom: -4px;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* ===== Hero section :) ===== */
.hero {
    padding: 80px 0;
    background: #fff;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-image {
    flex: 1;
    order: 1;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

.hero-text {
    flex: 1;
    order: 2;
}

.hero h1 {
    font-family: 'Edu NSW ACT Cursive', cursive;
    font-size: var(--font-size-large);
    color: var(--primary-color);
    font-style: italic;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.hero p {
    font-family: 'SUSE Mono', sans-serif;
    font-size: var(--font-size-medium);
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* ===== About section :) ===== */
.about-me {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 3rem;
    max-width: 800px;
    overflow: hidden;
}

.about-text {
    flex: 1;
    order: 1;
    min-width: 0;
}



.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: 'SUSE Mono', sans-serif;
    font-size: 28px;
    color: var(--primary-color);
    text-decoration: dashed underline;
    text-decoration-color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-family: 'SUSE Mono', sans-serif;
    font-size: var(--font-size-medium);
    color: var(--text-color);
    line-height: 1.5;
}

/* ===== Icon carrousel ===== */
.icon-carousel {
    overflow: hidden;
    width: 100%;
    border-top: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    gap: 3rem;
    animation: scroll 20s linear infinite;
    width: max-content;
}

.carousel-track i {
    font-size: 3rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ===== Project Carousel (Portfolio) ===== */
.project-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid #000;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.project-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.project-slide {
    min-width: 100%;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-slide img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) contrast(1);
}

.project-slide h3 {
    font-family: 'SUSE Mono', monospace;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #000;
}

.project-slide p {
    font-size: 1rem;
    color: #333;
    max-width: 600px;
}

.project-carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #000;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.project-carousel button:hover {
    color: var(--secondary-color);
}

.project-carousel .prev {
    left: 10px;
}

.project-carousel .next {
    right: 10px;
}




@media (max-width: 768px) {
    .project-slide img {
        width: 150px;
    }

    .project-slide p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}

/* ===== Diplomas :) ===== */
.diplomas {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

.diploma-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.diploma-card {
    border: 3px solid #000;
    border-radius: 12px;
    padding: 20px 30px;
    background: transparent;
    transition: transform .2s;
}

.diploma-card i {
    font-size: 30px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.diploma-card:hover {
    transform: scale(1.05) rotate(1deg);
}

/* btn styles */
.svg-btn {
    background: transparent;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: url("images/cursor-point.png") 0 0, pointer;
    position: relative;
    font-family: Inter, system-ui, Arial, sans-serif;
}

.svg-btn .label {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 600;
    margin-left: -180px;
    pointer-events: none;
}

.svg-btn path {
    stroke: var(--text-color);
    transition: stroke 0.3s ease;
}

.svg-btn:hover path {
    stroke: var(--secondary-color);
}

.svg-btn:hover {
    transform: scale(1.03);
    transition: transform .12s ease;
}

/* download btn */
.download-btn {
    position: relative;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
}

/* loading effect during download */
/*.download-btn.loading .label {
    opacity: 0.7;
}
*/

.download-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Feedback view */
.download-btn.success .label::after {
    content: ' ✓';
    color: green;
    font-weight: bold;
}

/* Versão alternativa como link direto */
.download-link {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    gap: 10px;
}

/* ===== contact section ===== */
.contact-section {
    background-color: #fff;
    padding: 100px 0;
}

.contact-machine-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 1000px; 
}

.contact-machine-wrapper .form-container,
.contact-machine-wrapper svg {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact-machine-wrapper .form-container {
    width: 270px;
    z-index: 10;
}

.contact-machine-wrapper svg {
    width: 1000px;
    max-width: 100%;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

svg {
    width: 1000px;
    max-width: 100%;
    height: auto;
    pointer-events: none;
}

.form-container {
    width: 270px;
    margin-bottom: 50rem;
}

.form-container .form-row {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.form-container .form-row input {
    width: 100%;
    height: 30px;
    margin: 0;
    padding: 5px;
    outline: none;
    border: 2px solid #dddddd;
    border-radius: 5px;
}

.form-container .form-row input.valid {
    border-color: #000000;
}

.form-container .form-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
    padding: 0;
    border: 2px solid #dddddd;
}

.form-container .form-row input[type="submit"] {
    height: 40px;
    cursor: url("images/cursor-point.png") 0 0, pointer;
    border: none;
    background-color: #eeeeee;
}

.form-container input[type="submit"]:hover {
    background-color: #dddddd;
}

.form-container label,
.form-container input,
.form-container input::placeholder {
    font-size: 15px;
    font-family: inherit;
}

svg {
    stroke-width: 1.2px;
    /*stroke: #222245;*/
    stroke: #000000;
    fill: none
}


/* ===== FOOTER ===== */
footer {
    background-color: #fff;
    color: #F2A2A2;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-links a {
    color: #F2A2A2;
    margin-left: 15px;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #F20505;
}

/* ===== MENU MOBILE ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Responsivity ===== */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 20px;
    }

    nav {
        position: absolute;
        top: 70px;
        left: 0;
        background: #fff;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 2px solid #000;
    }

    nav.open {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content,
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        order: 1;
    }

    .hero-text {
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .about-image img {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p,
    .section-title p {
        font-size: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-machine-wrapper {
        height: 800px;
    }

    .contact-machine-wrapper svg {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 24px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .diploma-list {
        flex-direction: column;
        align-items: center;
    }

    .carousel-track i {
        font-size: 2rem;
    }
}