:root {
	--neon: #ffffff;
	--dark: #000000;
}

html {
	scroll-behavior: smooth;
}

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

body {
	color: white;
	font-family: "Orbitron", sans-serif;
	overflow-x: hidden;

	background:
		linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
		linear-gradient(135deg, #000);

	background-size:
		40px 40px,
		40px 40px,
		cover;
}

/* ================= NAVBAR ================= */
.navbar {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);

	width: 90%;
	max-width: 1100px;

	display: flex;
	align-items: center;
	justify-content: space-between;

	padding: 15px 30px;

	background: rgba(20, 20, 20, 0.7);
	backdrop-filter: blur(10px);

	border-radius: 50px;
	border: 1px solid rgba(255, 255, 255, 0.2);

	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	z-index: 999;
}

.logo {
	color: var(--neon);
	font-weight: bold;
	font-size: 20px;
}

.nav-links {
	display: flex;
	gap: 30px;
	list-style: none;
}

.nav-links a {
	text-decoration: none;
	color: white;
	font-size: 14px;
	transition: 0.3s;
}

.nav-links a:hover {
	color: var(--neon);
}

.nav-btn {
	background: var(--neon);
	color: black;
	padding: 8px 18px;
	border-radius: 20px;
	text-decoration: none;
	font-size: 14px;
	font-weight: bold;
}

/* LOGO */
.logo {
	font-size: 22px;
	font-weight: bold;
	color: var(--neon);
	letter-spacing: 2px;
	text-shadow:
		0 0 10px var(--neon),
		0 0 20px var(--neon);
	cursor: pointer;
	transition: 0.3s;
}

.logo:hover {
	transform: scale(1.1);
}

/* NAV LINKS */
.nav-links {
	list-style: none;
	display: flex;
	gap: 30px;
}

.nav-links a {
	position: relative;
	text-decoration: none;
	color: white;
	font-weight: 500;
	letter-spacing: 1px;
	transition: 0.3s;
}

/* Neon underline animation */
.nav-links a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -5px;
	width: 0%;
	height: 2px;
	background: var(--neon);
	box-shadow: 0 0 10px var(--neon);
	transition: 0.4s ease;
}

.nav-links a:hover {
	color: var(--neon);
}

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

/* ================= HAMBURGER ================= */
.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
}

.hamburger span {
	width: 25px;
	height: 3px;
	background: var(--neon);
	box-shadow: 0 0 10px var(--neon);
	transition: 0.3s;
}

/* Animasi jadi X */
.hamburger.open span:nth-child(1) {
	transform: rotate(45deg) translateY(8px);
}

.hamburger.open span:nth-child(2) {
	opacity: 0;
}

.hamburger.open span:nth-child(3) {
	transform: rotate(-45deg) translateY(-8px);
}

/* ================= HERO ================= */
.hero {
	height: 100vh;
	background:
		linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
		linear-gradient(135deg, #212221, #000);

	background-size:
		40px 40px,
		40px 40px,
		cover;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 0 20px;
	border-bottom: var(--neon) 2px solid;
}

.hero h1 {
	font-size: 3rem;
	color: var(--neon);
	text-shadow: 0 0 20px var(--neon);
}

.typing {
	margin-top: 10px;
	color: var(--neon);
}

/* ================= SECTION ================= */
section {
	padding: 100px 10%;
	text-align: center;
}

h2 {
	margin-bottom: 40px;
	color: var(--neon);
	text-shadow: 0 0 10px var(--neon);
}

/* ================= ABOUT ================= */
.about-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 50px;
	flex-wrap: wrap;
}

.about-image {
	display: flex;
	justify-content: center;
	align-items: center;
}

.about-image img {
	width: 280px;
	border-radius: 20px;
	filter: grayscale(100%);
	transition: all 0.6s ease;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Hover Effect */
.about-image img:hover {
	filter: grayscale(0%);
	transform: scale(1.05);
	box-shadow: 0 0 25px #ff0000;
}

/* Fade Up Animation */
@keyframes fadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.about-content {
	max-width: 600px;
}

.about-card {
	margin-bottom: 30px;
	padding: 25px;
	border: 1px solid var(--neon);
	background: var(--dark);
	transition: 0.4s;
}

.about-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 0 25px var(--neon);
}

/* ================= PROJECT CARDS ================= */
.card-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}

.card {
	padding: 20px;
	min-width: 200px;
	border: 1px solid var(--neon);
	background: var(--dark);
	transition: 0.3s;
}

.card:hover {
	background: var(--neon);
	color: black;
	transform: scale(1.05);
	box-shadow: 0 0 20px var(--neon);
}

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

.detal-a:hover {
	color: black;
	text-shadow: 0 0 15px var(--neon);
}

/* ================= GALLERY ================= */

.gallery-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}

.gallery-card {
	width: 280px;
	height: 200px;
	border: 1px solid var(--neon);
	border-radius: 12px;
	overflow: hidden;
	transition: 0.3s ease;
	background: #111;
}

.gallery-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: 0.3s ease;
}

.gallery-card:hover {
	transform: scale(1.05);
	box-shadow: 0 0 20px var(--neon);
}

.gallery-card:hover img {
	opacity: 0.9;
}

