:root{
  --text:#111;
  --muted:#6c757d;
}

/* Make boxes taller in portfolio cards and Project card hover*/ 

.card-img-top {
  height: 180px;
  object-fit: cover;
}
.project-card{
  min-height: 420px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,0.14);
}

/*Homepage boxes*/

.portfolio-card {
  min-height: 420px;

}

/* Global styles*/
body {
  background: linear-gradient(180deg, #f6f7fb 0%, #ffffff 100%);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

h2 {
  position: relative;
  padding-left: 12px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  height: 1em;
  width: 4px;
  background: #6C63FF;
  border-radius: 2px;
}


/* Main Layout*/
main {
  min-height: 70vh;
}

main > .card {
    border-left: 6px solid #6C63FF;
}

/* Text rules*/

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1.1rem; }

.card-title.h5 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/*Badges*/

.badge {
  background-color: #6C63FF !important;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Buttons*/

.btn-dark {
  background-color: #6C63FF;
  border-color: #6C63FF;
}

.btn-dark:hover {
  background-color: #554fd8;
  border-color: #554fd8;
}

.btn-purple{
  background-color:#6C63FF;
  border:2px solid #6C63FF;
  color:#fff;
  font-weight:600;
  padding:0.6rem 1.4rem;
  border-radius:0.75rem;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease,
    border-color .2s ease;
}

.btn-purple:hover,
.btn-purple:focus{
  background-color:#554fd8;
  border-color:#554fd8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108,99,255,.35);
  color:#fff;
}


.btn-outline-purple {
  background-color: transparent;
  border: 2px solid #6C63FF;
  color: #6C63FF;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 0.75rem;
}

.btn-outline-purple:hover,
.btn-outline-purple:focus {
  background-color: #6C63FF;
  color: #fff;
}

/* Override Bootstrap primary (only if you use btn-primary) */
.btn-primary {
  background-color: #6C63FF;
  border-color: #6C63FF;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #554fd8;
  border-color: #554fd8;
}

/*Footer*/

footer {
  background-color: #111;
}

footer a {
  color: #f8f9fa;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .col-md-6 .h5 {
  color: #6C63FF !important;
}

/* Skills List*/

.skills {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem;
}

.skills-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.skills-list li::before{
  content: "—";
  position: absolute;
  left: 0;
  color: #6C63FF;
  font-weight: 700;
}
.section-heading {
  margin-top: 1.25rem;
}

/* Education layout */
.edu-item {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1.25rem;
  padding: 0.75rem 0;
  align-items: start;
}

.edu-item + .edu-item {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.edu-title{
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.25rem;
}

.edu-date{
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  opacity: 1;
}

.edu-school {
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.edu-desc {
  line-height: 1.45;
  font-size: 0.95rem;
  margin: 0;
}

/*Hero*/

.cta-card {
  background: linear-gradient(90deg, rgba(108,99,255,0.10) 0%, rgba(255,255,255,1) 55%);
  border-left: 6px solid #6C63FF;
}

/* Facts/figures*/

.stats-card {
  border: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, rgba(108,99,255,0.07) 0%, #ffffff 70%);
  overflow: hidden;

}

.stat-accent {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #6C63FF;
  margin-bottom: 0.9rem;
}
.text-purple-600 { color: #6C63FF; }

/*Featured projects*/

.featured-projects-section .card-img-top {
  height: 170px;
  object-fit: cover;
}

.featured-link {
  color: #6C63FF;
  font-weight: 600;
  text-decoration: none;
}

.featured-link:hover {
  text-decoration: underline;
}
.featured-projects-section .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-projects-section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.12);
}
.featured-projects-section {
  background: none;
}

.featured-projects-inner {
  background: linear-gradient(
    180deg,
    rgba(108, 99, 255, 0.06) 0%,
    rgba(255, 255, 255, 1) 70%
  );
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.06);
}

/* Experience section*/

.experience-card{
  position: relative;
  padding-left: 1.5rem;
  border: 1px solid #eee;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #ffffff, #faf8ff);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.03), 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.experience-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,0.12);
}

.experience-card::before{
  content:"";
  position:absolute;
  left:0.75rem;
  top:1rem;
  bottom:1rem;
  width:4px;
  background:#6C63FF;
  border-radius:4px;
}

.experience-card .card-body{
  padding: 2.25rem 2.75rem;
}

/*Mobile*/

@media (max-width: 576px) {
  main.container{
    padding-left: 12px;
    padding-right: 12px;
  }

  .edu-item {
    grid-template-columns: 1fr;
  }

  .edu-date {
    margin-bottom: 0.25rem;
  }
}

/* Explore projects homepage*/

.cta-card .cta-title {
  margin: 0;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.cta-card .cta-text {
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

/*Project page hero*/

.project-hero{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 40px;
}

.project-hero-img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.project-hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.55) 55%,
    rgba(0,0,0,0.25) 100%
  );
}

.project-hero-content{
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 24px;
  color: #ffffff;
  z-index: 1;
}

.project-hero-content h1{
  margin-bottom: 8px;
  text-shadow: 0 6px 18px rgba(0,0,0,0.7);
}

.project-hero-content p{
  margin: 0;
  max-width: 600px;
  color: rgba(255,255,255,0.9);
}


/* Fix responsive pills on about page */
.skills-badges .badge{
  white-space: normal;   
  text-align: center;
  max-width: 100%;
  line-height: 1.2;
  word-break: break-word;
}

/* Lines for lists on about page*/

.divided-list li{
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}
.divided-list li:last-child{
  border-bottom: none;
}

/*Make stats typography match site headings*/
.stat-number{
  font-family: inherit;        
  font-weight: 700;        
  font-size: 2rem;             
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-label{
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.card strong {
  color: var(--text);
  font-weight: 600;
}

.text-secondary {
  color: var(--muted) !important;
}
.project-hero-content h1,
.project-hero-content p {
  color: #fff;
}
.back-link {
  color: #6C63FF;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/*Makes the Skills section typography consistent*/
.skills h6,
.skills .text-uppercase {
  text-transform: none !important;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text) !important;
}

/*Make both lists match (Capabilities + Tools)*/
.skills-list li{
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--muted);
}

.skills .list-group-item {
  background: transparent;
  border-color: rgba(0,0,0,0.08);
}

/*Stop Bootstrap from changing paragraph text*/

main p.lead,
main p.small,
main .text-secondary{
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
}

/*Make body text consistent everywhere*/

main p,
main li,
main .list-group-item{
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--muted);
}

main p{ margin-bottom: 1rem; }

/*Make Education text match body styles*/

.edu-desc,
.edu-school,
.edu-date {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--muted);
}

/*Set paragraph typography inside cards and list groups */

main .card p:not(.card-title),
main .list-group-item p{
  font-size: 1rem !important;
  line-height: 1.6;
  font-weight: 400;
  color: var(--muted) !important;
  margin-bottom: 1rem;
}

/*Accessibility*/

a:focus-visible,
button:focus-visible,
.btn:focus-visible{
  outline: 3px solid rgba(108,99,255,.45);
  outline-offset: 3px;
}

