html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}
body{line-height:1}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
nav ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:none}
a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent;text-decoration:none}
mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}
del{text-decoration:line-through}
abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}
table{border-collapse:collapse;border-spacing:0}
hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}
input,select{vertical-align:middle}
li{list-style:none}

html,body{ 
    width:100%;
    height:100%;
    background:#111;
}
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#loader p {
  margin-top: 20px;
  font-size: 1.2rem;
  color: white;
}


.shapes {
  width: 45.8px;
  height: 45.8px;
  border-radius: 50%;
  background: white;
  clip-path: polygon(0 0,100% 0,100% 100%,0 100%);
  animation: shapes-yrjcu9 2s infinite cubic-bezier(0.3,1,0,1);
}

@keyframes shapes-yrjcu9 {
  33% {
     border-radius: 0;
     clip-path: polygon(0 0,100% 0,100% 100%,0 100%);
  }

  66% {
     border-radius: 0;
     clip-path: polygon(50% 0,50% 0,100% 100%,0 100%);
  }
}

html{
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  scroll-behavior: smooth;
}

body{
  font:normal 75% Arial, Helvetica, sans-serif;
  z-index: 10;
}

canvas{
  display:block;
}

header, nav, .nav-bar, .about-container, .portfolio-container {
  position: relative;
  z-index: 2;
}
.nav-bar {
  width: 100%;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 2.5rem;
  font-weight: bold;
}

.nav-logo a:hover {
  color: #929292;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo a {
  color: white;
  font-size: 3rem;
  padding: 0 200px;
}

.nav-items{
  display: flex;
  gap:1rem;
}

.nav-items a {
  display: flex;
  align-items: center;
  color: white;
  font-size: 2rem;
  padding-left: 30px;
  text-align: right;
  gap: 8px; 
}

.nav-items a:hover {
  color: #929292;
  text-decoration: none;
  cursor: pointer;
}

.nav-items i {
  font-size: 2rem;
  margin-right: 8px; 
  display: inline-block; 
  vertical-align: middle; 
}

.nav-bar .toggle_btn {
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display:none;
}

.dropdown_menu {
  display: none;
  position: absolute;
  top: 80px;
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(34, 34, 34, 0.0);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: opacity 1s ease, visibility 1s ease, transform 0.3s linear;
  border-radius: 10px;
  overflow: hidden;
  transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

.dropdown_menu li {
  padding: 10px 20px;
  color: white;
  font-size: 1.5rem;
  text-align: center;
  cursor: pointer;
}

.dropdown_menu.open {
  height: 100px;
}

.about-section {
  padding: 60px 20px;
}

.about-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

.about-section h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: white;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.about-photo {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
  max-width: 600px;
  font-size: 1.1rem;
  color: white;
  line-height: 1.6;
}


.social-icon {
  position: relative;
  display: column;
  align-items: center;
  justify-content: center;
  color: white; 
  text-decoration: none;
  white-space: nowrap;
  font-size: 3rem;
}

.icon-glow {
  text-shadow: 0 0 5px #ffffff;
}

.social-icon i {
  margin-left: 6px; 
}


#github-popup, #instagram-popup, #envelope-popup {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.7);  
  padding: 10px;
  color: white;
  text-align: center;
  min-width: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease; 
  font-size: small;
}

.social-icon.github:hover #github-popup,
.social-icon.instagram:hover #instagram-popup,
.social-icon.envelope:hover #envelope-popup {
  opacity: 1;
  pointer-events: auto;  
  transform: translateX(-50%) scale(0.9);  
}

.social-icon:not(:hover) #github-popup,
.social-icon:not(:hover) #instagram-popup,
.social-icon:not(:hover) #envelope-popup {
  opacity: 0; 
  transform: translateX(-50%) scale(0.7);  
}


.portfolio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  z-index: 2;
  position: relative;
  margin-bottom: 20px;
}

.portfolio-container h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 30px;
  text-align: center;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
}

.project {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.project:hover {
  transform: translateY(-10px);
  background: #292929;
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project h2 {
  color: white;
  font-size: 1.5rem;
  margin: 15px 0;
  padding: 0 10px;
}

.project p {
  color: white;
  font-size: 1rem;
  padding: 0 10px;
  margin-bottom: 15px;
  font-weight: bold;
}

.project a {
  text-decoration: none;
  display: block;
  color: inherit;
}

.portfolio2-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.portfolio2 {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  color: white;
}

.portfolio2 h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.projects2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.project2 {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.project2:hover {
  transform: translateY(-10px);
  background: #292929;
}

.project2 img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.project2 h2 {
  font-size: 1.5rem;
  color: #ffff;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
}

@media (max-width: 768px) {

  .nav-bar {
    width: 100%;
    padding: 0 16px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .nav-logo {
    font-size: 2rem;
  }

  .nav-logo a {
    font-size: 2rem;
    padding: 0;
  }

  .nav-items {
    display: none;
  }

  .toggle_btn {
    display: flex;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 100;
  }

  .nav-bar .nav-items {
    display: none;
  }

  .nav-bar .toggle_btn {
    display:block;
  }

  .dropdown_menu {
    display:none;
  }

  .dropdown_menu li {
    padding: 10px 20px;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
  }

  .dropdown_menu li a {
    color: white;
    text-decoration: none;
  }

  .dropdown_menu a:hover {
    color: #333;
  }

  .dropdown_menu.open {
    display: block;
  }
}
