@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;500;600;700&display=swap');

:root {
	--bg: #0f1724;
	--card: #0b1220;
	--muted: #9aa4b2;
	--accent: #4f46e5;
	--glass: rgba(255, 255, 255, 0.03);
	--radius: 14px;
	--maxw: 1100px;
}

* {
	box-sizing: border-box
}

html,
body {
	margin: 0;
	font-family: "Albert Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(45deg, var(--bg), #071028 120%);
	color: #e6eef6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.45;
	padding: 40px 5px;
	display: flex;
	justify-content: center;
	overflow-x: hidden;
}

.container {
	width: 100%;
	max-width: var(--maxw);
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit
}

.logo {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--accent), #06b6d4);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #041523;
	box-shadow: 0 6px 18px rgba(79, 70, 229, 0.12);
}

nav a {
	color: var(--muted);
	text-decoration: none;
	margin-left: 16px
}

nav a:hover {
	color: var(--accent)
}

.hero {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 28px;
	align-items: center;
	margin-bottom: 28px;
}

.card {
	background: linear-gradient(180deg, var(--card), rgba(12, 20, 34, 0.6));
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: 0 6px 24px rgba(2, 6, 23, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.03);
}

.intro h1 {
	margin: 0 0 6px 0;
	font-size: 28px
}

.intro p {
	margin: 0;
	color: var(--muted)
}

.photo {
	width: 100%;
	height: 100%;
	min-height: 220px;
	border-radius: 12px;
	background: linear-gradient(135deg, #0b1220, #092035);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-size: 14px;
	border: 1px dashed rgba(255, 255, 255, 0.03)
}

section {
	margin-bottom: 20px
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px
}
.section-header > h2, .tech-legend {
	margin-left: 13px;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px
}

.project {
	padding: 14px;
	border-radius: 12px;
	background: var(--glass);
	border: 1px solid rgba(255, 255, 255, 0.03)
}

.project h3 {
	margin: 0 0 6px 0;
	font-size: 16px
}

.project p {
	margin: 0;
	color: var(--muted);
	font-size: 13px
}

.tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px
}

.tag {
	font-size: 12px;
	padding: 6px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--muted);
}

.tech-list {
	display: flex;
	gap: 10px;
	flex-wrap: wrap
}

.tech {
	background: rgba(255, 255, 255, 0.02);
	padding: 8px 10px;
	border-radius: 10px;
	font-size: 13px;
	color: var(--muted)
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px
}

.contact-card {
	display: flex;
	flex-direction: column;
	gap: 10px
}

.btn {
	display: inline-block;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	font-weight: 600
}

footer {
	margin-top: 22px;
	color: var(--muted);
	font-size: 13px;
	text-align: center
}

@media (max-width:900px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.grid-3 {
		grid-template-columns: repeat(2, 1fr)
	}

	.contact-grid {
		grid-template-columns: 1fr
	}
}

@media (max-width:520px) {
	.grid-3 {
		grid-template-columns: 1fr
	}

	nav a {
		margin-left: 10px;
		font-size: 14px
	}
}

.tech-section {
	display: grid;
	gap: 20px;
}

.tech-category {
	background: var(--glass);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: var(--radius);
	padding: 18px 20px;
	transition: background 0.2s ease;
}

.tech-category:hover {
	background: rgba(255, 255, 255, 0.05);
}

.tech-category h3 {
	margin: 0 0 12px 0;
	font-size: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tech-category h3::before {
	content: "";
	font-size: 16px;
	opacity: 0.7;
}

.tech-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tech,
.tag {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.05);
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 13px;
	color: var(--muted);
	transition: all 0.15s ease;
	cursor : pointer
}

.tech:hover,
.tag:hover {
	background: var(--accent);
	color: #fff;
	transform: translateY(-1px);
}

@media (min-width: 900px) {
	.tech-section {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
}

.tech.junior,
.tech.inter,
.tech.expert {
	position: relative;
	padding-left: 22px;
	cursor: help;
}

.tech.junior::before,
.tech.inter::before,
.tech.expert::before {
	content: '';
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 2px dotted var(--muted);
}

.tech.junior::before {
	border-color: #f59e0b;
}

.tech.inter::before {
	border-color: #3b82f6;
}

.tech.expert::before {
	border: none;
	background-color: #10b981;
}

.tech.junior:hover::after,
.tech.inter:hover::after,
.tech.expert:hover::after {
	content: attr(data-level);
	position: absolute;
	left: 50%;
	bottom: 120%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 11px;
	padding: 4px 8px;
	border-radius: 6px;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s;
}

.tech.junior:hover::after,
.tech.inter:hover::after,
.tech.expert:hover::after {
	opacity: 1;
}

.card.intro {
	position: relative;
}

.update-date {
	margin-top: 10px;
	margin-left: auto;
	font-size: 12px;
	color: var(--muted);
	opacity: 0.7;
}

a {
	color: var(--accent);
	font-weight: bold;
	font-size: 1.2em;
	text-decoration: none;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#perspectivesCard {
    display: block !important; 
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 18px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

#perspectivesCard.open {
    max-height: 2500px;
    opacity: 1;
    padding: 22px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: linear-gradient(180deg, var(--card), rgba(12, 20, 34, 0.6));
}

#perspectivesTitle {
    transition: color 0.3s ease;
}

#perspectivesTitle:hover {
    color: var(--accent);
}