/*
	Modern Dark theme — custom layer on top of the Strata (HTML5 UP) template.
	Kept separate from main.css so template updates don't get clobbered.
	Fonts: Space Grotesk (display), Inter (body), JetBrains Mono (labels/mono).
*/

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

/* ============================================================
	1. Palette
	============================================================ */

:root {
	--bg:            #1a1136;   /* vivid violet-plum — the hue between berry & blue */
	--bg-2:          #271848;
	--surface:       rgba(255, 255, 255, 0.035);
	--surface-2:     rgba(255, 255, 255, 0.06);
	--border:        rgba(255, 255, 255, 0.09);
	--border-2:      rgba(255, 255, 255, 0.16);
	--text:          #c2c1cf;
	--text-dim:      #8a8399;
	--text-bold:     #f6f2f8;
	--accent:        #90D5FF;   /* sky blue — primary bright accent */
	--accent-2:      #EC4899;   /* hot pink — bright sibling of the berry */
	--accent-deep:   #680141;   /* deep berry — depth, glows, gradients */
	--accent-soft:   rgba(144, 213, 255, 0.12);
	--accent-line:   rgba(144, 213, 255, 0.35);
	--magenta-soft:  rgba(236, 72, 153, 0.12);
	--glow:          0 0 0 1px rgba(144, 213, 255, 0.35), 0 8px 30px -8px rgba(144, 213, 255, 0.35);
	--shadow:        0 10px 40px -12px rgba(0, 0, 0, 0.65);
	--mono:          "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--display:       "Space Grotesk", "Inter", sans-serif;
	--body:          "Inter", "Source Sans Pro", Helvetica, sans-serif;
}

html {
	scroll-behavior: smooth;
}

/* ============================================================
	2. Base / typography (dark)
	============================================================ */

body {
	background-color: var(--bg);
	/* Layers (top-most first): blue glow, pink glow, berry glow, then a subtle
	   vertical base that fades cool blue-violet → warm berry so the "black" base
	   is tinted by both brand colors. */
	background-image:
		radial-gradient(950px 560px at 82% -10%, rgba(144, 213, 255, 0.26), transparent 60%),
		radial-gradient(820px 560px at 102% 38%, rgba(236, 72, 153, 0.22), transparent 55%),
		radial-gradient(1100px 780px at -8% 108%, rgba(146, 8, 92, 0.55), transparent 62%),
		linear-gradient(165deg, #201a52 0%, #241442 50%, #331338 100%);
	background-attachment: fixed;
}

body,
input,
select,
textarea {
	color: var(--text);
	font-family: var(--body);
	font-size: 15pt;
	line-height: 1.7em;
}

#main {
	background: transparent;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--text-bold);
	font-family: var(--display);
	font-weight: 600;
	letter-spacing: -0.01em;
}

strong, b {
	color: var(--text-bold);
	font-weight: 600;
}

a {
	color: var(--accent);
	border-bottom-color: var(--accent-line);
}

a:hover {
	color: var(--accent-2) !important;
}

/* Section dividers + rhythm */

#main > section {
	border-top: solid 1px var(--border);
}

#main {
	padding-top: 6em;
}

/* Section headings — accent kicker bar */

#main > section > h2,
#main > section > header.major > h2 {
	position: relative;
	display: inline-block;
	font-size: 1.9em;
	padding-bottom: 0.35em;
	margin-bottom: 1em;
}

#main > section > h2::after,
#main > section > header.major > h2::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 2.4em;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

#main h3 {
	color: var(--text-bold);
}

/* ============================================================
	3. Header / sidebar
	============================================================ */

#header {
	background-color: #160e2e;
	box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
	/* Darkening scrim layered over the photo so text pops. Painted as a
	   background layer (not ::before) so it stays put when the sidebar
	   scrolls its own overflow on shorter screens. Fades violet → berry to
	   match the page base. */
	background-image:
		linear-gradient(180deg, rgba(30, 22, 62, 0.58) 0%, rgba(30, 16, 44, 0.82) 55%, rgba(104, 6, 68, 0.6) 100%),
		url("images/overlay.png"),
		url("../../images/bg.jpg");
	background-position: top left, top left, center center;
	background-repeat: no-repeat, repeat, no-repeat;
	background-size: cover, auto, cover;
	/* Let the sidebar scroll internally if its content is taller than the
	   viewport, so the lower items (nav / social icons) are always reachable. */
	overflow-y: auto;
	overflow-x: hidden;
	padding-top: 4.5em;
	padding-bottom: 3em;
	scrollbar-width: thin;
	scrollbar-color: rgba(144, 213, 255, 0.4) transparent;
}

