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

:root {
	color-scheme: dark;
	--bg: #080808;
	--bg-soft: #111214;
	--surface: rgba(255, 255, 255, 0.05);
	--surface-2: rgba(255, 255, 255, 0.08);
	--border: rgba(255, 255, 255, 0.12);
	--text: #f4f4f4;
	--text-muted: #c8c8c8;
	--heading: #ffffff;
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	--gold: #c7a56a;
	--gold-soft: rgba(199, 165, 106, 0.2);
	--panel-blur: blur(16px);
	--radius-xl: 24px;
	--radius-lg: 18px;
	--radius-md: 14px;
	--radius-sm: 10px;
}

/* Light mode keeps the same visual language with softer contrast */
body.light-mode {
	color-scheme: light;
	--bg: #f7f7f8;
	--bg-soft: #ececef;
	--surface: rgba(255, 255, 255, 0.75);
	--surface-2: rgba(255, 255, 255, 0.9);
	--border: rgba(15, 15, 15, 0.12);
	--text: #151515;
	--text-muted: #5f6064;
	--heading: #0b0b0c;
	--shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
	--gold: #9b7a3e;
	--gold-soft: rgba(155, 122, 62, 0.12);
}

html {
	scroll-behavior: smooth;
}

body {
	background:
		radial-gradient(circle at 15% 15%, rgba(199, 165, 106, 0.14), transparent 45%),
		radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.06), transparent 40%),
		linear-gradient(180deg, var(--bg) 0%, #050505 45%, var(--bg-soft) 100%);
	color: var(--text);
	font-family:
		"Segoe UI", "Trebuchet MS", "Helvetica Neue", sans-serif;
	line-height: 1.5;
	min-height: 100vh;
	overflow-x: hidden;
	position: relative;
	transition:
		background 0.35s ease,
		color 0.35s ease;
}

body.light-mode {
	background:
		radial-gradient(circle at 15% 15%, rgba(155, 122, 62, 0.12), transparent 45%),
		radial-gradient(circle at 85% 15%, rgba(0, 0, 0, 0.03), transparent 40%),
		linear-gradient(180deg, #fafafb 0%, #f3f3f5 45%, #ececef 100%);
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
}

img {
	display: block;
	max-width: 100%;
}

/* =========================================================
   Decorative Layers
   Subtle glow blobs for depth without becoming flashy.
   */
.bg-layer {
	inset: auto;
	pointer-events: none;
	position: fixed;
	z-index: -1;
}

.bg-layer-1 {
	background: radial-gradient(circle, rgba(199, 165, 106, 0.12), transparent 70%);
	filter: blur(10px);
	height: 26rem;
	left: -6rem;
	top: 8rem;
	width: 26rem;
}

.bg-layer-2 {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
	filter: blur(10px);
	height: 22rem;
	right: -5rem;
	top: 20rem;
	width: 22rem;
}

body.light-mode .bg-layer-2 {
	background: radial-gradient(circle, rgba(0, 0, 0, 0.05), transparent 70%);
}

/*
   Reusable Buttons
   Shared button styles keep all CTAs visually consistent.
   */
.ghost-btn,
.solid-btn {
	align-items: center;
	backdrop-filter: var(--panel-blur);
	border-radius: 999px;
	display: inline-flex;
	gap: 0.55rem;
	justify-content: center;
	padding: 0.75rem 1rem;
	transition:
		transform 0.22s ease,
		background-color 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease;
	white-space: nowrap;
}

.ghost-btn {
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
}

.solid-btn {
	background: linear-gradient(135deg, #f4f4f4 0%, #d9d9d9 100%);
	border: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
	color: #111;
	font-weight: 600;
}

body.light-mode .solid-btn {
	background: linear-gradient(135deg, #161616 0%, #2b2b2b 100%);
	border: 1px solid rgba(0, 0, 0, 0.15);
	color: #fff;
}

.ghost-btn:hover,
.solid-btn:hover {
	transform: translateY(-2px);
}

.ghost-btn:hover {
	background: var(--surface-2);
	border-color: rgba(199, 165, 106, 0.32);
}

.solid-btn:hover {
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.nav-link-btn {
	min-width: 120px;
}

 
  /* Top Navigation    */
.top-nav {
	align-items: center;
	backdrop-filter: blur(14px);
	background: rgba(10, 10, 10, 0.45);
	border: 1px solid var(--border);
	border-radius: 999px;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin: 1rem auto 0;
	max-width: 1200px;
	padding: 0.65rem 0.8rem;
	position: sticky;
	top: 0.75rem;
	width: calc(100% - 2rem);
	z-index: 30;
}

body.light-mode .top-nav {
	background: rgba(255, 255, 255, 0.65);
}

.brand-chip {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	display: inline-flex;
	gap: 0.55rem;
	padding: 0.55rem 0.85rem;
}

.brand-chip i {
	color: var(--gold);
}

.brand-chip span {
	font-size: 0.95rem;
	font-weight: 600;
}

.nav-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	justify-content: flex-end;
}

/*    Hero Section    */
.hero {
	align-items: stretch;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1.2fr 0.8fr;
	margin: 2rem auto 0;
	max-width: 1200px;
	padding: 0 1rem;
	width: 100%;
}

.hero-content,
.hero-panel {
	min-width: 0;
}

.hero-content {
	background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.02));
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	padding: 2rem;
	position: relative;
	overflow: hidden;
}

.hero-content::before {
	background: linear-gradient(120deg, transparent, var(--gold-soft), transparent);
	content: "";
	height: 140%;
	left: -30%;
	position: absolute;
	top: -20%;
	transform: rotate(15deg);
	width: 60%;
}

.eyebrow {
	color: var(--gold);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 0.6rem;
	text-transform: uppercase;
}

.hero-title {
	color: var(--heading);
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.03;
	margin-bottom: 1rem;
	min-height: 2.2em;
	perspective: 1000px;
	text-wrap: balance;
}

/* 3D/glow title effect requested by the user */
#typing-text {
	background: linear-gradient(180deg, #ffffff 0%, #d5d5d5 35%, #b9b9b9 100%);
	background-clip: text;
	border-right: 2px solid rgba(255, 255, 255, 0.7);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
	filter:
		drop-shadow(0 2px 0 rgba(255, 255, 255, 0.08))
		drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
	transform: translateZ(0) rotateX(3deg);
	white-space: normal;
}

body.light-mode #typing-text {
	background: linear-gradient(180deg, #1a1a1a 0%, #3a3a3a 60%, #6a6a6a 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	border-right-color: rgba(0, 0, 0, 0.4);
}

#typing-text.typing {
	animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
	0%,
	100% {
		border-right-color: transparent;
	}
	50% {
		border-right-color: rgba(255, 255, 255, 0.8);
	}
}

