/* app/static/css/style.css */

:root {
    --theme-bg-dark: #121212;
    --theme-text-light: #E0E0E0;
    --theme-text-muted-dark: #A0A0A0;
    --theme-primary-accent: #00A9FF; /* Azul ciano vibrante */
    --theme-surface-dark: #1E1E1E; /* Para cards e superfícies elevadas */
    --theme-border-dark: #333333;
    --theme-link-hover: #2ABFFF; /* Um tom mais claro de azul para hover */
}

html {
    scroll-padding-top: 70px; /* Offset para a navbar fixa. Ajuste se a altura da navbar mudar. */
}

main {
    padding-bottom: 5rem; /* Adiciona um respiro no final do conteúdo principal */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--theme-bg-dark);
    color: var(--theme-text-light);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--theme-text-light);
}

a {
    color: var(--theme-primary-accent);
}

a:hover {
    color: var(--theme-link-hover);
}

p.lead.text-muted {
    color: var(--theme-text-muted-dark) !important;
}

.text-muted {
    color: var(--theme-text-muted-dark) !important;
}

hr {
    background-color: var(--theme-border-dark);
    opacity: 0.25;
    border: none;
}

.section-divider {
    margin: 0.5rem auto 1rem auto;
    width: 80px;
    height: 3px;
    background-color: var(--theme-primary-accent);
    opacity: 1;
}

/* --- Component-specific styles --- */

/* Navbar */
.navbar {
    background-color: var(--theme-surface-dark) !important;
    border-bottom: 1px solid var(--theme-border-dark);
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: var(--theme-text-light) !important;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
    color: var(--theme-primary-accent) !important;
}

.navbar-toggler {
    border-color: var(--theme-border-dark);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(224, 224, 224, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Home Section */
#home {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url('https://via.placeholder.com/1920x1080.png?text=Sua+Imagem+Aqui') no-repeat center center;
    background-size: cover;
    color: var(--theme-text-light);
    padding-top: 80px; 
    padding-bottom: 80px;
    text-align: center; 
}

#home .lead {
    color: var(--theme-text-light) !important;
    font-size: 1rem; 
}

#home h1 {
    color: var(--theme-text-light) !important;
    font-size: 2.5rem; 
}

#home .btn {
    margin-bottom: 0.5rem; 
}

#home .btn.btn-danger {
    color: #212529 !important;
}

#home .theme-toggle-home {
    position: absolute;
    top: 15px; 
    right: 15px; 
    z-index: 10;
}

#home .theme-toggle-home i {
    font-size: 1.3rem; 
    color: var(--theme-text-light);
}

.social-icons a {
    color: var(--theme-text-light);
    transition: color 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--theme-primary-accent);
}

/* About Section */
#about {
    background-color: var(--theme-bg-dark);
}

#about .img-fluid {
    border: 3px solid whitesmoke;
}

#about h3 {
    font-size: 1.75rem;
}

#about p {
    font-size: 0.95rem;
    line-height: 1.6;
}

#about .lead {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#about .display-6 {
    color: var(--theme-primary-accent);
}

#about .row.mt-5 h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

#about .row.mt-5 h4 i {
    font-size: 1.1rem;
    margin-right: 0.3rem;
}

#about .row.mt-5 p.text-muted {
    font-size: 0.85rem;
}

.presentation {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* Skills Section */
#skills {
    background-color: var(--theme-bg-dark);
}

#skills .card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: var(--theme-surface-dark);
    border: 1px solid var(--theme-border-dark);
    border-radius: 1rem;
    padding: 0.5rem;
}

#skills .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .25) !important;
}

#skills .card .card-title {
    color: var(--theme-primary-accent);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

#skills .card .list-unstyled li {
    padding: 0.15rem 0;
    color: var(--theme-text-light);
    font-size: 0.9rem;
}

#skills .card i.bi {
    color: var(--theme-primary-accent);
    font-size: 2.25rem !important;
}

/* Projects Section */
#projects {
    background-color: var(--theme-bg-dark);
}

.project-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid var(--theme-border-dark);
    background-color: var(--theme-surface-dark);
    border-radius: 1.25rem; 
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .2) !important;
}

.project-card .card-title {
    color: var(--theme-text-light);
}

.project-card .card-text {
    color: var(--theme-text-muted-dark);
}

.project-card .card-img-top {
    border-top-left-radius: calc(1.25rem - 1px);
    border-top-right-radius: calc(1.25rem - 1px);
}

.project-card .badge {
    font-size: 0.75em;
    background-color: var(--theme-border-dark);
    color: var(--theme-text-light);
}

/* Contact Section */
#contact {
    background-color: var(--theme-bg-dark);
}

.contact-form-card {
    background-color: var(--theme-surface-dark);
    border: 1px solid var(--theme-border-dark);
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

#contact .form-control {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--theme-border-dark);
    border-radius: 0;
    color: var(--theme-text-light);
    padding-left: 0;
    padding-right: 0;
}

#contact .form-control:focus {
    background-color: transparent;
    box-shadow: none;
    border-bottom-color: var(--theme-primary-accent);
    color: var(--theme-text-light);
}

#contact .form-floating > label {
    color: var(--theme-text-muted-dark);
    padding-left: 0;
}

