@import url("https://fonts.googleapis.com/css2?family=Allan:wght@400;700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.logo {
  display: flex;
  cursor: default;
  font-size: 20px;
  padding-left: 60px;
  margin-top: 30px;
  animation: fadeIn 0.8s ease-in-out;
}

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

.menu-icon {
  display: none;
  position: fixed;
  top: 22px;
  right: 90px;
  z-index: 3000;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  background: black;
  padding: 12px;
  width: 45px;
  height: 45px;
  border-radius: 20%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.bar1 {
  width: 30px;
  height: 3px;
  border-radius: 3px;
  transition: all 0.4s ease;
  background-color: orange;
}
.bar2 {
  width: 30px;
  height: 3px;
  border-radius: 3px;
  transition: all 0.4s ease;
  background-color: white;
}
.bar3 {
  width: 30px;
  height: 3px;
  border-radius: 3px;
  transition: all 0.4s ease;
  background-color: green;
}

body.dark-mode .menu-icon {
  background: black;
}

body.dark-mode .bar {
  background-color: white;
}

.menu-icon.active .bar1:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-icon.active .bar2:nth-child(2) {
  opacity: 0;
}

.menu-icon.active .bar3:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

nav {
  display: flex;
  justify-content: space-around;
  padding-left: 500px;
  margin-top: -30px;
  padding-top: 10px;
}

nav ul {
  display: flex;
  gap: 70px;
  align-items: center;
}

@media (max-width: 1200px) {
  nav {
    padding-left: 300px;
  }
}

@media (max-width: 992px) {
  nav {
    padding-left: 200px;
  }
  nav ul {
    gap: 40px;
  }
}

nav ul li {
  list-style-type: none;
  text-decoration: none;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

nav ul li a {
  text-decoration: none;
  color: black;
  border-radius: 5px;
}

nav ul li:hover {
  color: darkblack;
  transform: scale(1.2);
}

body.dark-mode nav ul li a {
  color: white !important;
}

nav ul li a {
  transition: color 0.1s ease;
}

.dark-mode {
  background: #121212;
  color: #f5f5f5;
}

#toggleButton {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px;
  font-size: 20px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 50%;
  z-index: 3001;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  display: block !important;
}

#toggleButton:hover {
  transform: scale(1.1);
}

.dark-mode #toggleButton {
  background-color: white;
}
.hero {
  display: flex;
  height: 80vh;
  justify-content: space-around;
  align-items: center;
}
.hero-left {
  margin-left: 200px;
  margin-top: 50px;
}
.hero-left .one {
  font-size: 50px;
  font-weight: 300;
  animation: slideIn 0.8s ease-out;
}

.hero-left .two {
  font-size: 45px;
  font-weight: bold;
  animation: slideIn 0.8s ease-out 0.2s backwards;
}
.hero-left .three {
  font-size: 20px;
  font-weight: 350;
  animation: slideIn 0.8s ease-out 0.4s backwards;
}

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

