/* =========================
   GLOBAL
========================= */

body {
	margin: 0;
	font-family: "JetBrains Mono", monospace;
	background-color: #1e1e2e;
	color: #cdd6f4;
}

.bg {
	background-image:
		linear-gradient(rgba(30,30,46,0.92), rgba(30,30,46,0.92)),
		url('bg-circuit-large.jpg');
	background-size: cover;
	background-attachment: fixed;
	min-height: 100vh;
}

/* =========================
   NAVBAR
========================= */

.navbar {
	display: flex;
	gap: 10px;
	padding: 15px 25px;
	background-color: #181825;
	border-bottom: 1px solid #313244;
}

.header-container {
    display: flex;                /* Enables Flexbox layout */
    justify-content: space-between; /* Forces space between the extremes */
    width: 100%;                  /* Spans the full width of the window/parent */
    padding: 20px;                /* Optional: Adds a bit of breathing room */
    box-sizing: border-box;       /* Ensures padding doesn't cause overflow */
}

/* =========================
   NAV BUTTONS
========================= */

.line-button {
	position: relative;
	padding: 10px 20px;
	background: transparent;
	color: #cdd6f4;
	border: none;
	font-size: 1rem;
	cursor: pointer;
	transition: color 0.3s ease;
}

.line-button:hover {
	color: #cba6f7;
}

.line-button::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background-color: #cba6f7;
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.line-button:hover::before {
	width: 100%;
}

/* =========================
   SOCIAL BUTTONS
========================= */

.more-button {
	padding: 10px 16px;
	background: #313244;
	color: #cdd6f4;
	border: 1px solid #45475a;
	border-radius: 12px;
	cursor: pointer;
	margin: 10px 10px 0 0;
	transition: all 0.25s ease;
	font-weight: bold;
}

.more-button:hover {
	background: #45475a;
	border-color: #cba6f7;
	transform: translateY(-2px);
	color: #cba6f7;
}

/* =========================
   PROFILE
========================= */

.hero {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	padding: 40px;
	max-width: 1200px;
	margin: auto;
}

.mefoto {
	border-radius: 24px;
	width: 480px;
	border: 3px solid #cba6f7;
	box-shadow: 0 0 25px rgba(203,166,247,0.25);
}

/* =========================
   CARDS / PANELS
========================= */

.aboutme {
	background-color: rgba(49, 50, 68, 0.88);
	border: 1px solid #45475a;
	border-radius: 18px;
	padding: 25px;
	margin: 25px;
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.aboutme h1,
.aboutme h2 {
	color: #cba6f7;
}

.aboutme p,
.aboutme li {
	color: #bac2de;
	line-height: 1.6;
}

/* =========================
   LINKS
========================= */

a {
	color: #89b4fa;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: #f5c2e7;
}

/* =========================
   PROJECTS
========================= */

.project-showcase {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 30px;
	padding: 40px;
}

.project-card {
	background-color: rgba(49, 50, 68, 0.92);
	border: 1px solid #45475a;
	border-radius: 20px;
	padding: 20px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.project-card:hover {
	transform: translateY(-6px);
	border-color: #cba6f7;
	box-shadow: 0 8px 30px rgba(203,166,247,0.2);
}

.project-card h3 {
	color: #cba6f7;
}

.project-card p {
	color: #bac2de;
}

.thumbnail {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 16px;
	margin-bottom: 15px;
	border: 2px solid #45475a;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

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

	.mefoto {
		width: 180px;
	}
}

/* =========================
   THOUGHTS
========================= */

.thoughts-container {
	max-width: 1000px;
	margin: auto;
	padding: 30px;
}

.thought-entry {
	background-color: rgba(49, 50, 68, 0.92);
	border: 1px solid #45475a;
	border-radius: 20px;
	margin-bottom: 25px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0,0,0,0.25);
	transition: all 0.3s ease;
}

.thought-entry:hover {
	border-color: #cba6f7;
	box-shadow: 0 8px 30px rgba(203,166,247,0.15);
}

.thought-entry summary {
	list-style: none;
	cursor: pointer;
	padding: 22px 28px;
	font-size: 1.2rem;
	font-weight: bold;
	color: #cba6f7;
	background-color: rgba(24,24,37,0.7);
	transition: all 0.25s ease;
}

.thought-entry summary:hover {
	background-color: rgba(49,50,68,0.9);
}

.thought-entry summary::-webkit-details-marker {
	display: none;
}

.thought-entry summary::after {
	content: "+";
	float: right;
	color: #f5c2e7;
	font-size: 1.4rem;
	transition: transform 0.3s ease;
}

.thought-entry[open] summary::after {
	content: "−";
}

.responsive-img {
  width: 95%; /* Adjust this percentage to control how much of the div the image takes */
  height: auto;
  display: block; /* Removes unwanted spacing below the image */
  max-width: 100%; /* Ensures the image never overflows its parent */
}

/* =========================
   ARTICLES
========================= */

.thought-article {
	max-width: 900px;
	margin: 40px auto;
	padding: 40px;

	background-color: rgba(49, 50, 68, 0.92);
	border: 1px solid #45475a;
	border-radius: 24px;

	backdrop-filter: blur(10px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.thought-article h1 {
	color: #fab387;
	font-size: 2.4rem;
	margin-bottom: 0.5rem;
}

.thought-article h2 {
	color: #89b4fa;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	padding-bottom: 0.4rem;

	border-bottom: 1px solid #45475a;
}

.thought-article h3 {
	color: #cba6f7;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.thought-article p {
	color: #bac2de;
	line-height: 1.9;
	text-align: justify;
	margin-bottom: 1.2rem;
}

.thought-article ul,
.thought-article ol {
	color: #bac2de;
	line-height: 1.8;
	padding-left: 2rem;
}

.thought-article li {
	margin-bottom: 0.5rem;
}

.thought-article strong {
	color: #f9e2af;
}

.thought-article code {
	background-color: #181825;
	color: #f5c2e7;

	padding: 2px 6px;
	border-radius: 6px;
	font-size: 0.95rem;
}

.thought-article pre {
	background-color: #181825;

	padding: 18px;
	border-radius: 14px;

	overflow-x: auto;

	border: 1px solid #313244;
}

.thought-article blockquote {
	border-left: 4px solid #cba6f7;

	padding-left: 18px;
	margin: 1.5rem 0;

	color: #a6adc8;
	font-style: italic;
}

.thought-article img {
	width: 95%;
	max-width: 100%;

	display: block;
	margin: 25px auto;

	border-radius: 16px;
	border: 2px solid #45475a;

	box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.article-meta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;

	margin-bottom: 2rem;
}

.article-date,
.article-category {
	background-color: #313244;

	color: #cdd6f4;

	padding: 5px 12px;

	border-radius: 999px;

	font-size: 0.85rem;
}

/* tag as bubbles */

.tag-container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px; /* Space between bubbles */
	align-items: center;
}

.tag-bubble {
	background: #313244;
	color: #cdd6f4;
	padding: 6px 14px;
	border: 1px solid #45475a;
	border-radius: 50px; /* Fully rounded edges */
	font-size: 0.85rem;
	font-weight: 500;
	display: inline-block;
	text-decoration: none;
	transition: all 0.2s ease;
}

.tag-bubble:hover {
	background: #45475a;
	border-color: #cba6f7;
	transform: translateY(-2px);
	color: #cba6f7;
}
