/**
 * Contact 3D Page Styles - Globe.gl Version
 *
 * @package    ComLink
 * @subpackage Theme/CSS
 * @since      1.0.0
 */

/* ==========================================
   RESET & BASE
   ========================================== */

body.comlink-contact-3d {
	margin: 0 !important;
	padding: 0 !important;
	font-family: 'Segoe UI', sans-serif;
	background: #0a0a1a;
	color: white;
	overflow-x: hidden;
}

.comlink-contact-3d * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Hide Flatsome elements */
.comlink-contact-3d #wrapper,
.comlink-contact-3d .header-wrapper,
.comlink-contact-3d .footer-wrapper,
.comlink-contact-3d #header,
.comlink-contact-3d #footer {
	display: none !important;
}

/* ==========================================
   HEADER
   ========================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 15px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: all 0.4s ease;
}

.site-header.scrolled {
	padding: 10px 40px;
	background: rgba(10, 10, 26, 0.95);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes logoBreathing {
	0%, 100% {
		filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1))
				drop-shadow(0 0 15px rgba(255, 255, 255, 0.9))
				drop-shadow(0 0 35px rgba(255, 255, 255, 0.7))
				drop-shadow(0 0 60px rgba(255, 255, 255, 0.5))
				drop-shadow(0 0 100px rgba(255, 255, 255, 0.3))
				drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
	}
	50% {
		filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1))
				drop-shadow(0 0 20px rgba(255, 255, 255, 1))
				drop-shadow(0 0 45px rgba(255, 255, 255, 0.85))
				drop-shadow(0 0 80px rgba(255, 255, 255, 0.65))
				drop-shadow(0 0 130px rgba(255, 255, 255, 0.4))
				drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
	}
}

.header-logo img {
	height: 60px;
	width: auto;
	transition: all 0.3s ease;
	animation: logoBreathing 3s ease-in-out infinite;
}

.header-logo:hover img {
	filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1))
			drop-shadow(0 0 25px rgba(255, 255, 255, 1))
			drop-shadow(0 0 50px rgba(255, 255, 255, 0.9))
			drop-shadow(0 0 90px rgba(255, 255, 255, 0.7))
			drop-shadow(0 0 140px rgba(255, 255, 255, 0.5))
			drop-shadow(0 5px 20px rgba(0, 0, 0, 0.6));
}

.site-header.scrolled .header-logo img {
	height: 50px;
}

.header-nav {
	display: flex;
	align-items: center;
	gap: 35px;
}

.header-nav a {
	color: white;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	position: relative;
	padding: 8px 0;
	transition: all 0.3s ease;
}

.header-nav a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #00ff88, #00d4ff);
	transition: width 0.3s ease;
}

.header-nav a:hover {
	color: #00ff88;
}

.header-nav a:hover::after {
	width: 100%;
}

.header-nav a.active {
	color: #00ff88;
}

.header-nav a.active::after {
	width: 100%;
}

/* Mobile menu */
.mobile-menu-btn {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: 10px;
	background: none;
	border: none;
}

.mobile-menu-btn span {
	width: 25px;
	height: 2px;
	background: white;
	transition: all 0.3s ease;
}

/* ==========================================
   GLOBE CONTAINER (Globe.gl)
   ========================================== */

#globe-container {
	position: fixed;
	top: 0;
	right: 0;
	width: 60vw;
	height: 100vh;
	min-width: 400px;
	min-height: 400px;
	z-index: 1;
	background: transparent;
}

#globe-container canvas {
	outline: none;
	display: block;
}

/* ==========================================
   CONTENT WRAPPER
   ========================================== */

.content-wrapper {
	position: relative;
	z-index: 10;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 120px 40px 60px;
}

.hero .container {
	max-width: 600px;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 20px;
	background: rgba(0, 212, 255, 0.1);
	border: 1px solid rgba(0, 212, 255, 0.3);
	border-radius: 30px;
	font-size: 13px;
	color: #00d4ff;
	margin-bottom: 25px;
	text-transform: uppercase;
	letter-spacing: 1px;
	white-space: nowrap;
	flex-wrap: nowrap;
}

.comlink-contact-3d h1 {
	font-size: 52px;
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 20px;
	color: white;
}

.comlink-contact-3d h1 span {
	background: linear-gradient(135deg, #00ff88, #00d4ff);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-subtitle {
	font-size: 18px;
	line-height: 1.7;
	opacity: 0.8;
	margin-bottom: 30px;
}

.hero-stats {
	display: flex;
	gap: 40px;
	margin-top: 40px;
}

.hero-stat {
	text-align: center;
}

.hero-stat-number {
	font-size: 36px;
	font-weight: 700;
	color: #00ff88;
}

.hero-stat-label {
	font-size: 14px;
	opacity: 0.7;
	margin-top: 5px;
}

/* Scroll hint */
.scroll-hint {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	opacity: 0.6;
	animation: bounce 2s infinite;
}

.scroll-hint span {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.scroll-hint-arrow {
	width: 20px;
	height: 20px;
	border-right: 2px solid white;
	border-bottom: 2px solid white;
	transform: rotate(45deg);
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
	40% { transform: translateX(-50%) translateY(-10px); }
	60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==========================================
   OFFICES SECTION
   ========================================== */

.offices-section {
	padding: 80px 40px;
	position: relative;
	background: rgba(0, 0, 0, 0.3);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

.section-header {
	margin-bottom: 50px;
	text-align: center;
}

.section-header h2 {
	font-size: 36px;
	margin-bottom: 15px;
	color: white;
}

.section-header h2 span {
	color: #00ff88;
}

.section-header p {
	font-size: 16px;
	opacity: 0.7;
	line-height: 1.6;
	max-width: 600px;
	margin: 0 auto;
}

/* ==========================================
   OFFICE CARDS
   ========================================== */

.offices-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.office-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 35px 30px;
	transition: all 0.4s ease;
	position: relative;
	overflow: hidden;
}

.office-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #00ff88, #00d4ff);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
}

.office-card:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(0, 255, 136, 0.3);
	transform: translateY(-8px);
}

.office-card:hover::before {
	transform: scaleX(1);
}

.office-card-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 25px;
}

