* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Verdana", sans-serif;
}
:root {
  --bg-color: #f5f5f5;
  --second-bg-color: #ffffff;
  --text-color: #333333;
  --main-color: #4ecdc4;
  --accent-color: #45b7aa;
  --shadow-color: rgba(78, 205, 196, 0.3);
}

html {
  font-size: 60%;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.5s, color 0.5s;
}
.darkmode {
  --bg-color: #070b1d;
  --text-color: #ffffff;
  --link-color: #89b4f8;
}
.darkmode .your-container {
  background-color: #525252;
}
#theme-toggle {
  height: 30px;
  width: 30px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--main-color);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 15px;
  right: 20px;
  cursor: pointer;
}
#theme-toggle svg {
  fill: var(--text-color);
}
#theme-toggle svg:last-child {
  display: none;
}
.darkmode #theme-toggle svg:first-child {
  display: none;
}
.darkmode #theme-toggle svg:last-child {
  display: block;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 7% 1.5rem;
  background-color: var(--bg-color);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}
.logo {
  font-size: 3rem;
  font-weight: 800;
  color: var(--main-color);
  cursor: pointer;
  transition: 0.5s ease;
}
.logo:hover {
  transform: scale(1.1);
}
.logo span {
  text-shadow: 0 0 25px var(--main-color);
}
.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 3rem;
  font-weight: 500;
  transition: 0.5s ease;
  border-bottom: 3px solid transparent;
}
.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}
#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
  cursor: pointer;
}

section {
  min-height: 100vh;
  padding: 10rem 12% 10rem;
}

/* Home */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
}
.home img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
}
.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  margin-top: 3rem;
}
span {
  color: var(--main-color);
}
.logo span {
  color: var(--main-color);
}
.home-content h3 {
  margin-bottom: 3rem;
  margin-top: 4rem;
  font-size: 4.5rem;
}
.home-content h1 {
  color: var(--main-color);
  font-size: 7rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}

.home-content p {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.8;
  max-width: 1000px;
  justify-content: space-between;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background: transparent;
  border: 2px solid var(--main-color);
  font-size: 2.5rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease-in-out;
}
.social-icons a:hover {
  color: var(--text-color);
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1.5rem 2.8rem;
  margin-top: 15px;
  background: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: white;
  border: 2px solid transparent;
  letter-spacing: 0.2rem;
  font-weight: 600;
  transition: 0.3 ease-in-out;
  cursor: pointer;
}
.btn:hover {
  transform: scale(0.95);
  box-shadow: 0 0 25px var(--main-color);
}
.btn-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.btn-group a:nth-of-type(2) {
  background-color: white;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(2):hover {
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
  color: white;
}
.text-animation {
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}
.text-animation span {
  position: relative;
}
.text-animation span::before {
  content: "Software Engineering";
  color: #fd9903;
  animation: words 20s infinite;
}
.text-animation span::after {
  content: "";
  background-color: var(--bg-color);
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}
@keyframes cursor {
  to {
    border-left: 2px solid #fd9903;
  }
}
@keyframes words {
  20% {
    content: "UI/UX Designer";
  }
  40% {
    content: "Game Developer";
  }
  60% {
    content: "Full Stack Developer";
  }
  80% {
    content: "Java Developer";
  }
  100% {
    content: "Software Engineer";
  }
}
@keyframes typing {
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }
  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 8px);
  }
}

.heading {
  font-size: 8rem;
  text-align: center;
  margin: 5rem 0;
}

/* About */
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15rem;
  padding: 60px 20px;
  background: var(--bg-color);
}

.profile {
  text-align: center;
}

