html, body {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: 'Catamaran', sans-serif;
  letter-spacing: 0.3px;
}

a {
  text-decoration: none;
}

.right .content p a,
.right .content li a {
  text-decoration: underline;
}

/* ── Layout ──────────────────────────────────────────────── */

.left {
  color: #efefef;
  width: 25%;
  height: 100%;
  float: left;
  display: inline-block;
  vertical-align: top;
  text-align: center;
  overflow: hidden;
  position: fixed;
}

.right {
  width: 50%;
  margin-left: 25%;
  display: block;
}

.right-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 25%;
  height: 100%;
  overflow-y: auto;
  background: #fff;
  border-left: 1px solid #e0e0e0;
}

.left .bg-img {
  background: url('../resources/ShivaniKalamadi_PortfolioPic.png') 35% center no-repeat;
  background-size: cover;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.left .bg-img:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #1a1a1a;
  opacity: 0.8;
}

.left-inner,
.right-inner {
  padding: 50px;
}

@media screen and (max-width: 400px) {
  .left-inner,
  .right-inner {
    padding: 40px;
  }
}

.left-inner {
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  min-height: 24em;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  height: 100%;
}

.left .info {
  -webkit-box-flex: 0;
  -webkit-flex: none;
  flex: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  width: 90%;
  margin: 0 auto;
  font-size: 17px;
}

@media screen and (max-width: 1000px) {
  .left .info {
    margin-top: 20px;
  }
}

.left .info .name {
  margin-top: 50px;
  font-weight: 300;
  font-size: 38px;
  margin-bottom: 20px;
}

.left .info .social-links {
  margin-top: 10px;
}

.left .info .fa {
  margin: 10px;
  font-size: 20px;
  color: #fff;
}

@media screen and (max-width: 1000px) {
  .left, .right, .right-panel {
    display: block;
    width: 100%;
    position: static;
    margin-left: 0;
  }
  .right-panel {
    border-left: none;
    border-top: 1px solid #eeeeee;
    height: auto;
  }
}

/* ── Right panel — section structure ─────────────────────── */

.right a {
  color: #9B1C1C;
}

.right a.company,
.right .education .university a,
.right .education .college a {
  color: #000;
}

.right .experience a {
  color: inherit;
}

.right h4 {
  display: block;
  width: fit-content;
  margin: 0 0 16px;
  padding-bottom: 8px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  position: relative;
  color: #9B1C1C;
}

/* .right h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(45deg, #9B1C1C, #33E5BB);
} */

.right ul {
  padding: 0;
  margin: 0;
}

.right .content {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 50px;
  font-weight: 300;
  line-height: 1.5;
}

.right .content strong {
  font-weight: 600;
  color: #222;
}

.right .content ul.description {
  padding-left: 20px;
  margin-top: 10px;
  font-size: 15px;
}

/* ── Introduction ────────────────────────────────────────── */

.right .intro-p {
  text-align: justify;
}

.right .introduction .intro-p:first-of-type {
  margin-top: 0;
}

.right .introduction .job-pls {
  font-weight: 500;
  color: #9B1C1C;
  display: inline-block;
}

/* ── Research Topics — timeline ─────────────────────────── */

/* .right .research-topics h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #9B1C1C;
} */

.right .research-topics .content {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid #e8e8e8;
}

.right .research-topics .research-item {
  position: relative;
  margin-top: 15px;
  margin-bottom: 50px;
}

.right .research-topics .research-item:last-of-type {
  margin-bottom: 0;
}

.right .research-topics .research-item::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #9B1C1C;
  border-radius: 50%;
  position: absolute;
  left: -30px;
  top: 5px;
}

.right .research-topics .research-title {
  font-weight: 700;
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
  color: #9B1C1C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.right .research-topics .intro-p {
  text-align: justify;
  margin-top: 0;
}

.right .research-topics .research-concerns {
  padding-left: 20px;
  margin: 4px 0 16px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: #333;
}

/* ── Skills — pill tags ──────────────────────────────────── */

.right .skills .skill-category {
  margin-bottom: 16px;
}

.right .skills .skill-category:last-of-type {
  margin-bottom: 0;
}

.right .skills .skill-category > strong {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 8px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 400;
  background: #f5f5f5;
  color: #9B1C1C;
  border: 1px solid #ddd;
}

/* ── Education ───────────────────────────────────────────── */

.right .education {
  font-size: 16px;
}

.right .education .edu-block {
  margin-bottom: 40px;
}

.right .education .edu-block:last-of-type {
  margin-bottom: 0;
}

.edu-projects {
  margin-top: 16px;
  margin-left: 20px;
  padding-left: 16px;
  border-left: 2px solid #f0f0f0;
}

.edu-projects-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #bbb;
  margin-bottom: 10px;
}

.right .education .edu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.right .education .edu-date {
  font-size: 12px;
  font-weight: 500;
  color: #aaa;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: 12px;
}

