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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: url('images/paper.jpg');
  background-size: cover;
  background-attachment: fixed;
  color: #333;
  line-height: 1.6;
  font-size: 18px;
}

/* === Typography & Links === */
a {
  color: #004d40;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* === Section Headings === */
section h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: #00796b;
  border-bottom: 3px solid #007acc;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Sidebar profile picture */
.profile-pic {
  max-width: 130px;
  border: 6px solid teal;
  border-radius: 50%;
  overflow: hidden;
  margin: 1.5rem auto;
  display: block;
}

.profile-pic img {
  width: 100%;
  height: auto;
  display: block;
}

/* === Social Buttons === */
.social {
  margin-top: 1rem;
}
.btn-floating {
  margin: 0 5px;
}

/* === Hero Buttons === */
.readme, .contactme {
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  margin: 0.5rem;
  transition: all 0.2s ease;
}
.readme {
  background: #fff;
  color: #00796b;
  border: 2px solid #fff;
}
.readme:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.contactme {
  background: none;
  color: #00796b;
  border: 2px solid #00796b;
}
.contactme:hover {
  background: #00796b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* === Intro Section === */
#intro {
  padding: 6rem 2rem;
  text-align: left;
  color: #333;
}

#intro h2 span {
  color: #00796b;
}

/* Text chips — readable but won't cover the lines */
#intro h2,
#intro h5,
#intro p {
  position: relative;
	top: 8px;
  z-index: 2; /* text above lines */
  background: none;
  padding: 0.2rem 0.5rem;
  display: inline-block;
	
}

#intro h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#intro .social {
  position: relative;
  z-index: 2;
}

#intro .container {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
padding-left: 3rem;
background-color: #fff;
}

/* Red line */
#intro .container::before {
  content: "";
  position: absolute;
  top: 3rem;
  left: 0;
  right: 0;
  height: 0.2rem;
  background: #f00;
  z-index: 1; /* above card, below text */
}

/* Blue lines */
#intro .container::after {
  content: "";
  position: absolute;
  top: 3.2rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    #40a0ff 0,
    #40a0ff 1px,
    transparent 1px,
    transparent 2.2rem
  );
  z-index: 1; /* above card, below text */
  opacity: 0.6;
}

#intro.section {
  display: flex;
  justify-content: center;
}


/* === Cards === */
.card {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.card .card-title {
  font-size: 1.4rem;
  font-weight: 500;
}

/* === Skills Section === */
#skills .chip {
  margin: 0.3rem;
  font-size: 1rem;
}
#skills .card {
  margin-bottom: 2rem;
}
#skills .card h4 {
  margin-bottom: 1rem;
  font-weight: 500;
}
#skills .row div {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-align: center;
}
#skills .row div img {
  display: block;
  margin: 0 auto 0.5rem;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1rem 0 2.5rem;
}

/* Sidebar styles */
.sidenav {
  width: 190px;
  background-color: #FFFFFF;
  text-align: left;
}
.sidenav li a {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.sidenav li a i {
  font-size: 1.1rem;
  color: orange;
}
.sidenav li a:hover {
  background-color: teal;
  color: #fff;
}
.sidenav li a.active {
  background-color: #00796b;
  color: #fff;
  font-weight: 600;
}

/* Responsive sidebar collapse */
@media (max-width: 768px) {
  .sidenav {
    width: 100%;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ccc;
  }
  .sidenav li {
    flex: 1;
    text-align: center;
  }
}

#sidebar {
  background: url('images/navbar.jpg') no-repeat center center;
  background-size: cover;
}


/* === Projects Section Equal Height Cards === */
#projects .row {
  display: flex;
  flex-wrap: wrap;
}
#projects .col {
  display: flex;
}
#projects .card {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#projects .card-content {
  flex-grow: 1;
  font-size: 14px;   /* controls text size */
  color: #444;       /* controls text colour */
  line-height: 1.5;  /* optional: improves readability */
}

#projects .card-image img {
  height: 200px;
  object-fit: cover;
  width: calc(100% - 10px); /* shrink width slightly */
  margin: 5px;              /* offset all around */
  border-radius: 6px;       /* optional rounded corners */
}


/* === Responsive Tweaks === */
@media (max-width: 600px) {
  h2 { font-size: 1.6rem; line-height: 1.4; }
  .card .card-title { font-size: 1.2rem; }
}

/* === Footer === */
footer {
  margin-top: 7%;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #777;
}
footer a {
  color: #83ebe0;
}
footer a:hover {
  text-decoration: underline;
}

ul.skills-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem; /* add a value */
}

/* === Education Labels === */
#education strong {
  font-weight: 700;
  color: teal; /* vibrant orange */
}

#about strong {
  font-weight: 700;
  color: teal; /* vibrant orange */
}

.profile-frame {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto;
}
.profile-frame img {
  border-radius: 50%;
  width: 100%;
  height: auto;
  object-fit: cover;
}

#experience ul {
  padding-left: 1rem; /* adjust value as needed */
}