.profile {
  display: flex;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.profile img {
  width: 450px;
  height: 450px;
  border: 1px solid #22e2d3;
  border-radius: 60%;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px #22e2d3;
}
.about-text {
  max-width: 700px;
  margin-left: 50px;
  animation: fadeIn 1.2s ease;
}

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

.about-text h2 {
  color: var(--text-color);
  border-bottom: 3px solid var(--main-color);
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 3rem;
  margin-top: 4rem;
  font-size: 4.5rem;
}

.about-text p {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.8;
  max-width: 1000px;
}

.about-contact {
  margin-top: 10px;
}

.about-contact p {
  margin: 6px 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.profile img:hover {
  transform: scale(1.05);
}

/* Section Appear Animation */
.section-appear {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Hobbies */
.hobbies {
  background: var(--bg-color);
  padding: 40px 20px;
  text-align: center;
}

.hobbies h2 {
  padding-bottom: 5px;
  margin-bottom: 3rem;
  margin-top: 4rem;
  font-size: 4.5rem;
}

.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hobby-card {
  background: var(--bg-color);
  border-radius: 15px;
  box-shadow: 0 4px 8px var(--shadow-color);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
  cursor: pointer;
}

.hobby-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 8px 16px var(--shadow-color);
}

.hobby-icon {
  font-size: 4rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.hobby-card h3 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.hobby-card p {
  font-size: 1.6rem;
  color: var(--text-color);
  line-height: 1.6;
}

.hobby-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Career */
.career {
  padding: 100px 15px;
  background: var(--bg-color);
}
.career h2 {
  margin-bottom: 6rem;
  margin-top: 4rem;
  font-size: 4.5rem;
  text-align: center;
}
.timeline-items {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.timeline-items::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background-color: #fd9903;
  left: calc(50% - 1px);
}
.timeline-item {
  margin-bottom: 40px;
  width: 100%;
  position: relative;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}
.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
}
.timeline-dot {
  height: 21px;
  width: 21px;
  background-color: #fd9903;
  box-shadow: 0 0 25px #fd9903, 0 0 50px #fd9903;
  position: absolute;
  left: calc(50% - 8px);
  border-radius: 50%;
  top: 10px;
}
.timeline-date {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-color);
  margin: 6px 0 15px;
}
.timeline-content {
  background-color: var(--link-color);
  border: 3px solid var(--main-color);
  padding: 30px 50px;
  border-radius: 4rem;
  box-shadow: 0 0 10px var(--main-color);
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color);
}
.timeline-content h3 {
  font-size: 20px;
  color: var(--text-color);
  margin: 0 0 10px;
  font-weight: 500;
}
.timeline-content p {
  color: var(--text-color);
  font-size: 16;
  font-weight: 300;
  line-height: 22px;
}

::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}
::-webkit-scrollbar-track {
  background-color: var(--bg-color);
  width: 50px;
}


/* Skills */
.skills {
  background: var(--bg-color);
  padding: 60px 0 80px 0;
  align-items: center;
  justify-content: center;
}
.skills h2 {
  margin-bottom: 6rem;
  margin-top: 4rem;
  font-size: 4.5rem;
  text-align: center;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2.5rem;
  flex: 1;
}
.skill-card {
  background: var(--bg-color);
  border-radius: 10px;
  box-shadow: 0 2px 6px var(--main-color);
  display: flex;
  flex: 1;
  text-align: left;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px 18px 14px;
  min-width: 50px;
  min-height: 50px;
  transition: transform 0.5s, box-shadow 0.5s, background 0.5s;
  opacity: 0;
  transform: translateY(40px);
}
.skills-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.skill-card .skill-icon {
  font-size: 4.2rem;
  margin-bottom: 18px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}
.skill-card span {
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
}
.skill-card:hover {
  background: #282a36;
  box-shadow: 0 4px 16px #2cdbd8;
  transform: scale(0.97) translateY(-6px);
  z-index: 2;
}
.skills-image img {
  width: 400px;
  height: 400px;
  border-radius: 20px;
  object-fit: cover;
  flex: 0 0 auto;
  margin-left: 20px;
  box-shadow: 0 0 20px rgba(34, 226, 211, 0.5);
  transition: transform 0.4s ease;
}
.skill-card.skill-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.4, 1.4, 0.6, 1),
    transform 0.6s cubic-bezier(0.4, 1.4, 0.6, 1);
}
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
  }
}
@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(10, 1fr);
  }
  .skill-card {
    min-width: 50vw;
  }
}

/* Certifications */
.certificates {
  background: var(--bg-color);
}

.certificates h2 {
  margin-bottom: 6rem;
  margin-top: 4rem;
  font-size: 4.5rem;
  text-align: center;
}

.certificate-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  align-items: start;
  padding: 0 50px;
}

.certificate-item {
  background-color: var(--bg-color);
  border-radius: 2rem;
  border: 3px solid rgba(238, 238, 238, 0.2);
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-align: center;
  transition: 0.4s ease-in-out;
  max-width: 400px;
}

.certificate-item:hover {
  border: 3px solid var(--main-color);
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0px 50px rgba(0, 0, 0, 0.1);
}

.certificate-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.certificate-item h2 {
  padding-top: 16px;
  font-size: 2rem;
  color: var(--text-color);
}

