/* Estilos Gerais */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1F1E2B ; /* cor de fundo principal (mais escuro para contraste) */
    --secondary-color: #2E2D3F; /* para seções ou cartões de obras (mais escuro para contraste) */
    --accent-color: #A197C3; /* detalhes e destaques (lilás nebuloso) */
    --accent-color-hover: #6E8A78; /* para hover, detalhes suaves ou ícones (verde musgo suave) */
    --button-color: #C58C8C; /* botões e links (rosa enferrujado) */
    --text-color: #E9E4DA; /* cor para textos principais (bege claro) */
    --dark-text: #171622; /* texto escuro para fundos claros */
    --light-text: #E9E4DA; /* texto claro para fundos escuros */
    --border-radius: 6px;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); /* sombra mais pronunciada */
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #171622; /* Fundo mais escuro para maior contraste */
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><rect width="1" height="1" x="25" y="25" fill="%23A197C3" opacity="0.05"/><rect width="1" height="1" x="75" y="25" fill="%23A197C3" opacity="0.05"/><rect width="1" height="1" x="25" y="75" fill="%23A197C3" opacity="0.05"/><rect width="1" height="1" x="75" y="75" fill="%23A197C3" opacity="0.05"/><rect width="1" height="1" x="50" y="50" fill="%23A197C3" opacity="0.05"/></svg>');
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
}

/* Adicionando um gradiente sutil ao fundo para criar profundidade */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(46, 45, 63, 0.4) 0%, rgba(23, 22, 34, 0.8) 100%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    background-color: var(--button-color);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(197, 140, 140, 0.3);
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    background-color: var(--accent-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(110, 138, 120, 0.4);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    font-weight: 600;
    color: var(--light-text);
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--accent-color);
    opacity: 0.8;
}

/* Header */
header {
    background-color: transparent;
    color: var(--light-text);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: var(--primary-color);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(161, 151, 195, 0.2);
}

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

header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

header.scrolled h1 {
    color: var(--accent-color);
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

header.scrolled nav ul li a {
    color: var(--light-text);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition);
    opacity: 0.8;
}

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

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    background-image: url('img/sardas-de-estrelas-pintura-digital.png');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    margin-top: 0;
    padding-top: 80px;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 30, 43, 0.85) 0%, rgba(161, 151, 195, 0.6) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--light-text);
    line-height: 1.2;
}

.hero p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    font-weight: 300;
    color: rgba(233, 228, 218, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background-color: #2E2D3F ;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--light-text);
    padding: 8px 20px;
    margin: 0 8px 10px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    opacity: 1;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 300px;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeIn 0.8s forwards;
    animation-delay: calc(0.1s * var(--i, 0));
    cursor: pointer;
    background-color: var(--secondary-color);
}

.gallery-item::before {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: var(--light-text);
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0.9;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(31, 30, 43, 0.9) 0%, rgba(31, 30, 43, 0.4) 50%, rgba(31, 30, 43, 0.1) 100%);
    color: var(--light-text);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    color: var(--accent-color);
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: #252436; /* Cor de fundo mais escura para a seção About */
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><rect width="1" height="1" x="25" y="25" fill="%23A197C3" opacity="0.03"/><rect width="1" height="1" x="75" y="25" fill="%23A197C3" opacity="0.03"/><rect width="1" height="1" x="25" y="75" fill="%23A197C3" opacity="0.03"/><rect width="1" height="1" x="75" y="75" fill="%23A197C3" opacity="0.03"/><rect width="1" height="1" x="50" y="50" fill="%23A197C3" opacity="0.03"/></svg>');
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--light-text);
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.8;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.skills span {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 8px 16px;
    border-radius: 30px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skills span:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    opacity: 0.9;
    transition: var(--transition);
}

.about-image img:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: #171622; /* Mesma cor escura do fundo principal */
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><rect width="1" height="1" x="25" y="25" fill="%23A197C3" opacity="0.03"/><rect width="1" height="1" x="75" y="25" fill="%23A197C3" opacity="0.03"/><rect width="1" height="1" x="25" y="75" fill="%23A197C3" opacity="0.03"/><rect width="1" height="1" x="75" y="75" fill="%23A197C3" opacity="0.03"/><rect width="1" height="1" x="50" y="50" fill="%23A197C3" opacity="0.03"/></svg>');
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent-color);
}

.social-media {
    display: flex;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-radius: 50%;
    margin-right: 15px;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(161, 151, 195, 0.3);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(46, 45, 63, 0.7);
    color: var(--light-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(161, 151, 195, 0.2);
}

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

/* Footer */
footer {
    background-color: #1A1926; /* Cor de fundo mais escura para o rodapé */
    color: var(--light-text);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(161, 151, 195, 0.2);
}

footer p {
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
}

footer a:hover {
    color: var(--button-color);
    text-decoration: underline;
}

/* Modal para exibição de imagens */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(23, 22, 34, 0.97); /* Fundo mais escuro para o modal */
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.show {
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalZoomIn 0.3s ease forwards;
}

.modal-content {
    position: relative;
    background-color: #252436; /* Cor de fundo mais escura para o conteúdo do modal */
    margin: auto;
    max-width: 33%;
    max-height: 98vh;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    overflow: auto;
    border: 1px solid rgba(161, 151, 195, 0.3);
}

/**#modalImage.modal-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background-color: #171622; /* Cor de fundo mais escura para a imagem no modal */
}**/

#modalImage {
    width: 100%;
    max-height: 30vh;
    object-fit: contain;
    background-color: #171622;
    display: block;
    margin: 0 auto;
}


.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--light-text);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2010;
    background-color: rgba(31, 30, 43, 0.7);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    background-color: var(--button-color);
    transform: scale(1.1);
}

.modal-info {
    padding: 25px;
    background-color: #252436; /* Cor de fundo mais escura para a seção de informações do modal */
}

.modal-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--light-text);
    font-weight: 600;
    letter-spacing: 1px;
}

.modal-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--light-text);
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softPulse {
    0% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.9;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    header.scrolled {
        padding: 10px 0;
    }
    
    header .container {
        flex-direction: column;
    }
    
    header h1 {
        margin-bottom: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 30px;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 15px 0;
        width: 100%;
    }
    
    .hero h2 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        gap: 30px;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-info h3 {
        font-size: 1.5rem;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        margin-bottom: 8px;
        font-size: 0.8rem;
        padding: 6px 15px;
    }
}