
:root {
    /* Black and White Palette */
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --light-gray: #CCCCCC;
    --medium-gray: #888888;
    --dark-gray: #333333;
    --background-dark: #121212;
    --background-light: #1E1E1E;

    /* Font Stacks */
    --font-primary: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", sans-serif;
    --font-mono: "Inconsolata", monospace;

    /* Theme Variables */
    --primary-color: var(--primary-white);
    --secondary-color: var(--medium-gray);
    --accent-color: var(--light-gray);
    --background-color: var(--background-dark);
    --text-color: var(--light-gray);
    --card-background: var(--background-light);
    --header-bg: var(--background-light);
    --text-light: var(--primary-white);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border-radius: 0 !important;
    /* Remove all rounded borders */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    font-family: var(--font-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-light);
}

.logo,
.nav-links a,
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
}

.skill,
.tech {
    font-family: var(--font-mono);
}

/* Header */
header {
    background-color: var(--header-bg);
    color: var(--text-light);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 2rem;
    background-color: rgba(30, 30, 30, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    color: var(--text-light);
}

.logo span {
    color: var(--accent-color);
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-light);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 1rem;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/curso-online-de-programacao-2048x1152.jpg') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--light-gray);
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
}

.hero .btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background: var(--primary-black);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--dark-gray);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--primary-black);
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-color);
    color: var(--primary-black);
    transform: translateY(-3px);
}

/* General Section Styling */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-white);
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
    animation: fadeInLeft 1s ease forwards;
    opacity: 0;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-white);
}

.about-text p {
    margin-bottom: 1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem;
    gap: 0.5rem;
}

.skill {
    background: var(--dark-gray);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    text-align: center;
    animation: fadeInRight 1s ease forwards;
    opacity: 0;
}

.about-image img {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    filter: grayscale(100%);
    transition: 0.2s ease-in-out;
}

.about-image img:hover{
    filter: grayscale(0%);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.092);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-background);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(100%);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-white);
}

.project-info p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.tech {
    background: var(--background-color);
    color: var(--primary-white);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid var(--primary-white);
}

.project-links a {
    margin-right: 1rem;
    color: var(--primary-white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: var(--secondary-color);
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-background);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--light-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--dark-gray);
    font-size: 1rem;
    transition: border 0.3s ease;
    background: var(--background-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-white);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--header-bg);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content .logo {
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 1rem 0;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Floating Action Buttons */
#scrollTopBtn,
.whatsapp-btn {
    position: fixed;
    right: 20px;
    z-index: 1001;
    border: none;
    outline: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scrollTopBtn {
    display: none;
    bottom: 20px;
    background-color: var(--primary-black);
    width: 45px;
    height: 45px;
    font-size: 18px;
    border: 1px solid var(--primary-white);
}

#scrollTopBtn:hover {
    background-color: var(--dark-gray);
}

.whatsapp-btn {
    bottom: 80px;
    background-color: var(--dark-gray);
    width: 45px;
    height: 45px;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--medium-gray);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: var(--medium-gray);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--header-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        transition: left 0.5s ease;
        z-index: 1001;
    }

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

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

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

    .hamburger {
        display: block;
        z-index: 1002;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .skills {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .project-info {
        padding: 1rem;
    }
}

/* Button Loader Style */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
}

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

@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

.btn--loading .btn-loader {
    display: block;
    margin: 0 auto;
}

.btn--loading .btn-text {
    display: none;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Alinha os ícones verticalmente */
    margin-top: 1.5rem;
    gap: 1.5rem; /* Aumenta o espaçamento entre os ícones */
}

.skill {
    font-size: 2.8rem; /* Define o tamanho do ícone */
    color: var(--light-gray); /* Cor padrão do ícone */
    transition: all 0.3s ease-in-out; /* Adiciona uma transição suave */
    cursor: pointer;
}

.skill:hover {
    color: #ffffff; /* Muda a cor do ícone no hover */
    transform: scale(1.2);
    background-color: transparent;
}