#header::-webkit-scrollbar {
	width: 8px;
}

#header::-webkit-scrollbar-thumb {
	background: rgba(144, 213, 255, 0.35);
	border-radius: 8px;
}

#header .header-avatar {
	width: 148px;
	height: 148px;
	object-fit: cover;
	border-radius: 50%;
	border: 1px solid var(--border-2);
	padding: 5px;
	background: rgba(255, 255, 255, 0.04);
	box-shadow: 0 0 0 1px rgba(144, 213, 255, 0.35), 0 12px 34px -10px rgba(144, 213, 255, 0.45);
	margin: 0 0 1.25em 0;
}

#header h1 {
	color: var(--text-bold);
	font-size: 1.5em;
	line-height: 1.35em;
}

#header h1 strong {
	color: var(--text-bold);
	font-weight: 700;
}

#header .header-role {
	display: inline-block;
	font-family: var(--display);
	font-size: 0.72em;
	font-weight: 500;
	color: var(--accent);
	margin-top: 0.35em;
}

#header .header-stack {
	display: inline-block;
	font-family: var(--mono);
	font-size: 0.5em;
	line-height: 1.7em;
	letter-spacing: 0.02em;
	color: var(--text-dim);
	margin-top: 0.5em;
}

/* CTA buttons */

#header .header-actions {
	flex-wrap: wrap;
	justify-content: flex-end;
	margin-top: 1.5em;
}

#header .header-actions .button.primary {
	background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
	border: 0;
	color: #12040c !important;
	font-weight: 600;
	box-shadow: 0 8px 24px -8px rgba(236, 72, 153, 0.6);
}

#header .header-actions .button.primary:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

#header .header-actions .button:not(.primary) {
	border: solid 1px var(--border-2);
	color: var(--text-bold) !important;
	box-shadow: none;
}

#header .header-actions .button:not(.primary):hover {
	border-color: var(--accent);
	color: var(--accent) !important;
	transform: translateY(-1px);
}

/* Nav */

#header .header-nav {
	margin-top: 2.25em;
	width: 100%;
}

#header .header-nav ul {
	list-style: none;
	margin: 0;
	padding: 1.4em 0 0 0;
	border-top: solid 1px var(--border);
}

#header .header-nav li {
	display: block;
	margin: 0 0 0.85em 0;
}

#header .header-nav li:last-child {
	margin-bottom: 0;
}

#header .header-nav a {
	position: relative;
	color: var(--text-dim);
	font-family: var(--mono);
	font-size: 0.72em;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	border: 0;
	transition: color 0.2s ease, padding 0.2s ease;
}

#header .header-nav a::before {
	content: '';
	position: absolute;
	right: 100%;
	top: 50%;
	width: 0;
	height: 1px;
	margin-right: 0.6em;
	background: linear-gradient(90deg, transparent, var(--accent));
	transition: width 0.25s ease;
}

#header .header-nav a:hover,
#header .header-nav a.active {
	color: var(--text-bold);
}

#header .header-nav a.active::before,
#header .header-nav a:hover::before {
	width: 1.6em;
}

/* ============================================================
	4. Skills + tag chips
	============================================================ */

.tags {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 1em 0 0 0;
	padding: 0;
}

.tags li {
	display: inline-block;
	font-family: var(--mono);
	font-size: 0.62em;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--accent);
	background-color: var(--accent-soft);
	border: solid 1px var(--accent-line);
	border-radius: 3em;
	padding: 0.55em 1em;
	margin: 0 0.5em 0.55em 0;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.tags li:hover {
	background-color: rgba(144, 213, 255, 0.2);
	transform: translateY(-1px);
}

.skills-tags {
	margin-top: 0.75em;
}

/* ============================================================
	5. Projects — glass cards
	============================================================ */

#two .row {
	margin-left: -1.25em;
}

#two .row > * {
	padding-left: 1.25em;
}