@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 20px;
    height: auto;
  }

  .hero-left {
    margin-left: 0;
    margin-top: 30px;
    padding: 0 20px;
  }

  .hero-left .one {
    font-size: 32px;
  }

  .hero-left .two {
    font-size: 28px;
  }

  .hero-left .three {
    font-size: 18px;
  }

  .img {
    width: 220px;
    margin-top: 50px;
  }

  .logo {
    padding-left: 20px;
    font-size: 18px;
  }

  nav {
    display: block;
  }

  .menu-icon {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  body.dark-mode .nav-links {
    background: #333;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    gap: 30px;
  }

  .btn1,
  .btn2 {
    font-size: 16px;
    padding: 8px 16px;
    margin-top: 15px;
  }

  .btn2 {
    margin-left: 10px;
  }

  .skills-container {
    padding: 15px;
  }

  .skills-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .skills-list li {
    margin-bottom: 10px;
  }

  .experience-container {
    padding: 15px;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    margin-bottom: 15px;
  }

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

  .footer {
    padding: 20px 10px;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-social-links {
    margin-top: 20px;
  }
}

.btn1 {
  font-size: 20px;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #1e40ff;
  color: white;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeIn 1s ease-out 0.6s backwards;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.btn2 {
  font-size: 20px;
  margin-top: 10px;
  margin-left: 20px;
  padding: 10px 20px;
  color: white;
  background-color: #1e40ff;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeIn 1s ease-out 0.8s backwards;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn1:hover,
.btn2:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  background-color: #1535e0;
}

.img {
  width: 320px;
  margin-bottom: 10px;
  border-radius: 50%;
}

body.dark-mode .img {
  border: 3px solid white !important;
}

.social-links {
  padding: 15px;
  justify-content: center;
  align-items: center;
}

.social-links #links {
  font-size: 32px;
  margin-top: 10px;
  padding-right: 20px;
  text-decoration: none;
}

/* .social-links #links:hover {
  transform: scale(1.2);
} */

.social-links .fa-linkedin {
  color: #0a66c2;
  transition: transform 0.3s ease-in-out;
}
.social-links .fa-linkedin:hover {
  color: #05b8d8;
  transform: scale(1.2);
}

.social-links .fa-github {
  color: #181717;
  transition: transform 0.3s ease-in-out;
}

.social-links .fa-github:hover {
  color: rgb(111, 0, 255);
  transform: scale(1.2);
}

body.dark-mode .social-links .fa-github {
  color: white !important;
}

.skill-heading {
  font-size: 35px;
  padding-top: 10px;
  align-items: center;
  text-align: center;
  font-family: "Allan", serif;
  font-weight: 500;
}
.skills {
  display: flex;
  justify-content: space-around;
  height: 75vh;
  box-shadow: 10px 0px 40px 2px rgba(17, 92, 153, 0.815);
}

.skills-container {
  padding-left: 150px;
  padding-right: 150px;
  padding-top: 1px;
  border: 2px groove;
  border-radius: 10px;
}

div ul li img {
  width: 60px;
  padding-right: 700px;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  margin: 10px 0;
  font-size: 18px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.skills-list i {
  font-size: 55px;
}
.skills-list .linux {
  color: #333333;
}

body.dark-mode .skills-list .linux {
  color: white !important;
}
body.dark-mode .skills-list li {
  color: white !important;
}

.skills-list .aws {
  color: #ff9900;
}

.skills-list .automation {
  color: #306998;
}

.skills-list .web {
  color: #00758f;
}

.skills-list .lamp {
  color: #0ea5e9;
}

.skills-list li:hover i {
  transform: scale(1.1);
  transition: 0.3s ease;
  filter: drop-shadow(0 0 5px currentColor);
}

.experience {
  height: 200vh;
  display: flex;
  padding-bottom: 600px;
  justify-content: center;
  box-shadow: 0px 0px 5px 1px rgba(17, 92, 153, 0.815);
}

.experience-heading {
  padding-top: 20px;
  font-size: 35px;
  padding-bottom: 10px;
  font-family: "Allan", serif;
  text-align: center;
  font-weight: 500;
}

.experience-paragraph {
  font-size: 18px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.card {
  background: #fff;
  color: #333;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 20px;
  border-left: 2px solid;
}

.card-content h3 {
  margin: 0 0 10px;
  font-size: 1.4em;
}

.card-one {
  font-size: 18px;
  font-weight: 300;
}
.card-two {
  font-size: 18px;
  font-weight: 300;
}
.card-three {
  font-size: 18px;
  font-weight: 300;
}
.card-four {
  font-size: 18px;
  font-weight: 300;
}

.certification {
  height: 130vh;
  display: flex;
  justify-content: center;
  padding-bottom: 300px;
  box-shadow: 0px 0px 30px 2px rgba(17, 92, 153, 0.815);
}

.certification-heading {
  font-family: "Allan", serif;
  font-size: 35px;
  padding-top: 20px;
  font-weight: 500;
}

.certifications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  /* padding: 40px; */
  padding-top: 20px;
  justify-items: center;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 380px;
}

.cert-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Default icon style */
.cert-card i {
  font-size: 38px;
}

/* Brand-specific styles */
.redhat i {
  color: #cc0000; /* Red Hat red */
}
.redhat:hover {
  background: #cc0000;
  color: white;
}
.redhat:hover i {
  color: white;
}

.aws i {
  color: #232f3e; /* AWS dark grey */
}
.aws:hover {
  background: #232f3e;
  color: #ff9900;
}
.aws:hover i {
  color: #ff9900;
}

.google i {
  background: linear-gradient(45deg, #4285f4, #34a853, #fbbc05, #ea4335);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.google:hover {
  background: linear-gradient(45deg, #4285f4, #34a853, #fbbc05, #ea4335);
  color: white;
}
.google:hover i {
  -webkit-text-fill-color: white;
}

.ansible i {
  color: #ee0000;
}
.ansible:hover {
  background: #ee0000;
  color: white;
}
.ansible:hover i {
  color: white;
}

.bash i {
  color: #4eaa25;
}
.bash:hover {
  background: #4eaa25;
  color: white;
}
.bash:hover i {
  color: white;
}

.python i {
  background: linear-gradient(45deg, #3776ab, #ffd43b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.python:hover {
  background: linear-gradient(45deg, #3776ab, #ffd43b);
  color: white;
}
.python:hover i {
  -webkit-text-fill-color: white;
}

.ccna i {
  color: #1ba0d7;
}
.ccna:hover {
  background: #1ba0d7;
  color: white;
}
.ccna:hover i {
  color: white;
}

/* Text styling */
.cert-card span {
  font-size: 16px;
  font-weight: 600;
}

body.dark-mode .certifications {
  color: black !important;
}

.footer {
  padding-top: 20px;
  height: 40vh;
  display: flex;
  justify-content: space-around;
  box-shadow: 0px 0px 10px 2px rgb(30, 82, 126);
}

.footer-heading {
  font-size: 15px;
  color: rgb(13, 173, 247);
  text-align: center;
}

.footer-quick-links {
  font-size: 17px;
  padding-top: 20px;
}

.footer-quick-links ul {
  display: flex;
  gap: 30px;
  list-style: none;
  justify-content: center;
}

.footer-quick-links ul li {
  color: black;
  padding-left: 40px;
  transition: transform 0.3s ease-in;
}

@media (max-width: 768px) {
  .footer-quick-links ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

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

.footer-quick-links ul li:hover {
  transform: scale(1.2);
}

.footer-quick-links a {
  text-decoration: none;
  color: black;
}

body.dark-mode .footer-quick-links a {
  color: white !important;
}

.footer-social-links p {
  font-size: 15px;
  text-align: center;
  margin-top: 25px;
}

.footer-social-links {
  padding-left: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-social-links #footer-links {
  font-size: 18px;
  margin-top: 10px;
  margin-left: 15px;
  margin-right: 20px;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.footer-social-links #footer-links:hover {
  transform: scale(1.2);
}

.footer-social-links .fa-linkedin {
  color: #0a66c2;
  transition: transform 0.2s ease-in;
}

.footer-social-links .fa-linkedin:hover {
  transform: scale(1.1);
  color: #7802ff;
}

.footer-social-links .fa-github {
  color: #181717;
  transition: transform 0.3s ease-in-out;
}

.footer-social-links .fa-github:hover {
  transform: scale(1.1);
  color: #00758f;
}

body.dark-mode .footer-social-links .fa-github {
  color: white !important;
}

.footer-bottom {
  padding-left: 70px;
  font-size: 14px;
}

.designer-vansh {
  padding-left: 120px;
  padding-bottom: 30px;
  font-size: 14px;
}

.designer-vansh strong a {
  text-decoration: none;
  color: black;
}

body.dark-mode .designer-vansh strong a {
  color: white !important;
}

/* media */
@media screen and (max-width: 1154px) {
  nav {
    margin-right: 40px;
    padding-top: 10px;
  }
}

@media screen and (max-width: 1088px) {
  nav {
    margin-right: 100px;
    padding-top: 10px;
  }
  .hero {
    padding-right: 70px;
  }
  .hero-right {
    padding-right: 30px;
  }
}

@media screen and (max-width: 1039px) {
  nav {
    /* margin-left: -141px; */
  }

  .hero-left {
    margin-left: 150px;
    margin-right: 70px;
  }

  .hero-left .one {
    font-size: 45px;
  }
  .hero-left .two {
    font-size: 40px;
    font-weight: bold;
  }

  .img {
    width: 300px;
    margin-bottom: 10px;
    border-radius: 50%;
  }
}

@media screen and (max-width: 981px) {
  .btn2 {
    margin-left: 0px;
  }
  .nav;
}
@media screen and (max-width: 961px) {
  .social-links {
    margin-left: 119px;
    margin-top: -60px;
  }

  .hero-left {
    margin-bottom: 50px;
  }
}
@media screen and (max-width: 931px) {
  .hero-left .one {
    font-size: 40px;
  }

  .hero-left .two {
    font-size: 34px;
  }
}

@media screen and (max-width: 886px) {
  .img {
    width: 280px;
  }

  nav {
    margin-left: 155px;
  }
  nav ul {
    gap: 60px;
  }
  .hero-left .two {
    font-size: 32px;
  }
  #toggleButton {
    margin-right: -20px;
  }
}

@media screen and (max-width: 858px) {
  .hero-left .one {
    font-size: 40px;
    font-weight: 300;
  }

  .hero-left .two {
    font-size: 30px;
    font-weight: bold;
  }

  .hero-left .three {
    font-size: 18px;
    font-weight: 350;
  }

  .img {
    width: 260px;
  }

  /* nav{
        margin-left: -190px;
      } */
}

@media screen and (max-width: 838px) {
  .social-links {
    padding-left: 10px;
  }

  nav ul {
    gap: 50px;
    padding-left: 30px;
  }
}
@media screen and (max-width: 832px) {
  .hero-left .one {
    font-size: 37px;
  }
  .social-links {
    padding-top: 60px;
    margin-left: 0px;
  }
  nav {
    margin-left: 120px;
  }
}

@media screen and (max-width: 813px) {
  nav ul {
    gap: 35px;
  }
  .hero-left .one {
    font-size: 35px;
  }
  .hero-left .two {
    font-size: 29px;
  }

  .hero-left .three {
    font-size: 16px;
  }

  .img {
    width: 230px;
  }
  .btn1 {
    font-size: 19px;
  }
}

@media screen and (max-width: 795px) {
  .hero-left .one {
    font-size: 33px;
  }
  .hero-left .two {
    font-size: 27px;
  }

  .hero-left .three {
    font-size: 15px;
  }

  .img {
    width: 220px;
  }
  .btn1 {
    font-size: 17px;
  }

  .btn2 {
    font-size: 16px;
  }
  .skills-container {
    padding-left: 100px;
    padding-right: 100px;
  }
}

@media screen and (max-width: 750px) {
  .hero-left .one {
    font-size: 35px;
  }

  nav ul {
    gap: 20px;
  }
  .btn1 {
    font-size: 14px;
  }
  .img {
    width: 220px;
  }
}

@media screen and (max-width: 750px) {
  nav ul {
    gap: 10px;
    margin-left: -60px;
  }

  .skills-container {
    padding-left: 60px;
    padding-right: 60px;
  }

  .hero-left {
    margin-left: 30px;
    margin-right: 40px;
    margin-top: 50px;
  }
  .img {
    margin-right: -50px;
  }
}

@media screen and (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .logo {
    padding-left: 20px;
    font-size: 18px;
  }

  nav {
    padding-left: 0;
    justify-content: flex-end;
  }

  #toggleButton {
    position: fixed;
    top: 20px;
    right: 45px;
    z-index: 3001;
    display: block !important;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    background-color: white;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    text-align: center;
    padding: 70px 0 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
  }

  .dark-mode .nav-links {
    background-color: #121212;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .menu-icon.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-icon.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-icon.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    flex-direction: column-reverse;
    height: auto;
    padding: 20px 0;
  }

  .hero-left {
    margin: 20px;
    text-align: center;
  }

  .hero-right {
    margin: 20px auto;
  }

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

  .btn1,
  .btn2 {
    margin: 10px 0;
    width: 80%;
  }

  .social-links {
    justify-content: center;
    display: flex;
  }

  .skills {
    height: auto;
    padding: 40px 0;
  }

  .skills-container {
    padding: 20px;
  }

  .experience {
    height: auto;
    padding-bottom: 40px;
  }

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

  .certification {
    height: auto;
    padding-bottom: 40px;
  }

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

  .footer {
    height: auto;
    flex-direction: column;
    padding: 20px 0;
  }

  .footer-quick-links ul {
    flex-direction: row;
     text-align: center;
    gap: 3px;
    margin-left: -20px;
    margin-bottom: -30px;
  }

  .footer-bottom,
  .designer-vansh {
    padding-left: 0;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  #toggleButton {
    font-size: 22px;
  }

  .hero-left .one {
    font-size: 32px;
  }

  .hero-left .two {
    font-size: 28px;
  }

  .hero-left .three {
    font-size: 16px;
  }

  .img {
    width: 250px;
  }

  .skill-heading {
    font-size: 28px;
  }

  .skills-list li {
    font-size: 16px;
  }

  .skills-container {
    margin-left: 20px;
    margin-right: 20px;
  }

  .skills-list i {
    font-size: 40px;
  }

  .btn1 {
    font-size: 16px;
    height: 60px;
    margin-right: 40px;
    margin-left: 30px;
  }
  .btn2 {
    font-size: 16px;
    height: 60px;
    margin-right: 40px;
    margin-left: 30px;
  }

  .footer-quick-links {
    padding-right: 20px;
  }

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

  .certification-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .experience-paragraph {
    padding-left: 10px;
  }
}
