/* === Frappe Theme (Catppuccin) ===
 * text: #c6d0f5
 * secondary: #8CAAEE
 * background: #303446
 * accents: #f2d5cf, #B5BFE2, #babbf1
 */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* === Base Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #303446;
  color: #c6d0f5;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Mac Window Frame === */
.mac-window {
  width: 100%;
  max-width: 1200px;
  background: #1e1e2e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid #babbf1;
}

.mac-header {
  background: #2e2e38;
  padding: 10px 15px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #444;
}

.mac-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.mac-btn.red { background: #ff5f57; }
.mac-btn.yellow { background: #ffbd2e; }
.mac-btn.green { background: #28c940; }

.mac-content {
  padding: 2rem;
}

/* === Banner === */
.banner-text {
  margin-bottom: 2rem;
}
.banner-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f2d5cf;
}

/* === Links === */
a {
  color: #f2d5cf;
  text-decoration: underline;
}
a:hover {
  color: #8CAAEE;
}

/* === Headings === */
h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #B5BFE2;
  border-left: 4px solid #8CAAEE;
  padding-left: 10px;
}

/* === Paragraphs === */
p {
  line-height: 1.6;
  margin-bottom: 1.2rem;
  color: #c6d0f5;
}

/* === Social Links === */
ul.social {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

ul.social li {
  margin: 0;
}

ul.social a {
  color: #a6d189;
  text-decoration: none;
  transition: color 0.3s ease;
}
ul.social a:hover {
  color: #8CAAEE;
}

/* === Section Spacing === */
section {
  margin-bottom: 3rem;
}

/* === Skills Grid (Uniform Boxes) === */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  justify-content: center;
}

.skills-grid .shadow-module {
  width: 220px;
  height: 60px;
  background: #3a3a57;
  border-radius: 12px;
  /* border: 1px solid #444; */
  color: #c6d0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.2s ease, background 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 0 0.5rem;
}

/* Glow effect on hover */
.skills-grid .shadow-module::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: linear-gradient(90deg, #b23a1f 0%, #d01dbd 100%);
  border-radius: 20px;
  z-index: -1;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.skills-grid .shadow-module:hover::before {
  opacity: 0.75;
  filter: blur(18px);
}

.skills-grid .shadow-module:hover {
  background: #3a3a4a;
  transform: scale(1.05);
}

/* === Certifications === */
.cert-list {
  list-style: none;
  padding: 0;
}
.cert-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #444;
}

/* === Projects === */
.project-card {
  background: #2e2e38;
  border-radius: 8px;
  border: 1px solid #444;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.project-card h3 {
  color: #f2d5cf;
  margin-bottom: 0.5rem;
}
.project-card p {
  color: #c6d0f5;
}
.project-card a {
  color: #8CAAEE;
  font-weight: bold;
  text-decoration: none;
}
.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* === Experience === */
.job {
  margin-bottom: 1.2rem;
}
.job h3 {
  color: #f2d5cf;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.job span {
  color: #8CAAEE;
  font-size: 0.9rem;
}
.job p {
  color: #c6d0f5;
}

/* === Education & Volunteering === */
#education ul,
#volunteering ul {
  list-style: disc;
  padding-left: 1.2rem;
}
#education li,
#volunteering li {
  margin-bottom: 0.6rem;
}

/* === Contact Section === */
#contact ul.social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 0;
  list-style: none;
}

#contact ul.social li {
  margin: 0;
}
/* Style links as gradient pill buttons with glow */
#contact ul.social a {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: linear-gradient(90deg, #b23a1f, #d01dbd);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px rgba(208, 29, 189, 0.3);
  font-size: 1rem;
  text-align: center;
}

/* Hover effects for buttons */
#contact ul.social a:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(208, 29, 189, 0.6);
  color: white;
}

/* === Footer === */
footer {
  margin-top: 3rem;
  color: #B5BFE2;
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 1rem;
}

/* === Glowing Shadow Module (for Buttons) === */
.shadow-module {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  z-index: 0;
}

/* Soft gradient glow behind button */
.shadow-module::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: linear-gradient(90deg, #b23a1f 0%, #d01dbd 100%);
    border-radius: 30px;
  z-index: -1;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease, filter 0.3s ease;
  pointer-events: none;
}

/* Brighter, blurrier glow on hover */
.shadow-module:hover::before {
  opacity: 0.75;
  filter: blur(18px);
  transform: scale(1.04);
}

/* Keep content above the glow */
.shadow-module > * {
  position: relative;
  z-index: 1;
}

/* === Button Styling === */
button, .btn {
  background-color: #f2d5cf;
  color: #1e1e2e;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 25px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

button:hover, .btn:hover {
  background-color: #eebebe;
  transform: scale(1.05);
}

button:active, .btn:active {
  transform: scale(0.96);
}

/* === Animations === */
.output {
  width: 100%;
  max-width: 80ch;
  animation: fade 5s;
}

.typeme {
  width: 30ch;
  animation: typing 2s steps(25), blink .5s step-end infinite alternate;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #f2d5cf;
}

@keyframes fade {
  0% { opacity: 0; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 30ch; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* === Contact Section (Centered Card with Glow) === */
#contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 4rem auto;
  padding: 2rem;
  max-width: 600px;
  background: #2e2e38;
  border-radius: 12px;
  border: 1px solid #444;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Glowing gradient border */
#contact::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(90deg, #b23a1f, #d01dbd);
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

#contact:hover::before {
  opacity: 0.75;
  filter: blur(16px);
}

#contact h2 {
  color: #B5BFE2;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-left: none;
  padding-left: 0;
}

#contact ul.social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

#contact ul.social a {
  /* color: #a6d189; */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.2s ease;
}

#contact ul.social a:hover {
  color: #8CAAEE;
  transform: scale(1.1);
}

#contact p a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  background: linear-gradient(90deg, #b23a1f, #d01dbd);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact p a:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(208, 29, 189, 0.6);
}

/* === Bouncy Badge Animation === */
@keyframes bounceIn {
  0% {
    transform: scale(0.9) translateY(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.badge-bounce {
  animation: bounceIn 0.8s ease-out;
  transition: transform 0.3s ease;
}

.badge-bounce:hover {
  transform: scale(1.05) translateY(-5px);
}


/* === Responsive Layout === */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  .mac-content {
    padding: 1.5rem;
  }
  .banner-text h1 {
    font-size: 1.7rem;
    text-align: center;
  }
  h2 {
    font-size: 1.3rem;
  }
  .skills-grid {
    flex-direction: column;
    align-items: center;
  }
  ul.social {
    justify-content: center;
  }
}
