*,
*::after,
*::before {
	font-family: "Roboto", sans-serif;
}
html,
body {
	box-sizing: border-box;
	margin: 0;
	width: 100%;
	height: 100%;
	scroll-behavior: smooth;
}
body {
	background-color: white;
	position: relative;
}
nav .container-fluid {
	max-width: 1200px;
}
nav ul {
	gap: 10px;
}
.navbar-light .navbar-brand {
	color: white;
	font-weight: 500;
	position: relative;
	padding-left: 50px;
}
.navbar-light .navbar-brand::before {
	background-position: left -35px top -20px;
	width: 44px;
	height: 40px;
	content: "";
	background-image: url("../img/my_logo.png");
	background-size: 118px auto;
	background-repeat: no-repeat;
	height: 32px;
	left: -3px;
	position: absolute;
	filter: brightness(100);
	display: inline-block;
}
.navbar-light .navbar-nav .nav-link {
	color: rgb(253, 253, 253, 0.6);
}
.navbar-light .navbar-brand:focus,
.navbar-light .navbar-brand:hover {
	color: white;
}
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link {
	text-transform: uppercase;
}
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
	color: white;
}
.navbar-collapse {
	transition: 0.5s;
}
header nav {
	background-color: transparent;
	transition: 0.3s;
}
header nav.scrolled {
	background-color: black;
	transition: 0.3s;
}
.navbar-toggler:focus {
	outline: 1px solid white;
}
header nav button img {
	width: 26px;
	filter: brightness(100);
}
.sticky {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 2;
}
.intro {
	height: 570px;
	background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url(../img/bg-forest.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: top 0 left 0;
	color: white;
	font-weight: 400;
	padding-top: 13rem;
	background-attachment: fixed;
	position: relative;
}
h1 {
	font-size: 60px;
	font-weight: 400;
}
.intro p {
	font-size: 18px;
}
p.resume {
	margin-top: 1rem;
}
.resume a {
	border: 1px solid white;
	border-radius: 5px;
	text-decoration: none;
	color: white;
	padding: 5px 15px;
	transition: 0.5s;
}
.resume a:hover {
	background-color: rgb(255, 255, 255, 0.2);
	padding: 5px 20px;
	transition: 0.5s;
}
.social-header {
	margin-top: 5rem;
}
.social-header .circle {
	border: 1px solid white;
	padding: 10px;
	border-radius: 50%;
	transition: 0.5s;
	transform: scale(0.8);
}
.social-header .circle:hover {
	transform: scale(1);
	transition: 0.5s;
	background-color: rgb(255, 255, 255, 0.2);
}
.social-header {
	gap: 5px;
}
.skills,
.about {
	margin: 5rem auto;
	max-width: 910px;
	text-align: center;
}
.skills li {
	list-style: none;
	line-height: 3rem;
}
.skills ul {
	margin: 0;
	padding: 0;
}
.projects {
	max-width: 1210px;
}
.grid {
	margin: 2rem 0 4rem;
	display: grid;
	grid-gap: 40px;
	width: 100%;
	grid-template-columns: repeat(auto-fit, 20rem);
}
.projects .card {
	text-align: left;
	width: 20rem;
	border-radius: 0.5rem;
	box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
}
.projects .card .project-img {
	height: 286px;
	background-image: url(../img/coffeeroasters-subscription.png);
	background-size: cover;
	background-position: top 0 center;
	border-radius: 0.5rem 0.5rem 0 0;
}
.card .btn,
.modal-footer a.btn {
	border-radius: 0.25rem;
	color: #ec8f6a;
	border-color: #ec8f6a;
}
.card .btn:hover,
.modal-footer a.btn:hover {
	color: #fff;
	background: #ec8f6a;
}
.container {
	width: 90%;
	max-width: 500px;
	margin: 0 auto;
	padding: 20px;
	box-shadow: rgb(149 157 165 / 20%) 0 8px 24px;
	background-color: white;
	border-radius: 8px;
	margin-bottom: 40px;
}
.contact {
	background-color: #f0f0f0;
	padding-top: 5rem;
	padding-bottom: 3rem;
}
.contact h5 {
	text-align: center;
	padding: 10px;
	margin-bottom: 1rem;
	max-width: 500px;
	font-weight: 400;
	padding: 10px 30px;
}
.contact img {
	width: 64px;
	margin-bottom: 2rem;
}
.form-group {
	width: 100%;
	margin-top: 20px;
	font-size: 20px;
}
.form-group input,
.form-group textarea {
	width: 100%;
	padding: 5px;
	font-size: 18px;
	border: 1px solid rgba(128, 128, 128, 0.199);
	margin-top: 5px;
}
textarea {
	resize: vertical;
}
button[type="submit"] {
	width: 100%;
	border: none;
	outline: none;
	padding: 20px;
	font-size: 24px;
	border-radius: 0.25rem;
	color: #ec8f6a;
	text-align: center;
	cursor: pointer;
	margin-top: 10px;
	transition: 0.3s ease background-color;
	background-color: #fff3ee;
}
button[type="submit"]:focus {
	outline: 1px solid black;
}
button[type="submit"]:hover {
	background-color: #ffd8c8;
}
#status {
	width: 90%;
	max-width: 500px;
	text-align: center;
	padding: 10px;
	margin: 0 auto;
	border-radius: 8px;
}
#status.success {
	background-color: rgb(211, 250, 153);
	animation: status 4s ease forwards;
}
#status.error {
	background-color: rgb(250, 129, 92);
	color: white;
	animation: status 4s ease forwards;
}
@keyframes status {
	0% {
		opacity: 1;
		pointer-events: all;
	}
	90% {
		opacity: 1;
		pointer-events: all;
	}
	100% {
		opacity: 0;
		pointer-events: none;
	}
}
h2 {
	border-bottom: 1px solid black;
}
.about h2 {
	max-width: 200px;
}
.techUsed li {
	list-style: none;
	border: 1px solid #ec8f6a;
	border-radius: 50px;
	padding: 5px 10px;
	font-size: 14px;
	letter-spacing: 1px;
	font-weight: bold;
	color: #ec8f6a;
	background-color: #fcf8f6;
}
.techUsed ul {
	gap: 10px;
	padding: 0;
}
.modal-footer button {
	color: #fff;
	background: #ec8f6a;
}
.modal-footer button:hover {
	color: #fff;
	filter: brightness(1.1) grayscale(20%);
}
footer {
	color: white;
	background-color: rgb(34, 34, 34);
	text-align: center;
}
.social-footer {
	gap: 1rem;
}
.social-footer img,
.social-header img {
	width: 24px;
}
.social-footer .circle span,
.social-header .circle span {
	filter: invert(100%) sepia(0%) saturate(2%) hue-rotate(360deg)
		brightness(104%) contrast(101%);
}
.social-footer .circle {
	background-color: rgb(51, 51, 51);
	padding: 10px;
	border-radius: 50%;
	transition: 0.5s;
}
.social-footer .circle:hover {
	background-color: white;
	transform: scale(1.2);
	transition: 0.5s;
}
.social-footer .circle:hover span {
	filter: invert(7%) sepia(17%) saturate(5%) hue-rotate(314deg) brightness(84%)
		contrast(83%);
}
.linkedIn img {
	filter: brightness(0) saturate(100%);
}
.p-icon {
	display: none;
}
.btn-check:focus + .btn,
.btn:focus {
	box-shadow: 0 0 0 0.25rem rgb(249 191 131 / 61%);
}
.btn-close:focus {
	box-shadow: rgb(249 191 131 / 61%) 0 0 0 0.25rem;
}
@media (min-width: 738px) {
	.social-header {
		position: absolute;
		bottom: 1rem;
		right: 1.5rem;
		margin-top: 0;
	}
	.about p,
	.skills li {
		font-size: 18px;
	}
}
@media (max-width: 974px) {
	header nav {
		background-color: black;
		transition: 0;
	}
	header nav.scrolled {
		transition: 0;
	}
	.intro {
		background-attachment: scroll;
	}
}
@media (prefers-reduced-motion: reduce) {
	.btn {
		-webkit-transition: none;
		-o-transition: none;
		transition: none;
	}
}