body.light-mode #typing-text.typing {
	animation-name: blink-cursor-light;
}

@keyframes blink-cursor-light {
	0%,
	100% {
		border-right-color: transparent;
	}
	50% {
		border-right-color: rgba(20, 20, 20, 0.7);
	}
}

.hero-description {
	color: var(--text-muted);
	font-size: 1rem;
	max-width: 58ch;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin: 1.4rem 0 1.5rem;
}

.skill-marquee-wrapper {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 0.85rem;
}

.skills-label {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 0.6rem;
}

.skill-marquee {
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	overflow: hidden;
}

.skill-track {
	animation: marquee-scroll 16s linear infinite;
	display: flex;
	gap: 0.7rem;
	width: max-content;
}

.skill-track:hover {
	animation-play-state: paused;
}

@keyframes marquee-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.skill-pill {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	display: inline-flex;
	gap: 0.45rem;
	padding: 0.55rem 0.75rem;
	font-size: 0.9rem;
}

.hero-panel {
	display: flex;
}

.profile-card {
	background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.02));
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	padding: 1.25rem;
	transform-style: preserve-3d;
	transition: transform 0.2s ease;
	width: 100%;
}

.profile-image-wrap {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
	border: 1px solid var(--border);
	border-radius: calc(var(--radius-xl) - 6px);
	padding: 0.9rem;
	display: flex;
	justify-content: center;
	
}

.profile-image-wrap img {
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	object-fit: cover;
	width: 60%;
}

.profile-copy {
	display: grid;
	gap: 0.55rem;
}

.profile-role {
	color: var(--heading);
	font-size: 1.05rem;
	font-weight: 700;
}

.profile-location,
.profile-focus {
	color: var(--text-muted);
	font-size: 0.95rem;
}

/* =========================================================
   Main Content + Projects
   Cards and tabs are designed to scale as more projects are added.
   ========================================================= */
.main-content {
	margin: 1.5rem auto 3rem;
	max-width: 1200px;
	padding: 0 1rem;
	width: 100%;
}

.projects-section {
	background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.02));
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	padding: 1.4rem;
}

.section-heading {
	margin-bottom: 1rem;
}

.section-heading h2 {
	color: var(--heading);
	font-size: clamp(1.4rem, 3vw, 2rem);
	letter-spacing: -0.02em;
}

.section-subtitle {
	color: var(--text-muted);
	margin-top: 0.35rem;
}

.tech-tabs {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 1.1rem 0 1rem;
}

.tech-tab {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	color: var(--text);
	cursor: pointer;
	display: inline-flex;
	gap: 0.65rem;
	justify-content: center;
	padding: 0.9rem 1rem;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background-color 0.2s ease,
		box-shadow 0.2s ease;
}

