*{
    margin: 0;
     padding: 0;
     font-family: 'poppins', sans-serif;
     box-sizing: border-box;
     transition: all 0.3s ease;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;    
  display: none;   
}


body {
   
    background:#f0f0f0; 
  color: #122117;
  transition: all 0.4s ease;
}


body.bright-mode {

 color: #ffffff;
  background: #000000; 
}


body.bright-mode #bg-video {
  display: block;
}

  .btn3 {
      padding: 10px 14px;
      border: none;
      
      background-color: transparent;
     border:  3px solid #000000;
     color: #000000;
      font-size: 18px;
      cursor: pointer;
      border-radius: 100%;
      margin-left: 10px;
       margin-right: 20px;
      
    }

   .bright-mode    .btn3 {
      
      padding: 10px 14px;
      border: none;
      background-color: transparent;
     border:  3px solid #ffffff;
     color: #ffffff;
      font-size: 18px;
      cursor: pointer;
      border-radius: 100%;
    }
     .btn3:hover {
      border:  3px solid #ffffff;
     background: #262626;
     color: #ffffff;
    
    
    }

     .bright-mode  .btn3:hover { 
   
     border:  3px solid #000000;
     background: #dbdbdb;
     color: #000000;
      
    }


.container {
  
 
  padding: 10px 10px;   
  padding-left: 1px;   
  max-width: 100%;      
  margin: 0 auto;      
}

nav {
 justify-content: center;
  display: flex;
width: 100%;
  
}

.logo {
  width: 300px;
}
.right-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
  

.logo1 {
  width: 40px;
  margin-right: 0; 
}
.logo1:hover{
  opacity: 70%;
  
}
nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
      color: #000;
    
    
}
.bright-mode nav ul li a{
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 900;
    position: relative;
    

}
nav ul li a
{
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    font-weight: 900;
    position: relative;
    

}

 nav ul li a::after{
    content: '';
    
    width: 0%;
    height: 18px;
    background: #272827;
    position: absolute;
    top: 50%;
  transform: translateY(-50%);
  left: -10%;            
  right: 0%;         
  height: 28px;      
      height: 120%;               
  background: #272827;
  opacity: 100%;
  border-radius: 7px;        
  z-index: -1;       

}
.bright-mode nav ul li a::after{
    content: '';
    
    width: 0%;
    height: 18px;
    background: #b9b9b9;
    position: absolute;
    top: 50%;
  transform: translateY(-50%);
  left: -10%;            
  right: 0%;         
  height: 28px;      
      height: 120%;               
  background: #b9b9b9;
  opacity: 100%;
  border-radius: 7px;        
  z-index: -1;       

}
nav ul li a:hover{
    color: #ffffff;
}
.bright-mode nav ul li a:hover{
    color: #000;
}
nav ul li a:hover::after{
  padding: 5px 0;
  width: 120%;
 

}
h1{
  font-family: '1';
   font-family: '1';
  -webkit-text-fill-color: #afafaf;
  font-size: 55px;
  -webkit-text-stroke-color: #000000;
  -webkit-text-stroke-width: .2px;
   letter-spacing: 2px;
  text-align: center;
  margin-top: 3%;
  margin-bottom: 2%;
}

hr {
  border: none;         
  border-top: 0 solid #333; 
  margin: 0;            
}
.header-text {
  display: flex;
  
   align-items: center;
  
   justify-content: center;
  gap: 40px;
  margin: 0 5% 5% 5%;
 
}

.photo-container {
     
  display: flex;
 
  align-items: center;  
  justify-content: center;
  position: relative;  
}


.photo-container img {
  width: 300px;          
  height: auto;        
  object-fit: cover; 
  border-radius: 8px;
  transition: opacity 0.6s ease-in-out;
  display: block;
}


.photo-container img.alt {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}


/* ================================
   Minecraft Loader (no conflicts)
   ================================ */
.mc-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.mc-loading {
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, transparent, transparent 40%, #ffffff);
    border-radius: 50%;
    animation: mc-spin 4s linear infinite;
}

.mc-bg {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 140px;
    height: 140px;
    background-image: url(../images/bg.jpg);
    border-radius: 50%;
    z-index: 1;
}

.mc-bg-dark {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 141.5px;
    height: 141.5px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 50%;
    z-index: 1;
}

.mc-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, transparent 40%, #ffffff);
    border-radius: 50%;
    filter: blur(30px);
}

