/*
 * custom.css — Estilos Customizados e Correções
 * Move estilos inline do index.html para cá e corrige bugs visuais
 */

/* ===========================
   Botão WhatsApp Flutuante
   Estilos completos (antes estavam inline no HTML)
   Cor corrigida: #ffffff → #25D366 (verde oficial WhatsApp)
   =========================== */
.btn-whatsapp-pulse {
    z-index: 999;
    background-color: #ffffff;
    color: #25D366;                  /* Ícone verde sobre fundo branco */
    position: fixed;
    bottom: 30px;
    right: 60px;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 0;
    height: 0;
    padding: 35px;
    text-decoration: none;
    border-radius: 50%;
    animation-name: pulse-whatsapp;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp-pulse:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
}

@keyframes pulse-whatsapp {
    0%   { box-shadow: 0 0 0 0    rgba(37, 211, 102, 0.75); }
    80%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);    }
    100% { box-shadow: 0 0 0 0    rgba(37, 211, 102, 0);    }
}

/* ===========================
   Botão "Voltar ao Topo"
   Bug corrigido: fundo branco + texto branco → visível
   =========================== */
#scrollTopBtn {
    background-color: rgba(16, 16, 16, 0.92) !important;
    color: #4bff66 !important;
    padding: 10px 22px !important;
    border-radius: 24px !important;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(75, 255, 102, 0.2) !important;
    bottom: 90px !important; /* Elevado para não sobrepor o botão WhatsApp */
    transition: all 0.3s ease !important;
}

#scrollTopBtn:hover {
    background-color: #4bff66 !important;
    color: #101010 !important;
    transform: translateX(-50%) translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(75, 255, 102, 0.35) !important;
}

/* Portfolio Section Title Glow */
.section.works .title {
	position: relative;
	display: inline-block;
	margin-bottom: 50px;
}

.section.works .title .title_inner {
	text-shadow: 0 0 15px rgba(75, 255, 102, 0.5), 0 0 35px rgba(75, 255, 102, 0.25);
	color: #ffffff !important;
	font-weight: 800;
	letter-spacing: 2px;
}

.section.works .title::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 150px;
	height: 40px;
	background: rgba(75, 255, 102, 0.25);
	filter: blur(25px);
	border-radius: 50%;
	z-index: -1;
	pointer-events: none;
}

/* Portfolio View list (displayed one below another) */
.company-portfolio-view {
	display: block !important;
	opacity: 1 !important;
	transform: none !important;
	margin-bottom: 90px; /* Spacing between each company block */
}

.company-portfolio-view:last-child {
	margin-bottom: 20px;
}

/* Glassmorphism Info Card (Company description on top) */
.company-detail-card {
	background: rgba(18, 18, 18, 0.55);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.06);
	padding: 35px 40px;
	border-radius: 20px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
	position: relative;
	overflow: hidden;
	max-width: 900px;
	margin: 0 auto 40px auto;
	box-sizing: border-box;
}

.company-detail-card::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(75, 255, 102, 0.03) 0%, transparent 60%);
	pointer-events: none;
}

.company-num {
	position: absolute;
	top: 0px;
	right: 30px;
	font-size: 90px;
	font-weight: 900;
	color: rgba(75, 255, 102, 0.07);
	line-height: 1;
	user-select: none;
}

.company-cat {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #4bff66;
	letter-spacing: 2px;
	margin-bottom: 8px;
}

.company-title {
	font-size: 26px;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 12px;
	line-height: 1.2;
}

.company-desc {
	font-size: 14px;
	line-height: 1.6;
	color: #b0b0b0;
	margin-bottom: 20px;
	max-width: 750px;
}

.company-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.company-tags .tag {
	font-size: 11px;
	font-weight: 500;
	color: #d1d1d1;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.05);
	padding: 5px 12px;
	border-radius: 12px;
	transition: all 0.3s ease;
}

.company-tags .tag:hover {
	background: rgba(75, 255, 102, 0.1);
	border-color: rgba(75, 255, 102, 0.2);
	color: #4bff66;
}

/* ==========================================
   2-Row Infinite Marquee Styling
   ========================================== */
.portfolio-marquee-container {
	display: flex;
	flex-direction: column;
	gap: 25px;
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	overflow: hidden;
	padding: 10px 0;
	box-sizing: border-box;
}

