/******************************* GOOGLE FONTS *******************************/
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

/******************************* CSS VARIABLES *******************************/
:root {
	/******************************* COLORS *******************************/
	--first-hue: 122; /* Green hue */
	--second-hue: 216;

	--first-color: hsl(var(--first-hue), 50%, 43%);
	--first-color-dark: hsl(var(--first-hue), 45%, 22%);
	--title-color: hsl(var(--second-hue), 8%, 85%);
	--text-color: hsl(var(--second-hue), 8%, 75%);
	--body-color: hsl(var(--second-hue), 28%, 12%);
	--container-color: hsl(var(--second-hue), 28%, 15%);
	--bnw-color: hsl(var(--second-hue), 8%, 100%); /* White shade */
	--white-color: hsl(var(--second-hue), 8%, 100%);
	--error-color: #E57373;
	--warning-color: #FFB84D;
	--light-green-color: #33FF33;

	--first-gradient: linear-gradient(
		150deg,
		var(--first-color) 0%,
		var(--bnw-color) 100%
	);
	--second-gradient: linear-gradient(
		260deg,
		var(--first-color-dark) 0%,
		var(--first-color) 100%
	);

	/******************************* FONT FAMILY *******************************/
	--body-font: "Space Grotesk", sans-serif;

	/******************************* FONT SIZES *******************************/
	--big-font-size: 5.6rem;
	--h1-font-size: 2.9rem;
	--h2-font-size: 2.48rem;
	--h3-font-size: 1.32rem;
	--larger-font-size: 1.17rem;
	--large-font-size: 1.08rem;
	--normal-font-size: 0.91rem;
	--small-font-size: 0.81rem;

	/******************************* FONT WEIGHT *******************************/
	--font-medium: 500;
	--font-semi-bold: 600;
	--font-bold: 700;
}

/****** RESPONSIVE TYPOGRAPHY ******/
@media screen and (max-width: 1208px) {
	:root {
		/******************************* FONT SIZES *******************************/
		--big-font-size: 4.9rem;
		--h1-font-size: 2.68rem;
		--h2-font-size: 2.1rem;
		--h3-font-size: 1.25rem;
		--larger-font-size: 1.11rem;
		--large-font-size: 1.06rem;
		--normal-font-size: 0.88rem;
		--small-font-size: 0.79rem;
	}
}

/******************************* BASE *******************************/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

*::selection {
    background-color: var(--first-color) !important;
    color: var(--bnw-color) !important;
    -webkit-text-fill-color: var(--bnw-color) !important; /* Forces icons/gradients to white */
}

/* Firefox support */
*::-moz-selection {
    background-color: var(--first-color) !important;
    color: var(--bnw-color) !important;
    -webkit-text-fill-color: var(--bnw-color) !important;
}

html {
	scroll-behavior: smooth;
}

body,
button,
input,
textarea {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
}

body {
	background-color: var(--body-color);
	color: var(--text-color);
}

h1,
h2,
h3 {
	color: var(--title-color);
	font-weight: var(--font-bold);
	line-height: 1.22;
}

p {
	line-height: 1.58;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

button,
input,
textarea {
	border: none;
	outline: none;
	background-color: transparent;
}

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

/******************************* VARIABLES LIGHT THEME *******************************/
.light-theme {
	--title-color: hsl(var(--second-hue), 15%, 18%);
	--text-color: hsl(var(--second-hue), 12%, 30%);
	--body-color: hsl(var(--second-hue), 20%, 97%);
	--container-color: hsl(var(--second-hue), 18%, 88%);
	--bnw-color: hsl(var(--second-hue), 8%, 0%); /* Black shade */
	
	--first-gradient: linear-gradient(
		150deg,
		var(--first-color) 0%,
		var(--light-green-color) 100%
	);
}

/* During light theme, we need to change styles of some sections */
.light-theme .text-gradient {
	-webkit-text-fill-color: hsla(var(--second-hue), 92%, 15%, 0.2);
}

.light-theme .fancy-text-gradient {
	-webkit-text-fill-color: hsla(var(--second-hue), 92%, 25%, 0.2);
}

.light-theme .services-card:hover :is(.services-no, .services-title, .services-description) {
	color: var(--white-color);
}

/******************************* REUSABLE CSS CLASSES *******************************/
.section {
	padding-block: 6rem 5rem;
}

.button {
	position: relative;
	display: inline-flex;
	align-items: center;
	background: var(--second-gradient);
	color: var(--white-color);
	padding: 1.25rem 2rem;
	border-radius: 0.4rem;
	font-weight: var(--font-semi-bold);
	overflow: hidden;
	z-index: 1;
}

.button:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		260deg,
		var(--first-color) 0%,
		var(--first-color-dark) 100%
	);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: -1;
}