.mc-diamond {
    position: absolute;
    background-image: url(../images/creeper.png);
    background-position: center;
    background-size: cover;
    width: 80px;
    height: 80px;
    z-index: 6;
}

.mc-loader h1 {
    position: absolute;
    bottom: 25%;
    color: #575757;
    z-index: 3;
    letter-spacing: 4px;
    animation: mc-blink 2s linear infinite;
    font-family: "Minecraft Regular", sans-serif;
}

@keyframes mc-blink {
    0% { color: #ffffff; }
    50% { color: transparent; }
    100% { color: #ffffff; }
}

@keyframes mc-spin {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}


.about-content {
  
  max-width: 720px;
 border:  3px solid #000;
 margin-top: 5%;
  justify-content: center;
  color: #fff;
  background: #575757;
}
@font-face {
  font-family: '1';
  src: url('fonts/1.ttf') format('truetype');
}

.about-content h1 span {
  font-family: '1';
  -webkit-text-fill-color: #afafaf;
  font-size: 55px;
  -webkit-text-stroke-color: #000000;
  -webkit-text-stroke-width: .2px;
   letter-spacing: 2px;
  
}
@font-face {
  font-family: '2';
  src: url('fonts/2.ttf') format('truetype');
}

.about-content h3 {
font-family: '2';
  font-size: 40px;
  
  text-align: center;
  margin-bottom: 30px;
 
  color: #ffffff;
}

.about-content p {
  color: #ffffff;
  font-family: 'VT323', monospace;
  text-align: center;
  font-size: 30px;
  line-height: 1;
  margin-left: 30px;
  margin-right: 30px;
}

.btn-wrapper {
  
  text-align: center; 
 
}

.about-content .btn {
  margin-top: 19px;
  margin-bottom: 19px;
  font-family: '2';
   
  background: #6e6e6e;
  color: #ffffff;
  border-radius: 0;
  
  border:  2px solid #000;
  padding: 12px 30px;
  cursor: pointer;
  
  font-size: 16px;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
}

.about-content .btn:hover {
  background: #575757;
  color: #ffffff;
}


.projects{
 


  margin: 5% 10% 5%  10%;
}
.projects h3{
  font-family: '2';
  font-size: 40px;
  
  text-align: center;
  margin-bottom: 30px;
 
  
}
.project-grid {
  margin-top: 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); /* auto-fit fixes leftover slots */
  gap: 40px;
  justify-content: center; 
  justify-items: center;   
}

.project-grid {
  display: flex;
  flex-wrap: wrap;        
  justify-content: center; 
  gap: 40px;               
}
.project-grid1 {

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); /* auto-fit fixes leftover slots */
  gap: 40px;
  justify-content: center; 
  justify-items: center;   
}

.project-grid1 {
  display: flex;
  flex-wrap: wrap;        
  justify-content: center; 
  gap: 40px;               
}


.project-card {
  flex: 0 1 310px;   
  max-width: 310px;
}

.project-card {
 
  justify-items: center;

 border:  3px solid #000;
  overflow: hidden;
  text-decoration: none;
  color: #f0f0f0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  padding: 5px 5px;
 background: #575757;
 

}





.project-card img {
  width: 300px;
  
  display: block;
}

.project-card .caption {
  padding: 10px;
  color: white;
     font-family: 'VT323', monospace;
  text-align: center;
  font-size: 26px;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 24px #0000004d;
}
/* Overlay inside project card */
.project-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:#575757;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none; 
  transition: opacity 0.4s ease;
  padding: 15px;
  text-align: center;
  border-radius: 0px;
}


.project-card:hover .overlay {
  opacity: 1;
  pointer-events: auto; 
}


.project-card .overlay h3 {
  font-size: 28px;
  margin-bottom: 10px;
  font-family: '2';
}

.project-card .overlay p {
  color: #ffffff;
  font-size: 24px;            
  line-height: 1;           
  max-width: 100%;           
  margin: 0 auto 15px auto;   
  font-family: 'VT323', monospace;
  text-align: center;   
}


.project-card .overlay .btn {
  background: #6e6e6e;
  color: #ffffff;
   border-radius: 0;
  padding: 8px 16px;
  border: 2px solid #000;
  text-decoration: none;
  font-family: 'VT323', monospace;
  font-size: 22px;
  transition: background 0.3s ease;
}

.project-card .overlay .btn:hover {
  background: #575757;
}



.education {
 
    
    margin-top: 1%;
  max-width: 100%;
 margin-bottom: 0px;
  padding: 10px 40px;
} 
.education a{
  text-decoration: none;
}

