/* General Styles */
* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background: #080808;
  color: #fff;
  font-family: 'Open Sans', sans-serif; 
  overflow-x: hidden;
}

.container {
  padding: 10px 10%;
}

/* Header Section */
#header {
  width: 100%;
  height: 100vh;
  background-image: url(./images/my\ photo.png);
  background-size: cover;
  background-position: center;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 0;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}

.logo .j {
  color: #ff004f;
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

.logo .j:hover {
  transform: rotate(360deg);
}

.logo .rest {
  color: #fff;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
}

nav ul li a::after {
  content: '';
  width: 0;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: width 0.5s;
}

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

.header-text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

.header-text p {
  font-size: 1.5rem;
  color: #ff004f;
  animation: slideIn 1s ease-in-out;
}

.header-text h1 {
  font-size: 3rem;
  margin-top: 20px;
}

.header-text h1 span {
  color: #ff004f;
}

/* About Section */
#about {
  padding: 80px 0;
}

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

.about-col-1 {
  flex-basis: 35%;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease, transform 1s ease;
}

.about-col-1.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-col-1 img {
  width: 100%;
  border-radius: 15px;
  transition: transform 0.5s ease;
}

.about-col-1 img:hover {
  transform: scale(1.05);
}

.about-col-2 {
  flex-basis: 60%;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.about-col-2.visible {
  opacity: 1;
  transform: translateX(0);
}

.sub-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #ff004f;
  margin-bottom: 40px; 
}

.tab-titles {
  display: flex;
  margin: 20px 0 40px;
}

.tab-links {
  margin-right: 50px;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.tab-links::after {
  content: '';
  width: 0;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: width 0.5s;
}

.tab-links.active-link::after {
  width: 100%;
}

.tab-contents ul li {
  list-style: none;
  margin: 10px 0;
}

.tab-contents ul li span {
  color: #ff004f;
  font-size: 1.1rem;
  font-weight: 500;
}

.tab-contents {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.tab-contents.active-tab {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Frameworks & Tools Section */
#frameworks {
  padding: 80px 0;
}

.frameworks-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.frameworks-list div {
  flex-basis: calc(33.33% - 20px);
  background: #262626;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.5s ease;
  opacity: 0;
  transform: translateY(50px);
}

.frameworks-list div.visible {
  opacity: 1;
  transform: translateY(0);
}

.frameworks-list div:hover {
  transform: translateY(-10px);
}

.frameworks-list div i {
  font-size: 3rem;
  color: #ff004f;
  margin-bottom: 15px;
}

.frameworks-list div h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.frameworks-list div p {
  font-size: 1rem;
  color: #ccc;
}

/* Portfolio Section */
#portfolio {
  padding: 80px 0;
}

.work-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.work {
  flex-basis: calc(33.33% - 20px);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.work.visible {
  opacity: 1;
  transform: translateY(0);
}

.work img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.work:hover img {
  transform: scale(1.1);
}

.layer {
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), #ff004f);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.layer h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.layer a {
  color: #fff;
  font-size: 1.2rem;
}

/* Testimonials Section */
#testimonials {
  padding: 80px 0;
}

.testimonials-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.testimonial {
  flex-basis: calc(50% - 20px);
  background: #262626;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  transition: transform 0.5s ease;
  opacity: 0;
  transform: translateY(50px);
}

.testimonial.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial:hover {
  transform: translateY(-10px);
}

.testimonial img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 20px;
}

.testimonial-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.testimonial-text p {
  font-size: 0.9rem;
  color: #ccc;
}

/* Contact Section */
#contact {
  padding: 80px 0;
}

.contact-left {
  flex-basis: 35%;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease, transform 1s ease;
}

.contact-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-right {
  flex-basis: 60%;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.contact-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-left p {
  margin-top: 20px;
}

.contact-left p i {
  color: #ff004f;
  margin-right: 10px;
}

.social-icons {
  margin-top: 20px;
}

.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  margin-right: 15px;
  transition: color 0.5s ease;
}