.work-item {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0 0 1.25em 0 !important;
	padding: 0.75em 0.75em 1.5em 0.75em;
	background: var(--surface);
	border: solid 1px var(--border);
	border-radius: 14px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: var(--shadow);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.work-item:hover {
	transform: translateY(-5px);
	border-color: var(--accent-line);
	box-shadow: var(--shadow), 0 0 30px -10px rgba(144, 213, 255, 0.45);
}

.work-item .image {
	margin: 0 0 1.25em 0;
	border-radius: 10px;
	overflow: hidden;
}

.work-item .image img {
	border-radius: 10px;
	transition: transform 0.4s ease;
}

.work-item:hover .image img {
	transform: scale(1.04);
}

.work-item h3 {
	font-size: 1.05em;
	line-height: 1.4;
	padding: 0 0.4em;
	margin: 0 0 0.6em 0;
}

.work-item h3 a {
	color: var(--text-bold);
	border: 0;
}

.work-item h3 a:hover {
	color: var(--accent) !important;
}

.work-item p {
	color: var(--text);
	font-size: 0.8em;
	line-height: 1.65em;
	padding: 0 0.5em;
	margin: 0 0 0.5em 0;
}

.work-item .tags {
	padding: 0 0.5em;
}

.work-item .project-link {
	display: inline-block;
	margin: 0.6em 0.9em 0 0.9em;
	font-family: var(--mono);
	font-size: 0.72em;
	letter-spacing: 0.04em;
	font-weight: 500;
	color: var(--accent);
	border: 0;
}

.work-item .project-link:hover {
	color: var(--accent-2) !important;
	letter-spacing: 0.09em;
}

/* ============================================================
	6. Timeline (experience + education)
	============================================================ */

.timeline {
	margin-top: 1.75em;
}

.timeline-item {
	position: relative;
	padding: 0 0 2.25em 2em;
	border-left: solid 1px var(--border-2);
}

.timeline-item:last-child {
	padding-bottom: 0;
}

.timeline-item::before {
	content: '';
	position: absolute;
	left: -0.5em;
	top: 0.2em;
	width: 0.9em;
	height: 0.9em;
	border-radius: 50%;
	background: var(--bg);
	border: solid 2px var(--accent);
	box-shadow: 0 0 0 4px rgba(144, 213, 255, 0.15), 0 0 14px rgba(144, 213, 255, 0.6);
}

.timeline-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25em 1em;
}

.timeline-head h3 {
	margin: 0;
	font-size: 1.15em;
}

.timeline-date {
	font-family: var(--mono);
	font-size: 0.68em;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	white-space: nowrap;
}

.timeline-company {
	font-size: 0.85em;
	font-weight: 600;
	color: var(--text-dim);
	margin: 0.3em 0 0.85em 0 !important;
}

.timeline-item ul {
	margin: 0;
	list-style: none;
	padding: 0;
}

.timeline-item ul li {
	position: relative;
	color: var(--text);
	font-size: 0.85em;
	line-height: 1.65;
	padding: 0 0 0 1.35em;
	margin: 0 0 0.5em 0;
}

.timeline-item ul li::before {
	content: '▹';
	position: absolute;
	left: 0;
	color: var(--accent);
}

/* ============================================================
	7. Certification cards
	============================================================ */

.cert-grid {
	margin-top: 1.75em;
}

.cert-card {
	display: flex;
	align-items: center;
	gap: 0.9em;
	height: 100%;
	padding: 1.1em 1.25em;
	margin-bottom: 1em;
	background: var(--surface);
	border: solid 1px var(--border);
	border-radius: 12px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	text-decoration: none;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cert-card:hover {
	border-color: var(--accent-line);
	background: var(--surface-2);
	transform: translateY(-3px);
	box-shadow: 0 0 26px -10px rgba(144, 213, 255, 0.5);
}

.cert-card .cert-icon {
	flex-shrink: 0;
	font-size: 1.5em;
	color: var(--accent);
	text-shadow: 0 0 14px rgba(144, 213, 255, 0.5);
}

.cert-card .cert-icon::before {
	margin: 0;
}

.cert-card .cert-text {
	display: flex;
	flex-direction: column;
	line-height: 1.4;
}

.cert-card .cert-text strong {
	color: var(--text-bold);
	font-size: 0.95em;
}

.cert-card .cert-issuer {
	font-family: var(--mono);
	font-size: 0.7em;
	color: var(--text-dim);
	margin-top: 0.35em;
}

/* ============================================================
	8. Footer
	============================================================ */

#footer .icons a {
	color: var(--text-dim);
	transition: color 0.2s ease, transform 0.2s ease;
}

