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

:root {
	--dark: #080B16;
	--surface: #0E1425;
	--blue: #022859;
	--cyan: #3cd7ff;
	--blue-light: #4d8eff;
	--text: #dce1fb;
	--text-muted: #8c909f;
}

html { scroll-behavior: smooth; }

body {
	font-family: 'Inter', sans-serif;
	background: var(--dark);
	color: var(--text);
	line-height: 1.6;
}

/* Navbar */
nav {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 100;
	background: rgba(8, 11, 22, 0.7);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(60, 215, 255, 0.08);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	text-decoration: none;
}

.logo img {
	height: 40px;
	border-radius: 6px;
}

.nav-links {
	list-style: none;
	display: flex;
	gap: 2rem;
}

.nav-links a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 400;
	transition: color 0.3s;
}

.nav-links a:hover { color: #fff; }

/* Hamburger */
.hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
	padding: 4px;
}

.hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
	.hamburger { display: flex; }
	.nav-links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		background: rgba(8, 11, 22, 0.95);
		backdrop-filter: blur(20px);
		padding: 1.5rem 2rem;
		gap: 1rem;
		border-bottom: 1px solid rgba(255,255,255,0.08);
	}
	.nav-links.open { display: flex; }
}

/* Hero */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 6rem 2rem 4rem;
	background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #081020 100%);
}

.hero canvas {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 1100px;
	width: 100%;
}

.hero-title {
	font-family: 'Syne', sans-serif;
	font-size: 5rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #fff;
	margin-bottom: 0.5rem;
	animation: titlePulse 6s ease-in-out infinite;
}

@keyframes titlePulse {
	0%, 100% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.2); opacity: 1; }
	50% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.3); opacity: 0.9; }
}

.hero-subtitle {
	font-size: 1.3rem;
	color: var(--text-muted);
	font-weight: 300;
	margin-bottom: 3rem;
}

/* Services */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.2rem;
	text-align: left;
}

.card {
	background: rgba(14, 20, 37, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 2rem;
	cursor: pointer;
	transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
	animation: cardGlow 3s ease-in-out infinite alternate;
}

.card:nth-child(2) { animation-delay: 0.5s; }
.card:nth-child(3) { animation-delay: 1s; }
.card:nth-child(4) { animation-delay: 1.5s; }

@keyframes cardGlow {
	0% { border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 rgba(255,255,255,0); }
	100% { border-color: rgba(255, 255, 255, 0.25); box-shadow: 0 0 15px rgba(255,255,255,0.05); }
}

.card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 255, 255, 0.4);
	box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}

.card img {
	width: 48px;
	height: 48px;
	margin-bottom: 1rem;
	filter: brightness(0) invert(1);
	mix-blend-mode: lighten;
}

.card h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: #fff;
	margin-bottom: 0.5rem;
}

.card .card-preview {
	font-size: 0.85rem;
	color: var(--text-muted);
}

.card .card-detail {
	display: none;
	margin-top: 1rem;
	font-size: 0.85rem;
	color: var(--text);
	line-height: 1.7;
}

.card.open .card-detail { display: block; }
.card.open .card-preview { display: none; }

.card.open {
	border-color: rgba(255, 255, 255, 0.4);
	box-shadow: 0 12px 40px rgba(255, 255, 255, 0.08);
}

