/* --- CORE VARIABLES --- */
:root {
	--bg-deep: #030304;
	--bg-surface: #0a0a0c;
	--primary-accent: #7c3aed;
	--primary-glow: rgba(124, 58, 237, 0.4);
	--text-main: #ffffff;
	--text-muted: #cbd5e1;
	--border-glass: rgba(255, 255, 255, 0.08);
	--glass-bg: rgba(20, 20, 23, 0.7);
}

/* --- RESET & BASE --- */
html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--bg-deep);
	color: var(--text-main);
	font-family: 'Plus Jakarta Sans', sans-serif;
	overflow-x: hidden;
	position: relative;
}

/* TEXTURA DE RUÍDO (NOISE) */
body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 9999;
}

/* AMBIENT LIGHT */
.ambient-light {
	position: fixed;
	top: -20%;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 800px;
	background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
	filter: blur(80px);
	z-index: -1;
	pointer-events: none;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
	letter-spacing: -0.03em;
	color: white;
}

.mono {
	font-family: 'JetBrains Mono', monospace;
	letter-spacing: -0.02em;
}

.text-muted {
	color: var(--text-muted) !important;
}

.text-gradient {
	background: linear-gradient(135deg, #fff 30%, #a78bfa 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* --- ANIMATIONS ON SCROLL (REVEAL) --- */
.reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
	opacity: 1;
	transform: translateY(0);
}

/* --- GLASS CARDS --- */
.glass-card {
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--border-glass);
	border-radius: 20px;
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	position: relative;
	overflow: hidden;
}

.glass-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 20px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
	pointer-events: none;
}

.glass-card:hover {
	border-color: rgba(124, 58, 237, 0.3);
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* --- BUTTONS --- */
.btn-primary-glow {
	background: linear-gradient(135deg, var(--primary-accent), #6d28d9);
	color: white;
	border: none;
	padding: 14px 32px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.95rem;
	box-shadow: 0 0 20px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transition: 0.3s;
	position: relative;
	overflow: hidden;
}

.btn-primary-glow:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 30px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	color: white;
}

.btn-outline-glass {
	background: rgba(255, 255, 255, 0.05);
	/* Mais visível */
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--text-main);
	/* Cor base mais clara */
	padding: 14px 24px;
	border-radius: 12px;
	font-weight: 500;
	transition: 0.3s;
}

.btn-outline-glass:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.4);
	color: white;
}

/* --- MARQUEE INFINITO (STACK CORE) --- */
.marquee-wrapper {
	width: 100%;
	overflow: hidden;
	position: relative;
	padding: 40px 0;
	background: linear-gradient(90deg, var(--bg-deep) 0%, transparent 10%, transparent 90%, var(--bg-deep) 100%);
	mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
	display: flex;
	width: max-content;
	animation: scroll 30s linear infinite;
}

.marquee-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 40px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.4);
	font-weight: 500;
}

.marquee-item i {
	font-size: 1.4rem;
	color: rgba(255, 255, 255, 0.6);
}

@keyframes scroll {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

/* --- HERO --- */
.hero-section {
	padding: 160px 0 100px;
	position: relative;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 100px;
	background: rgba(124, 58, 237, 0.1);
	border: 1px solid rgba(124, 58, 237, 0.2);
	color: #d8b4fe;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 24px;
}

/* --- TIMELINE --- */
.tech-timeline {
	border-left: 2px solid rgba(255, 255, 255, 0.1);
	margin-left: 10px;
	padding-left: 40px;
}

.timeline-item {
	position: relative;
	padding-bottom: 60px;
}

.timeline-item:last-child {
	padding-bottom: 0;
}

.timeline-marker {
	position: absolute;
	left: -49px;
	top: 0;
	width: 16px;
	height: 16px;
	background: var(--bg-deep);
	border: 2px solid var(--primary-accent);
	border-radius: 50%;
	box-shadow: 0 0 15px var(--primary-accent);
}

/* --- BENTO GRID --- */
.bento-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 60px;
}

.bento-large {
	grid-column: span 2;
}

.bento-small {
	grid-column: span 1;
}

@media (max-width: 991px) {
	.bento-grid {
		grid-template-columns: 1fr;
	}

	.bento-large,
	.bento-small {
		grid-column: span 1;
	}
}

.stack-tag {
	font-size: 0.75rem;
	font-family: 'JetBrains Mono', monospace;
	padding: 4px 10px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.1);
	/* Mais contraste */
	color: var(--text-muted);
	border: 1px solid transparent;
}