.certificate-item p {
  font-size: 1.4rem;
  padding-bottom: 16px;
}

#star {
  color: gold;
}

/* Projects */
.projects {
  background: var(--bg-color);
  color: var(--text-color);
}
.projects h2 {
  margin-bottom: 6rem;
  margin-top: 4rem;
  font-size: 4.5rem;
  text-align: center;
}
.projects-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2.5rem;
}
.project-box {
  background-color: var(--bg-color);
  height: 400px;
  border-radius: 3rem;
  border: 1px solid transparent;
  transition: 0.4s ease-in-out;
}

.project-box i {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.5rem;
  color: var(--text-color);
  transition: 0.3s ease;
}

.project-box:hover {
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 5px solid var(--main-color);
  transform: scale(1.03);
}
.project-box .services-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  max-height: 200px;
  justify-content: left;
  align-items: baseline;
  padding: 5rem 5rem;
}
.project-info {
  display: grid;
  grid-template-rows: 2fr 1fr;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.project-info img {
  width: 100%;
  height: 300px;
  object-fit: fill;
}

/* Contact */
.contact h2 {
  margin-bottom: 3rem;
  margin-top: 4rem;
  font-size: 4.5rem;
  text-align: center;
}
.project-info h4 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--text-color);
}

.project-info p {
  font-size: 1.5rem;
  color: var(--text-color);
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  margin-top: 5rem;
}

.contact-img img {
  width: 400px;
  max-width: 100%;
  border-radius: 2rem;
  box-shadow: 0 0 25px var(--main-color);
  align-items: center;
  justify-content: center;
}

.contact-form {
  flex: 1;
  min-width: 350px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form .input-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.6rem;
  font-size: 1.6rem;
  color: black;
  background: var(--second-bg-color);
  border-radius: 1.5rem;
  border: 2px solid var(--main-color);
  margin: 1rem 0;
  resize: none;
}

.contact .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 25px;
}
.contact .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 2px solid var(--main-color);
  font-size: 2.5rem;
  border-radius: 50%;
  color: var(--main-color);
  transition: 0.3s ease-in-out;
}
.contact .social-icons a:hover {
  color: var(--text-color);
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
}

.footer {
  background-color: var(--main-color);
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 20px 0;
}

/* Footer */
.footer .copyright {
  color: #ffffff;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.footer .major {
  margin-top: 10px;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1285px) {
  html {
    font-size: 55%;
  }
}
@media (max-width: 991px) {
  header {
    padding: 2rem 3%;
  }
}
@media (max-width: 895px) {
  #menu-icon {
    display: block;
  }
  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
  }
  .navbar.active {
    display: block;
  }
  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: white;
  }
  .home {
    flex-direction: column-reverse;
    margin: 5rem 4rem;
  }
  .home-content h3 {
    font-size: 2.6rem;
  }
  .home-content h1 {
    font-size: 6rem;
    margin-top: 2rem;
  }
  .home-content p {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .skills-grid {
    max-width: 900px;
    gap: 1.5rem;
  }
  .about {
    flex-direction: column;
    gap: 3rem;
    padding: 40px 10px;
  }
  .about-text {
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    max-width: 500px;
  }
  .skill-card {
    min-width: 140px;
    min-height: 120px;
    padding: 24px 10px 16px 10px;
  }
  .about {
    padding: 30px 5px;
  }
  .about-text h2,
  .contact h2,
  .projects h2,
  .skills .heading {
    font-size: 2.8rem;
  }
  section {
    padding: 6rem 2% 6rem;
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(10, 1fr);
    max-width: 98vw;
    gap: 1rem;
  }
  .skill-card {
    min-width: 90vw;
    font-size: 1rem;
    padding: 18px 4px 12px 4px;
  }
  .about {
    padding: 18px 2px;
  }
  .about-text h2,
  .contact h2,
  .projects h2,
  .skills .heading {
    font-size: 2rem;
  }
  .about-text p,
  .skills-desc,
  .contact form,
  .projects p {
    font-size: 1.1rem;
  }
  .profile img {
    width: 120px;
    height: 120px;
  }
  .btn,
  .btn-group a {
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
  }
  .contact form .input-box input,
  .contact form textarea {
    padding: 1.2rem;
    font-size: 1rem;
  }
  .contact div.social-icons {
    gap: 10px;
    margin-top: 18px;
  }
  .footer {
    padding: 10px 0;
  }
}