.button:hover::before {
	opacity: 1;
}

.fancy-text-gradient {
	-webkit-text-fill-color: hsla(var(--second-hue), 8%, 95%, 0.2);
	background: var(--first-gradient);
	background-clip: text;
}

.text-gradient {
	-webkit-text-fill-color: hsla(var(--second-hue), 8%, 85%, 0.5);
	background: var(--first-gradient);
	background-clip: text;
	background-size: 0% 100%;
	background-repeat: no-repeat;
}

.section-title {
	text-align: center;
	font-size: var(--h1-font-size);
	margin-bottom: 4.25rem;
}

.right-arrow,
.down-arrow {
	font-size: 1.15rem;
	transition: transform 0.4s ease;
}

.button:hover .right-arrow {
	transform: translateX(0.25rem);
}

.button:hover .down-arrow {
	transform: translateY(0.25rem);
}

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

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

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

/******************************* LAYOUT *******************************/
.container {
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.grid {
	display: grid;
}

/******************************* HEADER & NAV *******************************/
.header {
	background-color: var(--body-color);
	position: fixed !important;
	inset: 0 0 auto;
	z-index: 1000;
}

.nav,
.nav-list,
.nav-btns {
	display: flex;
}

.nav {
	align-items: center;
	justify-content: space-between;
	column-gap: 3rem;
	height: 4.5rem;
}

.nav-logo,
.nav-link,
.change-theme {
	color: var(--title-color);
}

.nav-logo {
	font-size: var(--h3-font-size);
	font-weight: var(--font-bold);
}

.nav-logo-first-letter {
	color: var(--first-color);
}

.nav-menu {
	margin-left: auto;
}

.nav-list {
	column-gap: 2.75rem;
}

.nav-link {
	font-weight: var(--font-medium);
	transition: color 0.4s ease;
}

.change-theme {
	font-size: 1.25rem;
	cursor: pointer;
	transition: color 0.4s ease;
}

.nav-link:hover,
.change-theme:hover {
	color: var(--first-color);
}

.nav-btns {
	align-items: center;
	column-gap: 1rem;
}

.nav-toggle,
.nav-close {
	display: none;
}

/* Active link */
.active-link {
	color: var(--first-color);
}

/******************************* HOME *******************************/
.home-container {
	grid-template-columns: 1fr repeat(2, max-content);
	align-items: center;
	column-gap: 3rem;
	padding-top: 6rem;
}

.home-title {
	font-size: var(--big-font-size);
	line-height: 1;
	margin-bottom: 2rem;
}

.home-job {
	font-size: var(--h2-font-size);
	font-weight: var(--font-semi-bold);
}

.home-description {
	font-size: var(--larger-font-size);
	margin-block: 1.5rem 2rem;
}

.home-img-wrapper {
	/*width: clamp(14rem, 5.3402rem + 39.5876vw, 38rem);*/
	width: 38rem;
	background: var(--second-gradient);
	border-radius: 50% 50% 50% 50% / 75% 25% 75% 25%;
	overflow: hidden;
}

.home-social {
	row-gap: 1rem;
}

.home-social-link {
	color: var(--title-color);
	font-size: var(--larger-font-size);
	transition: color 0.4s ease;
}

.home-social-link:hover {
	color: var(--first-color);
}

/******************************* ABOUT *******************************/
.about-container {
    display: grid;
    grid-template-columns: 4fr 6fr;
    column-gap: 4rem; 
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: 0.74rem 0.74rem 0rem var(--first-color);
}

.about-description {
	font-size: 0.98rem;
    margin-bottom: 2rem;
}

.about-data {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Shows data in 2 columns */
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.data-item {
    list-style: none;
}

.data-title {
    font-size: 1rem;
    color: var(--bnw-color);
    margin-bottom: 0.25rem;
}

.data-description {
    font-size: 0.98rem;
    color: var(--text-color);
}

/******************************* SERVICES/SPECIALIZATION *******************************/
.services-container {
	grid-template-columns: repeat(2, 1fr);
	gap: 1.75rem;
}

.services-card {
    background: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    transition: background 0.4s ease, transform 0.4s ease;
}

.services-card:hover {
    background: var(--second-gradient);
    transform: scale(1.03); 
}

.services-no {
	color: var(--title-color);
	font-size: var(--h2-font-size);
	font-weight: var(--font-bold);
}

.services-title {
	font-size: var(--h3-font-size);
	margin-block: 1.25rem 0.75rem;
}

.services-description {
	font-size: var(--larger-font-size);
}

.services-card:hover :is(.services-no, .services-title, .services-description) {
	color: var(--bnw-color);
}

/******************************* SKILLS *******************************/
.skills-container {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    justify-content: center;
    gap: 5rem; 
    max-width: 1120px;
    margin-inline: auto;
}

.skills-group {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
}

.skills-title {
    text-align: center;
    font-size: var(--h3-font-size);
    margin-bottom: 2rem;
}

.skill-items {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 2rem 1rem;
    justify-items: center;
}

.skill-data {
    text-align: center;
    width: 100%;
}

.skill-icon {
    width: 72px;
    height: 72px;
    background-color: var(--body-color);
    border-radius: 1.25rem;
    display: grid;
    place-items: center;
    margin-inline: auto;
    transition: background 0.4s ease, transform 0.4s ease;
}

.skill-icon:hover {
    background: var(--second-gradient);
    transform: translateY(-5px);
}

.skill-img {
    width: 32px;
}

.skill-name {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    margin-block: 0.75rem 0.25rem;
}

/******************************* CAREER *******************************/
.career-container {
	grid-template-columns: 0.7fr;
	justify-content: center;
	row-gap: 3rem;
}

.career-item {
	grid-template-columns: repeat(2, 1fr);
	column-gap: 4rem;
}

.career-right {
	order: 2;
}

.career-left {
	text-align: right;
}

.career-icon {
	color: var(--title-color);
	font-size: 2.625rem;
}

.career-title {
	color: var(--bnw-color);
	font-size: var(--larger-font-size);
	margin-block: 0.75rem;
}

.career-duration {
	font-size: var(--small-font-size);
}

.career-container,
.career-item {
	position: relative;
}

.career-container::after,
.career-item::after {
	content: "";
	position: absolute;
	top: 0.75rem;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--title-color);
}

.career-container::after {
	width: 2px;
	height: 97%;
}

.career-item::after {
	width: 16px;
	height: 4px;
}

.career-description {
    max-width: 420px;
    margin-left: auto; /* keeps left column aligned */
    line-height: 1.58;
    font-size: var(--small-font-size);
    color: var(--text-color);
    opacity: 0.95;
}

/******************************* PORTFOLIO *******************************/
.work-list {
	display: flex;
	justify-content: center;
	column-gap: 2.5rem;
	margin-bottom: 3.5rem;
}

.work-item {
	color: var(--title-color);
	font-size: 1.08rem;
	font-weight: var(--font-semi-bold);
	cursor: pointer;
	position: relative;
	padding-bottom: 0.62rem;
	transition: color 0.4s ease;
}

.work-item:hover,
.active-work {
	color: var(--first-color);
}

.work-item::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--first-color);
	transition: width 0.4s ease;
}

