/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;500;600&display=swap");

:root {
	--color-text: rgb(85, 85, 85);
	--color-background: white;
	--color-dark-background: black;
	--color-dark-text: white;
	--color-border: rgb(163, 163, 163);
	--color-hover: grey;
	--color-primary: black;
	--color-secondary: rgb(250, 250, 250);
	--color-accent: purple;

	--box-shadow-primary: 10px 13px 20px 0px rgba(224, 156, 224, 1);
	--box-shadow-secondary: 3px 8px 25px -1px rgba(71, 6, 71, 0.12);
	--box-shadow-tertiary: 3px 8px 12px -1px rgba(71, 6, 71, 0.3);
}

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

body {
	overflow-x: hidden; /* Prevent horizontal scrolling */
	max-width: 100vw;

	font-family: "Roboto Condensed", sans-serif; /* Apply Roboto Condensed */
	text-transform: capitalize; /* Capitalize all text */
	color: var(--color-text); /* Optional: Ensure consistent text color */
	background-color: var(--color-background);
	color: var(--color-primary);
	transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
	/* background-color: rgba(33, 68, 99 ,0.3);
	color: var(--color-dark-text); */
}

html {
	scroll-behavior: smooth;
}

p {
	color: var(--color-text);
}

h1,
h2,
h3,
p,
a,
li,
button {
	font-family: "Roboto Condensed", sans-serif; /* Apply font to all text elements */
	text-transform: capitalize; /* Capitalize text */
}

/* TRANSITION */

a,
.btn {
	transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
	display: flex;
}

nav {
	justify-content: space-around;
	align-items: center;
	height: 17vh;
}

.nav-links {
	gap: 2rem;
	list-style: none;
	font-size: 1.5rem;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	text-decoration-color: var(--color-background);
}

a:hover {
	color: var(--color-hover);
	text-decoration: underline;
	text-underline-offset: 1rem;
	text-decoration-color: var(--color-hover);
}

.logo {
	font-size: 2rem;
}

.profile-pic {
	border-radius: 50%;
}

.logo:hover {
	cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
	display: none;
}

.hamburger-menu {
	position: relative;
	display: inline-block;
}

.hamburger-icon {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 24px;
	width: 30px;
	cursor: pointer;
}

.hamburger-icon span {
	width: 100%;
	height: 2px;
	background-color: var(--color-primary);
	transition: all 0.3s ease-in-out;
}

/* Fullscreen menu */
.menu-links {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw; /* Full viewport width */
	height: 100vh; /* Full viewport height */
	background-color: var(--color-background);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	transform: translateY(-100%); /* Initially hidden above the viewport */
	transition: transform 0.5s ease-in-out; /* Smooth transition */
	z-index: 1000;
	overflow: hidden;
}

.menu-links.open {
	transform: translateY(0); /* Slide down to reveal the menu */
}

/* Remove default list styling for the hamburger menu */
.menu-links ul {
	list-style: none; /* Remove bullets */
	padding: 0;
	margin: 0;
}

.menu-links li {
	margin: 1rem 0; /* Add spacing between links */
}

.menu-links a {
	text-decoration: none;
	font-size: 1.5rem;
	color: var(--color-primary);
	transition: color 0.3s ease-in-out;
}

.menu-links a:hover {
	color: var(--color-hover);
}

/* Close button for the hamburger menu */
.close-btn {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	background: none;
	border: none;
	font-size: 2rem;
	font-weight: bold;
	color: var(--color-primary);
	cursor: pointer;
	transition: color 0.3s ease-in-out;
	z-index: 1100; /* Ensure it appears above other elements */
}

.close-btn:hover {
	color: var(--color-hover);
}

/* Hamburger icon animation */
.hamburger-icon.open span:first-child {
	transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
	opacity: 0;
}

.hamburger-icon.open span:last-child {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* SECTIONS */

section {
	padding-top: 4vh;
	height: 96vh;
	margin: 0 10rem;
	box-sizing: border-box;
	min-height: fit-content;
}

.section-container {
	margin-top: 5rem;
	display: grid;
	grid-template-columns: repeat(2, 1fr);

	gap: 5rem;
}

/* PROFILE SECTION */

#profile {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

.section__pic-container {
	display: flex;
	height: 400px;
	width: 400px;
	margin: auto 0;
}

.section__text {
	align-self: center;
	text-align: center;
}

.section__text p {
	font-weight: 600;
}

.section__text__p1 {
	text-align: center;
}

.section__text__p2 {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

.title {
	font-size: 3rem;
	text-align: center;
}

#socials-container {
	display: flex;
	justify-content: center;
	margin-top: 1rem;
	gap: 1rem;
}

/* ICONS */

.icon {
	cursor: pointer;
	height: 2rem;
}

/* BUTTONS */

.btn-container {
	margin-top: 15px;
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.btn {
	font-weight: 600;
	transition: all 300ms ease;
	padding: 1rem;
	width: 8rem;
	border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
	border: var(--color-primary) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
	cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
	background: var(--color-primary);
	color: var(--color-dark-text);
}

.btn-color-1:hover {
	background: var(--color-dark-background);
}

.btn-color-2 {
	background: none;
}

.btn-color-2:hover {
	border: var(--color-dark-text) 0.1rem solid;
}

.btn-container {
	gap: 1rem;
}

/* ABOUT SECTION */

#about {
	position: relative;
	padding: 2rem;
}

.about-containers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin: 2rem 0;
}

