* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0a;
  color: #fff;
  line-height: 1.6;
}

#header {
  width: 100%;
  height: 100vh;
  background-image: url(./background.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

#header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 0, 79, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.container {
  padding: 10px 10%;
  max-width: 1400px;
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: fixed;
  width: 100%;
  background: rgba(27, 27, 27, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 0, 79, 0.1);
  left: 0;
  top: 0;
  padding: 15px 10%;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

nav:hover {
  background: rgba(27, 27, 27, 0.95);
  border-bottom-color: rgba(255, 0, 79, 0.2);
}

.l {
  margin-left: 0;
}

.l h1 {
  font-size: 28px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.l h1:hover {
  text-shadow: 0 0 20px rgba(255, 0, 79, 0.5);
}

.it {
  margin-right: 0;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin: 0 25px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav ul li a::after {
  width: 0;
  content: '';
  height: 3px;
  background: linear-gradient(90deg, #ff004f, #ff6b9d);
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.4s ease;
}

nav ul li a:hover {
  color: #ff004f;
}

nav ul li a:hover::after {
  width: 100%;
}

@media only screen and (max-width: 840px) {
  .l {
    margin: 0;
  }
  
  .it {
    margin: 0;
  }
  
  nav ul li {
    margin: 8px 15px;
  }
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: calc(100vh - 80px);
  padding-top: 80px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-col1 {
  flex-basis: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-col1 img {
  width: 350px;
  height: 360x;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(255, 0, 79, 0.3);
  transition: all 0.4s ease;
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.header-col1 img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 30px 80px rgba(255, 0, 79, 0.4);
}

.header-col2 {
  flex-basis: 55%;
  padding-left: 40px;
}

.header-text {
  animation: slideInRight 0.8s ease-out 0.2s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.header-text p {
  font-size: 20px;
  color: #ababab;
  margin-bottom: 10px;
  font-weight: 300;
}

.header-text h1 {
  font-size: 64px;
  font-weight: 800;
  margin: 20px 0;
  background: linear-gradient(135deg, #ff004f, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.header-text h4 {
  font-size: 22px;
  color: #ababab;
  margin: 15px 0;
  font-weight: 500;
}

.header-text h3 {
  font-size: 28px;
  color: #fff;
  margin: 20px 0;
  font-weight: 600;
}

.header-text h3 span {
  color: #ff004f;
  text-decoration: underline;
  text-decoration-color: #0ef;
  text-underline-offset: 5px;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.social-icons a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #ff004f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ff004f;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: #ff004f;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 0, 79, 0.4);
}

/* -----about----- */
#about {
  margin-top: 80px;
  padding: 100px 0;
  color: #ababab;
  background: linear-gradient(180deg, #0a0a0a 0%, rgba(255, 0, 79, 0.02) 50%, #0a0a0a 100%);
}

.sub-title {
  font-size: 55px;
  font-weight: 800;
  margin-bottom: 60px;
  background: linear-gradient(135deg, #fff, #ff004f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 20px;
}

.sub-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ff004f, transparent);
  border-radius: 2px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.about_col_1,
.about_col_2,
.about_col_3 {
  flex-basis: calc(33.333% - 27px);
  padding: 30px;
  background: rgba(255, 0, 79, 0.05);
  border: 1px solid rgba(255, 0, 79, 0.1);
  border-radius: 12px;
  transition: all 0.4s ease;
}

.about_col_1:hover,
.about_col_2:hover,
.about_col_3:hover {
  background: rgba(255, 0, 79, 0.1);
  border-color: rgba(255, 0, 79, 0.3);
  transform: translateY(-5px);
}

.about_col_1 p {
  font-size: 16px;
  line-height: 1.8;
  margin-top: 0;
  color: #ababab;
}

.about_col_2,
.about_col_3 {
  padding-top: 0;
}

.about_col_2 h2,
.about_col_3 h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 25px;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about_col_2 h2::before,
.about_col_3 h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #ff004f, #ff6b9d);
  border-radius: 2px;
}

.about_col_2 ul,
.about_col_3 ul {
  list-style: none;
}

.about_col_2 ul li,
.about_col_3 ul li {
  margin: 18px 0;
  font-size: 14px;
  padding: 12px;
  padding-left: 0;
  background: rgba(255, 0, 79, 0.05);
  border-left: 2px solid #ff004f;
  padding-left: 12px;
  transition: all 0.3s ease;
}

.about_col_2 ul li:hover,
.about_col_3 ul li:hover {
  background: rgba(255, 0, 79, 0.15);
  padding-left: 16px;
}

.about_col_2 ul li span {
  color: #ff004f;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

@media only screen and (max-width: 900px) {
  .about_col_1,
  .about_col_2,
  .about_col_3 {
    flex-basis: 100%;
  }
}
.edu {
  font-size: 17px;
}
/* TIMELINE SECTION */

#timeline,
.history-tl-container {
  position: relative;
  align-items: start;
}

.history-tl-container {
  width: 100%;
  align-items: center;
  display: block;
  gap: 2rem;
  margin-top: 2rem;
}

.history-tl-container ul.timeline-ul {
  margin: 20px 0;
  padding: 0;
  display: inline-block;
}

.history-tl-container ul.timeline-ul li {
  list-style: none;
  margin-left: 0rem;
  min-height: 50px;
  border-left: 1px dashed #86d6ff;
  padding: 0 0 50px 30px;
  position: relative;
}

.history-tl-container ul.timeline-ul li:last-child {
  border-left: 0;
}

.history-tl-container ul.timeline-ul li::before {
  position: absolute;
  left: -18px;
  top: -5px;
  content: ' ';
  border: 8px solid rgba(255, 255, 255, 0.74);
  border-radius: 500%;
  background: #258cc7;
  height: 20px;
  width: 20px;
  transition: all 500ms ease-in-out;
}

.history-tl-container ul.timeline-ul li:hover::before {
  border-color: #258cc7;
  transition: all 1000ms ease-in-out;
}

ul.timeline-ul li .item-detail {
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
}

ul.li .timestamp {
  color: #8d8d8d;
  position: absolute;
  width: 100px;
  left: -50%;
  text-align: right;
  font-size: 12px;
}
ul.li .timestamp h3 {
  font-weight: 100;
  color: #8d8d8d;
  position: absolute;
  width: 100px;
  left: -50%;
  text-align: right;
  font-size: 12px;
}

.bottom-container {
  position: relative;
  right: -2.5rem;
  bottom: 2.5rem;
}

.time {
  /* background: #258CC7; */
  display: inline-block;
  color: #b54769;
  font-size: 15px;
  width: auto;
  white-space: nowrap;
}

.cgpa-badge {
  display: inline-block;
  margin: 15px 0;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ff004f, #ff6b9d);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(255, 0, 79, 0.4);
  font-weight: 600;
  border: 2px solid #ff004f;
  transition: all 0.3s ease;
}

.cgpa-badge:hover {
  transform: scale(1);
  box-shadow: 0 6px 20px rgba(255, 0, 79, 0.6);
}

.cgpa-badge .cgpa-value {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  margin-right: 8px;
}

.cgpa-badge .cgpa-label {
  font-size: 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* portfolio---------- */
#project {
  padding: 100px 0;
  margin-top: 0;
  background: linear-gradient(180deg, #0a0a0a 0%, rgba(255, 0, 79, 0.02) 100%);
}

#project h1 {
  font-size: 55px;
  font-weight: 800;
  margin-bottom: 60px;
  background: linear-gradient(135deg, #fff, #ff004f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 20px;
}

#project h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ff004f, transparent);
  border-radius: 2px;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 30px;
  margin-top: 50px;
}

.work {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(38, 38, 38, 0.8) 100%);
  border: 1px solid rgba(255, 0, 79, 0.2);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  position: relative;
}

.work::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff004f, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work:hover::before {
  opacity: 1;
}

.work:hover {
  transform: translateY(-12px);
  border-color: rgba(255, 0, 79, 0.6);
  box-shadow: 0 20px 60px rgba(255, 0, 79, 0.22);
}

.work-content {
  padding: 35px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work-header {
  margin-bottom: 20px;
}

.work-header h2 {
  font-size: 26px;
  color: #fff;
  margin: 0 0 10px 0;
  font-weight: 700;
  transition: all 0.3s ease;
}

.work:hover .work-header h2 {
  color: #ff004f;
}

.work-header h3 {
  font-size: 13px;
  color: #ff004f;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.work-description {
  font-size: 15px;
  color: #b0b0b0;
  line-height: 1.7;
  margin: 0 0 25px 0;
  flex: 1;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 0, 79, 0.15), rgba(255, 107, 157, 0.1));
  border: 1px solid rgba(255, 0, 79, 0.35);
  color: #ff9fb2;
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag:hover {
  background: linear-gradient(135deg, rgba(255, 0, 79, 0.3), rgba(255, 107, 157, 0.2));
  border-color: rgba(255, 0, 79, 0.7);
  color: #ff004f;
  transform: translateY(-2px);
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff004f;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  width: fit-content;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.work-link:hover {
  border-bottom-color: #ff004f;
  gap: 14px;
  color: #ff6b9d;
}
/* contact  ------- */
#contact {
  padding: 40px 0 80px 0;
  background: linear-gradient(180deg, #0a0a0a 0%, rgba(255, 0, 79, 0.03) 50%, #0a0a0a 100%);
  margin-top: 0;
}

.touch {
  text-align: center;
  padding: 0;
  margin-bottom: -200px;
  font-size: 18px;
  font-weight: 300;
  color: #ababab;
}

.contact-left {
  flex-basis: 40%;
}

.contact-right {
  flex-basis: 55%;
}

.contact-left h1 {
  font-size: 50px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #ff004f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-left p {
  margin-top: 20px;
  font-size: 16px;
  color: #ababab;
  transition: all 0.3s ease;
}

.contact-left p:hover {
  color: #ff004f;
  padding-left: 10px;
}

.contact-left p i {
  color: #ff004f;
  margin-right: 15px;
  font-size: 20px;
}

.social-icons {
  margin-top: 40px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icons a {
  text-decoration: none;
  font-size: 22px;
  width: 50px;
  height: 50px;
  border: 2px solid #ff004f;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #ff004f;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #ff004f;
  color: #fff;
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(255, 0, 79, 0.3);
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  border: 2px solid #ff004f;
  background: transparent;
  color: #ff004f;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background: #ff004f;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 0, 79, 0.3);
}

.btn.btn2 {
  border-color: #0ef;
  color: #0ef;
}

.btn.btn2:hover {
  background: #0ef;
  border-color: #0ef;
  color: #000;
}

.contact-right form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

form input,
form textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: rgba(38, 38, 38, 0.8);
  border: 1px solid rgba(255, 0, 79, 0.2);
  padding: 16px;
  margin: 15px 0;
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

form input::placeholder,
form textarea::placeholder {
  color: #666;
}

form input:focus,
form textarea:focus {
  background: rgba(38, 38, 38, 1);
  border-color: rgba(255, 0, 79, 0.5);
  box-shadow: 0 0 20px rgba(255, 0, 79, 0.2);
}

form .btn2 {
  padding: 14px 35px;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
  width: fit-content;
  font-weight: 600;
  transition: all 0.3s ease;
}

form .btn2:hover {
  transform: translateY(-3px);
}

.copyright {
  width: 100%;
  text-align: center;
  padding: 30px 0;
  background: rgba(19, 19, 19, 0.8);
  border-top: 1px solid rgba(255, 0, 79, 0.1);
  font-weight: 300;
  margin-top: 40px;
  font-size: 16px;
}

.copyright p span {
  color: #ff004f;
  font-weight: 600;
}

.scroll-up-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  height: 40px;
  width: 40px;
  background: #ff004f;
  border: none;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(255, 0, 79, 0.4);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: 99;
  padding: 0;
}

.scroll-up-button:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(255, 0, 79, 0.5);
  background: #ff6b9d;
}

.scroll-up-button:active {
  transform: translateY(-3px);
}

.scroll-up-button .arrow-up {
  display: none;
}

nav .fa-solid {
  display: none;
  color: #ff004f;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
}

nav .fa-solid:hover {
  color: #fff;
}

/* ---css for small screen----- */
@media only screen and (max-width: 900px) {
  #project .work-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media only screen and (max-width: 600px) {
  nav {
    padding: 12px 5%;
  }

  .l h1 {
    font-size: 22px;
  }

  nav .fa-solid {
    display: block;
  }

  nav ul {
    background: rgba(27, 27, 27, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 79, 0.2);
    position: fixed;
    top: 0;
    right: -150px;
    width: 150px;
    height: 100vh;
    padding-top: 60px;
    z-index: 2;
    transition: right 0.5s;
  }

  nav ul li {
    display: block;
    margin: 20px 0;
    text-align: center;
  }

  nav ul .fa-solid {
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
  }

  .header-row {
    flex-direction: column;
    padding-top: 60px;
  }

  .header-col1 {
    flex-basis: 100%;
    margin-bottom: 30px;
  }

  .header-col1 img {
    width: 280px;
    height: 280px;
    border-radius: 15px;
  }

  .header-col2 {
    flex-basis: 100%;
    padding-left: 0;
    text-align: center;
  }

  .header-text h1 {
    font-size: 40px;
  }

  .header-text h4 {
    font-size: 18px;
  }

  .header-text h3 {
    font-size: 22px;
  }

  .social-icons {
    justify-content: center;
  }

  .sub-title {
    font-size: 36px;
  }

  .about_col_1,
  .about_col_2,
  .about_col_3 {
    flex-basis: 100%;
  }

  .work-list {
    grid-template-columns: 1fr;
  }

  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }

  .contact-left h1 {
    font-size: 32px;
  }

  form input,
  form textarea {
    font-size: 16px;
    padding: 14px;
  }

  .scroll-up-button {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .scroll-up-button .arrow-up {
    display: none;
  }
}
  }

  .touch {
    text-align: center;
    padding: 20px 0 0 0;
    margin-bottom: 0px;
    font-size: 20px;
  }
  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }
  .contact-left {
    margin-top: 22%;
  }
  .contact-left h1 {
    font-size: 40px;
  }
  .contact-left p {
    font-size: 18px;
  }
  .contact-left p i {
    color: #0ef;
    margin-right: 1px;
    font-size: 18px;
  }

  .copyright {
    width: 100%;
    font-size: 14px;
  }
}
