/*
Letter Template 
https://templatemo.com/tm-510-letter
*/
body {
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 24px;
	font-weight: 300;
	overflow-x: hidden;
	background: #000;
}

/* Accessibility: Skip to main content link */
.skip-to-main {
	position: absolute;
	top: -40px;
	left: 0;
	background: #000;
	color: #fff;
	padding: 8px;
	text-decoration: none;
	z-index: 10000;
}

.skip-to-main:focus {
	top: 0;
}

a, button {
	transition: all 0.3s ease;
	color: #FFFFFF;
}

button:focus {
    outline: none;
}

a:hover {
	color: #FFFF00;
	text-decoration: underline;
}
a:focus {
	text-decoration: none;
	outline: none;
}

h1 {
	color: #FFFFFF;
	font-size: 4rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

p {
	color: #FFFFFF;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Small text with better contrast - dark text on light background */
.tm-content p[style*="font-size: 6pt"] {
	color: #2c2c2c !important;
	text-shadow: none !important;
	font-weight: 400;
	font-size: 11pt !important;
	line-height: 1.6;
}

.tm-content p[style*="font-size: 6pt"] a {
	color: #0066cc !important;
	text-decoration: underline;
}

.tm-content p[style*="font-size: 6pt"] a:hover {
	color: #004499 !important;
}

/* Medium text keeps white with shadow for contrast */
.tm-content p[style*="font-size: 12pt"] {
	color: #FFFFFF;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
	font-weight: 400;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 99%;
}

.cb-slideshow-text-container {
    height: 100vh;
    display: flex;
    align-items: center;
}

.tm-content {
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Reduce padding and margins on smaller screens */
@media screen and (max-width: 768px) {
    .tm-content {
        padding: 1.25rem;
    }
    
    .tm-content header.mb-5,
    .tm-content p.mb-5 {
        margin-bottom: 1rem !important;
    }
    
    .tm-content h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .tm-projects-nav {
        margin: 1.5rem 0;
    }
    
    .tm-social-icons-container {
        margin: 1rem 0;
    }
}

@media screen and (max-width: 600px) {
    .tm-content {
        padding: 0.75rem;
    }
    
    .tm-content header.mb-5,
    .tm-content p.mb-5 {
        margin-bottom: 0.75rem !important;
    }
    
    .tm-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .tm-content p[style*="font-size: 12pt"] {
        font-size: 10pt !important;
    }
    
    .tm-projects-nav {
        margin: 1rem 0;
    }
    
    .tm-social-icons-container {
        margin: 0.75rem 0;
    }
}

@media screen and (max-width: 400px) {
    .tm-content {
        padding: 0.6rem;
    }
    
    .tm-content h1 {
        font-size: 1.75rem;
    }
}

.form-control::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: white;
}
.form-control::-moz-placeholder { /* Firefox 19+ */
  color: white;
}
.form-control:-ms-input-placeholder { /* IE 10+ */
  color: white;
}
.form-control:-moz-placeholder { /* Firefox 18- */
  color: white;
}

.form-control::placeholder {
    color: white;
}

.form-control {  
    color: #FFFFFF;
    border-radius: .5rem;
    background-color: transparent;
    border: 1px solid #FFFFFF;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 300;
    padding: 0.75rem 1.2rem;
}

.form-section {  
    color: #FFFFFF;
    background-color: transparent;
    margin-bottom: 100px;
    
}

.contact_email {
	color: #FFFFFF;
}
.tm-btn-subscribe {
	background-color: #006699;
	border-radius: .5rem;
    border-color: white;
	padding: 0.75rem 1.6rem;
    font-weight: 300;
    font-size: 1.4rem;
    cursor: pointer;
}

.tm-btn-subscribe:hover {
    background-color: #055278;
}

/* Projects Navigation */
.tm-projects-nav {
    margin: 2rem 0;
}

.tm-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tm-project-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    text-decoration: none;
    color: #FFFFFF;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    min-height: auto;
    font-weight: 500;
}

.tm-project-card i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.tm-project-card span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.tm-project-card:hover {
    background-color: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.tm-project-card:hover i {
    transform: scale(1.1);
}

.tm-project-card:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

/* Responsive adjustments for projects grid */
@media screen and (max-width: 600px) {
    .tm-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .tm-project-card {
        padding: 0.6rem 0.75rem;
        gap: 0.4rem;
    }
    
    .tm-project-card i {
        font-size: 1rem;
    }
    
    .tm-project-card span {
        font-size: 0.75rem;
    }
}

.tm-social-icons-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.tm-social-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    text-decoration: none;
    color: #FFFFFF;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.tm-social-card i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: #FFFFFF;
}

.tm-social-card span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.tm-social-card:hover {
    background-color: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.tm-social-card:hover i {
    transform: scale(1.1);
}

.tm-social-card:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

.fa {
    color: #FFFFFF;
}

.footer-link {
    margin: 20px;
	font-size: 9px;
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    text-align:center;
    width:100%;
    z-index: 1001;
}

/* Animation */
.cb-slideshow,
.cb-slideshow:after {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 0;
}

/* --- INÍCIO DA CORREÇÃO --- */

.cb-slideshow li {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: none;
    opacity: 0;
    z-index: 0;
    -webkit-backface-visibility: hidden;
    
    /* CORREÇÃO: Alterado de 72s para 84s (7 imagens x 12s) */
    -webkit-animation: imageAnimation 84s linear infinite 0s;
    -moz-animation: imageAnimation 84s linear infinite 0s;
    -o-animation: imageAnimation 84s linear infinite 0s;
    -ms-animation: imageAnimation 84s linear infinite 0s;
    animation: imageAnimation 84s linear infinite 0s;
}

/* 1ª Imagem - Delay 0s */
.cb-slideshow li:nth-child(1) { 
    background-image: url(https://filedn.eu/lfFWuYAoV7qy1i9MAAI5k8f/res/img/pexels-negativespace-97077.jpg);
    -webkit-animation-name: imageAnimationFirst;
    -moz-animation-name: imageAnimationFirst;
    -o-animation-name: imageAnimationFirst;
    -ms-animation-name: imageAnimationFirst;
    animation-name: imageAnimationFirst;
    animation-delay: 0s;
    opacity: 1; 
    z-index: 2; 
}

/* 2ª Imagem - Delay 12s */
.cb-slideshow li:nth-child(2) { 
    background-image: url(https://filedn.eu/lfFWuYAoV7qy1i9MAAI5k8f/res/img/pexels-david-yu-2081166.jpg);
    -webkit-animation-delay: 12s;
    -moz-animation-delay: 12s;
    -o-animation-delay: 12s;
    -ms-animation-delay: 12s;
    animation-delay: 12s; 
}

/* 3ª Imagem - Delay 24s */
.cb-slideshow li:nth-child(3) { 
    background-image: url(https://filedn.eu/lfFWuYAoV7qy1i9MAAI5k8f/res/img/pexels-fauxels-3183197.jpg);
    -webkit-animation-delay: 24s;
    -moz-animation-delay: 24s;
    -o-animation-delay: 24s;
    -ms-animation-delay: 24s;
    animation-delay: 24s; 
}

/* 4ª Imagem - Delay 36s */
.cb-slideshow li:nth-child(4) { 
    background-image: url(https://filedn.eu/lfFWuYAoV7qy1i9MAAI5k8f/res/img/pexels-pixabay-267350.jpg);
    -webkit-animation-delay: 36s;
    -moz-animation-delay: 36s;
    -o-animation-delay: 36s;
    -ms-animation-delay: 36s;
    animation-delay: 36s; 
}

/* 5ª Imagem - Delay 48s */
.cb-slideshow li:nth-child(5) { 
    background-image: url(https://filedn.eu/lfFWuYAoV7qy1i9MAAI5k8f/res/img/mini-profile-bg-02.jpg);
    -webkit-animation-delay: 48s;
    -moz-animation-delay: 48s;
    -o-animation-delay: 48s;
    -ms-animation-delay: 48s;
    animation-delay: 48s; 
}

/* 6ª Imagem - Delay 60s */
.cb-slideshow li:nth-child(6) { 
    background-image: url(https://filedn.eu/lfFWuYAoV7qy1i9MAAI5k8f/res/img/pexels-rodolfo-clix-1036936.jpg);
    -webkit-animation-delay: 60s;
    -moz-animation-delay: 60s;
    -o-animation-delay: 60s;
    -ms-animation-delay: 60s;
    animation-delay: 60s; 
}

/* 7ª Imagem - Delay 72s */
.cb-slideshow li:nth-child(7) { 
    background-image: url(https://filedn.eu/lfFWuYAoV7qy1i9MAAI5k8f/res/img/pexels-markusspiske-2004161.jpg);
    -webkit-animation-delay: 72s;
    -moz-animation-delay: 72s;
    -o-animation-delay: 72s;
    -ms-animation-delay: 72s;
    animation-delay: 72s; 
}

/* Animação padrão - percentagens ajustadas para funcionar bem com 84s */
@keyframes imageAnimation { 
    0% { opacity: 0; animation-timing-function: ease-in; }
    8% { opacity: 1; transform: scale(1.15); animation-timing-function: ease-out; }
    17% { opacity: 1; transform: scale(1.20); }
    25% { opacity: 0; transform: scale(1.40); }
    100% { opacity: 0; }
}

@-webkit-keyframes imageAnimation { 
    0% { opacity: 0; animation-timing-function: ease-in; }
    8% { opacity: 1; transform: scale(1.15); animation-timing-function: ease-out; }
    17% { opacity: 1; transform: scale(1.20); }
    25% { opacity: 0; transform: scale(1.40); }
    100% { opacity: 0; }
}

@-moz-keyframes imageAnimation { 
    0% { opacity: 0; animation-timing-function: ease-in; }
    8% { opacity: 1; transform: scale(1.15); animation-timing-function: ease-out; }
    17% { opacity: 1; transform: scale(1.20); }
    25% { opacity: 0; transform: scale(1.40); }
    100% { opacity: 0; }
}

@-o-keyframes imageAnimation { 
    0% { opacity: 0; animation-timing-function: ease-in; }
    8% { opacity: 1; transform: scale(1.15); animation-timing-function: ease-out; }
    17% { opacity: 1; transform: scale(1.20); }
    25% { opacity: 0; transform: scale(1.40); }
    100% { opacity: 0; }
}

@-ms-keyframes imageAnimation { 
    0% { opacity: 0; animation-timing-function: ease-in; }
    8% { opacity: 1; transform: scale(1.15); animation-timing-function: ease-out; }
    17% { opacity: 1; transform: scale(1.20); }
    25% { opacity: 0; transform: scale(1.40); }
    100% { opacity: 0; }
}

/* Animação da primeira imagem (para começar visível) */
@keyframes imageAnimationFirst { 
    0% { opacity: 1; transform: scale(1); animation-timing-function: ease-in; }
    8% { opacity: 1; transform: scale(1.15); animation-timing-function: ease-out; }
    17% { opacity: 1; transform: scale(1.20); }
    25% { opacity: 0; transform: scale(1.40); }
    100% { opacity: 0; }
}

@-webkit-keyframes imageAnimationFirst { 
    0% { opacity: 1; transform: scale(1); animation-timing-function: ease-in; }
    8% { opacity: 1; transform: scale(1.15); animation-timing-function: ease-out; }
    17% { opacity: 1; transform: scale(1.20); }
    25% { opacity: 0; transform: scale(1.40); }
    100% { opacity: 0; }
}

@-moz-keyframes imageAnimationFirst { 
    0% { opacity: 1; transform: scale(1); animation-timing-function: ease-in; }
    8% { opacity: 1; transform: scale(1.15); animation-timing-function: ease-out; }
    17% { opacity: 1; transform: scale(1.20); }
    25% { opacity: 0; transform: scale(1.40); }
    100% { opacity: 0; }
}

@-o-keyframes imageAnimationFirst { 
    0% { opacity: 1; transform: scale(1); animation-timing-function: ease-in; }
    8% { opacity: 1; transform: scale(1.15); animation-timing-function: ease-out; }
    17% { opacity: 1; transform: scale(1.20); }
    25% { opacity: 0; transform: scale(1.40); }
    100% { opacity: 0; }
}

@-ms-keyframes imageAnimationFirst { 
    0% { opacity: 1; transform: scale(1); animation-timing-function: ease-in; }
    8% { opacity: 1; transform: scale(1.15); animation-timing-function: ease-out; }
    17% { opacity: 1; transform: scale(1.20); }
    25% { opacity: 0; transform: scale(1.40); }
    100% { opacity: 0; }
}

@media screen and (max-width: 1140px) { 
    .cb-slideshow li div h3 { font-size: 140px }
}

@media screen and (max-width: 600px) { 
    .cb-slideshow li div h3 { font-size: 80px }
	.tm-content {
		margin-top: 60px;
	}
}

@media screen and (max-width: 576px) { 
    .cb-slideshow li div h3 { font-size: 80px }
	
	.tm-btn-subscribe {
		margin-top: 20px;
	}
}
