html{
    scroll-behavior: smooth;
    cursor:url('web-images/popcat.png') 0 0, auto ;

}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace;
    font-weight: lighter;
   } 
   /* Smooth transitions */
body, .navbar {
  transition: all 0.4s ease;
}

/* Dark mode card styling */
.dark-mode .skill-card,
.dark-mode .project-card {
  background-color: rgba(40, 40, 40, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Dark mode button styling */
.dark-mode .modern-button {
  background: linear-gradient(135deg, #5566ff, #8a2be2);
}
/* Dark Mode with Background Preservation */
/* Dark Mode with Background Preservation */
.dark-mode {
  
}

.dark-mode::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.776); /* Adjust opacity (0.7) for darkness level */
  z-index: -1;
  pointer-events: none; /* Allows clicking through the overlay */
    cursor:url('web-images/cursor.png') 0 0, auto ;

}

/* Text and element colors for dark mode */
.dark-mode body {
  color: #f1f1f1;
}

.dark-mode .navbar {
  background-color: rgba(30, 30, 30, 0.8) !important;
  border-bottom: 1px solid #444 !important;
}

.dark-mode .nav-link,
.dark-mode .navbar-brand,
.dark-mode .form-check-label {
  color: #f1f1f1 !important;
}

/* Content that should appear above the overlay */
body > *:not(:before) {
  position: relative;
  z-index: 1;
}

/* Rest of your existing CSS... */

body{
    padding-top: 80px;
    min-height: 200vh;
    background: url(web-images/background.jpg);
    background-blend-mode: multiply;
    background-size: cover;
    background-color: #0e0606ab;

}
section, .skills, .projects, .timeline-tree {
  margin-top: 60px;
  margin-bottom: 60px;
  scroll-margin-top: 80px; /* Ensure navbar doesn't cover content */
}

.navbar {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.logo img{
    display: flex;
    justify-content: space-between;
    height: 40px;
    width: auto;
    border-radius: 10px;
    margin: 0%;
     
}

.nav-link {
  color: white !important;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: 'Courier New', Courier, monospace;
  gap: 10px;
  cursor:url('web-images/cursor.png') 0 0, auto ;

}

.nav-link:hover {
  color: #00ffd5 !important

}
.navbar-brand {
  font-weight: bold;
  color: white !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: rgb(65, 63, 63);
    flex-direction: column;
    padding: 20px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    width: auto;
    border-radius: 20px;
    
    
    
  }
.nav-links.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    
    
  }

  .hamburger {
    display: flex;
    
  }

}



.about{
    color: white;
    justify-content: space-between;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    
    
   
    
}

.about-contents {
    margin: 50px;
}