.marquee-row {
	width: 100%;
	overflow: hidden;
}

.marquee-track {
	display: flex;
	width: max-content;
	gap: 20px;
	cursor: pointer;
}

.marquee-group {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

/* Linear Infinite Animations */
.marquee-row-ltr .marquee-group {
	animation: scroll-right 45s linear infinite;
}

.marquee-row-rtl .marquee-group {
	animation: scroll-left 45s linear infinite;
}

/* Pause animation on hover */
.marquee-track:hover .marquee-group {
	animation-play-state: paused;
}

/* Scroll Animation Keyframes (Translating group width + gap) */
@keyframes scroll-left {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(calc(-100% - 20px));
	}
}

@keyframes scroll-right {
	0% {
		transform: translateX(calc(-100% - 20px));
	}
	100% {
		transform: translateX(0);
	}
}

/* Marquee Cards (Square layout) */
.marquee-item {
	width: 240px;
	height: 240px;
	flex-shrink: 0;
	display: block;
	text-decoration: none;
	outline: none;
}

.marquee-item-inner {
	width: 100%;
	height: 100%;
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: rgba(24, 24, 24, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	box-sizing: border-box;
}

.marquee-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.marquee-item-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(16, 16, 16, 0.65);
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(2px);
}

.marquee-item-overlay i {
	color: #4bff66;
	font-size: 28px;
	transform: scale(0.8);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Card Hover Animations */
.marquee-item:hover .marquee-item-inner {
	transform: scale(1.04);
	border-color: rgba(75, 255, 102, 0.4);
	box-shadow: 0 12px 30px rgba(75, 255, 102, 0.25);
}

.marquee-item:hover img {
	transform: scale(1.08);
}

.marquee-item:hover .marquee-item-overlay {
	opacity: 1;
}

.marquee-item:hover .marquee-item-overlay i {
	transform: scale(1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
	.company-detail-card {
		padding: 30px;
		margin-bottom: 30px;
	}

	.company-title {
		font-size: 22px;
	}

	.company-num {
		font-size: 70px;
		right: 20px;
	}

	.marquee-item {
		width: 200px;
		height: 200px;
	}
}

@media (max-width: 576px) {
	.portfolio-tabs-nav {
		gap: 8px;
		padding: 8px;
	}

	.portfolio-tab-btn {
		padding: 8px 16px;
		font-size: 11px;
	}

	.company-detail-card {
		padding: 20px;
	}

	.company-title {
		font-size: 20px;
	}

	.company-num {
		display: none; /* Hide stamp on very small screens to clear text space */
	}

	.company-desc {
		font-size: 13px;
	}

	.marquee-item {
		width: 170px;
		height: 170px;
	}
	
	.portfolio-marquee-container {
		gap: 15px;
	}
}

/* started background video fixes (remove youtube play/pause hover, force autoplay) */
.jarallax-video {
	pointer-events: none !important;
}

@keyframes fadeInVideo {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.jarallax-video iframe {
	pointer-events: none !important;
	opacity: 0;
	animation: fadeInVideo 1.2s ease-in-out forwards;
	animation-delay: 2.2s; /* Oculta a inicialização e ícone de pause do YouTube */
}

/* Footer CTA Conversion Section */
.footer-cta {
	position: relative;
	overflow: hidden;
	height: 85vh;
	min-height: 520px;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center;
	padding: 80px 20px;
	box-sizing: border-box;
	background: #101010;
}

.footer-cta-content {
	position: relative;
	z-index: 10;
	max-width: 800px;
	width: 100%;
	margin: 0 auto;
	padding: 50px 40px;
	border-radius: 24px;
	background: rgba(16, 16, 16, 0.65);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border: 1px solid rgba(75, 255, 102, 0.15);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
	            0 0 30px rgba(75, 255, 102, 0.05);
	transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.footer-cta-content:hover {
	border-color: rgba(75, 255, 102, 0.35);
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 
	            0 0 40px rgba(75, 255, 102, 0.12);
	transform: translateY(-2px);
}

.footer-cta .h-title {
	font-size: 46px !important;
	line-height: 1.25 !important;
	font-weight: 700 !important;
	color: #FFF;
	margin: 0 0 24px 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	position: relative !important;
	left: 0 !important;
	bottom: 0 !important;
	max-width: 100% !important;
	text-align: center !important;
}

/* Typing area styles reset */
.footer-cta .h-subtitles {
	position: relative !important;
	display: block !important;
	height: auto !important;
	margin: 0 0 35px 0 !important;
	padding: 0 !important;
	text-align: center !important;
}

.footer-cta .typed-bread {
	position: relative !important;
	left: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	display: inline-block !important;
	font-size: 19px !important;
	line-height: 1.6 !important;
	color: #ccc !important;
	padding: 0 !important;
	text-align: center !important;
	font-weight: 400 !important;
}

/* CTA WhatsApp Button */
.cta-btn-whatsapp {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: transparent;
	color: #4bff66 !important;
	border: 2px solid #4bff66 !important;
	padding: 16px 40px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 50px !important;
	text-decoration: none !important;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
	position: relative;
	overflow: hidden;
	z-index: 1;
	box-shadow: 0 4px 15px rgba(75, 255, 102, 0.15);
}

.cta-btn-whatsapp:hover {
	color: #101010 !important;
	background: #4bff66 !important;
	box-shadow: 0 8px 25px rgba(75, 255, 102, 0.4);
	transform: translateY(-2px);
}

.cta-btn-whatsapp i {
	font-size: 20px;
	color: inherit !important;
	transition: transform 0.3s ease;
}

.cta-btn-whatsapp:hover i {
	transform: scale(1.1) rotate(10deg);
}

.sub-cta-text {
	display: block;
	font-size: 13px;
	color: #666;
	margin-top: 14px;
	letter-spacing: 0.02em;
}

/* Ensure background elements match the layout inside .footer-cta */
.footer-cta .video-bg {
	margin-left: -50vw;
	position: absolute !important;
	top: 0;
	left: 50%;
	width: 100vw;
	height: 100%;
	z-index: 1;
}

/* Responsive fixes */
@media (max-width: 768px) {
	.footer-cta {
		height: auto;
		padding: 100px 15px 80px 15px;
	}
	.footer-cta-content {
		padding: 40px 20px;
	}
	.footer-cta .h-title {
		font-size: 34px !important;
	}
	.footer-cta .typed-bread {
		font-size: 16px !important;
	}
	.cta-btn-whatsapp {
		padding: 14px 28px !important;
		font-size: 14px !important;
		width: 100%;
		box-sizing: border-box;
	}
}

/* Sleek Scroll to Top Arrow at the bottom of the section */
.scroll-to-top-arrow {
	position: absolute;
	bottom: 25px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	font-size: 20px;
	color: rgba(75, 255, 102, 0.7);
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(75, 255, 102, 0.2);
	background: rgba(16, 16, 16, 0.4);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	cursor: pointer;
}

.scroll-to-top-arrow:hover {
	color: #FFF !important;
	border-color: rgba(75, 255, 102, 0.6);
	background: rgba(75, 255, 102, 0.15);
	transform: translateX(-50%) translateY(-5px);
	box-shadow: 0 5px 15px rgba(75, 255, 102, 0.25);
}

.scroll-to-top-arrow i {
	color: inherit;
	font-size: inherit;
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY & FONT OVERRIDES (OUTFIT & INTER)
   ========================================================================== */
body, 
input, 
textarea, 
button, 
select, 
label, 
legend,
p,
ul,
ol,
li,
td,
th,
a,
span,
.typed-bread,
.typed-subtitle,
.typing-subtitle,
.typing-bread {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

h1, h2, h3, h4, h5, h6, 
strong,
em,
.logo,
.logo *,
.top-menu ul li a,
.h-title,
.h-title *,
.name,
.company-title,
.company-num,
.info-list ul li strong,
.resume-items .resume-item .name,
.resume-items .resume-item .company,
.resume-items .resume-item .date,
.service-items .service-item .name,
.skills .name,
.skills .percent,
.btn,
.lnk,
.title_inner,
.follow-label {
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Adjust heading styles slightly for Outfit font */
h1, h2, h3, h4, h5, h6, .title_inner {
	letter-spacing: -0.02em !important;
}

/* Restore Font Awesome font-family for icons */
.fa, .fas, .far, .fab, [class*="fa-"] {
	font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
}

/* ==========================================================================
   GLOBAL GLASSMORPHISM FOR ALL CONTENT BOXES / CARDS
   ========================================================================== */
/* Apply to all content-box containers */
.content-box,
.service-items .service-item.content-box,
.resume-items .resume-item.content-box,
.contact_form.content-box,
.skills.content-box,
.skills.percent.content-box,
.skills.circles.content-box,
.skills.dotted.content-box,
.skills.list.content-box {
	background: rgba(16, 16, 16, 0.6) !important;
	backdrop-filter: blur(15px) !important;
	-webkit-backdrop-filter: blur(15px) !important;
	border: 1px solid rgba(75, 255, 102, 0.12) !important;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 
	            0 0 25px rgba(75, 255, 102, 0.04) !important;
	border-radius: 20px !important;
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Hover state for content boxes */
.content-box:hover,
.service-items .service-item.content-box:hover,
.resume-items .resume-item.content-box:hover,
.contact_form.content-box:hover,
.skills.content-box:hover {
	border-color: rgba(75, 255, 102, 0.35) !important;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 
	            0 0 35px rgba(75, 255, 102, 0.12) !important;
	transform: translateY(-4px);
}

/* Subtle layout adjustments for resume and service items */
.service-items .service-item.content-box {
	padding: 40px 30px !important;
}

.resume-items .resume-item.content-box {
	padding: 35px !important;
	margin-top: 30px !important; /* spacing between vertical list of boxes */
}

/* Overriding default odd/even background/border rules of the theme */
.service-items .service-col:nth-child(odd) .content-box,
.service-items .service-col:nth-child(even) .content-box {
	background: rgba(16, 16, 16, 0.6) !important;
	border: 1px solid rgba(75, 255, 102, 0.12) !important;
}

.service-items .service-col:nth-child(odd) .content-box:hover,
.service-items .service-col:nth-child(even) .content-box:hover {
	border-color: rgba(75, 255, 102, 0.35) !important;
}

/* Glassmorphism for Fixed Header Menu */
.header.fixed {
	background: rgba(16, 16, 16, 0.75) !important;
	backdrop-filter: blur(15px) !important;
	-webkit-backdrop-filter: blur(15px) !important;
	border-bottom: 1px solid rgba(75, 255, 102, 0.15) !important;
}


/* ==========================================================================
   WEBSITES SUBSECTION GRID STYLING
   ========================================================================== */
.portfolio-websites-section {
	width: 100%;
	clear: both;
	padding: 20px 0;
}

.websites-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	width: 100%;
	box-sizing: border-box;
}

.website-card {
	padding: 16px !important;
	height: 100%;
	display: flex;
	flex-direction: column;
	border-radius: 18px !important;
}

.website-link {
	text-decoration: none !important;
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}

.website-image-wrapper {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 Aspect Ratio */
	border-radius: 12px;
	overflow: hidden;
	background: #151515;
}

.website-image-wrapper img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.website-hover-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(16, 16, 16, 0.75);
	opacity: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease;
	z-index: 2;
}

.website-hover-overlay .visit-text {
	color: #4bff66;
	font-family: 'Outfit', sans-serif !important;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #4bff66;
	padding: 10px 20px;
	border-radius: 30px;
	background: rgba(75, 255, 102, 0.05);
	box-shadow: 0 0 15px rgba(75, 255, 102, 0.1);
	transition: all 0.3s ease;
}

.website-card:hover .website-image-wrapper img {
	transform: scale(1.06);
}

.website-card:hover .website-hover-overlay {
	opacity: 1;
}

.website-card:hover .website-hover-overlay .visit-text {
	transform: scale(1.05);
	background: #4bff66;
	color: #101010 !important;
	box-shadow: 0 0 20px rgba(75, 255, 102, 0.3);
}

.website-info {
	padding: 18px 4px 4px 4px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.website-cat {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 6px;
	font-weight: 500;
}

.website-title {
	font-size: 20px !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	color: #FFF;
	margin: 0 !important;
	text-transform: none !important;
}

/* Responsive grid layouts */
@media (max-width: 1024px) {
	.websites-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 767px) {
	.websites-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.website-title {
		font-size: 18px !important;
	}
}