/* About */
.about {
	padding: 6rem 2rem;
	background: linear-gradient(180deg, #f8faff 0%, #e8eef8 50%, #f0f4fa 100%);
	color: var(--blue);
}

.about canvas {
	display: none;
}

.about-container {
	position: relative;
}

.about-container {
	max-width: 1000px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 3rem;
	align-items: center;
}

.about-text h2 {
	font-size: 2.2rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: var(--blue);
}

.about-text {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(2, 40, 89, 0.15);
	border-radius: 16px;
	padding: 2.5rem;
	box-shadow: 0 4px 20px rgba(2, 40, 89, 0.08);
}

.about-text p {
	font-size: 1rem;
	color: #333;
	margin-bottom: 1rem;
	line-height: 1.8;
}

.about-logo {
	display: flex;
	justify-content: center;
}

.about-logo img {
	width: 220px;
	border-radius: 16px;
	animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

.team-title {
	text-align: center;
	font-size: 2rem;
	font-weight: 700;
	margin: 0;
	padding-top: 4rem;
	color: #fff;
}

.team-section {
	background: linear-gradient(180deg, #0a1628 0%, #121d35 50%, #0a1628 100%);
	padding-bottom: 4rem;
}

/* 3D Carousel */
.carousel-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.5rem 0 2rem;
	position: relative;
	z-index: 1;
}

.carousel-stage {
	position: relative;
	width: 100%;
	max-width: 900px;
	height: 320px;
	perspective: 900px;
	margin: 0 auto;
}

.carousel-card {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 220px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #1C253D;
	border: 1px solid #2a3555;
	border-radius: 20px;
	padding: 2rem 1.2rem 1.5rem;
	transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease;
	transform-origin: center center;
}

.carousel-card img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1rem;
	border: 3px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	background: #0E1425;
}

.carousel-card h4 {
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.3rem;
}

.carousel-card span {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 500;
	margin-bottom: 0.2rem;
}

.carousel-card small {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.4);
	margin-bottom: 0.8rem;
}

.carousel-card a {
	font-size: 0.72rem;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 0.35rem 1rem;
	border-radius: 20px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.2s;
}

.carousel-card a:hover {
	background: rgba(255, 255, 255, 0.2);
}

.carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: var(--blue);
	color: #fff;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.3s;
}

.carousel-nav:hover { background: var(--blue-light); }
.carousel-nav.prev { left: 1rem; }
.carousel-nav.next { right: 1rem; }

/* Contact */
.contact {
	position: relative;
	padding: 6rem 2rem;
	overflow: hidden;
	background: #080B16;
}

.contact::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 20% 80%, rgba(77, 142, 255, 0.15) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
		radial-gradient(ellipse at 50% 50%, rgba(60, 215, 255, 0.08) 0%, transparent 60%);
	animation: auroraShift 8s ease-in-out infinite alternate;
	z-index: 0;
}

@keyframes auroraShift {
	0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
	50% { transform: scale(1.1) translate(-2%, 3%); opacity: 1; }
	100% { transform: scale(1.05) translate(2%, -2%); opacity: 0.8; }
}

.contact-content {
	position: relative;
	z-index: 1;
	max-width: 1000px;
	margin: 0 auto;
	text-align: center;
}

.contact-content h2 {
	font-size: 2.2rem;
	font-weight: 600;
	margin-bottom: 2rem;
}

.contact-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
	text-align: left;
}

.contact-hero-img {
	width: 100%;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	color: #fff;
	background: rgba(14, 20, 37, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
	border-color: rgba(255, 255, 255, 0.5);
}

.contact-form textarea { resize: vertical; }

.contact-form button {
	padding: 0.85rem 1rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: #080B16;
	background: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: opacity 0.2s;
}

.contact-form button:hover { opacity: 0.85; }
.contact-form button:disabled { opacity: 0.5; cursor: not-allowed; }

#formFeedback {
	text-align: center;
	font-size: 0.85rem;
	min-height: 1.2rem;
}

.contact-form iframe {
	border-radius: 12px;
	border: none;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
	text-align: center;
	padding: 2rem;
	background: var(--surface);
	border-top: 1px solid rgba(60, 215, 255, 0.08);
	font-size: 0.8rem;
	color: var(--text-muted);
}

footer p { margin-bottom: 0.3rem; }

.footer-links {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.footer-links a {
	color: #fff;
	text-decoration: none;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 0.7; }

.footer-credits {
	margin-top: 0.8rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.6);
}

.footer-credits a {
	color: #fff;
	text-decoration: none;
}

