/*MERGED GLOBAL VARIABLES | THEME */
:root {
	/* Global Radius */
	--radius: 1rem;
	--radius-sm: 0.66rem;

	/* LIGHT BLUE MODE*/
	--bg-main: #f8faff;
	--bg-surface: #ffffff;
	--bg-card: #ffffff;
	--text-main: #0f172a;
	--text-muted: #475569;
	--border-color: #e2e8f0;

	/* Accent colors*/
	--accent-blue: #2563eb;
	--accent-light: #60a5fa;
	--accent-dark: #1e40af;

	--nav-bg: #ffffff;
	--footer-bg: #f1f5f9;
}

[data-theme="dark"] {
	--bg-main: #000c26;
	--bg-surface: #001d52;
	--bg-card: #002e7a;

	--text-main: #e6f0ff;
	--text-muted: #7aaaff;
	--border-color: #0047c2;

	--nav-bg: #00143d;
	--footer-bg: #00143d;
	--accent-blue: #3b82f6;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: "Inter", sans-serif;
	background-color: var(--bg-main);
	color: var(--text-main);
	line-height: 1.6;
	transition: background-color 0.3s ease;
	scroll-behavior: smooth;
}

/* LAYOU*/
header {
	background-color: var(--nav-bg);
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.main-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 15px 20px;
}

.navbar {
	border-radius: var(--radius-sm);
}

.nav-logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--text-main);
	font-weight: 800;
	gap: 10px;
}

.logo {
	height: 40px;
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 20px;
}

.nav-links a {
	text-decoration: none;
	color: var(--text-main);
	font-weight: 500;
}

footer {
	background-color: var(--footer-bg);
	padding: 40px 20px;
	border-top: 1px solid var(--border-color);
	margin-top: 60px;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 30px;
	list-style: none;
}

.footer-links a {
	text-decoration: none;
	color: var(--text-muted);
}

/* GLOBAL COMPONENTS & UTILITIES */
h1,
h2,
h3 {
	line-height: 1.2;
	margin-bottom: 15px;
}
p {
	margin-bottom: 15px;
}

/* Hero Gradient */
.hero-gradient {
	background-image: linear-gradient(90deg, #0d6efd, #4ba3ff);
	color: #ffffff;
}

/* Cards*/
.card-base,
.card {
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

/* Inputs */
.input-standard,
.form-control {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	background-color: var(--bg-surface);
	color: var(--text-main);
	font-size: 1rem;
	font-family: inherit;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.input-standard:focus,
.form-control:focus {
	outline: none;
	border-color: var(--accent-light);
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Buttons */
.btn-primary,
.btn {
	display: inline-block;
	text-align: center;
	padding: 14px 28px;
	background-color: var(--accent-blue);
	color: #ffffff;
	border: none;
	border-radius: var(--radius-sm);
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.btn-primary:hover,
.btn:hover {
	background-color: var(--accent-dark);
	transform: translateY(-2px);
}

.w-100 {
	width: 100%;
}

::-webkit-scrollbar {
	width: 14px;
}

::-webkit-scrollbar-track {
	background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
	background-color: var(--bg-surface);
	border-radius: 10px;
	border: 4px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
	background-color: var(--accent-blue);
}

/* Animated Underline for Navigation Links */
.nav-links a {
	position: relative;
}

.nav-links a::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -4px;
	left: 0;
	background-color: var(--accent-blue);
	transition: width 0.3s ease-in-out;
	border-radius: 2px;
}

.nav-links a:hover::after {
	width: 100%;
}

/* "Lift and Glow" for all Cards */
.card-base,
.card {
	overflow: hidden; /* Keeps zooming images contained */
}

.card-base:hover,
.card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
	border-color: var(--accent-blue);
}

/* "Subtle Zoom" for Images inside Cards */
.card-image,
.avatar-img,
.detailed-img,
.image-box img {
	transition: transform 0.5s ease;
}

.card-base:hover .card-image,
.card-base:hover .avatar-img,
.card:hover .card-image,
.card:hover .avatar-img,
.image-box:hover img {
	transform: scale(1.05);
}

/* Footer Link Glow */
.footer-links a {
	transition:
		color 0.2s ease,
		text-shadow 0.2s ease;
}

.footer-links a:hover {
	color: var(--text-main);
	text-shadow: 0 0 8px rgba(122, 170, 255, 0.4);
}

/* mobile nav Burger Icon*/
.burger-menu {
	display: none;
	flex-direction: column;
	gap: 6px;
	cursor: pointer;
	z-index: 1001;
}

.burger-menu .bar {
	width: 28px;
	height: 3px;
	background-color: var(--text-main);
	border-radius: 3px;
	transition: all 0.3s ease;
}

/* Breakpoint Tablet / phone */
@media (max-width: 768px) {
	.burger-menu {
		display: flex;
	}

	.nav-links {
		position: absolute;
		top: 70px; /* under header */
		right: -100%; /* is invis at first*/
		flex-direction: column;
		background-color: var(--nav-bg);
		width: 250px;
		padding: 30px 20px;
		border-radius: 0 0 0 var(--radius);
		border: 1px solid var(--border-color);
		border-right: none;
		box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.3);
		transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
		gap: 25px;
	}

	/* Javascript*/
	.nav-links.active {
		right: 0; /* slide in */
	}

	/* Animation Burger-Icon to 'X' */
	.burger-menu.active .bar:nth-child(1) {
		transform: translateY(9px) rotate(45deg);
	}
	.burger-menu.active .bar:nth-child(2) {
		opacity: 0;
	}
	.burger-menu.active .bar:nth-child(3) {
		transform: translateY(-9px) rotate(-45deg);
	}
}