/* --- Skills Section Upgrade --- */
.skills {
  margin: 5rem auto;
  max-width: 1100px;
  text-align: center;
}

.skills h2{
    max-width: 480px;
    margin-inline:auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  background: #3b2f2c;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.skill-card h4 {
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ec8f6a;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.tech-list li {
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(236, 143, 106, 0.08);
  color: #ec8f6a;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tech-list li:hover {
  background: #ec8f6a;
  color: #fff;
  transform: translateY(-2px);
}

@media (prefers-color-scheme: dark) {
  .skill-card {
    background: #3b2f2c;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  }
  .tech-list li {
    background: rgba(255,255,255,0.08);
    color: #eaeaea;
  }
  .tech-list li:hover {
    background: #ec8f6a;
    color: #fff;
  }
}

/* --- Certifications Section --- */
.certifications {
  margin: 5rem auto;
  max-width: 1100px;
  text-align: center;
}

.certifications h2{
    max-width: 286px;
    margin-inline:auto;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.cert-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-3px);
}

.cert-card img {
  max-width: 120px;
  margin-bottom: 1rem;
}

.cert-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ec8f6a;
  margin-bottom: 0.25rem;
}

.cert-card p {
  font-size: 0.9rem;
  color: #555;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .cert-card {
    background: #3b2f2c;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  }
  .cert-card p {
    color: #bbb;
  }
}