/* --- NAV --- */
.floating-nav {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(10, 10, 12, 0.9);
	backdrop-filter: blur(20px);
	padding: 12px 24px;
	border-radius: 100px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	z-index: 1000;
	display: flex;
	gap: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-link-custom {
	color: #ccc;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: 0.3s;
}

.nav-link-custom:hover,
.nav-link-custom.active {
	color: white;
}

/* --- CONTACT FORM --- */
.form-glass {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: white;
	border-radius: 12px;
	padding: 16px;
	transition: 0.3s;
}

.form-glass:focus {
	background: rgba(255, 255, 255, 0.05);
	border-color: var(--primary-accent);
	box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
	outline: none;
}

.form-glass::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

select.form-glass option {
	background-color: #000;
	/* Fundo preto sólido para as opções */
	color: white;
	/* Texto branco */
	padding: 10px;
}

.toast-cyber {
	background: var(--glass-bg);
	backdrop-filter: blur(16px);
	border-radius: 8px;
	color: var(--text-white);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	font-size: 0.95rem;
}

.toast-cyber.border-success-cyber {
	border-left: 4px solid var(--primary-glow) !important;
}

.toast-cyber.border-error-cyber {
	border-left: 4px solid #ff5f56 !important;
}

.toast-cyber .toast-body i {
	font-size: 1.3rem;
}

.text-success-cyber {
	color: var(--primary-glow) !important;
}

.text-error-cyber {
	color: #ff5f56 !important;
}

/* --- CONTACT TILES (Novos Cards de Informação) --- */
.contact-info-container {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 30px;
}

.contact-tile {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 15px 20px;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	transition: 0.3s;
}

.contact-tile:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(124, 58, 237, 0.3);
	/* Roxo sutil na borda */
	transform: translateX(5px);
}

.tile-label {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.7rem;
	text-transform: uppercase;
	color: var(--text-muted);
	opacity: 0.7;
	margin-bottom: 5px;
	letter-spacing: 1px;
}

.tile-value {
	color: white;
	font-weight: 500;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tile-icon {
	color: var(--primary-accent);
	font-size: 1rem;
}

/* --- FLOATING WHATSAPP & COOKIE --- */
.floating-whatsapp {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 60px;
	height: 60px;
	background-color: var(--primary-accent);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	box-shadow: 0 0 20px var(--primary-glow);
	z-index: 9999;
	transition: 0.3s;
}

.floating-whatsapp:hover {
	transform: translateY(-5px) scale(1.05);
	color: white;
	box-shadow: 0 0 30px var(--primary-accent);
}

.cookie-banner {
	position: fixed;
	bottom: 30px;
	left: 30px;
	max-width: 400px;
	background: rgba(10, 10, 12, 0.95);
	backdrop-filter: blur(16px);
	border: 1px solid var(--border-glass);
	border-radius: 16px;
	padding: 20px;
	z-index: 9998;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	transform: translateY(150%);
	transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
	transform: translateY(0);
}

/* --- GOD TIER FOOTER --- */
.footer-section {
	position: relative;
	padding: 100px 0 40px;
	background: linear-gradient(to bottom, var(--bg-deep) 0%, #000 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	overflow: hidden;
}

/* Efeito de Grid no Fundo (Toque Técnico) */
.footer-grid-bg {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: linear-gradient(to bottom, transparent, black 80%);
	pointer-events: none;
	z-index: 0;
}

/* Título Gigante */
.footer-cta-title {
	font-size: 3.5rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	background: linear-gradient(180deg, #fff 0%, #444 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 2rem;
}

/* Títulos das Colunas */
.footer-group-title {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-muted);
	margin-bottom: 1.5rem;
	opacity: 0.5;
	font-weight: 600;
}

/* Links com Animação Magnética */
.footer-link {
	display: block;
	color: #888;
	text-decoration: none;
	font-size: 0.95rem;
	margin-bottom: 0.8rem;
	transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	position: relative;
	width: fit-content;
}

.footer-link::before {
	content: '//';
	position: absolute;
	left: -20px;
	opacity: 0;
	color: var(--primary-accent);
	transition: 0.3s;
	font-family: monospace;
	font-size: 0.8rem;
}

.footer-link:hover {
	color: white;
	transform: translateX(10px);
}

.footer-link:hover::before {
	opacity: 1;
	left: -25px;
}

/* Widget de Status do Sistema */
.system-status {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	padding: 20px;
	max-width: 320px;
	backdrop-filter: blur(5px);
}

.status-indicator {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #10b981;
	box-shadow: 0 0 8px #10b981;
	margin-right: 8px;
}

/* Barra Inferior */
.footer-bottom {
	margin-top: 80px;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

@media (max-width: 768px) {
	.footer-cta-title {
		font-size: 2.5rem;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}
}

/* SCROLLBAR */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
	background: #333;
	border-radius: 4px;
}

/* Helpers */
.tech-timeline {
	border-left: 2px solid rgba(255, 255, 255, 0.1);
	margin-left: 10px;
	padding-left: 40px;
}

.timeline-item {
	position: relative;
	padding-bottom: 60px;
}

.timeline-marker {
	position: absolute;
	left: -49px;
	top: 0;
	width: 16px;
	height: 16px;
	background: var(--bg-deep);
	border: 2px solid var(--primary-accent);
	border-radius: 50%;
	box-shadow: 0 0 15px var(--primary-accent);
}

.bento-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 40px;
}

.bento-large {
	grid-column: span 2;
}

.bento-small {
	grid-column: span 1;
}

@keyframes spin {
	100% {
		transform: rotate(360deg);
	}
}

.fade-in {
	animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 991px) {
	.bento-grid {
		grid-template-columns: 1fr;
	}

	.bento-large,
	.bento-small {
		grid-column: span 1;
	}
}

@media (max-width: 768px) {
    .floating-nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        width: 95%;
        padding: 12px;
        scrollbar-width: none;
    }
    
    .floating-nav::-webkit-scrollbar { 
        display: none; 
    } 
}

@media (max-width: 768px) {
    .reveal, .reveals {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
    
    .marquee-wrapper {
        overflow: hidden;
        width: 100%;
        position: relative;
    }
}