.office-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.15));
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
}

.office-card-title h3 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 4px;
	color: white;
}

.office-card-title .region {
	font-size: 13px;
	color: #00d4ff;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.office-info {
	margin-bottom: 25px;
}

.office-info-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 15px;
}

.office-info-item:last-child {
	margin-bottom: 0;
}

.office-info-icon {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}

.office-info-content {
	flex: 1;
}

.office-info-label {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 4px;
}

.office-info-value {
	font-size: 15px;
	line-height: 1.5;
	color: white;
}

.office-info-value a {
	color: #00ff88;
	text-decoration: none;
	font-weight: 600;
	font-size: 18px;
	transition: all 0.3s ease;
}

.office-info-value a:hover {
	color: #00d4ff;
}

.office-cta {
	display: flex;
	gap: 12px;
}

.btn-call {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 20px;
	background: linear-gradient(135deg, #00ff88, #00d4ff);
	color: #0a0a1a;
	text-decoration: none;
	border-radius: 12px;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
}

.btn-call:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
	color: #0a0a1a;
}

.btn-map {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	color: white;
	text-decoration: none;
	font-size: 20px;
	transition: all 0.3s ease;
}

.btn-map:hover {
	background: rgba(0, 255, 136, 0.1);
	border-color: rgba(0, 255, 136, 0.3);
}

/* ==========================================
   MAP LEGEND
   ========================================== */

.map-legend {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 100;
	background: rgba(10, 10, 26, 0.9);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 15px;
	padding: 20px;
}

.map-legend h4 {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 12px;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 13px;
}

.legend-item:last-child {
	margin-bottom: 0;
}

.legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.legend-dot.hanoi {
	background: #00ff88;
	box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.legend-dot.danang {
	background: #00d4ff;
	box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.legend-dot.hcm {
	background: #ff6b6b;
	box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

/* ==========================================
   GLOBE TOOLTIP
   ========================================== */

.globe-tooltip {
	background: rgba(10, 10, 26, 0.95) !important;
	border: 1px solid rgba(0, 255, 136, 0.3) !important;
	border-radius: 10px !important;
	padding: 12px 16px !important;
	font-family: 'Segoe UI', sans-serif !important;
	color: white !important;
	backdrop-filter: blur(10px);
}

.globe-tooltip h3 {
	color: #00ff88;
	font-size: 14px;
	margin-bottom: 4px;
}

.globe-tooltip p {
	font-size: 12px;
	opacity: 0.8;
}

/* ==========================================
   FOOTER
   ========================================== */

.comlink-contact-3d footer {
	padding: 60px 40px 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.5);
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.footer-section h4 {
	font-size: 16px;
	margin-bottom: 20px;
	color: #00ff88;
}

.footer-section p,
.footer-section a {
	font-size: 14px;
	line-height: 1.8;
	opacity: 0.8;
	color: white;
	text-decoration: none;
	display: block;
}

.footer-section a:hover {
	color: #00ff88;
	opacity: 1;
}

.footer-bottom {
	max-width: 1200px;
	margin: 40px auto 0;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}

.footer-social {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 20px;
}

.footer-social a {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: white;
	text-decoration: none;
	transition: all 0.3s ease;
}

.footer-social a:hover {
	background: rgba(0, 255, 136, 0.2);
	border-color: rgba(0, 255, 136, 0.5);
	transform: translateY(-3px);
}

.footer-social a svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.footer-bottom p {
	font-size: 14px;
	opacity: 0.6;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */

@media (max-width: 1024px) {
	#globe-container {
		width: 50%;
	}

	.offices-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.header-nav {
		position: fixed;
		top: 70px;
		left: 0;
		right: 0;
		background: rgba(10, 10, 26, 0.98);
		flex-direction: column;
		padding: 30px;
		gap: 20px;
		transform: translateY(-150%);
		opacity: 0;
		transition: all 0.3s ease;
	}

	.header-nav.active {
		transform: translateY(0);
		opacity: 1;
	}

	.mobile-menu-btn {
		display: flex;
	}

	.site-header {
		padding: 15px 20px;
	}

	.comlink-contact-3d h1 {
		font-size: 38px;
	}

	.section-header h2 {
		font-size: 28px;
	}
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 768px) {
	#globe-container {
		width: 100%;
		height: 50vh;
		top: auto;
		bottom: 0;
		opacity: 0.5;
	}

	.offices-grid {
		grid-template-columns: 1fr;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.comlink-contact-3d footer {
		padding: 40px 20px 20px;
	}

	.map-legend {
		display: none;
	}
}

@media (max-width: 600px) {
	.hero,
	.offices-section {
		padding-left: 20px;
		padding-right: 20px;
	}

	.comlink-contact-3d h1 {
		font-size: 32px;
	}

	.hero-stats {
		flex-direction: column;
		gap: 20px;
	}

	.scroll-hint {
		display: none;
	}

	.office-card {
		padding: 25px 20px;
	}

	.office-cta {
		flex-direction: column;
	}

	.btn-map {
		width: 100%;
	}
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
	#globe-container {
		display: none;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
