/* GLOBAL RESET & FONT */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap');
/* I Used a color combination from this https://piktochart.com/tips/portfolio-color-palette no 7. I feel this gives a good 
look to my protfolio.  */
body {
  font-family: 'IBM Plex Mono', monospace;
}

/* This is to reset css*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Normally setting the rules for the layout and also font*/
body {
  font-family: 'IBM Plex Mono', monospace;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background-color: #f4dccb; /* your peach background */
  color: #22223B;
}

/* --- Center Mandala Overlay --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("Images/mandala.svg");  /* or .png */
  background-repeat: no-repeat;
  background-size: 40%;
  background-position: center center;           /* true center */
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;

  /* shift it right so it ignores the sidebar */
  transform: translateX(110px);                 /* tweak if needed */

  /* slow, smooth rotation */
  animation: mandala-spin 90s linear infinite;
}


/* SIDEBAR STYLES */

.sidebar {
  width: 220px;
  background-color: #fff;
  height: 100vh;
  border-right: 1px solid #ddd;
  padding: 20px;
  position: fixed;
  left: 0;
  top: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Name class has all heading of my social media platform*/
.name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #22223B;
  text-decoration: none;     /* remove underline */
  cursor: pointer;           /* makes it feel clickable */
  display: inline-block;     /* keeps spacing clean */
}
/* Styles the each link in the nav menu */
.sidebar nav ul {
  list-style: none;
  margin-bottom: 40px;
}

.sidebar nav ul li {
  margin-bottom: 15px;
}

.sidebar a {
  text-decoration: none;
  color: #22223B;
  font-weight: 500;
}
/* this hover gives more of user friendly interfac */
.sidebar a:hover {
  color: #C9ADA7;
}

.sidebar .contact-links a {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

/* MAIN CONTENT */
.main-content {
  margin-left: 240px;
  padding: 40px;
  flex: 1;
}

.main-content h1 {
  font-size: 48px;
  margin-bottom: 10px;
  color: #22223B;
}

.main-content p {
  font-size: 18px;
  color: #555;
}

.profile-image {
  margin: 20px 0 60px;   /* space above/below the photo */
}

/* Profile Iamge(circle)  */
.profile-image img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #333;
  margin-top: 30px;
  display: block;
}

/* SECTIONS */
h2 {
  color: #22223B;
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid #C9ADA7;
  padding-bottom: 5px;
}

h3 {
  font-size: 1.4em;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #4A4E69;
}

ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
}

.back-button {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 15px;
  background-color: #4A4E69;
  color: #F2E9E4;
  border-radius: 5px;
  text-decoration: none;
}



/* split-section */
/*this whole section was built for about me section to split the screen in a perfect ratio*/
.split-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 30px;
}

.left, .right {
  width: 48%;
}

.right img {
  width: 100%;
  border-radius: 10px;
}

.divider {
  border: 0;
  height: 2px;
  background-color: #C9ADA7;
  margin: 40px 0;
}


/* CERTIFICATION box class */
/* this type of layout i built to show my certifications in a good way*/
/* keeping coursera layout in my mind i designed this*/
/* This is nothing but box insise a box */
.certification-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: flex-start;
}

/* Mini-Box class */

.Mini-Box {
  background-color: #5b4636;
  border-radius: 10px;
  padding: 15px;
  width: 250px;
  text-align: center;
  color: #F2E9E4; 
}

.Mini-Box:hover {
  transform: scale(1.05);
}

.Mini-Box img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 10px;
}

.Mini-Box {
  overflow: hidden;     /* makes the corners visible */
  border-radius: 15px;  /* match your box rounding */
}


.Mini-Box h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #f8e7d2;
}

.Mini-Box p {
  font-size: 0.9rem;
  color: #E0D6CF;
}

/* --- CONTACT CARDS LAYOUT --- */

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

/* Make whole card clickable but keep Mini-Box look */
.contact-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Override Mini-Box img just for contact icons */
.contact-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
}

/* Hover effect similar vibe as other cards */
.contact-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}


/* Project-box */

.Project-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: flex-start;
}

/* Mini-Box class */

.inside-Box {
  background-color: #5b4636;
  border-radius: 10px;
  padding: 15px;
  width: 250px;
  text-align: center;
  color: #F2E9E4; 
}

.inside-Box:hover {
  transform: scale(1.05);
}

.inside-Box img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 10px;
}

.inside-Box {
  overflow: hidden;     /* makes the corners visible */
  border-radius: 15px;  /* match your box rounding */
}


.inside-Box h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #f8e7d2;
}

.inside-Box p {
  font-size: 0.9rem;
  color: #E0D6CF;
}


/* ===== PROJECT MODAL (reusable for all projects) ===== */

.project-modal {
  display: none;               /* hidden by default */
  position: fixed;
  z-index: 1000;
  inset: 0;                    /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

/* Brown box */
.project-modal-content {
  background-color: #4b382a;   /* deep brown to match your card */
  color: #fdf3e7;
  max-width: 720px;
  margin: 8vh auto;
  padding: 2.2rem 2.6rem;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* close button */
.project-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  border: none;
  background: transparent;
  color: #fdf3e7;
  font-size: 1.6rem;
  cursor: pointer;
}

/* modal content styling */
.project-modal-content h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.6rem;
  color: #f8e7d2;
}



.project-modal-content p {
  color: #f8e7d2;   /* matches your h2 color */
}

.project-modal-list {
  margin: 0.8rem 0 1.4rem;
  padding-left: 1.2rem;
}

.project-modal-list li {
  margin-bottom: 0.4rem;
}

/* GitHub button */
.project-modal-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  background-color: #fdf3e7;
  color: #2f241b;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-modal-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}