/* Modernized CSS for a Professional Portfolio */

/* Base Styling */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #343a40;
    line-height: 1.6;
    font-display: swap;
}

#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    box-sizing: border-box;
}

#cookie-banner button {
    margin-left: 10px;
    background: #28a745;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
}

#cookie-banner button#reject-cookies {
    background: #6c757d;
}

#cookie-banner a {
    margin-left: 10px;
    color: #7dc3ff;
    text-decoration: underline;
}

/* Header Section */
header {
    background: linear-gradient(45deg, #007bff, #6610f2);
    color: #fff;
    padding: 3rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
}

header .text-container {
    text-align: left;
}

header .profile-photo {
    width: 120px;
    height: 120px;
    display: block;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Navigation Bar */
nav {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #343a40;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007bff;
}

/* Section Styling */
section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #007bff;
}

section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Sobre Mim */
#sobre {
    text-align: justify;
    padding: 4rem 15%;
}

/* Skills Section */
#habilidades {
    background-color: #fff;
    max-width: 100%;
    padding: 4rem 2rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.skill-tag {
    background-color: #e8f0fe;
    color: #0056b3;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid #c2d4f8;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.skill-tag:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Project Cards */
#projetos .projeto {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projetos .projeto:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#projetos .projeto h3 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    color: #343a40;
}

#projetos .projeto a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

#projetos .projeto a:hover {
    text-decoration: underline;
}

.projeto-stack {
    font-size: 0.9rem !important;
    color: #6c757d;
    margin-top: 0.5rem;
    margin-bottom: 0 !important;
}

/* Download Buttons */
.btn-download {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin: 0.5rem;
}

.btn-download:hover {
    background: #0056b3;
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

form label {
    align-self: flex-start;
    font-weight: 500;
    color: #343a40;
}

form input, form textarea {
    width: 100%;
    max-width: 600px;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

form input:focus, form textarea:focus {
    border-color: #007bff;
    outline: none;
}

form button {
    background: #007bff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: #0056b3;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header div p {
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    section h2 {
        font-size: 2rem;
    }

    #sobre {
        text-align: justify;
        padding: 4rem 1rem;
    }

    #projetos .projeto {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header div p {
        text-align: center;
    }

    header h1 {
        font-size: 2rem;
    }

    nav ul li a {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    #sobre {
        text-align: justify;
        padding: 4rem 1rem;
    }

    form input, form textarea {
        font-size: 0.9rem;
    }
}