.education h2 {
 font-family: '2';
  font-size: 40px;
  
  text-align: center;
  margin-bottom: 30px;
}
.education .ei{
  
  align-content: center;
  justify-items: center;
   align-items: center;
  
   justify-content: center
}


.education-item {
   display: flex;
    border:  3px solid #000;
  align-items: center;  
  justify-items: start;
  background: #575757; 
  padding: 20px;
  flex-wrap: nowrap;     
  width: 500px;
  margin-bottom: 40px;  
}
.education-item:hover {
   background: #373737; 
}

.edu-icon {
  flex-shrink: 0;
  margin-right: 20px;
}

.edu-icon img {
  width: 40px;
  height: 40px;
}

.edu-details h3 {
 font-family: '2';
  flex: 1;              
  font-size: 20px;
  color: #fff;
}

.edu-institution {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #fff; 
  margin: 0;
}



  .edu-icon {
    margin-bottom: 10px;
  }
  .ed{
    display: flex;
    align-content: center;
  justify-items: center;
  
  
   justify-content: center;
    margin: 5%;
  }

  
/*skills*/
  .skills {
    
 margin-top: 1%;
  max-width: 100%;
  padding: 10px 40px;
  
 
 

}

.skills h2 {
 font-family: '2';
  font-size: 40px;
  
  text-align: center;
  margin-bottom: 30px;
}
.skill-domains {
  display: flex;
   position: relative;
  
  flex-wrap: wrap;   
      
}
.accordion {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #575757;

 border:  3px solid #000;
 
  padding: 10px 25px;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  text-align: left;
  transition: background 0.3s;
  margin-bottom: 8px;
}

.accordion i {
  
  font-size: 25px;
  color: #fff;
}

.accordion span {
  flex: 1;
}

.accordion:hover {
  background-color: #3a3a3a;
}
.skill-domain {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers the button + dropdown */
  position: relative;
 margin: 5px;      /* each block has fixed-ish width */
}


.panel {
  display: none;
  position: absolute;
  top: 100%;           /* directly under the button */
  left: 0;
  width: max-content;  /* only as wide as needed */
  min-width: 200px;    /* or 100% if you want full width of parent */
  background:#575757;
  

  padding: 10px;
  z-index: 1000;       /* floats above other content */
}



.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
width: 100%;

  border: 2px solid #000000;
  background: #6e6e6e;
  padding: 8px 12px;
  margin: 5px 0;
  color: #fff;
}

.skill-item img {
  width: 22px;
  height: 22px;

  
}
.skill-item i {
  font-size: 25px;
  margin-right: 2px;
  
}

.skill-item span {
  font-family: 'VT323', monospace;
  font-size: 20px;
  flex: 1;
}

.contact{
  
margin: 1% 0 5%  0;
align-items: center;
  justify-items: center;
   justify-content: center;
}
.contact h2{
   font-family: '2';
  font-size: 40px;
  
  text-align: center;
  margin-bottom: 30px;
 
}
  .contact-box {
      background: #575757;
      padding: 20px 30px;
      border:  3px solid #000;
      width: 500px;
      text-align: left;
      color: #fff;
      margin: 5%;
    }

    .contact-box h2 {
      text-align: center;
      margin-bottom: 20px;
      font-size: 32px;
      color: #fff;
    }

    label {
      font-family: "2";
      display: block;
      margin-bottom: 6px;
      color: #ffffff;
      font-size: 18px;
    }
    p{
      font-family: "2";
       color: #fff;
      font-size: 18px;
    }

    input, textarea {
      width: 100%;
      padding: 8px;
      background:  #3a3a3a;
      border: 2px solid #000;
      color: #fff;
      font-family: 'VT323', monospace;
      font-size: 18px;
      margin-bottom: 15px;
      outline: none;
      border-radius: 0;
    }

    input::placeholder,
    textarea::placeholder {
      color: #ffffff;
      
    }

    textarea {
      color: #ffffff;
      resize: none;
      height: 100px;
    }

    .btn1 {
      width: 100%;
      padding: 10px;
      background: #6e6e6e;
      border: 2px solid #000;
      color: #fff;
      font-size: 20px;
      font-family: 'VT323', monospace;
      cursor: pointer;
      transition: background 0.3s;
    }

    .btn1:hover {
      background: #575757;
    }

  .con{
    align-items: center;
  justify-items: center;
   justify-content: center;
    
  }
  .c{
    justify-items: center;
     background: #575757;
      padding: 20px 30px;
      border:  3px solid #000;
      width: 500px;
      text-align: center;
      color: #fff;
      margin: 5%;
  }
