@import 'https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap';

:root {
  --main-background: #0b0c0f;
  --main-fonts-color: #fff;
  --main-decor-color: #00a9e2;
  --main-header-background: #21252e;
  --main-font-family: 'Poppins', sans-serif
}

* {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 0l18 15h-11.081l-6.919 9z" fill="black"/></svg>') 0 0, auto;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth
}

.logo-name {
  color: #fff;
  font-size: 20px;
  letter-spacing: 12px;
  text-transform: uppercase;
  margin-left: 20px;
  font-weight: bolder;
}

main {
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--main-background)
}

body {
  background-color: #0b0c0f;
}

header {
  margin: 0 auto;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: none;
  box-shadow: 0px 0px 6px rgba(255, 255, 255, 0.5);
  position: fixed;
  top: 0;
  transition: .3s;
  z-index: 5;
}

.logo img {
  padding-top: 5px;
  height: 50px;
  cursor: pointer;
}

.nav-bar {
  list-style: none;
  position: relative;
  display: inline-flex;
  padding: 0;
}

a.nav-link {
  margin: 2px;
  padding: 5px 10px;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
  background: #9c3ef9;
  box-shadow: 0 0 6px #9c3ef9, 0 0 35px #9c3ef9, 0 0 10px #9c3ef9;
  transition: 0.5s;
}

.nav-link.projects:hover {
    background: #ff0000;
    box-shadow: 0 0 6px #ff0000, 0 0 35px #ff0000, 0 0 10px #ff0000;
}

.tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  background: #ff0000;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
}

.tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  background: #ff0000;
  width: 8px;
  height: 8px;
}

.nav-link.projects:hover .tooltip {
  opacity: 1;
}


#home {
  margin: auto;
  height: 100vh;
  color: var(--main-fonts-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly
}

#home .filter {
  background: url(https://64.media.tumblr.com/5d11ea6768a83baa1b2e01d1ddf6cc1f/tumblr_plek74JVuM1rgr1to_1280.gif) no-repeat;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: .6
}

.intro {
  text-align: center;
  color: var(--main-fonts-color);
  z-index: 1;
  margin: auto;
  padding: 20px
}

.intro p {
  margin: 5px;
  font-size: 1.2rem;
  font-family: var(--main-font-family);
  text-align: center
}

h3 {
  padding-bottom: 15px;
  letter-spacing: normal;
  font-family: var(--main-font-family);
  font-style: normal;
  font-size: 60px;
  color: var(--main-fonts-color);
  text-shadow: 0 0 40px #9c3ef9;
}

.social-media {
  padding: 10px;
  display: flex;
  position: center;
  align-items: space-around;
  justify-content: center
}

.social-media a {
  margin: 10px;
  font-size: 2rem;
  text-align: center;
  display: inline-block;
  color: var(--main-fonts-color)
}

.social-media a i {
  cursor: pointer
}

.social-media a:hover {
  color: #9c3ef9;
  text-shadow: 0 0 50px #9c3ef9;
  transition: all 0.3s ease 0s;
}

#projects {
  height: 900%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--main-fonts-color)
}

#projects h3 {
  padding-top: 2px;
  text-align: center;
}

#projects p {
  font-family: var(--main-font-family);
  font-size: 1.2rem;
  padding: 10px
}

.box-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
    }
    .card {
      width: 100%;
      padding: 20px;
text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #0b0c0f;
    position: relative;
    overflow: hidden;
    transition: 0.5s ease-in-out;
}
.work-img {
    width: 60%;
    height: auto;
    max-width: 100%;
    margin-top: 10px;
}
.work-content {
    margin-left: 20px;
    flex-grow: 1;
    color: #fff;
}
.work-content h2 {
    font-size: 24px;
    font-weight: bold;
}
.work-content p {
    font-size: 16px;
    margin-top: 10px;
}
.redirect-btn {
    padding: 8px 15px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    background-size: 300% 100%;
    transition: all .4s ease-in-out;
    background-image: linear-gradient(to right, #29323c, #485563, #2b5876, #4e4376);
    box-shadow: 0 4px 15px 0 rgba(45, 54, 65, 0.75);
    text-decoration: none;
    color: #fff;
    display: inline-block;
    margin-top: 10px;
}
.redirect-btn:hover {
    background-position: 100% 0;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    transition: 0.5s;
}
.card:hover .overlay {
    opacity: 1;
}
.card:hover .work-content {
    opacity: 0;
    transition: 0.3s;
}

    @media (max-width: 767px) {
      /* Mobile view */
      .card {
        flex-direction: column;
        box-shadow: 0px 0px 6px rgba(255, 255, 255, 0.5);
      }
      .card img {
      width: 90%;
      height: auto;
        margin-top: 0;
      }
      .work-content {
        margin-left: 0; /* Reset margin for mobile view */
      }
      .redirect-btn {
        margin-top: 10px; /* Add space between content and button */
      }
    }

    @media (min-width: 768px) {
      /* Tablet and PC view */
      .card:nth-child(odd) {
        flex-direction: row-reverse; /* Image on the right for 1st and 3rd box */
        text-align: left; /* Text align right for 1st and 3rd box */
      }
      .card:nth-child(even) {
        text-align: right; /* Text align left for 2nd and 4th box */
      }
    }

#ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 468px; /* Default max width */
}