.about-details-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1.2rem;
	background: var(--color-background);
	border-radius: 1rem;
	text-align: center;
}

.about-pic {
	border-radius: 1rem;
	max-width: 100%;
	height: auto;
	object-fit: cover; /* Ensures the image maintains its aspect ratio */
	display: block; /* Removes inline spacing issues */
	margin: 0 auto; /* Centers the image inside the container */
	-webkit-box-shadow: var(--box-shadow-secondary);
	-moz-box-shadow: var(--box-shadow-secondary);
	box-shadow: var(--box-shadow-secondary);
}

.details-container {
	padding: 1.5rem;
	flex: 1;

	border-radius: 1rem;
	border: none; /* Remove border */

	text-align: center;
	-webkit-box-shadow: var(--box-shadow-secondary);
	-moz-box-shadow: var(--box-shadow-secondary);
	box-shadow: var(--box-shadow-secondary);
}

/* projects */
.project-containers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin: 2rem 0;
}

/* EXPERIENCE SECTION */

#experience {
	position: relative;
}

.skills-sub-title {
	color: var(--color-text);
	font-weight: 600;
	font-size: 1.75rem;
	margin-bottom: 2rem;
}

.experience-details-container {
	display: flex;
	justify-content: center;
	flex-direction: column;
}

.article-container {
	display: flex;
	text-align: initial;
	flex-wrap: wrap;
	flex-direction: row;
	gap: 2.5rem;
	justify-content: space-around;
}

article {
	display: flex;
	width: 10rem;
	justify-content: space-around;
	gap: 0.5rem;
}

article .icon {
	cursor: default;
}

/* PROJECTS SECTION */

#projects {
	position: relative;
}
.project-containers {
	flex-wrap: wrap;
}

.color-container {
	border-color: var(--color-border);
	border: none; /* Remove border */
	-webkit-box-shadow: var(--box-shadow-secondary);
	-moz-box-shadow: var(--box-shadow-secondary);
	box-shadow: var(--box-shadow-secondary);
	background: var(--color-secondary);
}
.color-container:hover {
	scale: 1.05;
	transition: all 0.3s ease-in-out;

	box-shadow: var(--box-shadow-tertiary);
	-webkit-box-shadow: var(--box-shadow-tertiary);
	-moz-box-shadow: var(--box-shadow-tertiary);
}

.project-img {
	border-radius: 2rem;
	width: 90%;
	height: 90%;
}

.project-title {
	margin: 1rem;
	color: var(--color-primary);
}

.project-btn {
	color: var(--color-primary);
	border-color: var(--color-border);
}

/* CONTACT */

#contact {
	display: flex;
	justify-content: center;
	flex-direction: column;
	height: 70vh;
}

.contact-info-upper-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);

	border-radius: 2rem;

	background: var(--color-secondary);
	margin: 2rem auto;
	padding: 0.5rem;
	-webkit-box-shadow: var(--box-shadow-secondary);
	-moz-box-shadow: var(--box-shadow-secondary);
	box-shadow: var(--box-shadow-secondary);
}

.contact-info-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 1rem;
}

.contact-info-container p {
	font-size: larger;
}

.contact-icon {
	cursor: default;
}

.email-icon {
	height: 2.5rem;
}

/* FOOTER SECTION */

footer {
	height: 26vh;
	margin: 0 1rem;
}

footer p {
	text-align: center;
}

/*  */
/* nav hover */
nav ul li a,
nav ul li a:after,
nav ul li a:before {
	transition: all 0.5s;
}

/* stroke */
nav.stroke ul li a {
	position: relative;
}
nav.stroke ul li a:after {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	width: 0%;
	content: ".";
	color: transparent;
	background: var(--color-accent);
	height: 0.1rem;
}

/* Button Styling */
#theme-toggle {
	margin-left: 1rem;
	padding: 0.5rem 1rem;
	font-size: 1rem;
	cursor: pointer;
	border: 1px solid var(--color-primary);
	background-color: var(--color-background);
	color: var(--color-primary);
	transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme #theme-toggle {
	background-color: gray;
	color: var(--color-dark-text);
	border: 1px solid var(--color-dark-text);
}
