@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&display=swap");

:root {
	--bg-color: #0a0f1a;
	--card-bg: rgba(255, 255, 255, 0.03);
	--accent-color: #00f2ff;
	--text-main: #e2e8f0;
	--text-dim: #94a3b8;
	--glass-border: rgba(255, 255, 255, 0.1);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Sora", sans-serif;
	scroll-behavior: smooth;
}
body {
	background: var(--bg-color);
	color: var(--text-main);
	line-height: 1.6;
	overflow-x: hidden;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 8%;
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	background: rgba(10, 15, 26, 0.6);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--glass-border);
}
header h1 {
	font-size: 1.2rem;
	background: linear-gradient(to right, #ffffff, var(--accent-color));
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
nav a {
	margin-left: 20px;
	color: var(--text-dim);
	text-decoration: none;
	font-size: 0.85rem;
	transition: 0.3s;
}
nav a:hover {
	color: var(--accent-color);
}

.hero {
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 120px 8% 60px 8%; /* Padding atas agar tidak terlalu keatas */
	background:
		linear-gradient(rgba(10, 15, 26, 0.85), rgba(10, 15, 26, 0.85)),
		url("https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070&auto=format&fit=crop");
	background-size: cover;
	background-position: center;
}

.hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	text-align: center;
}

/* PROFILE PHOTO & RING */
.profile-container {
	position: relative;
	width: 250px;
	height: 250px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.profile {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	object-fit: cover;
	z-index: 5;
	border: 4px solid var(--accent-color);
	box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

.profile-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%); /* Kunci tepat di tengah */
	width: 230px;
	height: 230px;
	border: 2px dashed var(--accent-color);
	border-radius: 50%;
	animation: rotateRing 15s linear infinite;
	opacity: 0.5;
	z-index: 1;
}

@keyframes rotateRing {
	from {
		transform: translate(-50%, -50%) rotate(0deg);
	}
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

.hero-text h1 {
	font-size: 3.5rem;
	font-weight: 800;
}

.hero-text p {
	font-size: 1.1rem;
	color: var(--text-dim);
	letter-spacing: 5px;
	text-transform: uppercase;
}

.hero-action {
	margin-top: 40px;
}

.section {
	padding: 100px 10%;
	max-width: 1200px;
	margin: auto;
}
.center {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.accent {
	color: var(--accent-color);
}

.about-container {
	display: flex;
	align-items: center;
	gap: 50px;
	flex-wrap: wrap;
}
.about-text {
	flex: 1;
	min-width: 300px;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	width: 100%;
}
.card {
	background: var(--card-bg);
	border: 1px solid var(--glass-border);
	padding: 30px;
	border-radius: 25px;
	transition: 0.4s;
	position: relative;
	overflow: hidden;
}
.card:hover {
	border-color: var(--accent-color);
	transform: translateY(-10px);
	background: rgba(255, 255, 255, 0.06);
}
.card img {
	width: 100%;
	border-radius: 15px;
	margin-bottom: 20px;
}

.glow-icon {
	font-size: 3rem;
	margin-bottom: 20px;
	color: var(--accent-color);
	filter: drop-shadow(0 0 15px var(--accent-color));
}

.timeline {
	position: relative;
	max-width: 800px;
	margin: 40px auto;
	padding-left: 40px;
}
.timeline::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 2px;
	height: 100%;
	background: var(--accent-color);
}
.timeline-item {
	position: relative;
	margin-bottom: 40px;
}
.timeline-item::before {
	content: "";
	position: absolute;
	left: -46px;
	top: 8px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--accent-color);
	box-shadow: 0 0 10px var(--accent-color);
}
.timeline-content {
	background: var(--card-bg);
	padding: 20px;
	border-radius: 15px;
	border: 1px solid var(--glass-border);
}

.contact-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin-top: 40px;
}
.contact-item {
	background: var(--card-bg);
	padding: 20px 40px;
	border-radius: 20px;
	border: 1px solid var(--glass-border);
	text-decoration: none;
	color: var(--text-main);
	display: flex;
	align-items: center;
	gap: 15px;
	transition: 0.3s;
}
.contact-item i {
	font-size: 1.5rem;
	color: var(--accent-color);
}
.contact-item:hover {
	background: var(--accent-color);
	color: #000;
	transform: translateY(-5px);
}