.active-work::before {
	width: 100%;
}

.work-container { 
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));*/
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 2rem;
}

.work-card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.work-img {
	height: 240px;
	width: 100%;
	object-fit: cover;
	border-radius: inherit;
	margin-bottom: 1.5rem;
}

.work-category {
	color: var(--first-color);
	font-size: var(--small-font-size);
	font-weight: var(--font-medium);
}

.work-title {
	font-size: var(--h3-font-size);
	margin-block: 0.75rem 1.5rem;
	min-height: 2.7rem;
}

.work-description {
	margin-bottom: 1.5rem;
    min-height: 100px;
    flex-grow: 1;
}

.work-stack {
    display: flex;
    align-items: center;
    column-gap: 0.75rem;
    margin-bottom: 1.75rem;
    margin-top: auto;
}

.work-stack img {
    width: var(--h3-font-size);
    height: var(--h3-font-size);
    transition: transform 0.4s ease;
    opacity: 0.87;
}

.work-stack img:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.work-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.work-link {
	display: inline-flex;
	align-items: center;
	column-gap: 0.75rem;
	color: var(--title-color);
	font-weight: var(--font-semi-bold);
}

.work-link-icon {
	color: var(--first-color);
	font-size: 1.25rem;
	transition: transform 0.4s ease;
}