.social-icons a:hover {
  color: #ff004f;
}

.contact-right form {
  width: 100%;
}

form input,
form textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: #262626;
  padding: 15px;
  margin: 15px 0;
  color: #fff;
  font-size: 1rem;
  border-radius: 6px;
}

a.btn {
  text-decoration: none;
  background: #ff004f;
  color: #fff;
  border-radius: 6px;
  padding: 15px 30px;
  transition: background 0.5s ease;
  position: fixed;
  bottom: 20px;
  /* right: 20px;
  z-index: 1000; */
}

form button {
  padding: 15px 30px;
  background: #ff004f;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.5s ease;
}

form button:hover {
  background: #e60046;
}

.copy-right {
  text-align: center;
  margin-top: 50px;
  padding: 50px 0;
  background: #262626;
}

.copy-right p {
  font-size: 0.9rem;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
  /* Header Section */
  nav ul {
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    background: #262626;
    flex-direction: column;
    transition: right 0.5s ease;
    z-index: 2;
  }

  #header {
    width: 100%;
    height: 100vh;
    background-image: url(images/R.jpeg);
    background-repeat: no-repeat;
    background-size: 968px;
    background-position: center;
  }

  nav ul li {
    margin: 15px 0;
  }

  nav ul li a {
    font-size: 1.2rem;
    padding-left: 10px;
  }

  i.fas {
    font-size: 1.5rem;
  }

  nav ul i.fas {
    position: absolute;
    top: 10px;
    left: 170px;
    cursor: pointer;
  }

  .fa-bars {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .fa-times {
    display: none;
    position: relative;
  }
  .yellow-text{
    color: #F7DC6F;
  }

  /* Show the menu when toggled */
  nav ul.active {
    right: 0;
  }

  /* Header Text */
  .header-text {
    left: 5%;
  }

  .header-text h1 {
    font-size: 2.5rem;
  }

  .header-text p {
    font-size: 1.2rem;
  }

  /* About Section */
  .row {
    flex-direction: column;
  }

  .about-col-1,
  .about-col-2 {
    flex-basis: 100%;
  }

  .about-col-1 img {
    margin-bottom: 30px;
  }

  /* Frameworks & Tools Section */
  .frameworks-list div {
    flex-basis: calc(50% - 20px);
  }

  /* Portfolio Section */
  .work {
    flex-basis: calc(50% - 20px);
  }

  /* Testimonials Section */
  .testimonial {
    flex-basis: 100%;
  }

  a.btn {
    text-decoration: none;
    background: #ff004f;
    color: #fff;
    border-radius: 6px;
    padding: 15px 30px;
    transition: background 0.5s ease;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }

  /* Contact Section */
  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }

  .contact-right form {
    margin-top: 30px;
  }
}

@media only screen and (max-width: 480px) {
  /* Header Text */
  .header-text h1 {
    font-size: 2rem;
  }

  .header-text p {
    font-size: 1rem;
  }

  /* About Section */
  .sub-title {
    font-size: 2rem;
  }

  .tab-links {
    font-size: 1rem;
    margin-right: 20px;
  }

  .tab-contents ul li span {
    font-size: 1rem;
  }
  

  /* Frameworks & Tools Section */
  .frameworks-list div {
    flex-basis: 100%;
  }

  /* Portfolio Section */
  .work {
    flex-basis: 100%;
  }

  /* Testimonials Section */
  .testimonial {
    flex-basis: 100%;
  }

  /* Contact Section */
  .contact-left p {
    font-size: 0.9rem;
  }

  .social-icons a {
    font-size: 1.2rem;
  }
}

/* Toast Message Css */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #4caf50;
  color: white;
  text-align: center;
  border-radius: 5px;
  padding: 16px;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 17px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.toast.show {
  visibility: visible;
  opacity: 1;
}