:root {
  /* --primary: #3dcfd3; */
  --primary: #2a9d8f;
  --secondary: #ffffff;
  /* --tertiory: #264653; */
  --tertiory: #1f3a93;
  --dark: #242424;
  --grey: #565656;
  --yellow: #e7c950;
  --orange: #ff6b35;
  --brick: #e76f51;
  --disabled: #808080;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: var(--dark);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

section {
  /* height: 100vh; */
}

.btn {
  padding: 10px 20px;
  font-size: 16px;
  outline: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background-color: var(--tertiory);
  padding: 0px 64px;
  height: 80px;
}

nav .left img {
  padding: 8px;
  width: 48px;
}

nav .right a {
  text-decoration: none;
  color: var(--secondary);
  margin: 0px 12px;
  font-size: 1rem;
  font-weight: 400;
  transition: color ease-in 0.2s;
}

nav .right a:hover {
  color: var(--yellow);
  border-bottom: 1px solid var(--yellow);
}

nav .right a[href="#contact1"]:hover {
  border-bottom: none;
}

nav .right button {
  background-color: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
}

nav .right button:hover {
  color: var(--secondary);
  background-color: var(--yellow);
}

/* ----------------------------------------Home section ---------*/

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 6rem;
  background-color: var(--secondary);
  color: var(--secondary);
  height: 700px;
  /* clip-path: polygon(0px 0px, 100% 0px, 100% 100%, 22% 92%, 0px 100%); */
  background: linear-gradient(135deg, #516ef124 0%, #ffffff 100%);
}

.home .right {
  flex: 1;
  text-align: center;
  /* background-color: #e9c46a; */
  overflow: hidden;
}

.home .right img {
  height: 100%;
  object-fit: cover;
}

.home .left {
  flex: 1;
  width: 100%;
}

.home .left h2 {
  margin-bottom: 4px;
  color: var(--tertiory);
  font-size: 2.5rem;
  font-weight: 600;
}

.home .left h3 {
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.home .left h3 span {
  color: var(--yellow);
}

.home .left p {
  margin-top: 14px;
  color: var(--grey);
  margin: 16px 0px;
  text-align: justify;
}

.home .left button {
  background-color: var(--yellow);
  color: var(--secondary);
  border: 2px solid var(--yellow);
  margin-top: 24px;
}

.home .left button:hover {
  background-color: var(--secondary);
  color: var(--yellow);
}

/* ------------------------------------------------------------Experience section starts here*/
.experience {
  background-color: #26465324;
  background-size: cover;
  padding: 6rem;
  padding-bottom: 0rem;
  position: relative;
  overflow: hidden;
}

.experience .heading h2 {
  font-size: 2.4rem;
  font-weight: 500;
  border-bottom: 2px solid;
  color: var(--secondary);
  letter-spacing: 1.5pt;
  margin-bottom: 3rem;
  text-align: left;
}

.experience .cards__container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.experience .cards__container::before {
  content: "";
  position: absolute;
  width: 6px;
  background: linear-gradient(var(--yellow), var(--tertiory));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.experience .cards__container .card {
  padding: 20px 30px;
  position: relative;
  background: var(--secondary);
  width: calc(50% - 40px);
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.experience .cards__container .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Position cards on left and right */
.experience .cards__container .card:nth-child(odd) {
  left: 0;
  animation: slideInLeft 0.6s ease-out;
}

.experience .cards__container .card:nth-child(even) {
  left: 50%;
  animation: slideInRight 0.6s ease-out;
}

/* Arrow pointers for cards */
.experience .cards__container .card::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  top: 28px;
  transform: rotate(45deg);
  box-shadow: 2px -2px 8px rgba(0, 0, 0, 0.05);
}

.experience .cards__container .card:nth-child(odd)::before {
  right: -10px;
}

.experience .cards__container .card:nth-child(even)::before {
  left: -10px;
}

/* Timeline dots */
.experience .cards__container .card::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--yellow);
  border: 4px solid var(--tertiory);
  border-radius: 50%;
  top: 26px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.experience .cards__container .card:nth-child(odd)::after {
  right: -52px;
}

.experience .cards__container .card:nth-child(even)::after {
  left: -52px;
}

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

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

@media (max-width: 768px) {
  .experience {
    padding: 4rem;
    padding-bottom: 0rem;
  }
  .experience .cards__container::before {
    left: 30px;
  }
  .experience .cards__container .card {
    width: calc(100% - 60px);
    margin-left: 60px;
  }
  .experience .cards__container .card:nth-child(even),
  .experience .cards__container .card:nth-child(odd) {
    left: 0;
  }
  .experience .cards__container .card::before {
    left: -10px;
  }
  .experience .cards__container .card::after {
    left: -52px;
  }
}

@media (max-width: 448px) {
  .experience {
    padding: 2rem;
    padding-bottom: 0rem;
  }
}

/*--------------------------------------------------------------contact me starts here!*/
/* .contact-me {
  max-width: 1024px;
  padding: 6rem;
  margin: 0 auto;
}

.contact-me .heading {
  text-align: center;
  margin-bottom: 24px;
}

.contact-me .heading h2 {
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--dark);
  text-transform: capitalize;
  letter-spacing: 2px;
}

.contact-me .heading p {
  color: var(--grey);
  font-size: 1rem;
}
.contact-form {
  text-align: center;
}

.contact-form .container input,
.contact-form .container textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--grey);
  font-family: inherit;
  font-weight: 500;
  outline-color: var(--tertiory);
  padding: 16px;
  margin-bottom: 12px;
}

.contact-form .container input {
  height: 40px;
}

input[disabled],
textarea[disabled] {
  cursor: not-allowed;
}

.contact-form button {
  background-color: var(--yellow);
  color: var(--secondary);
  border: 2px solid var(--yellow);
  margin-top: 12px;
}

.button-wrapper {
  cursor: not-allowed;
}

button[disabled] {
  background-color: var(--disabled);
  pointer-events: none;
  border: none;
}

.contact-form button:hover {
  color: var(--yellow);
  background-color: var(--secondary);
}

.contact-form button */

/* Scoped Contact Section Styles - Safe to add to your existing CSS */

.rj-contact-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #26465324 0%, #c4d0f6 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rj-contact-wrapper {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.rj-contact-header {
  text-align: center;
  margin-bottom: 50px;
  color: white;
}

.rj-contact-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.rj-contact-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.rj-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.rj-contact-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rj-contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.rj-contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.rj-contact-card:hover::before {
  transform: scaleX(1);
}

.rj-contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.rj-contact-card:hover .rj-contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.rj-contact-icon svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.rj-contact-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rj-contact-info {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
  word-break: break-word;
}

.rj-contact-link {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.rj-contact-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

.rj-social-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.rj-social-section h3 {
  color: #333;
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.rj-social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.rj-social-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.rj-social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.rj-social-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

@media (max-width: 768px) {
  .rj-contact-section {
    padding: 40px 15px;
  }

  .rj-contact-header h2 {
    font-size: 2rem;
  }

  .rj-contact-grid {
    grid-template-columns: 1fr;
  }

  .rj-social-section {
    padding: 30px 20px;
  }
}

/* ---------------------------------------------------------Education */
.education {
  background-color: var(--tertiory);
  padding: 6rem;
}

.education .heading h2 {
  font-size: 2.4rem;
  font-weight: 500;
  border-bottom: 2px solid;
  color: var(--secondary);
  letter-spacing: 1.5pt;
  margin-bottom: 3rem;
  text-align: left;
}

.education .cards__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.education .cards__container .card {
  background-color: var(--secondary);
  min-height: 400px;
  border-radius: 8px;
  padding: 1rem;
}

.education .cards__container .card img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.education .cards__container .card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 1rem;
}

.education .cards__container .card h3 span {
  font-size: 20px;
  color: var(--dark);
}

.education .cards__container .card p {
  font-size: 1rem;
  color: #264653;
  margin: 20px 0px;
}

.education .cards__container .card h4 {
  font-size: 0.8rem;
  font-weight: 500;
  color: #264653;
  text-align: right;
}

/* --------------------------------------------------------------------certificates */

.certificates {
  background-color: #26465324;
  background-size: cover;
  padding: 6rem;
  background: linear-gradient(135deg, #26465324 0%, #c4d0f6 100%);
}

.certificates .heading h2 {
  font-size: 2.4rem;
  font-weight: 500;
  border-bottom: 2px solid;
  color: var(--dark);
  letter-spacing: 1.5pt;
  margin-bottom: 3rem;
}

.certificates .cards__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.certificates .cards__container .card img {
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cards__container .card {
  position: relative;
}

.certificates .cards__container .card .title {
  content: "Hello";
  position: absolute;
  bottom: 0;
  left: 0;
  color: white;
  background-color: var(--dark);
  opacity: 80%;
  width: 100%;
  padding: 0.8rem;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-sizing: border-box;
}

/* ---------------------------------------------------skills starts here */
.skills {
  background-color: var(--tertiory);
  padding: 6rem;
}

.skills .heading h2 {
  font-size: 2.4rem;
  font-weight: 500;
  border-bottom: 2px solid;
  color: var(--secondary);
  letter-spacing: 1.5pt;
  margin-bottom: 3rem;
}

.skills .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
}

.skills .container .skill__card {
  background-color: rgb(244, 236, 236);
  padding: 0.6rem;
  border-radius: 4px;
}

.skills .container .skill__card img {
  width: 80px;
  height: 80px;
}

.skills .container .skill__card progress {
  width: 90px;
  height: 12px;
  margin-top: 8px;
}

.text-center {
  text-align: center;
}

/* footer section */

.copyright {
  color: rgb(185, 184, 184);
  margin-top: 1rem;
}

footer {
  text-align: center;
  background-color: var(--tertiory);
  padding: 3rem;
}

/* add @media for responsiveness */
@media screen and (max-width: 972px) {
  .home {
    flex-direction: column-reverse;

    height: auto;
  }
}

@media screen and (max-width: 768px) {
  nav .right a[href="#home1"],
  nav .right a[href="#education1"],
  nav .right a[href="#certificate1"],
  nav .right a[href="#skill1"] {
    display: none;
  }

  section.home,
  section.education,
  section.certificates,
  section.skills,
  section.contact-me {
    padding: 4rem;
  }
}

@media screen and (max-width: 448px) {
  section.home,
  section.education,
  section.certificates,
  section.skills,
  section.contact-me {
    padding: 2rem;
  }

  .right img {
    width: 100%;
  }

  nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