.work-link:hover .work-link-icon {
	transform: translateX(0.25rem);
}

.repo-link {
    font-size: 1.4rem;
    transition: transform 0.4s ease;
}

.repo-link:hover {
	transform: scale(1.11);
}

/******************************* CONTACT *******************************/
.contact {
	padding-bottom: 8rem;
}

.contact-container {
	grid-template-columns: 5.5fr 6.5fr;
	column-gap: 3.5rem;
}

.contact-headings {
	margin-bottom: 4.2rem;
}

.contact-section-title {
	text-align: left;
	margin-bottom: 1.5rem;
}

.contact-section-about {
	text-align: left;
	font-size: var(--large-font-size);
	font-weight: var(--font-medium);
	opacity: 0.9;
}

.contact-data {
	row-gap: 2rem;
}

.contact-item {
	display: grid;
	grid-template-columns: max-content 1fr;
	align-items: center;
	column-gap: 1.5rem;
}

.contact-icon {
	width: 45px;
	aspect-ratio: 1/1;
	background: var(--second-gradient);
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: var(--white-color);
	font-size: 1.52rem;
}

.contact-title {
	font-size: var(--larger-font-size);
	margin-bottom: 0.25rem;
}

.contact-description a {
	text-decoration: none;
	color: var(--text-color);
}