#footer .icons a:hover {
	color: var(--accent) !important;
	transform: translateY(-2px);
}

#footer .footer-copyright {
	font-family: var(--mono);
	font-size: 0.7em;
	color: var(--text-dim);
	margin: 1.25em 0 0 0;
}

/* ============================================================
	8b. Contact section — tiles
	============================================================ */

.contact-grid {
	margin-top: 1.75em;
}

.contact-tile {
	display: flex;
	align-items: center;
	gap: 0.9em;
	height: 100%;
	padding: 1.1em 1.25em;
	margin-bottom: 1em;
	background: var(--surface);
	border: solid 1px var(--border);
	border-radius: 12px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	text-decoration: none;
	border-bottom-style: solid;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

a.contact-tile:hover {
	border-color: var(--accent-line);
	background: var(--surface-2);
	transform: translateY(-3px);
	box-shadow: 0 0 26px -10px rgba(144, 213, 255, 0.5);
}

.contact-tile--static {
	cursor: default;
}

.contact-tile .contact-icon {
	flex-shrink: 0;
	width: 2.4em;
	height: 2.4em;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1em;
	color: var(--accent);
	background: var(--accent-soft);
	border-radius: 10px;
	text-shadow: 0 0 14px rgba(144, 213, 255, 0.4);
}

.contact-tile .contact-icon::before {
	margin: 0;
}

.contact-tile .contact-text {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	min-width: 0;
}

.contact-tile .contact-label {
	font-family: var(--mono);
	font-size: 0.68em;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-bottom: 0.25em;
}

.contact-tile .contact-text strong {
	color: var(--text-bold);
	font-size: 0.9em;
	word-break: break-word;
}

/* ============================================================
	8c. Contact modal
	============================================================ */

.contact-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.5em;
}

.contact-modal.is-open {
	display: flex;
}

.contact-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 5, 9, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.contact-modal.is-open .contact-modal__backdrop {
	opacity: 1;
}

.contact-modal__panel {
	position: relative;
	width: 100%;
	max-width: 26em;
	padding: 2em 1.75em 1.75em 1.75em;
	background: linear-gradient(180deg, #1a0f1d, #100810);
	border: solid 1px var(--border-2);
	border-radius: 16px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 40px -14px rgba(144, 213, 255, 0.5);
	transform: translateY(14px) scale(0.98);
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.contact-modal.is-open .contact-modal__panel {
	transform: none;
	opacity: 1;
}

.contact-modal__panel h3 {
	margin: 0 0 1em 0;
	font-size: 1.3em;
}

.contact-modal__panel .contact-tile:last-child {
	margin-bottom: 0;
}

.contact-modal__close {
	position: absolute;
	top: 0.6em;
	right: 0.75em;
	width: 1.7em;
	height: 1.7em;
	padding: 0;
	line-height: 1;
	font-size: 1.4em;
	color: var(--text-dim);
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}

.contact-modal__close:hover {
	color: var(--text-bold);
	background: var(--surface-2);
}

/* ============================================================
	9. Scroll-reveal (only active once JS adds .reveal-enabled)
	============================================================ */

.reveal-enabled .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-enabled .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ============================================================
	10. Responsive
	============================================================ */

@media screen and (max-width: 980px) {

	/* Sidebar is no longer fixed/overflowing on stacked layouts. */
	#header {
		overflow: visible;
	}

	#header .header-actions {
		justify-content: center;
	}

	#header .header-nav ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5em 1.5em;
	}

	#header .header-nav li {
		margin: 0;
	}

	#header .header-nav a::before {
		display: none;
	}

	#main {
		padding-top: 5em;
	}
}

@media screen and (max-width: 736px) {

	body {
		font-size: 13pt;
	}

	#main > section > h2,
	#main > section > header.major > h2 {
		font-size: 1.6em;
	}
}

@media screen and (max-width: 480px) {

	.cert-grid .col-6 {
		width: 100%;
	}

	.timeline-head {
		gap: 0.15em;
	}
}