.tech-tab:hover {
	transform: translateY(-1px);
	border-color: rgba(199, 165, 106, 0.3);
}

.tech-tab.is-active {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
	border-color: rgba(199, 165, 106, 0.35);
	box-shadow: inset 0 0 0 1px rgba(199, 165, 106, 0.12);
}

.project-panel {
	margin-top: 0.5rem;
}

.project-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	position: relative;
	transform-style: preserve-3d;
	transition:
		transform 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease;
}

.project-card::before {
	background: radial-gradient(circle at top right, rgba(199, 165, 106, 0.18), transparent 55%);
	content: "";
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 0.22s ease;
}

.project-card:hover {
	border-color: rgba(199, 165, 106, 0.28);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
	transform: translateY(-4px);
}

.project-card:hover::before {
	opacity: 1;
}

.project-image {
	aspect-ratio: 16 / 9;
	background: #0f0f10;
	border-bottom: 1px solid var(--border);
	overflow: hidden;
}

.project-image img {
	height: 100%;
	object-fit: cover;
	transition: transform 0.28s ease;
	width: 100%;
}

.project-card:hover .project-image img {
	transform: scale(1.03);
}

.project-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.95rem;
}

.project-title {
	color: var(--heading);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.project-description {
	color: var(--text-muted);
	font-size: 0.92rem;
	flex: 1;
}

.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.tag {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 0.75rem;
	padding: 0.3rem 0.55rem;
}

.project-actions {
	display: flex;
	gap: 0.55rem;
}

.project-actions a {
	flex: 1;
}

.project-actions .ghost-btn,
.project-actions .solid-btn {
	border-radius: 12px;
	padding: 0.65rem 0.75rem;
	width: 100%;
}

.project-note {
	color: var(--text-muted);
	font-size: 0.78rem;
}

/* =========================================================
   Resume Callout
   Small supporting card that does not compete with projects.
   ========================================================= */
.resume-callout {
	margin-top: 1rem;
}

.resume-card {
	align-items: center;
	background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.02));
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: 1.25rem;
}

.resume-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-end;
}

.resume-card h3 {
	color: var(--heading);
	font-size: 1.15rem;
	margin-bottom: 0.25rem;
}

.resume-card p:last-child {
	color: var(--text-muted);
}

/* =========================================================
   Overlay Panels (About + Contact)
   Contact panel is hidden until the user clicks the tab/button.
   ========================================================= */
.overlay-panel {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 1rem;
	pointer-events: none;
	position: fixed;
	transition: opacity 0.22s ease;
	z-index: 40;
}

.overlay-panel.is-open {
	opacity: 1;
	pointer-events: auto;
}

.overlay-backdrop {
	background: rgba(0, 0, 0, 0.6);
	inset: 0;
	position: absolute;
}

.overlay-card {
	backdrop-filter: blur(16px);
	background: linear-gradient(180deg, rgba(12, 12, 12, 0.88), rgba(12, 12, 12, 0.78));
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
	color: var(--text);
	max-height: min(88vh, 760px);
	max-width: 760px;
	overflow: auto;
	padding: 1.2rem 1.2rem 1rem;
	position: relative;
	width: min(100%, 760px);
}

body.light-mode .overlay-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 248, 249, 0.86));
}

.overlay-card h2 {
	color: var(--heading);
	font-size: 1.4rem;
	margin-bottom: 1rem;
	padding-right: 2rem;
}

.Description {
	color: var(--text);
}

.close-btn {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--text);
	cursor: pointer;
	display: inline-flex;
	height: 2rem;
	justify-content: center;
	position: absolute;
	right: 1rem;
	top: 1rem;
	width: 2rem;
}

.close-btn:hover {
	background: var(--surface-2);
}

.overlay-card-contact {
	max-width: 620px;
}

.contact-intro {
	color: var(--text-muted);
	margin-bottom: 0.9rem;
}

.contact-list {
	display: grid;
	gap: 0.75rem;
}

.contact-item {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	display: flex;
	gap: 0.75rem;
	padding: 0.9rem;
	transition:
		transform 0.18s ease,
		border-color 0.18s ease,
		background-color 0.18s ease;
}

.contact-item:hover {
	background: var(--surface-2);
	border-color: rgba(199, 165, 106, 0.28);
	transform: translateY(-1px);
}

.contact-item i {
	color: var(--gold);
	font-size: 1.05rem;
	width: 1.2rem;
}

/* =========================================================
   Utility States
   Used by JS for reveal animations and reduced motion support.
   ========================================================= */
.reveal-on-scroll {
	opacity: 0;
	transform: translateY(14px);
	transition:
		opacity 0.45s ease,
		transform 0.45s ease;
}

.reveal-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	.skill-track {
		animation: none;
	}
}