.contact-social {
    margin-top: 4.8rem;
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

.contact-social-title {
    font-size: var(--normal-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
    margin-bottom: 0.6rem;
}

.contact-social-links {
    display: flex;
    column-gap: 1.25rem;
}

.contact-social-link {
    width: 45px;
    height: 45px;
    background-color: var(--container-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: var(--title-color);
    transition: all 0.4s ease;
}

.contact-social-link:hover {
    background-color: var(--first-color);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(var(--first-color), 0.3);
}

.contact-form {
	row-gap: 3rem;
	margin-top: 1rem;
	position: relative;
}

.contact-input {
    color: var(--title-color);
    border-bottom: 3px solid var(--text-color); 
    padding-inline: 0.25rem;
    height: 50px;
    background: transparent;
    transition: border-color 0.4s, background-color 0.4s;
}

.contact-input:focus {
    outline: none;
    border-bottom: 3px solid var(--first-color);
}

.contact-input-div {
    position: relative;
    display: grid;
    row-gap: 0.1rem;
    margin-bottom: 0.7rem;
}

.contact-label {
	font-size: var(--large-font-size);
	font-weight: var(--font-semi-bold);
    transition: color 0.3s, transform 0.3s;
}

.contact-input-div:focus-within .contact-label {
    color: var(--first-color);
    transform: translateY(-2.5px);
}

.contact-msg-area {
	resize: none;
	height: 190px;
	margin-top: 1rem;
}

.contact-button {
	justify-self: start;
	margin-top: 0.3rem;
}

.contact-message {
	position: absolute;
	bottom: 5.5rem;
	left: 0;
	font-size: var(--small-font-size);
	font-weight: var(--font-medium);
}

/* HTML: <span class="loader"></span> */
.loader {
    width: 1.15rem;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2.8px solid;
    border-color: var(--white-color) #0000;
    animation: l1 1s infinite;
}

@keyframes l1 {
    to {
        transform: rotate(1.5turn);
    }
}

/******************************* FOOTER *******************************/
.footer {
	background-color: var(--container-color);
	padding-block: 1.91rem;
}

.footer-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.footer-copyright {
	font-weight: var(--font-semi-bold);
}

.footer-copyright span {
	cursor: pointer;
	color: var(--first-color);
	transition: color 0.4s ease;
}

.footer-copyright span:hover {
	color: var(--light-green-color);
}

/******************************* RESPONSIVE BREAKPOINTS *******************************/
/* ============================================
   CRITICAL: Prevent Menu Scroll & AOS Issues
   ============================================ */

/* Stop body scroll when mobile menu is open */
body.menu-open {
	overflow: hidden !important;
	position: fixed !important;
	width: 100% !important;
	height: 100vh !important;
}

/* Prevent AOS from hiding nav buttons */
@media screen and (max-width: 992px) {
	.nav-btns,
	.nav-toggle,
	.change-theme {
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
	}
}

/* ============================================
   BREAKPOINT: Large Desktops (< 1200px)
   ============================================ */
@media screen and (max-width: 1200px) {
	.container {
		max-width: 960px;
	}

	.home-container {
		column-gap: 2rem;
	}

	.skills-container {
		grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
		gap: 3.5rem;
	}

	.work-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ============================================
   BREAKPOINT: Tablets (< 992px)
   ============================================ */
@media screen and (max-width: 992px) {
	.container {
		max-width: 720px;
	}

	.section {
		padding-block: 4.5rem 3.5rem;
	}

	.section-title {
		margin-bottom: 3rem;
	}

	/* ===== NAVIGATION ===== */
	.nav {
		height: 4rem;
	}

	/* Show hamburger menu and theme toggle */
	.nav-btns {
		display: flex !important;
		align-items: center !important;
		column-gap: 1rem !important;
	}

	.nav-toggle {
		display: block !important;
		font-size: 1.5rem;
		cursor: pointer;
		color: var(--title-color);
		transition: color 0.3s ease;
	}

	.nav-toggle:hover {
		color: var(--first-color);
	}

	.change-theme {
		display: block !important;
		font-size: 1.25rem;
		cursor: pointer;
		transition: color 0.4s ease;
	}

	/* Mobile menu with glassmorphism blur */
	.nav-menu {
		position: fixed;
		top: 0;
		right: -100%;
		width: 75%;
		height: 100vh;
		background: rgba(31, 37, 51, 0.95);
		backdrop-filter: blur(32px);
		-webkit-backdrop-filter: blur(32px);
		padding: 5rem 2rem 2rem;
		box-shadow: -4px 0 32px rgba(0, 0, 0, 0.5);
		border-left: 1px solid rgba(255, 255, 255, 0.1);
		overflow-y: auto;
		transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 1001;
	}

	/* Light theme menu */
	.light-theme .nav-menu {
		background: rgba(240, 242, 245, 0.95);
		backdrop-filter: blur(32px);
		-webkit-backdrop-filter: blur(32px);
		border-left: 1px solid rgba(0, 0, 0, 0.1);
		box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
	}

	.nav-menu.show-menu {
		right: 0;
	}

	/* Vertical menu layout */
	.nav-list {
		flex-direction: column;
		row-gap: 2.5rem;
	}

	.nav-link {
		font-size: var(--h3-font-size);
		font-weight: var(--font-semi-bold);
	}

	/* Close button */
	.nav-close {
		display: block;
		position: absolute;
		top: 1.5rem;
		right: 1.5rem;
		font-size: 1.8rem;
		cursor: pointer;
		color: var(--title-color);
		transition: color 0.3s ease, transform 0.3s ease;
	}

	.nav-close:hover {
		color: var(--first-color);
		transform: rotate(90deg);
	}

	/* ===== HOME SECTION ===== */
	.home-container {
		grid-template-columns: 1fr;
		row-gap: 2.5rem;
		padding-top: 4rem;
	}

	.home-data {
		text-align: center;
		order: 2;
	}

	.home-img-wrapper {
		order: 1;
		justify-self: center;
		width: clamp(16rem, 50vw, 24rem);
	}

	.home-description {
		margin-block: 1rem 1.5rem;
	}

	/* Force horizontal social icons */
	.home-social {
		order: 3;
		display: flex !important;
		flex-direction: row !important;
		justify-content: center !important;
		align-items: center !important;
		column-gap: 1.5rem !important;
		row-gap: 0 !important;
	}

	/* ===== ABOUT SECTION ===== */
	.about-container {
		grid-template-columns: 1fr;
		row-gap: 3rem;
	}

	.about-img-wrapper {
		max-width: 400px;
		margin: 0 auto;
	}

	.about-description {
		font-size: 0.95rem;
	}

	.about-data {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}

	/* ===== SERVICES ===== */
	.services-container {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	/* ===== SKILLS ===== */
	.skills-container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.skill-items {
		grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
		gap: 1.5rem 0.75rem;
	}

	/* ===== CAREER (Increased gap for mobile) ===== */
	.career-container {
		grid-template-columns: 1fr;
		row-gap: 3.5rem;
	}

	.career-item {
		grid-template-columns: 1fr;
		row-gap: 1.08rem;
	}

	.career-left,
	.career-right {
		text-align: left;
	}

	.career-description {
		margin-left: 0;
		max-width: 100%;
	}

	/* Hide timeline on mobile */
	.career-container::after,
	.career-item::after {
		display: none;
	}

	/* ===== PORTFOLIO ===== */
	.work-list {
		column-gap: 1.5rem;
		margin-bottom: 2.5rem;
	}

	.work-container {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	/* ===== CONTACT ===== */
	.contact {
		padding-bottom: 6rem;
	}

	.contact-container {
		grid-template-columns: 1fr;
		row-gap: 3rem;
	}

	.contact-social {
		margin-top: 3rem;
	}
}

/* ============================================
   BREAKPOINT: Small Tablets (< 768px)
   ============================================ */
@media screen and (max-width: 768px) {
	.container {
		max-width: 540px;
	}

	/* Home */
	.home-title {
		font-size: 3.5rem;
	}

	.home-job {
		font-size: 1.8rem;
	}

	/* Navigation */
	.nav-menu {
		width: 85%;
	}

	/* About */
	.about-img-wrapper {
		max-width: 350px;
	}

	.about-data {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.data-item {
		padding: 0.75rem;
		background-color: var(--container-color);
		border-radius: 0.5rem;
		transition: transform 0.2s ease;
	}

	.data-item:active {
		transform: scale(0.98);
	}

	/* Skills */
	.skill-items {
		grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
	}

	.skill-icon {
		width: 64px;
		height: 64px;
	}

	.skill-img {
		width: 28px;
	}

	/* Career - More gap */
	.career-container {
		row-gap: 4rem;
	}

	/* Portfolio */
	.work-list {
		flex-wrap: wrap;
		row-gap: 1rem;
	}

	.work-img {
		height: 200px;
	}

	/* Contact */
	.contact-data {
		row-gap: 1.5rem;
	}

	.contact-item {
		column-gap: 1rem;
	}

	.contact-icon {
		width: 40px;
		font-size: 1.3rem;
	}
}

/* ============================================
   BREAKPOINT: Mobile Portrait (< 576px)
   ============================================ */
@media screen and (max-width: 576px) {
	.container {
		padding-inline: 1rem;
	}

	.section {
		padding-block: 3.5rem 2.5rem;
	}

	.section-title {
		font-size: 1.8rem;
		margin-bottom: 2.5rem;
	}

	/* ===== NAVIGATION ===== */
	.nav-menu {
		width: 100%;
		padding: 4.5rem 1.5rem 2rem;
	}

	.nav-logo {
		font-size: 1.15rem;
	}

	.nav-toggle {
		font-size: 1.3rem;
	}

	.change-theme {
		font-size: 1.15rem;
	}

	.nav-btns {
		column-gap: 0.75rem;
	}

	/* ===== HOME ===== */
	.home-container {
		padding-top: 3rem;
		row-gap: 2rem;
	}

	.home-title {
		font-size: 2.8rem;
	}

	.home-job {
		font-size: 1.5rem;
	}

	.home-description {
		font-size: 0.95rem;
		margin-block: 0.875rem 1.25rem;
	}

	.home-img-wrapper {
		width: clamp(14rem, 60vw, 20rem);
	}

	.button {
		padding: 1rem 1.5rem;
		font-size: 0.875rem;
	}

	/* ===== ABOUT ===== */
	.about-img-wrapper {
		max-width: 300px;
	}

	.about-img {
		box-shadow: 0.5rem 0.5rem 0rem var(--first-color);
	}

	.about-description {
		font-size: 0.9rem;
		margin-bottom: 1.5rem;
		line-height: 1.65;
	}

	.about-data {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.data-item {
		padding: 1rem;
		background-color: var(--container-color);
		border-radius: 0.75rem;
	}

	.data-title {
		font-size: 0.95rem;
		margin-bottom: 0.35rem;
	}

	.data-description {
		font-size: 0.9rem;
	}

	/* ===== SERVICES ===== */
	.services-card {
		padding: 1.5rem;
	}

	.services-no {
		font-size: 1.8rem;
	}

	.services-title {
		font-size: 1.1rem;
		margin-block: 1rem 0.5rem;
	}

	.services-description {
		font-size: 0.95rem;
	}

	/* ===== SKILLS ===== */
	.skills-group {
		padding: 1.5rem;
	}

	.skills-title {
		font-size: 1.15rem;
		margin-bottom: 1.5rem;
	}

	.skill-items {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem 0.5rem;
	}

	.skill-icon {
		width: 56px;
		height: 56px;
		border-radius: 1rem;
	}

	.skill-img {
		width: 24px;
	}

	.skill-name {
		font-size: 0.7rem;
		margin-block: 0.5rem 0.15rem;
	}

	/* ===== CAREER (Maximum gap on mobile) ===== */
	.career-container {
		row-gap: 4.5rem;
	}

	.career-icon {
		font-size: 2rem;
	}

	.career-title {
		font-size: 1rem;
		margin-block: 0.5rem;
	}

	.career-duration {
		font-size: 0.75rem;
	}

	.career-description {
		font-size: 0.825rem;
		line-height: 1.65;
	}

	/* ===== PORTFOLIO ===== */
	.work-list {
		column-gap: 1rem;
		margin-bottom: 2rem;
	}

	.work-item {
		font-size: 0.95rem;
		padding-bottom: 0.5rem;
	}

	.work-card {
		padding: 1.5rem;
	}

	.work-img {
		height: 180px;
		margin-bottom: 1.25rem;
	}

	.work-title {
		font-size: 1.1rem;
		margin-block: 0.5rem 1rem;
		min-height: auto;
	}

	.work-description {
		font-size: 0.875rem;
		margin-bottom: 1.25rem;
		min-height: 80px;
	}

	.work-stack {
		column-gap: 0.5rem;
		margin-bottom: 1.5rem;
	}

	.work-stack img {
		width: 1.15rem;
		height: 1.15rem;
	}

	.work-link {
		font-size: 0.875rem;
		column-gap: 0.5rem;
	}

	.work-link-icon {
		font-size: 1.1rem;
	}

	.repo-link {
		font-size: 1.25rem;
	}

	/* ===== CONTACT ===== */
	.contact {
		padding-bottom: 5rem;
	}

	.contact-headings {
		margin-bottom: 3rem;
	}

	.contact-section-title {
		font-size: 1.8rem;
		margin-bottom: 1rem;
	}

	.contact-section-about {
		font-size: 0.95rem;
	}

	.contact-data {
		row-gap: 1.25rem;
	}

	.contact-item {
		grid-template-columns: max-content 1fr;
		column-gap: 0.875rem;
	}

	.contact-icon {
		width: 38px;
		font-size: 1.2rem;
	}

	.contact-title {
		font-size: 1rem;
		margin-bottom: 0.15rem;
	}

	.contact-description {
		font-size: 0.875rem;
	}

	.contact-social {
		margin-top: 2.5rem;
	}

	.contact-social-title {
		font-size: 0.875rem;
	}

	.contact-social-links {
		column-gap: 1rem;
	}

	.contact-social-link {
		width: 40px;
		height: 40px;
		font-size: 1.3rem;
	}

	.contact-form {
		row-gap: 2.5rem;
		margin-top: 0.5rem;
	}

	.contact-input-div {
		margin-bottom: 0.5rem;
	}

	.contact-label {
		font-size: 0.95rem;
	}

	.contact-input {
		height: 45px;
		font-size: 0.9rem;
	}

	.contact-msg-area {
		height: 160px;
		margin-top: 0.75rem;
	}

	.contact-button {
		margin-top: 0;
	}

	.contact-message {
		bottom: 4.5rem;
		font-size: 0.75rem;
	}

	/* ===== FOOTER ===== */
	.footer {
		padding-block: 1.5rem;
	}

	.footer-container {
		flex-direction: column;
		row-gap: 0.5rem;
		text-align: center;
	}

	.footer-copyright {
		font-size: 0.8rem;
	}
}

/* ============================================
   BREAKPOINT: Very Small Devices (< 375px)
   ============================================ */
@media screen and (max-width: 375px) {
	.home-title {
		font-size: 2.4rem;
	}

	.home-job {
		font-size: 1.3rem;
	}

	.home-img-wrapper {
		width: clamp(12rem, 70vw, 16rem);
	}

	.section-title {
		font-size: 1.6rem;
	}

	.about-img-wrapper {
		max-width: 260px;
	}

	.about-img {
		box-shadow: 0.4rem 0.4rem 0rem var(--first-color);
	}

	.about-description {
		font-size: 0.875rem;
	}

	.data-item {
		padding: 0.875rem;
	}

	.data-title {
		font-size: 0.9rem;
	}

	.data-description {
		font-size: 0.85rem;
	}

	.skills-container {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}

	.skill-items {
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem 0.35rem;
	}

	.career-container {
		row-gap: 4rem;
	}

	.career-description {
		font-size: 0.8rem;
	}

	.work-img {
		height: 150px;
	}

	.button {
		padding: 0.875rem 1.25rem;
		font-size: 0.8rem;
	}
}

/* ============================================
   LANDSCAPE MODE FIX
   ============================================ */
@media screen and (max-height: 600px) and (orientation: landscape) {
	.nav-menu {
		padding: 3rem 1.5rem 1.5rem;
		overflow-y: auto;
	}

	.nav-list {
		row-gap: 1.5rem;
	}

	.nav-close {
		top: 1rem;
		right: 1rem;
	}
}

/* ============================================
   BROWSER FALLBACK
   ============================================ */
@supports not (backdrop-filter: blur(32px)) {
	.nav-menu {
		background: var(--container-color) !important;
	}
	
	.light-theme .nav-menu {
		background: hsl(var(--second-hue), 18%, 88%) !important;
	}
}