.about h2{
    background: linear-gradient(135deg, #8be784, #bc153c);
    font-size: clamp(1.5rem, 5vw, 3rem);
    background-clip: text;
    font-family: montserrat;
    opacity: 1;
    color:transparent;
    font-weight:900;
    
}

.about h3 {
   opacity: 1;
  
}
.dev{
   max-width: 100%;
   height: auto;
   
}

.dev img{
    width: 400px ;
    height: auto;
    border-radius: 30px;
    margin-right: 50px;
}

.modern-button {
  cursor:url('web-images/cursor.png') 0 0, auto ;
  display: inline-block;
  padding: 4.875px 9.75px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.skills {
  margin: 0 10px;
  padding: 40px 0;
  background: transparent;
}

.skills h1 {
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

.skills h1 .web {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  background: linear-gradient(135deg, #8be784, #bc153c);
  background-clip: text;
  color: transparent;
}

/* Responsive grid container */
.skills-contents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Flexible layout */
  gap: 20px;
  padding-top: 30px;
  margin: 0 auto;
  max-width: 1080px; /* Prevents overflow */
  width: 100%;
}

/* Glassy square cards */
.skill-card {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Hover effects */
.skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.skill-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.skill-card:hover img {
  transform: scale(1.1);
}

.skill-card h1 {
  font-size: 17px;
  color: rgb(255, 255, 255);
  font-weight: 600;
  margin: 0;
}

.projects {
  padding: 60px 20px;
  text-align: center;
}

.projects h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
   background: linear-gradient(135deg, #8be784, #bc153c);
    background-clip: text;
    color:transparent;
    font-weight:900;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.1);
}

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

.project-info {
  padding: 20px;
  color: white;
}

.project-info h3 {
  margin-bottom: 10px;
}

.project-info p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (max-width: 768px) {
  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .about-contents {
    margin: 50px;
  }
.about h2 {
   background: linear-gradient(135deg, #8be784, #bc153c);
    font-size: clamp(1.5rem, 5vw, 3rem);
    background-clip: text;
    font-family: montserrat;
    opacity: 1;
    color:transparent;
    font-weight:900;
    
}

.about h3 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 2s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
  .dev img {
    margin: 20px 0;
    width: 80%;
  }

  .project-contents {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Timeline Container */

  
.timeline-tree {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 1rem;
  background: transparent;
  
  /* Start hidden for animation */
  
  transform: translateY(20px);

}
  


.timeline-tree h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: bold;
   background: linear-gradient(135deg, #8be784, #bc153c);
    background-clip: text;
    color:transparent;
    font-weight:900;
}

.timeline-tree::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 90%;
  background: #66cc99;
  z-index: -1;
}

.timeline-tree::after {
  content: '';
  display: table;
  clear: both;
}

/* Timeline Items */
.timeline-item {
  width: 45%;
  padding: 1rem;
  position: relative;
  background: transparent;
}

.timeline-item.left {
  float: left;
  clear: both;
  text-align: right;
  margin-right: 5%;
}

.timeline-item.right {
  float: right;
  clear: both;
  text-align: left;
  margin-left: 5%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 12px;
  height: 12px;
  background: #66cc99;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left::before {
  right: -30px;
}

.timeline-item.right::before {
  left: -30px;
}

/* Glassy Content */
.timeline-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor:url('web-images/cursor.png') 0 0, auto ;

 transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.1);
}

.timeline-content h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #f60505;
  font-weight: bold;
}

.timeline-content p {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: whitesmoke;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .timeline-item {
    width: 45%;
    margin: 1rem auto;
    float: none;
    text-align: center;
  }

  .timeline-item.left,
  .timeline-item.right {
    margin: 0 auto;
  }

  .timeline-item.left::before,
  .timeline-item.right::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Contact Section */
.contact {
  padding: 60px 20px;
  
  color: white;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 40px;
   background: linear-gradient(135deg, #8be784, #bc153c);
    background-clip: text;
    color:transparent;
    font-weight:900;
  font-family: montserrat;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  backdrop-filter: blur(20px);
}

/* Contact Form */
.contact-form {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #45d3d3;
  font-size: 1rem;
}

.contact-form button {
  padding: 10px 15px;
  background-color: #09de34;
  color: black;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #07b62c;
  cursor:url('web-images/cursor.png') 0 0, auto ;
}

/* Socials */
.socials {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-top: 10%;
  
}

.socials h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #09de34;
}

.socials-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  
}

.socials-icons a img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  cursor:url('web-images/cursor.png') 0 0, auto ;

}

.socials-icons a img:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .socials {
    width: 100%;
    text-align: center;
  }

  .contact-form {
    text-align: left;
  }

  .socials-icons {
    justify-content: center;
  }
}

.site-footer {
backdrop-filter: blur(20px);
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-top: 5px solid #2f8392;
  margin-top: 60px;
}

.footer-content h3 {
  margin-bottom: 10px;
  color: #00ffff;
  font-size: 1.4rem;
  font-family: 'Courier New', monospace;
}

.footer-content p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 20px;
  font-family: monospace;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-socials a img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
  cursor:url('web-images/cursor.png') 0 0, auto ;

}

.footer-socials a img:hover {
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .footer-content h3 {
    font-size: 1.2rem;
  }

  .footer-content p {
    font-size: 0.8rem;
  }

  .footer-socials a img {
    width: 26px;
    height: 26px;
  }
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #09de34;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
  background-color: #07c129;
  transform: scale(1.1);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #09de34;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

#backToTop.pulse {
  animation: pulse 2s infinite;
}

#backToTop:hover {
  background-color: #07c129;
  transform: scale(1.1);
}

/* Force your original dark background back */
body {
  background: url("web-images/background.jpg") no-repeat center center fixed;
  background-size: cover;
  color: white;
}

/* Optional: reapply dark overlay for brightness control */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.555); /* adjust darkness here */
  z-index: -1;
}