.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
	justify-content: center;
	align-items: center;
}
.modal-content {
	background: var(--bg-color);
	padding: 35px;
	border-radius: 30px;
	max-width: 850px;
	width: 90%;
	text-align: center;
	border: 1px solid var(--glass-border);
	position: relative;
}
#modalImg {
	width: 100%;
	max-height: 65vh;
	object-fit: contain;
	border-radius: 15px;
	margin-bottom: 25px;
}
.close-modal {
	position: absolute;
	top: 15px;
	right: 25px;
	font-size: 35px;
	color: #fff;
	cursor: pointer;
}

.btn-link {
	display: inline-block;
	width: 100%;
	padding: 12px;
	border: 1px solid var(--accent-color);
	color: var(--accent-color);
	text-decoration: none;
	border-radius: 12px;
	font-weight: 600;
	text-align: center;
	transition: 0.3s;
}
.btn-link:hover {
	background: var(--accent-color);
	color: #000;
}

.reveal-hidden {
	opacity: 0;
	transform: translateY(30px);
	transition: 0.8s;
}
.visible {
	opacity: 1;
	transform: translateY(0);
}

footer {
	text-align: center;
	padding: 50px;
	color: var(--text-dim);
	border-top: 1px solid var(--glass-border);
	background: var(--bg-color);
}

.card:hover img {
	transform: scale(1.1);
}

.card-image-container img {
	width: 100%;
	display: block;
}

.btn-link i {
	font-size: 0.9rem;
}

.card:hover img {
	transform: scale(1.1);
}

.card-image-container img {
	width: 100%;
	display: block;
}

.btn-link i {
	font-size: 0.9rem;
}

.tag-year {
	display: inline-block;
	background: rgba(0, 242, 255, 0.1);
	color: var(--accent-color);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
	margin-bottom: 10px;
	border: 1px solid rgba(0, 242, 255, 0.3);
}

.card-hover {
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
	transform: translateX(10px) scale(1.02);
	background: rgba(255, 255, 255, 0.05);
	border-color: var(--accent-color);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glow-icon {
	font-size: 2.5rem;
	margin-bottom: 20px;
	display: inline-block;
	transition: 0.3s;
}

.card-hover:hover .glow-icon {
	transform: scale(1.2) rotate(5deg);
	color: #fff;
	text-shadow: 0 0 20px var(--accent-color);
}

.card-hover {
	transition:
		transform 0.3s ease,
		border-color 0.3s ease;
	cursor: default;
}

.card-hover:hover {
	border-color: var(--accent-color);
	transform: translateY(-10px);
}

.profile-wrapper {
	position: relative;
	z-index: 1;
}

.floating {
	animation: floating 3s ease-in-out infinite;
	border: 4px solid var(--accent-color);
	box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

@keyframes floating {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-15px);
	}
	100% {
		transform: translateY(0px);
	}
}

.profile-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 220px;
	height: 220px;
	border: 2px dashed var(--accent-color);
	border-radius: 50%;
	animation: rotate 10s linear infinite;
	z-index: -1;
	opacity: 0.5;
}

@keyframes rotate {
	from {
		transform: translate(-50%, -50%) rotate(0deg);
	}
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

.skill-tag {
	background: rgba(255, 255, 255, 0.05);
	padding: 8px 15px;
	border-radius: 50px;
	font-size: 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: 0.3s;
}

.skill-tag:hover {
	background: var(--accent-color);
	color: #000;
	transform: translateY(-5px);
}

.about-container {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 40px;
	align-items: center;
}

@media (max-width: 768px) {
	.about-container {
		grid-template-columns: 1fr;
	}
}

.profile-container {
	position: relative;
	width: 250px;
	height: 250px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 40px;
}

.profile {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	object-fit: cover;
	z-index: 5;
	border: 4px solid #00f2ff;
	position: relative;
}

.profile-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 230px;
	height: 230px;
	border: 2px dashed #00f2ff;
	border-radius: 50%;
	animation: rotateRing 15s linear infinite;
	opacity: 0.5;
	z-index: 1;
	box-sizing: border-box;
}

