@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: #0d0d0d;
  color: white;
  margin: 0;
  padding: 0;
}

/* Header Section */
#header-text {
  position: relative;
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 2px;
  padding-top: 40px;
}

/* Light faded background text */
#header-text::before {
  content: "RESUME";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5.5rem;
  font-weight: 900;
  letter-spacing: 10px;
  color: rgba(255, 255, 255, 0.07);
  text-transform: uppercase;
  z-index: -1;
}

/* Highlighted text */
.highlight {
  color: #ffc107;
  font-weight: 800;
  text-shadow: 2px 2px 10px rgba(255, 215, 0, 0.5);
}

/* Resume Container */
.resume-container {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
  padding: 50px 10%;
  flex-wrap: wrap; /* Ensures content adjusts on smaller screens */
}

/* Personal Info */
.personal-info {
  text-align: left;
  width: 45%;
  padding: 25px;
  border-radius: 12px;
}

/* Personal Info Header */
.personal-info h3 {
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 24px;
  color: #ffc107;
}

/* Grid Layout for Information */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.personal-info p {
  margin: 5px 0;
  font-size: 16px;
  color: #f3f3f3;
}

.available {
  color: #ffcc00;
  font-weight: 600;
}

a {
  color: #ffc107;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: #ffcc00c7;
}

/* Download Button */
.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: transparent;
  color: white;
  border: 2px solid #ffc107;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: 600;
  transition: 0.3s ease;
}

.download-btn i {
  margin-left: 8px;
}

.download-btn:hover {
  background: #ffc107;
  color: #0d0d0d;
}

/* Responsive Design for header section*/

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  #header-text {
    font-size: 3rem;
  }

  #header-text::before {
    font-size: 4.5rem;
    letter-spacing: 5px;
  }

  .resume-container {
    padding: 40px 5%;
    gap: 30px;
  }

  .personal-info {
    width: 100%; /* Full width for better fit */
    text-align: center;
    padding: 20px;
  }

  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }

  .download-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Mobile Phones (max-width: 768px) */
@media (max-width: 768px) {
  #header-text {
    font-size: 2.5rem;
  }

  #header-text::before {
    font-size: 4rem;
    letter-spacing: 3px;
  }

  .resume-container {
    flex-direction: column; /* Stack content vertically */
    align-items: center;
    padding: 30px 5%;
    text-align: center;
  }

  .personal-info {
    width: 100%;
    text-align: center;
  }

  .info-grid {
    grid-template-columns: 1fr; /* Single column for better readability */
  }

  .download-btn {
    font-size: 13px;
    padding: 8px 18px;
  }
}

/* Very Small Screens (max-width: 480px) */
@media (max-width: 480px) {
  #header-text {
    font-size: 2rem;
  }

  #header-text::before {
    font-size: 3.5rem;
    letter-spacing: 2px;
  }

  .resume-container {
    padding: 20px 5%;
  }

  .personal-info h3 {
    font-size: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .download-btn {
    font-size: 12px;
    padding: 7px 14px;
  }
}

/* Stats Section */
.stats {
  display: flex;
  width: 50%;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px; /* Adds spacing between items */
}

/* Stat Box */
.stat-box {
  background: #1a1a1a;
  padding: 20px;
  width: 45%;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
  transition: 0.3s ease;
}

.stat-box h2 {
  font-size: 38px;
  color: #ffc107;
  transition: 0.3s ease;
}
.stat-box p {
  color: #f3f3f3;
}
.stat-box sup {
  font-size: 20px;
}

/* Responsive  for stat-box */
@media (max-width: 1024px) {
  .stats {
    width: 80%;
  }

  .stat-box {
    width: 48%;
  }

  .stat-box h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .stats {
    width: 90%;
    justify-content: center;
  }

  .stat-box {
    width: 100%;
    padding: 15px;
  }

  .stat-box h2 {
    font-size: 28px;
  }

  .stat-box sup {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .stats {
    width: 100%;
  }

  .stat-box {
    padding: 12px;
  }

  .stat-box h2 {
    font-size: 24px;
  }

  .stat-box p {
    font-size: 14px;
  }
}

/* Skills Section */
.skills-section {
  text-align: center;
  padding: 40px 20px;
}

/* Section Title */
.section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #ffc107;
  margin: 5px auto 0;
}

/* Skills Container */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1000px;
  margin: auto;
}

/* Skill Card */
.skill-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card i {
  font-size: 40px;
  color: #ebe4e4;
  margin-bottom: 10px;
}

.skill-card h3 {
  font-size: 18px;
  color: #ffc107;
}