/* Footer */
footer {
    background-color: var(--theme-bg-dark);
    color: var(--theme-text-muted-dark);
    border-top: 1px solid var(--theme-border-dark);
    font-size: 0.9em;
}

footer .footer-email,
footer .btn-link {
    color: var(--theme-text-muted-dark);
}

footer .footer-email:hover,
footer .btn-link:hover {
    color: var(--theme-primary-accent);
}

footer .bi {
    font-size: 1.2rem;
}

#theme-toggle i {
    font-size: 1.2rem;
}

/* Flash Messages */
#flash-messages-container {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 1040;
    width: 100%;
}

#flash-messages-container .alert {
    margin-bottom: 0;
    border-radius: 0;
}

/* --- Light Theme --- */

.light-theme {
    --theme-bg-dark: #F4F7FC;
    --theme-text-light: #212529;
    --theme-text-muted-dark: #6C757D;
    --theme-primary-accent: #007BFF;
    --theme-surface-dark: #FFFFFF;
    --theme-border-dark: #DEE2E6;
    --theme-link-hover: #0056b3;
}

.light-theme .navbar {
    border-bottom: 1px solid var(--theme-border-dark);
}

.light-theme .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 37, 41, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.light-theme #home {
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3)), url('https://via.placeholder.com/1920x1080.png?text=Sua+Imagem+Aqui') no-repeat center center;
    background-size: cover;
}

.light-theme #about .img-fluid {
    border: 5px solid var(--theme-primary-accent);
}

.light-theme #skills .card,
.light-theme .project-card,
.light-theme .contact-form-card {
    border: 1px solid #adb5bd;
}

.light-theme #skills .card:hover,
.light-theme .project-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.light-theme .project-card .badge {
    background-color: #e9ecef;
    color: var(--theme-text-light);
}

.light-theme .btn-outline-primary:hover {
    color: #fff;
}

.light-theme .btn-primary {
    color: #fff;
}

.light-theme .btn-outline-info { 
    color: #0dcaf0;
    border-color: #0dcaf0;
}

.light-theme .btn-outline-info:hover {
    color: #fff;
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

.light-theme .social-icons a {
    color: #000000 !important;
}

.light-theme .social-icons a:hover {
    color: var(--theme-primary-accent) !important;
}

.light-theme #home .btn-outline-light {
    color: var(--theme-primary-accent);
    border-color: var(--theme-primary-accent);
}

.light-theme #home .btn-outline-light:hover {
    color: var(--theme-surface-dark);
    background-color: var(--theme-primary-accent);
}

.light-theme #contact .form-control {
    border-bottom-color: #ced4da;
}

.light-theme #home .btn-home-contact {
    color: #000000;
    border-color: #000000;
    background-color: transparent;
}

.light-theme #home .btn-home-contact:hover,
.light-theme #home .btn-home-contact:focus {
    color: #ffffff;
    background-color: #000000;
    border-color: #000000;
}

.light-theme #home .btn.btn-danger {
    color: #ffffff !important;
} 

/* --- Media Queries --- */

@media (max-width: 768px) {
    #home {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    #home h1 {
        font-size: 2rem; 
    }
    #home .lead {
        font-size: 0.9rem; 
    }
    #home .btn {
        width: 75%; 
        margin-left: auto;
        margin-right: auto;
        display: block; 
    }
    .social-icons a i {
        font-size: 1.5rem; 
    }

    #about .img-fluid {
        max-width: 200px !important;
        border-width: 3px;
        margin-bottom: 1.5rem;
    }
    #about .col-md-8 {
        text-align: center;
    }
    #about h3 {
        font-size: 1.5rem;
    }
    #about .lead {
        font-size: 1rem;
    }
    #about p {
        font-size: 0.9rem;
    }
    #about .row.mt-5 > div[class*="col-"] {
        margin-bottom: 1.5rem;
    }
    #about .row.mt-5 > div[class*="col-"]:last-child {
        margin-bottom: 0;
    }
    #about .row.mt-5 h4 {
        font-size: 1.15rem;
    }

    #skills .card .card-title {
        font-size: 1.15rem;
    }
    #skills .card .list-unstyled li {
        font-size: 0.875rem;
    }
    #skills .card i.bi {
        font-size: 2.25rem !important;
    }
}

@media (max-width: 576px) {
    #home h1 {
        font-size: 1.8rem; 
    }
     #home .btn {
        width: 90%; 
    }
    .social-icons a i {
        font-size: 1.4rem; 
    }

    #about .img-fluid {
        max-width: 180px !important;
    }
    #about h3 {
        font-size: 1.4rem;
    }
    #about .lead {
        font-size: 0.95rem;
    }
    #about p {
        font-size: 0.875rem;
    }
    #about .row.mt-5 h4 {
        font-size: 1.1rem;
    }
    #about .row.mt-5 p.text-muted {
        font-size: 0.8rem;
    }

    #skills .lead {
        font-size: 0.9rem;
    }
    #skills .card {
        padding: 0.75rem;
    }
    #skills .card .card-title {
        font-size: 1.1rem;
    }
    #skills .card .list-unstyled li {
        font-size: 0.85rem;
    }
    #skills .card i.bi {
        font-size: 2rem !important;
    }
}

@media (min-width: 1200px) {
    .modal-dialog.gallery-modal-xl-custom {
        max-width: 90vw;
    }
} 