/* ================= SCROLL ANIMATION ================= */
.reveal {
	opacity: 0;
	transform: translateY(80px);
	transition: 1s;
}

.reveal.active {
	opacity: 1;
	transform: translateY(0);
}

.contact {
	padding: 120px 10%;
	min-height: 100vh;
}

.contact form {
	width: 100%;
	max-width: 800px; /* lebih lebar */
	margin: 40px auto 0;
}

.contact h2 {
	font-size: 2.5rem;
	margin-bottom: 30px;
}

.input-group {
	margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
	width: 100%;
	padding: 18px;
	font-size: 16px;
	background: var(--dark);
	border: 2px solid var(--neon);
	color: white;
	outline: none;
	transition: 0.3s;
	border-radius: 8px;
}

.input-group textarea {
	min-height: 180px;
	resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
	box-shadow: 0 0 15px var(--neon);
}

/* BUTTON */
.contact button {
	width: 100%;
	padding: 18px;
	font-size: 18px;
	font-weight: bold;
	background: var(--neon);
	border: none;
	color: black;
	cursor: pointer;
	border-radius: 8px;
	transition: 0.3s;
}

.contact button:hover {
	box-shadow: 0 0 25px var(--neon);
	transform: scale(1.03);
}

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

.footer {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
		linear-gradient(363deg, #212221, #000);

	background-size:
		40px 40px,
		40px 40px,
		cover;

	padding: 60px 10%;
	text-align: center;
	border-top: 2px solid var(--neon);
}

.footer-logo {
	font-size: 24px;
	color: var(--neon);
	text-shadow: 0 0 15px var(--neon);
	margin-bottom: 10px;
}

.footer-desc {
	color: #aaa;
	margin-bottom: 25px;
}

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

.footer-social a {
	text-decoration: none;
	color: var(--neon);
	transition: 0.3s;
}

.footer-social a:hover {
	text-shadow: 0 0 15px var(--neon);
	transform: translateY(-3px);
}

.footer-copy {
	font-size: 14px;
	color: #666;
}

.skill-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
	margin: 40px auto 0;
	max-width: 1100px;
	text-align: center;
}

.skill-card {
	padding: 15px;
	font-size: 14px;
	border: 1px solid var(--neon);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(6px);
	transition: 0.3s ease;
	text-align: center;
}

.skill-card:hover {
	background: var(--neon);
	color: black;
	transform: translateY(-4px);
	box-shadow: 0 0 15px var(--neon);
}

#particles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

.GALLERY {
	position: relative;
	overflow: hidden;
}

.gallery-particles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.GALLERY h2,
.GALLERY .my_gallery {
	position: relative;
	z-index: 2;
}

/* glowing center */
.GALLERY::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
		circle at center,
		rgba(0, 255, 255, 0.15),
		transparent 70%
	);
}

/* content tetap di atas */
.GALLERY h2,
.GALLERY .my_gallery {
	position: relative;
	z-index: 3;
}

/* Container gallery */
.my_gallery {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* Box gambar */
.gall_img {
	width: 250px; /* lebar foto */
	height: 350px; /* tinggi portrait */
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gall_img:hover {
	box-shadow: 0 0 25px var(--neon);
}

/* Gambar */
.gall_img img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* penting untuk portrait */
	transition: transform 0.4s ease;
}

/* Hover effect */
.gall_img:hover img {
	transform: scale(1.05);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
	.nav-links {
		position: fixed;
		top: 90px;
		left: 50%;
		transform: translateX(-50%) scale(0.9);

		width: 280px;
		padding: 30px;

		background: rgba(20, 20, 20, 0.95);
		backdrop-filter: blur(10px);

		border-radius: 20px;
		border: 1px solid rgba(0, 255, 150, 0.2);

		flex-direction: column;
		align-items: center;
		gap: 25px;

		opacity: 0;
		pointer-events: none;
		transition: 0.3s;
	}

	.nav-links.active {
		opacity: 1;
		transform: translateX(-50%) scale(1);
		pointer-events: auto;
	}

	.hamburger {
		display: flex;
	}

	.hero h1 {
		font-size: 1.8rem;
	}

	.about-wrapper {
		flex-direction: column;
		text-align: center;
	}

	.about-image img {
		width: 200px;
	}

	.about-content {
		max-width: 100%;
	}

	.card-container {
		flex-direction: column;
		/* align-items: center; */
	}

	.contact {
		padding: 100px 5%;
	}

	.contact form {
		max-width: 100%;
	}

	.contact h2 {
		font-size: 2rem;
	}

	.input-group input,
	.input-group textarea {
		padding: 14px;
	}

	.contact button {
		padding: 15px;
	}

	.footer-social {
		flex-wrap: wrap;
		gap: 15px;
	}

	/* ================= SKILLS ================= */

	.skill-container {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
		gap: 12px;
		margin-top: 40px;
	}

	.skill-card {
		padding: 10px;
		font-size: 13px;
		border: 1px solid var(--neon);
		border-radius: 8px;
		background: rgba(255, 255, 255, 0.03);
		backdrop-filter: blur(6px);
		transition: 0.3s ease;
		text-align: center;
	}

	.skill-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 0 15px var(--neon);
	}
}