.con .c h4{
   font-family: '2';
  font-size: 20px;

  margin-top: 0;
  text-align: center;
  margin-bottom: 30px;

}
.con .c p{
  color: #ffffff;
      font-family: 'VT323', monospace;
      font-size:22px;
      margin-bottom: 15px;
      text-align: center;
}
.con .c a{
  color: #fff;
  text-decoration: none;
  font-size: 20px;
 
  margin-right: 10px;
  margin-left: 10px;
}
.con .c a:hover {
  color: #000;
  text-decoration: none;
}
.b{
      align-items: center;
  justify-items: center;
   justify-content: center;
}
.con .c .btn2{
  margin-top: 19px;
  margin-bottom: 19px;
  font-family: 'VT323', monospace;
   
  background: #6e6e6e;
  color: #ffffff;
  border-radius: 0;
  
  border:  2px solid #000;
  padding: 8px 20px;
  cursor: pointer;
  
  font-size: 20px;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
}



.con .c .btn2:hover {
  background: #575757;
  color: #ffffff;
}

.hamburger {
    display: none; /* hide on desktop */
  }
  
/* ===========================
   MOBILE RESPONSIVE VERSION
   =========================== */
@media (max-width: 768px) {

  /* ===== Navbar ===== */
  nav {
    justify-content: space-between;
    padding: 10px 10px;
  }
  .btn3{
    margin: 0;
    margin-left: 84%;
  }
  .logo1{
    display: none;
  }

  nav ul {
    display: none; 
    flex-direction: column;
    background: #575757;
    position: absolute;
      color: #ffffff;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    
    z-index: 1000;
  }

  nav ul li a {
    display: block;
    font-family: '2', monospace;
    text-align: center;
    color: #ffffff;
     font-size: 18px;
   
  }
  .bright-mode nav ul li a {
    display: block;
    font-family: '2', monospace;
    text-align: center;
    color: #ffffff;
     font-size: 18px;
   
  }

    .hamburger {
    display: block;
    cursor: pointer;
    font-size: 28px;
    z-index: 999;
  }

  container {
    padding: 10px 20px;
  }
h1{
  font-size: 35px;
}
  nav {
    
    flex-direction: row;
    align-items: flex-start;
    position: relative;
  }

  .nav-mobile-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
  }
  nav ul li a{
    color: #ffffff;
    
    

}


  .logo {
    margin-top: 4px;
    width: 300px;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    width: 50%;
    position: absolute;
    top: 50px;
    left: 0;
    background: #575757;
    color:#fff;
    border-radius: 0 0 10px 10px;
    border: 2px solid #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10px;
    padding: 15px 20px;
  }

  #nav-links.show {
    display: flex;
  }

  #nav-links li {
   
    margin: 10px 0;
  }
  

  /* ===== Header text & image ===== */
  .header-text {
    flex-direction: column;
    gap: 20px;
    margin: 20px;
    text-align: center;
  }

  .photo-container img {
    width: 300px;
  }

  /* ===== About section ===== */
  .about-content {
    margin: 10px;
    padding: 0;
  }

  .about-content h1 span {
    font-size: 36px;
  }

  .about-content p {
    font-size: 20px;
    margin: 10px;
  }

  /* ===== Projects ===== */
  .project-grid,
  .project-grid1 {
    grid-template-columns: 1fr; /* single column */
    gap: 20px;
  }

  .project-card img {
    width: 100%;
  }

  /* ===== Education ===== */
  .education {
 
    
    margin-top: 1%;
  max-width: 100%;
 margin-bottom: 0px;
  padding: 10px 10px;
} 
  .ed{
    flex-direction: column;
  }
  .education-item {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .edu-icon {
    display:none;
  }

  /* ===== Skills ===== */
  .skill-domains {
    flex-direction: column;
    align-items: stretch;
  }

  .accordion {
    width: 100%;
    justify-content: space-between;
  }

  .panel {
    position: static; /* no absolute on mobile */
    width: 100%;
    margin-top: 5px;
  }

  /* ===== Contact ===== */
  .contact-box {
    width: 90%;
    margin: 20px auto;
    margin-bottom: 20px;
    padding: 15px;
  }
  .c{
     width: 90%;
    margin: 20px auto;
    margin-bottom: 20px;
    padding: 15px;
  }


}
