/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Allura&family=Caveat:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sassy+Frass&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    background-color: #0f111a;
    color: #e5e5e5;
    font-family: 'Fira Code', monospace;
    transition: background-color 0.3s ease, color 0.3s ease;
   
  }
  

  /* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: #161821;
    padding: 1rem 2rem;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    font-family: "Caveat", cursive;
    font-size: 2rem;
    
  }
  body.light .logo{
    color:  #007acc !important;
  }
 
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  .nav-links a {
    text-decoration: none;
    color: #e5e5e5;
    transition: color 0.3s;
  }
  .nav-links a:hover {
    color: #00ffcc;
  }
  
  /* Hamburger Icon */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
  }
  .hamburger span {
    height: 3px;
    width: 25px;
    background: #00ffcc;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  body.light .hamburger span{
    background: #007acc;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .nav-links {
      position: absolute;
      top: 70px;
      right: 0;
      background-color: #1e2129; 
      flex-direction: column;
      width: 100%;
      text-align: center;
      display: none;
      padding: 1rem 0;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    }
    body.light .nav-links {
      background-color: #ffffff;
    }
    .logo{
      font-size: 1.5rem;
     
      
    }
    .nav-links.active {
      display: flex;
    }
  
    .hamburger {
      display: flex;
    }
  }
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
/* Theme Toggle Button */
/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1.3rem;
  color: #00ffcc;
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

.theme-toggle:hover {
  transform: rotate(15deg);
}

/* Toggle Icon Animation */
.toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.toggle-icon.flip {
  transform: rotateY(180deg);
}

  
  /* Light Theme */
  body.light {
    background-color: #f4f4f4;
    color: #111;
  }
  body.light .terminal-text{
    color: white;
  }
  body.light .logo{
    color : #5c6ac4
  }
  body.light .navbar  {
    background-color: #ffffff;
  }
  body.light .nav-links a {
    color: #5c6ac4;
  }
  body.light .nav-links a:hover  {
    color: #044c7c;
  }
  
  /* Dark Theme (Default) */
  
.navbar,
.nav-links a,
.logo{
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  
  /* Add a solid base color */
  background-color: #0f111a;

  /* Then the pattern on top */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23161821' fill-opacity='1' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");

  background-blend-mode: multiply; /* Optional: helps blend pattern with bg */
  color: #e5e5e5;
  padding: 40px 20px;
}

  body.light .footer {
    background-color: #f4f4f4;

    color: #111;
  }
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  .footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-logo {
    height: 200px;
   
    margin-bottom: 10px;
  }
  
  .footer-name {
    font-size: 3rem;
    font-family: "Sassy Frass", cursive;
    font-weight: bold;
    color: var(--accent);
  }
  
  .footer-center {
    text-align: center;
  }
  
  .footer-email-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
  }
  
  .footer-email-box {
    background-color: #1c1e26 ;  /* dark mode default */
    color: #e5e5e5;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
  }
  
  .footer-email-box:hover {
    background-color: #292b36;  /* slightly lighter for hover */
    color: #00ffcc;
    transform: translateY(-2px);
  }
  
  /* Light Theme override */
  body.light .footer-email-box {
    background-color: #e9e8e8;
    color: #111;
  }
  
  body.light .footer-email-box:hover {
    background-color: #ffffff;
    color: #007acc;
  }
  
  .footer-email-box .mail-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
  
  .footer-right {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
  }
  
  .footer-right a img {
    height: 28px;
    filter: var(--icon-filter);
    transition: all 0.3s ease;
  }
  
  .footer-right a:hover img {
    transform: scale(1.15);
    filter: none;
  }
  
  .footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
  }
  
  /* Responsive */
  @media (min-width: 768px) {
    .footer-container {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      gap: 0;
    }
  
    .footer-center {
      order: 1;
    }
    
    .footer-left,
    .footer-right {
      width: 25%;
    }
  }
  @media (max-width: 600px) {
    .footer-email-box .mail-icon {
      width: 14px;
      height: 14px;
    }
    .footer-name{
      font-size: 3rem;
    }
  }
/* ::selection {
  background-color: rgba(255, 229, 100, 0.7); 
  color: #1a1a1a; 
} */

/* Default (dark theme) selection */
/* Dark theme */
::selection {
  background-color: rgba(0, 255, 153, 0.377);  /* soft green */
  color: #ffffff;
  text-shadow: 0 0 2px rgba(0, 255, 153, 0.3); /* glow effect */
}

/* Light theme */
body.light ::selection {
  background-color: rgba(0, 122, 204, 0.493);  /* soft blue */
  color: #111;
  text-shadow: 0 0 1px rgba(0, 122, 204, 0.2); /* subtle text glow */
}