.footer-credits a:hover { text-decoration: underline; }

.footer-logos {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	margin-top: 1rem;
}

.footer-logos img {
	height: 40px;
	object-fit: contain;
	transition: opacity 0.2s;
}

.footer-logos img:hover { opacity: 0.7; }

/* Responsive: Laptop ≤ 1366px */
@media (max-width: 1366px) {
	.hero-title { font-size: 4.5rem; }
	.services-grid { max-width: 900px; margin: 0 auto; }
	.about-container { max-width: 850px; }
	.carousel-stage { max-width: 750px; }
}

/* Responsive: Tablet ≤ 768px */
@media (max-width: 768px) {
	.hero-title { font-size: 3.2rem; }
	.hero-subtitle { font-size: 1.1rem; }
	.hero { padding: 5rem 1.5rem 3rem; }
	.services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
	.about-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
	.about-logo img { width: 160px; }
	.about-text { padding: 2rem 1.5rem; }
	.carousel-stage { height: 280px; }
	.carousel-card { width: 180px; padding: 1.5rem 1rem; }
	.carousel-card img { width: 80px; height: 80px; }
	.contact-content { padding: 0 1rem; }
	.footer-links { gap: 1rem; }
	.team-title { font-size: 1.6rem; }
}

/* Responsive: Mobile ≤ 480px */
@media (max-width: 480px) {
	.hero-title { font-size: 2.5rem; }
	.hero-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
	.hero { padding: 4rem 1rem 2rem; }
	.services-grid { grid-template-columns: 1fr; }
	.card { padding: 1.5rem; }
	.card img { width: 36px; height: 36px; }
	.card h3 { font-size: 0.95rem; }
	.about { padding: 3rem 1rem; }
	.about-container { gap: 1.5rem; }
	.about-text { padding: 1.5rem; }
	.about-text h2 { font-size: 1.6rem; }
	.about-text p { font-size: 0.9rem; }
	.carousel-stage { height: 260px; overflow: hidden; }
	.carousel-card { width: 150px; padding: 1.2rem 0.8rem; }
	.carousel-card img { width: 65px; height: 65px; }
	.carousel-card h4 { font-size: 0.85rem; }
	.carousel-card span { font-size: 0.65rem; }
	.carousel-card small { font-size: 0.6rem; }
	.carousel-card a { font-size: 0.65rem; padding: 0.3rem 0.8rem; }
	.carousel-nav { width: 28px; height: 28px; font-size: 0.75rem; }
	.carousel-nav.prev { left: 0.3rem; }
	.carousel-nav.next { right: 0.3rem; }
	.contact { padding: 4rem 1rem; }
	.contact-content h2 { font-size: 1.6rem; }
	.contact-layout { grid-template-columns: 1fr; }
	.contact-hero-img { max-width: 300px; margin: 0 auto; }
	.contact-form { max-width: 100%; }
	.contact-form input,
	.contact-form textarea { font-size: 16px; padding: 0.75rem; }
	.footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1rem; }
	.footer-credits { font-size: 0.65rem; }
	.team-section { padding-bottom: 3rem; }
	.team-title { font-size: 1.4rem; padding-top: 3rem; }
	.nav-container { padding: 0.75rem 1rem; }
	.logo img { height: 32px; }
}

/* Responsive: Large screens ≥ 1920px */
@media (min-width: 1920px) {
	.hero-title { font-size: 6rem; }
	.hero-subtitle { font-size: 1.6rem; }
	.services-grid { max-width: 1200px; margin: 0 auto; }
	.about-container { max-width: 1100px; }
	.carousel-stage { max-width: 1000px; height: 380px; }
	.carousel-card { width: 250px; }
}

/* Responsive: Ultra-wide ≥ 2560px */
@media (min-width: 2560px) {
	.hero-title { font-size: 7rem; }
	.services-grid { max-width: 1400px; }
	.about-container { max-width: 1300px; }
}
