* {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

#projects {
	margin-bottom: 200px;
    margin-top: 80px;
    scroll-margin-top: 180px;
}

#skills {
	margin-bottom: 200px;
    scroll-margin-top: 500px;
}

#contact {
	margin-bottom: 300px;
    scroll-margin-top: 380px;
}

#home {
    scroll-margin-top: 180px;
}

body {
	margin: 0;
	background: #f6f7f8;
	color: #2a2f35;
    font-family: "Montserrat", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

/* --- STICKY NAVIGATION --- */
#nav-header {
	position: sticky;
	top: 0;
	background: #ffffff;
	border-bottom: 1px solid #c7ced8;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	z-index: 20;
}

.nav-container {
	width: 1100px;
	margin: 0 auto;
	padding: 16px 0px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#nav-name {
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.08em;
	color: #2a2f35;
	text-decoration: none;
    border-radius: 8px;
	transition: background 0.3s ease;
    padding: 10px 15px;
}

#nav-name:hover {
	background: #e9ecf0;
}

/* Nav Links */
.nav-links {
	display: flex;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
    font-size: 18px;
}

.nav-links a {
	text-decoration: none;
	color: #2a2f35;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 6px 2px;
	border-radius: 8px;
	transition: background 0.3s ease;
    padding: 10px 15px;
}

.nav-links a:hover {
	background: #e9ecf0;
}

/* --- MAIN & HEADINGS --- */
main {
	padding: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.section {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

h2 {
	text-align: center;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 40px 0;
    font-size: 20px;
	color: #2a2f35;
}

/* --- PROJECT SECTION--- */
#grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
    gap: 22px;
	max-width: 1100px;
	margin: 0 auto;
}

.grid-item {
	display: grid;
	justify-items: center;
	align-items: center;
	text-align: center;
	min-height: 74px;
	width: auto;
    padding: 0px 80px;
    height: 150px;
	border-radius: 14px;
	border: 1px solid #c7ced8;
	background: #e9ecf0;
	color: #2a2f35;
    font-size: 18px;
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(19, 27, 38, 0.06), 0 6px 14px rgba(19, 27, 38, 0.06);
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	line-height: 1.35;
}

.grid-item:hover {
	background: #e2e6eb;
	transform: translateY(-2px);
}

.grid-item:focus-visible {
	outline: 2px solid #c7ced8;
	outline-offset: 3px;
}

/* --- SKILLS SECTION--- */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	justify-content: center;
	align-items: center;
	gap: 22px;
	margin: 0 auto;
	max-width: 900px;
}

.skill-box {
	display: grid;
	justify-items: center;
	align-items: center;
	height: 140px;
	border-radius: 10px;
    padding: 0 30px 0 30px;
	border: 1px solid #c7ced8;
	background: #ffffff;
	box-shadow: 0 1px 0 rgba(19, 27, 38, 0.06), 0 6px 14px rgba(19, 27, 38, 0.06);
	color: #2a2f35;
	text-align: center;
	line-height: 1.25;
    font-size: 22px;
}

/* --- CONTACT SECTION --- */
#contact {
	margin-bottom: 300px;
    scroll-margin-top: 380px;
}

#contact-card {
	max-width: 600px;
	margin: 40px auto 0;
	padding: 24px 32px;
	background: #ffffff;
	border: 1px solid #c7ced8;
	border-radius: 14px;
	box-shadow: 0 1px 0 rgba(19, 27, 38, 0.06), 0 6px 14px rgba(19, 27, 38, 0.06);
}

#contactForm {
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-family: "Montserrat", Arial, sans-serif;
}

#contactForm label {
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	color: #2a2f35;
}

#contactForm input, #contactForm textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #c7ced8;
	font-size: 16px;
	background: #f6f7f8;
}

#contactForm input:focus, #contactForm textarea:focus {
	outline: none;
	border-color: #9aa4b2;
	background: #ffffff;
}

#contactForm button {
	align-self: center;
	margin-top: 10px;
	padding: 10px 24px;
	border-radius: 10px;
	border: none;
	background: #2a2f35;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}

#contactForm button:hover {
	background: #1f252b;
	transform: translateY(-1px);
}

/* CONTACT STYLIGN END */

.hideAll {
	display: none;
}

/* BACK BUTTON STYLING */
.back-button {
    display: block;
	margin: 0 auto 40px auto;
    padding: 12px 28px;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    border-radius: 12px;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.back-button:hover {
    background: #f5f5f5;
    border-color: #b1b1b1;
    transform: translateY(-2px);
}

/* PROJECT STYLING */
.project-detail {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.project-detail h1 {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #222;
}

.project-detail section {
    margin-bottom: 60px;
}

.project-detail h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.project-detail p, .project-detail ul {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.project-detail p {
	text-align: center;
}

.project-detail ul {
    list-style-position: inside;
	list-style-type: disc;
	text-align: center; 
}

/* PROJECT SCREENSHOT STYLING */
.project-detail img {
    width: 100%;
    margin-top: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