iframe {
  width: 100% !important; 
  height: auto !important;
}

@media screen and (max-width: 500px) {
  #ad-container {
      max-width: 320px; /* Smaller width for mobile screens */
  }
}

#contact {
  margin: auto;
  padding-bottom: 20px;
  height:500%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--main-fonts-color)
}

#contact p {
  padding: 10px;
  text-align: center;
  font-size: 1rem;
  font-family: var(--main-font-family)
}


.container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  font-family: arial;
  gap: 40px;
}

.contact-box {
  width: 180px;
  height: 200px;
  background-color: #302f32;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 6px rgba(255, 255, 255, 0.5);
  text-align: center;
  position: relative;
}


.avatar {
  width: 50px;
  height: 50px;
  background-color: #39ff14; /* Neon Green - fallback color */
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content {
  width: 100%;
}

.title-and-avatar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.neon-button {
  display: inline-block;
  padding: 8px 18px;
  background-color: none;
  box-shadow: 0px 0px 6px rgba(255, 255, 255, 0.5);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  text-decoration: none;
  position: absolute;
  bottom: 10px;
  right: 20px; /* Adjusted position */
  overflow: hidden;
  transition: background-color 0.3s;
}


.neon-button:hover {
  background-color: #9c3ef9;
  box-shadow: 0 0 6px #9c3ef9, 0 0 35px #9c3ef9, 0 0 10px #9c3ef9;
  color: #ffffff;
}


footer {
  width: 100%;
  height: 100%;
  background-color: var(--main-header-background)
}

.copyright {
  color: #fff;
  font-size: 1.2rem;
  line-height: 40px;
  text-align: center
}

.copyright a {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 1px;
  text-decoration: none
}

.copyright a:hover {
  color: var(--main-decor-color)
}

hr {
  background: #9c3ef9;
  box-shadow: 0 0 6px #9c3ef9, 0 0 35px #9c3ef9, 0 0 10px #9c3ef9;
  margin: 2px;
  height: 3px;
  width: 150px;
  border-radius: 5px;
  border: hidden;
  margin-inline-start: auto;
  margin-inline-end: auto
}



/* Warning popup styles */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #011627;
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  width: 300px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  animation: shake 0.2s linear 1;
  z-index: 9999;
}

@keyframes shake {
  0% {
    rotate: 0deg;
  }

  33% {
    rotate: 10deg;
  }

  66% {
    rotate: -10deg;
  }

  100% {
    rotate: 10deg;
  }
}


.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid white;
}
.popup-header .dots {
  display: flex;
}
.popup-header .dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  border-radius: 50%;
}
.red { background: red; }
.yellow { background: yellow; }
.green { background: green; }



::-webkit-scrollbar {
  width: 5px;
  background: #050505
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #9c3ef9;
  box-shadow: 0 0 6px #9c3ef9, 0 0 35px #9c3ef9, 0 0 10px #9c3ef9;
}

::-webkit-scrollbar-track {
  margin-top: 80px;
  border-radius: 10px
}

.hamburger {
  display: none
}

.hamburger div {
  width: 30px;
  height: 3px;
  background: #fff;
  margin: 5px;
  transition: all .3s ease
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px)
}

.toggle .line2 {
  opacity: 0
}

.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px)
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translatex(50px)
  }

  to {
    opacity: 1;
    transform: translatex(0px)
  }
}

@media only screen and (max-width: 500px) {

  #home,
  #projects,
  #contact {
    overflow-x: hidden;
  }

  header {
    background-color: none;
  }

  .logo {
    position: absolute;
    top: 2px;
    left: 30px;
  }

  .nav-show {
    opacity: 1;
  }

  .nav-bar {
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    background: none;
    backdrop-filter: blur(6px);
    box-shadow: 0px 0px 6px rgba(255, 255, 255, 0.5);
    transform: translatex(100%);
    transition: transform .5s ease-in;
    z-index: -1;
  }

  .hamburger {
    position: absolute;
    top: 17px;
    right: 25%;
    display: block;
    cursor: pointer;
    z-index: 5;
  }

  .nav-bar li {
    opacity: 0;
  }
}

.nav-active {
  transform: translatex(0%);

}

.loading-page {
  position: absolute;
  backdrop-filter: blur(10px);
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 1000;
}
#svg {
  height: 350px;
  width: 350px;
  stroke: white;
  fill-opacity: 0;
  stroke-width: 6px;
  stroke-dasharray: 4500;
  animation: draw 8s ease;
}
@keyframes draw {
  0% { stroke-dashoffset: 4500; }
  100% { stroke-dashoffset: 0; }
}
.name-container {
  color: #fff;
  font-size: 20px;
  letter-spacing: 12px;
  text-transform: uppercase;
  margin-left: 20px;
  font-weight: bolder;
}