@keyframes rotateRing {
	from {
		transform: translate(-50%, -50%) rotate(0deg);
	}
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

.floating {
	animation: floatingImg 3s ease-in-out infinite;
}

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

.hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.btn-link:hover {
	background: #00f2ff;
	color: #000 !important;
	box-shadow: 0 0 25px #00f2ff;
	transform: translateY(-3px);
}

/* Container untuk membungkus tag agar rapi */
.skill-tag-container {
	display: flex;
	flex-wrap: wrap; /* Supaya tag pindah ke baris baru jika tidak cukup */
	gap: 12px; /* Memberikan jarak antar tag */
	margin-top: 20px;
}

/* Styling satuan tag */
.skill-tag {
	display: inline-block;
	background: rgba(0, 242, 255, 0.05);
	padding: 10px 20px;
	border-radius: 50px;
	font-size: 0.85rem;
	color: var(--text-main);
	border: 1px solid rgba(0, 242, 255, 0.2);
	transition: all 0.3s ease;
	white-space: nowrap; /* Mencegah teks terpotong ke bawah dalam satu tag */
}

.skill-tag:hover {
	background: var(--accent-color);
	color: #000;
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
	border-color: var(--accent-color);
}

/* --- MEMORY SECTION --- */
.memory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.memory-card {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 1/1; /* Biar fotonya kotak rapi */
	border: 1px solid var(--glass-border);
}

.memory-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.5s;
}

.memory-info {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 20px;
	background: linear-gradient(transparent, rgba(10, 15, 26, 0.9));
	color: #fff;
	font-size: 0.9rem;
	opacity: 0;
	transition: 0.3s;
}

.memory-card:hover img {
	transform: scale(1.1);
}

.memory-card:hover .memory-info {
	opacity: 1;
}

/* --- PLAYLIST SECTION --- */
.playlist-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
	background: var(--card-bg);
	border-radius: 30px;
	border: 1px solid var(--glass-border);
	box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.center {
	text-align: center;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

.card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	overflow: hidden;
	position: relative;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	cursor: pointer;
	backdrop-filter: blur(10px);
}

.card:hover {
	transform: translateY(-8px);
	border-color: var(--accent-color);
	box-shadow: 0 12px 30px rgba(0, 242, 255, 0.15);
}

/* Badge melayang halus saat di-hover */
.badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: var(--accent-color);
	color: #0a0f1a;
	padding: 6px 14px;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 700;
	z-index: 10;
	opacity: 0;
	transform: translateY(-5px);
	transition: 0.3s ease;
}

.card:hover .badge {
	opacity: 1;
	transform: translateY(0);
}

.card img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-content {
	padding: 20px;
}

.card-content h3 {
	font-size: 1.1rem;
	color: #fff;
	margin-bottom: 5px;
}

/* --- GLASSMORPHISM MODAL --- */
.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(10, 15, 26, 0.9);
	backdrop-filter: blur(12px);
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal-content {
	background: #111622;
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 35px;
	border-radius: 24px;
	max-width: 600px;
	width: 100%;
	text-align: center;
	position: relative;
	animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
	from {
		transform: scale(0.95);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.close-modal {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 2rem;
	color: var(--text-dim);
	cursor: pointer;
	transition: 0.2s;
}

.close-modal:hover {
	color: #ff4a4a;
}

#modalImg {
	width: 100%;
	max-height: 350px;
	object-fit: contain;
	border-radius: 12px;
	margin-bottom: 20px;
	background: rgba(0, 0, 0, 0.2);
}