.skill-card p {
  font-size: 14px;
  color: #f3f3f3;
}
/* Responsive for skills section*/
@media (max-width: 1024px) {
  .skills-container {
    max-width: 90%;
  }

  .skill-card {
    padding: 18px;
  }

  .skill-card h3 {
    font-size: 17px;
  }

  .skill-card p {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .skill-card {
    padding: 15px;
  }

  .skill-card i {
    font-size: 35px;
  }

  .skill-card h3 {
    font-size: 16px;
  }

  .skill-card p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .skill-card {
    padding: 12px;
  }

  .skill-card i {
    font-size: 30px;
  }

  .skill-card h3 {
    font-size: 15px;
  }

  .skill-card p {
    font-size: 11px;
  }
}

/* experience and education section */
.timeline-header {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 90px;
}
.timeline-header::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background-color: #ffc107;
  margin: 5px auto 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 15px 150px;
  padding: 20px;
}

.timeline-item {
  position: relative;
  padding: 20px;
  border-radius: 8px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 75%;
  background: rgba(255, 255, 255, 0.26);
}

.icon-container {
  position: absolute;
  left: -20px;
  width: 40px;
  height: 40px;
  background: #fcaf02;
  color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.date {
  display: inline-block;
  background: #333;
  color: #ddd;
  padding: 8px 9px;
  border-radius: 50px;
  margin-left: 15px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.title {
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  margin-left: 18px;
  text-transform: uppercase;
}

.company {
  color: #aaa;
  margin-left: 18px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
}

.description {
  font-size: 14px;
  margin-left: 18px;
  color: #ccc;
  margin-top: 5px;
}

/* Responsive for experience and education section*/
@media (max-width: 480px) {
  .timeline {
    grid-template-columns: 1fr; /* Single column for small screens */
    margin: 5px 20px; /* Reduce margin */
  }

  .timeline-item {
    padding: 15px;
  }

  .icon-container {
    left: -15px;
    width: 35px;
    height: 35px;
  }

  .date {
    font-size: 10px;
    padding: 6px 8px;
  }

  .title {
    font-size: 16px;
  }

  .company {
    font-size: 12px;
  }

  .description {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .timeline {
    grid-template-columns: 1fr;
    margin: 5px 40px;
  }

  .timeline-item {
    padding: 18px;
  }

  .icon-container {
    left: -18px;
    width: 38px;
    height: 38px;
  }

  .date {
    font-size: 11px;
    padding: 7px 9px;
  }

  .title {
    font-size: 17px;
  }

  .company {
    font-size: 13px;
  }

  .description {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .timeline {
    grid-template-columns: 1fr;
    margin: 5px 60px;
  }

  .timeline-item {
    padding: 20px;
  }

  .icon-container {
    left: -20px;
    width: 40px;
    height: 40px;
  }

  .date {
    font-size: 12px;
    padding: 8px 10px;
  }

  .title {
    font-size: 18px;
  }

  .company {
    font-size: 14px;
  }

  .description {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .timeline-item {
    padding: 20px;
  }

  .icon-container {
    left: -20px;
    width: 40px;
    height: 40px;
  }

  .date {
    font-size: 12px;
    padding: 8px 10px;
  }

  .title {
    font-size: 18px;
  }

  .company {
    font-size: 14px;
  }

  .description {
    font-size: 15px;
  }
}
/* certificates section*/
.certificates {
  text-align: center;
  margin-top: 40px;
  padding: 40px 20px;
}

.certi-title {
  font-size: 24px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

.certi-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background-color: #ffc107;
  margin: 5px auto 0;
}

.cert-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 40px 20px;
}

.cert-item {
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  background: #1c1c1c; /* Background for contrast */
  color: #ffffff;
  transition: transform 0.3s ease-in-out;
}

.cert-item:hover {
  transform: translateY(-5px);
}

.cert-item i {
  font-size: 40px;
  color: #ebe4e4;
  margin-bottom: 10px;
}

.cert-item h3 {
  color: #ffc107;
}

.cert-btn {
  display: inline-block;
  padding: 10px 16px;
  background: #ffc507c7;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
  transition: all 0.3s ease-in-out;
}

.cert-btn:hover {
  background: #e0a800;
  color: #000000d3;
}
/* Responsive for certificates section*/
@media (max-width: 1024px) {
  .certi-title {
    font-size: 22px;
  }

  .cert-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .cert-item {
    padding: 15px;
  }

  .cert-item i {
    font-size: 35px;
  }

  .cert-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .certi-title {
    font-size: 20px;
  }

  .cert-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
  }

  .cert-item {
    padding: 12px;
  }

  .cert-item i {
    font-size: 32px;
  }

  .cert-btn {
    padding: 7px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .certi-title {
    font-size: 18px;
  }

  .cert-container {
    grid-template-columns: 1fr;
  }

  .cert-item {
    padding: 10px;
  }

  .cert-item i {
    font-size: 28px;
  }

  .cert-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}
/* to-top */
.to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #fcaf02;
  color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  transition: background-color 0.3s ease;
}

.to-top:hover {
  color: #ebe4e473;
}
/* Responsive for to top button*/
@media (max-width: 768px) {
  .to-top {
    width: 35px;
    height: 35px;
    font-size: 20px;
    bottom: 15px;
    right: 15px;
  }
}
@media (max-width: 480px) {
  .to-top {
    width: 30px;
    height: 30px;
    font-size: 18px;
    bottom: 10px;
    right: 10px;
  }
}