.right .education .university {
  font-weight: 700;
  font-size: 16px;
}

.right .education .college {
  font-weight: 300;
  font-style: normal;
  font-size: 14px;
  color: #777;
  margin-top: 3px;
  margin-bottom: 6px;
}

.right .education .grad-date {
  color: #aaa;
  font-size: 14px;
  font-weight: 400;
  margin-top: 8px;
}

.right .education .coursework-toggle {
  margin-top: 8px;
  font-size: 14px;
}

.right .education .coursework-toggle summary {
  font-weight: 500;
  color: #999;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}

.right .education .coursework-toggle summary::-webkit-details-marker {
  display: none;
}

.right .education .coursework-toggle summary::before {
  content: '▸';
  font-size: 11px;
  display: inline-block;
  transition: transform 0.2s;
}

.right .education .coursework-toggle[open] summary::before {
  transform: rotate(90deg);
}

.right .education .coursework-toggle p {
  margin: 8px 0 0;
  color: #555;
  line-height: 1.6;
}

/* ── Experience — timeline ───────────────────────────────── */

.right .experience .exp-item {
  margin-bottom: 32px;
}

.right .experience .exp-roles {
  margin-top: 16px;
  margin-left: 20px;
  padding-left: 16px;
  border-left: 2px solid #f0f0f0;
}

.right .experience .exp-item:last-of-type {
  margin-bottom: 0;
}

.right .experience .exp-item .job {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2px;
}

.right .experience .exp-item .company {
  font-weight: 700;
  font-size: 16px;
  color: #000;
}

.right .experience .exp-item .job-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 12px;
}

.right .experience .exp-item .duration {
  font-size: 12px;
  font-weight: 500;
  color: #aaa;
  text-transform: uppercase;
  white-space: nowrap;
}

.right .experience .exp-item .location {
  font-size: 11px;
  font-weight: 400;
  color: #bbb;
  white-space: nowrap;
}

.right .experience .exp-item .title {
  font-weight: 500;
  font-style: italic;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.right .experience .exp-item .duration2 {
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  color: #aaa;
}

/* ── Projects — cards ────────────────────────────────────── */

.project-item {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s ease;
}

.project-item:last-of-type {
  margin-bottom: 0;
}

.project-item:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.project-title {
  font-weight: 700;
  font-size: 15px;
  display: block;
  margin-bottom: 6px;
}

.project-desc {
  font-size: 14px;
  margin: 0 0 10px;
  color: #444;
  line-height: 1.6;
}

.gh-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9B1C1C;
  border: 1px solid #ccc;
  padding: 3px 10px;
  border-radius: 4px;
  transition: background 0.15s;
}

.gh-link:hover {
  background: #eeeeee;
}

/* ── Resume link ─────────────────────────────────────────── */

.right a.resume {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 15px 0;
  background-color: #f5f5f5;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.right a.resume:hover {
  background-color: #f1f1f1;
}

.right a.resume .resume-link {
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: #9B1C1C;
}

/* ── Contact form ────────────────────────────────────────── */

.wave {
  animation-name: wave-animation;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  transform-origin: 70% 70%;
  display: inline-block;
  font-size: 30px;
}

@keyframes wave-animation {
    0% { transform: rotate(  0.0deg) }
   10% { transform: rotate( 14.0deg) }
   20% { transform: rotate( -8.0deg) }
   30% { transform: rotate( 14.0deg) }
   40% { transform: rotate( -4.0deg) }
   50% { transform: rotate( 10.0deg) }
   60% { transform: rotate(  0.0deg) }
  100% { transform: rotate(  0.0deg) }
}

.contact_d {
  margin-top: 10px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact_d h4 {
  display: block;
  width: fit-content;
  margin: 0 auto 24px;
  padding-bottom: 8px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  color: #9B1C1C;
  position: relative;
}

.contact_d h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #9B1C1C;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 6px;
  text-align: left;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-family: 'Catamaran', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #9B1C1C;
  background: #fff;
}

.form-submit {
  margin-top: 4px;
  padding: 10px 28px;
  background: #9B1C1C;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Catamaran', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover {
  background: #7B1515;
}

/* ── Right panel — news ──────────────────────────────────── */

.right-panel-inner {
  padding: 50px 30px;
}

.right-panel h4 {
  display: block;
  width: fit-content;
  margin: 0 0 16px;
  padding-bottom: 8px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  position: relative;
  color: #9B1C1C;
}

.right-panel h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #9B1C1C;
}

.news-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eeeeee;
}

.news-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #aaa;
  margin-bottom: 5px;
}

.news-topic {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #777;
  margin-bottom: 4px;
}

.news-topic a {
  color: inherit;
  text-decoration: none;
}

.news-topic a::after {
  content: ' ↗';
  font-size: 11px;
  font-weight: 400;
  color: #aaa;
}

.news-item p {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: #444;
}
