/* -------------------- */
/* GLOBAL STYLES        */
/* -------------------- */
/* .intro p{
    color: whitesmoke;
} */
/* .skills-section li{
    color: whitesmoke;
} */
body {
    margin: 0;
    font-family: 'Roboto', 'Montserrat', 'Open Sans', 'Ubuntu', sans-serif;
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    overflow-x: hidden;
  }
  
  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: #00ffe7;
    text-shadow: 0 0 10px #00ffe7;
    text-align: center;
  }
  
  /* a {
    color: #00ffe7;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  } */


a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  color: #005fa3;
  text-decoration: underline;
}



  .section {
    background-color: rgba(0, 0, 0, 0.5); /* subtle overlay */
  }
  
  /* -------------------- */
  /* NAV BAR            */
  /* -------------------- */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 12, 41, 0.9);
  padding: 10px 0;
  z-index: 999;
  text-align: center;
  box-shadow: 0 0 10px #00ffe7;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  display: inline-block;
  margin: 0 15px;
}

.navbar a {
  color: #00ffe7;
  font-family: 'Orbitron', sans-serif;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: white;
  text-shadow: 0 0 5px #00ffe7;
}



  /* -------------------- */
  /* DARK MODE            */
  /* -------------------- */
  /* body.dark-mode {
    background-color: #0d0d0d;
    color: #00ffe7;
  }
  
  body.dark-mode h1,
  body.dark-mode h2,
  body.dark-mode h3,
  body.dark-mode p {
    color: #00ffe7;
    text-shadow: 0 0 5px #00ffe7;
  } */
  

  h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: #2c3e50;
    text-shadow: none;
    font-weight: 600;
  }
  
  body.dark-mode h1,
  body.dark-mode h2,
  body.dark-mode h3 {
    color: #00bcd4;
  }
  

/* Light Mode (default) */
body {
    background: #f5f7fa;
    color: #1a1a1a;
  }
  
  .intro p {
    color: #333;
  }
  
  /* Dark Mode */
  body.dark-mode {
    background-color: #0f1117;
    color: #e0e0e0;
  }
  
  body.dark-mode h1,
  body.dark-mode h2,
  body.dark-mode h3,
  body.dark-mode p {
    color: #e0e0e0;
    text-shadow: none;
  }
  



  /* -------------------- */
  /* DARK MODE TOGGLE     */
  /* -------------------- */
  .dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }
  
  input:checked + .slider {
    background-color: #00ffe7;
    box-shadow: 0 0 10px #00ffe7;
  }
  
  input:checked + .slider:before {
    transform: translateX(30px);
  }
  
  /* -------------------- */
  /* SECTION SPACING      */
  /* -------------------- */
  .section {
    margin: 100px 0;
    padding: 40px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  
  .section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* -------------------- */
  /* INITIALIZATION       */
  /* -------------------- */
  .image img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto;
  }
  
  .name {
    text-align: center;
    margin-top: 20px;
  }
  
  /* -------------------- */
  /* TYPING EFFECT        */
  /* -------------------- */
  .typing-container {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: #00ffe7;
    text-shadow: 0 0 5px #00ffe7;
    text-align: center;
  }
  
  .cursor {
    display: inline-block;
    width: 5px;
    height: 1em;
    background-color: #00ffe7;
    margin-left: 5px;
    animation: blink-cursor 1s infinite;
    box-shadow: 0 0 5px #00ffe7;
  }
  
  @keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  
  /* -------------------- */
  /* INTRO SECTION        */
  /* -------------------- */
  .intro p {
    font-size: 18px;
    text-align: center;
    width: 60%;
    margin: 0 auto;
    padding: 10px;
  }
  
  .skills-section {
    text-align: center;
    margin-top: 30px;
  }
  
  .skills-section ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
  }
  
  .skills-section ul li {
    font-size: 16px;
    margin: 5px 0;
  }
  
  .skills-logo img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 10px;
    display: inline-block;
    opacity: 0.6;
  }
  .skills-logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  }
  
  
/* -------------------- */
/* PROJECTS - HORIZONTAL LAYOUT */
/* -------------------- */
.projects {
  text-align: center;
}

.projects h2 {
  margin-bottom: 40px;
}

/* Container for project cards */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #00ffe7;
  border-radius: 10px;
  padding: 20px;
  width: 280px;
  flex: 0 1 280px;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ffe7;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.project-card p {
  margin-bottom: 15px;
  font-size: 14px;
  color: #ccc;
}

.project-card a {
  display: inline-block;
  padding: 8px 16px;
  background: #00ffe7;
  color: #0f0c29;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.project-card a:hover {
  background: #00ccb8;
  color: #0f0c29;
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
  .projects-container {
    flex-direction: column;
    align-items: center;
  }
  
  .project-card {
    width: 90%;
    max-width: 400px;
  }
}


  
  /* -------------------- */
  /* OPEN SOURCE          */
  /* -------------------- */
  .open-source ul {
    list-style: none;
    padding: 0;
    text-align: center;
  }
  
  .open-source li {
    margin: 10px 0;
    font-size: 16px;
  }
  
  /* -------------------- */
  /* CONTACTS             */
  /* -------------------- */
  .contacts {
    text-align: center;
  }
  
  .contacts a {
    margin: 0 10px;
    font-size: 24px;
  }
.contact-icon {
  width: 40px;
  height: 40px;
  margin: 0 10px;
  color: #0077cc;
  vertical-align: unset;
  transition: transform 0.3s ease;
}

.contact-icon:hover {
  transform: scale(1.2);
  color: #005fa3; /* faded tone */
}




/* ----------------------------- */
/* PARALLAX SCROLLING EFFECT     */
/* ----------------------------- */

  .section {
    position: relative;
    z-index: 1;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
  }
  
  #initialize {
    background-image: url('bg/tech1.jpg');
  }
  
  #intro {
    background-image: url('bg/tech2.jpg');
  }
  
  #projects {
    background-image: url('bg/tech3.jpg');
  }
  
  #open-source {
    background-image: url('bg/tech4.jpg');
  }
  
  #contacts {
    background-image: url('bg/tech5.jpg');
  }

  






  /* -------------------- */
  /* RESPONSIVE DESIGN    */
  /* -------------------- */
  @media (max-width: 768px) {
    .intro p,
    .project-card {
      width: 90%;
      font-size: 16px;
    }
  
    .skills-logo img {
      width: 30px;
      height: 30px;
    }
  
    .typing-container {
      font-size: 20px;
    }
  
    .dark-mode-toggle {
      top: 10px;
      right: 10px;
    }
  }
  


/*---------------------------- */
/*         Animation           */
/*-----------------------------*/


@keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(40px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .section.visible {
    animation: fadeInUp 1s ease-out forwards;
  }
  


  .skills-logo img:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px #00ffe7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  

  .scroll-indicator {
    text-align: center;
    margin-top: 20px;
    animation: bounce 2s infinite;
    color: #00ffe7;
    font-size: 24px;
  }
  
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
  }
  



/*---------------------------- */
/*Screen Loader Animation      */
/*-----------------------------*/

  #loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #0f0c29;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    color: #00ffe7;
    font-family: 'Orbitron', sans-serif;
  }
  
  .spinner {
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid #00ffe7;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  

/*---------------------------- */
/*     Particle BG             */
/*-----------------------------*/


  #tsparticles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    top: 0;
    left: 0;
    background: transparent;
    pointer-events: none;
  }
  