:root {
  --theme-color: #273d6d;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #333;
  line-height: 1;
}

/* ===== goto Top button ===== */
.go-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #88868698;
  color: #fff;
  padding: 10px 15px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.go-top:hover {
  opacity: 1;
  transform: scale(1.1);
}

.go-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.go-top.show {
  opacity: 0.8;
  pointer-events: auto;
}

html {
  scroll-behavior: smooth;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: var(--theme-color);
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
}

.nav-links a:hover {
  color: #00bcd4;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(35%);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* ===== HERO CONTENT ===== */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  padding: 0 40px;
  animation: fadeIn 1s ease forwards;
}

/* Image on left */
.hero-left img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeSlideInLeft 1.5s ease forwards;
}

/* Text on right */
.hero-right {
  text-align: left;
  opacity: 0;
  transform: translateX(40px);
  animation: fadeSlideInRight 1.5s ease forwards;
  animation-delay: 0.3s;
}

.hero-right h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.hero-right p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero-right span {
  color: #8afe7b;
}

/* Buttons */
.hero .btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px 5px;
  background: #8afe7b;
  color: var(--theme-color);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.hero .btn:hover {
  background: var(--theme-color);
  color: #8afe7b;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideInRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  background: #f9fafc;
  padding: 80px 20px;
  text-align: center;
}

.about h2 {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.about h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--theme-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.about-content img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--theme-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-content img:hover {
  transform: scale(1.05);
}

.about-content .text {
  flex: 1 1 400px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

.about-content .text p {
  margin-bottom: 15px;
}

/* ===== SKILLS SECTION ===== */
.skills {
  background: #fff;
  padding: 80px 20px;
  text-align: center;
}

.skills h2 {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.skills h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--theme-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.skills-grid div {
  background: #f5f6ff;
  border-radius: 10px;
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.skills-grid div:hover {
  background: var(--theme-color);
  color: #fff;
  transform: translateY(-5px);
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
  background: #f9fafc;
  padding: 80px 20px;
  text-align: center;
}

.experience h2 {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.experience h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--theme-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ===== EXPERIENCE TABLE ===== */
.experience-grid table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.experience-grid thead th {
  background: var(--theme-color);
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
}

.experience-grid tbody td {
  padding: 14px 16px;
  font-size: 15px;
  color: #333;
  border: 1px solid #e5e5e5;
  vertical-align: top;
}

.experience-grid tbody tr:last-child td {
  border-bottom: 1px solid var(--theme-color);
}

.experience-grid tbody tr:hover {
  background: rgba(0, 20, 199, 0.05);
  transition: 0.2s;
}

.experience-grid tbody td:nth-child(3) {
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
}

.experience-grid tbody td:first-child {
  font-weight: 600;
}

.experience-grid tbody td:nth-child(2) {
  line-height: 1.5;
}

/* RESPONSIVE EXPERIENCE TABLE */
@media (max-width: 768px) {

  .experience-grid table,
  .experience-grid thead,
  .experience-grid tbody,
  .experience-grid th,
  .experience-grid td,
  .experience-grid tr {
    display: block;
    width: 100%;
  }

  .experience-grid thead {
    display: none;
  }

  .experience-grid tbody tr {
    margin-bottom: 18px;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .experience-grid tbody td {
    border: none;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
  }

  .experience-grid tbody td:before {
    content: attr(data-label);
    font-weight: 700;
    color: #555;
  }

  .experience-grid tbody td:nth-child(3) {
    text-align: right;
  }
}

/* EXPERIENCE CARD */
.experience-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 10px;
}

.exp-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: transform .2s ease;
  line-height: 1.5;
}

.exp-card:hover {
  transform: translateY(-5px);
  background: #f9fafc;
}

.exp-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--theme-color);
}

.profile {
  margin-bottom: 15px;
  line-height: 1.5;
}

.duration {
  font-weight: bold;
  color: #111;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  background: #fff;
  padding: 80px 20px;
  text-align: center;
}

.projects h2 {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.projects h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--theme-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  border: 1px solid hsla(0, 23%, 95%, 0.904);
  background: #f5f6ff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  /* transform: translateY(-8px); */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.274);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card .project-info {
  padding: 20px;
  text-align: left;
}

.project-card h3 {
  color: var(--theme-color);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.project-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.project-card a {
  display: inline-block;
  color: #fff;
  background: var(--theme-color);
  padding: 8px 18px;
  margin-bottom: 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  /* transition: background 0.3s ease; */
}

.project-card a:hover {
  background: #8afe7b;
  color: var(--theme-color);
  font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: #f9fafc;
  padding: 80px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.contact h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--theme-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Contact container */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

/* Contact info box */
.contact-info {
  flex: 1 1 300px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.contact-info h3 {
  color: var(--theme-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.contact-info p {
  color: #444;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--theme-color);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #2918a8;
}

/* Contact form */
.contact-form {
  flex: 1 1 350px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.contact-form label {
  display: block;
  color: #333;
  font-weight: 500;
  margin-bottom: 6px;
}

.required {
  color: rgb(216, 7, 7);
  font-weight: bold;
}


.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--theme-color);
}



.contact-form button {
  background: var(--theme-color);
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #8afe7b;
  color: var(--theme-color);
}

/* ===== FOOTER ===== */
footer {
  background: var(--theme-color);
  text-align: center;
  padding: 10px;
}

footer p {
  font-size: 0.9rem;
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .hero-left img {
    width: 200px;
    height: 200px;
  }

  .hero-right {
    text-align: center;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-content img {
    width: 200px;
    height: 200px;
  }

  .about-content .text {
    text-align: center;
  }

  .contact-container {
    flex-direction: column;
     gap: 20px;
    align-items: center;
     width: 100%;
    overflow-x: hidden;
  }

  .contact-info,
  .contact-form {
    flex: 1 1 100%;
    width: 100%;
  
    padding: 25px;
     box-sizing: border-box;
  }
}