/* GENERAL */

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

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

body {
  font-family: "Poppins", sans-serif;
  background-color: #2b2b2b; /* fallback color */
  background-image: url('assets/java2.jpg');
  background-size: cover; 
  background-repeat: no-repeat; 
  background-attachment: fixed; 
  background-position: center; 
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(255, 255, 255);
}

h1 {
  color: rgb(255, 255, 255);
}

/* 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: rgb(255, 255, 255);
  text-decoration: none;
  text-decoration-color: rgb(255, 255, 255);
}

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

.logo img {
  width: 80px;
  height: auto;
}

.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: rgb(247, 247, 247);
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: rgb(126, 121, 121);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: rgb(255, 255, 255);
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

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

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

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

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

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

.section-container {
  display: grid;
  place-items: center; 
  min-height: 80vh; 
  gap: 4rem;
}

.services-link {
  display: inline-block;
  padding: 10px 15px;
  border: rgb(145, 142, 142) 0.1rem solid;
  background-color: rgb(64, 93, 175);
  color: rgb(218, 213, 213);
  text-decoration: none;
  border-radius: 2rem;
  font-weight: bold;
  
}

.services-link:hover {
  background-color: rgb(235, 229, 229);
  border-color: white;
  text-decoration: none;
  text-underline-offset: none;
}

/* Adjust for mobile menu */
.menu-links .services-link {
  display: block;
  text-align: center;
  margin: 10px 0;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
  border-radius: 50%; 
  overflow: hidden; 
  align-items: center; 
  justify-content: center;
  
}

.section__pic-container img {
  height: 100%; 
  width: 100%; 
  object-fit: cover; 
}

.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 {
  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: rgb(255, 255, 255) 0.1rem solid;
}

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

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

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

.btn-color-2:hover {
  background: rgb(0, 0, 0);
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2.5rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

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

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
  max-width: 100%;
  height: auto;
  display: block;
  
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: rgb(243, 243, 243);
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section__pic-container {
  height: 300px;
  width: 300px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  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;
}

.color-container {
  border-color: rgb(255, 255, 255);
  background: rgb(58, 54, 51);
}

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

.project-title {
  margin: 1rem;
  color: rgb(255, 255, 255);
}

.project-btn {
  color: rgb(255, 255, 255);
  border-color: rgb(255, 255, 255);
}

/* CONTACT */

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

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(253, 253, 253) 0.1rem solid;
  border-color: rgb(255, 255, 255);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.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;
}

/* CERTIFICATES PAGE */
.certificates-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 4rem auto;
  padding: 0 2rem;
  justify-items: center;
}

.certificate-card {
  background: white;
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.certificate-card img {
  width: 100%;
  border-radius: 1rem;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.certificate-card h3 {
  color: #111;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.certificate-card p {
  color: #555;
  font-size: 1rem;
}

.section__text__p2 {
  max-width: 800px;
  margin: 1.5rem auto 2rem auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ffffff;
}

/* ==== STATS SECTION ==== */

.stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(241, 239, 239, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(94, 91, 91, 0.3);
  border-radius: 1.5rem;
  width: 150px;
  height: 120px;
  text-align: center;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card h3 {
  font-size: 2.5rem;
  margin-top: 1rem;
}

.stat-card p {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #ddd;
}

.stat-card:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}


/* === PROJECT CARDS (Updated Stylish Version) === */

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 4rem auto;
  width: 90%;
  max-width: 1200px;
}

.project-card {
  background: #e6e6e6;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

/* Overlay shadow over image */
.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.25),
    transparent
  );
  transition: opacity 0.3s ease;
  opacity: 1;
}

.project-card:hover .image-overlay {
  opacity: 0.85;
}


.project-content {
  padding: 1.5rem;
  text-align: left;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.3rem;
}

.project-type {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.project-lang {
  display: inline-block;
  background: #00a8ff;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 2rem;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}

.project-desc {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.project-tags span {
  background: #f0f0f0;
  color: #333;
  font-size: 0.8rem;
  border-radius: 1rem;
  padding: 0.3rem 0.7rem;
}

/* Links area */
.project-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-link {
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s ease;
}

.project-link.github i {
  font-size: 1.1rem;
}

.project-link.live i {
  font-size: 1rem;
}

.project-link:hover {
  color: #0056b3;
}




/* FOOTER SECTION */

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

footer p {
  text-align: center;
}