@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');

body {
  font-family: 'Fira Code', monospace;
  background-color: #0c0c0c;
  color: #00ff00;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  transition: 0.3s ease;
  position: relative;
}

#bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 200vw;
  height: 200vh;
  background-image: url('./assets/images/bg-matrix.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.07;
  z-index: -1;
  transform: translate(-25%, -25%);
  transition: transform 0.05s ease;
  filter: contrast(130%) brightness(130%) blur(0.5px);
}

/* Header */
header {
  background: rgba(0, 0, 0, 0.85);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 20px 10px;
  border-bottom: 1px solid #00ff00;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}
.nav-list {
  display: flex;
  list-style: none;
}
.nav-list li {
  margin: 0 15px;
}
.nav-list a {
  color: #00ff00;
  text-decoration: none;
  transition: 0.3s;
}
.nav-list a:hover {
  color: #00ffdd;
  text-shadow: 0 0 10px #00ffcc;
}
#theme-toggle {
  background: none;
  border: none;
  color: #00ff00;
  font-size: 18px;
  cursor: pointer;
}

main {
  padding-top: 100px;
}

/* Hero Section */
.hero-content {
  text-align: center;
  padding: 120px 20px 100px;
}
.hero-img {
  width: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #00ff99;
  box-shadow: 0 0 15px #00ff99;
}
.hero-content h1 span {
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffaa;
}
.cta {
  display: inline-block;
  background: #00ff99;
  color: #000;
  font-weight: bold;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
  transition: background 0.3s ease;
}
.cta:hover {
  background: #00ffaa;
}

/* Section Styling */
#services, #tools, #oss, #contact {
  padding: 80px 20px;
  text-align: center;
}
h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #00ffaa;
  text-shadow: 0 0 8px #00ffaa;
}
.service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}
.service-item {
  padding: 20px;
  border: 1px solid #0f0;
  background: #111;
  border-radius: 10px;
  transition: 0.3s ease;
  box-shadow: 0 0 10px #00ff66;
}
.service-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ff99;
}

/* ===== Tool Slider ===== */
.tool-slider {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px;
  white-space: nowrap;
  scroll-behavior: smooth;
  -ms-overflow-style: none;     /* Hide scrollbar in IE and Edge */
  scrollbar-width: none;        /* Hide scrollbar in Firefox */
}
.tool-slider::-webkit-scrollbar {
  display: none;                /* Hide scrollbar in Chrome/Safari */
}

.tool-icons {
  display: flex;
  align-items: center;
  animation: scroll 25s linear infinite;
  gap: 20px;
}

.tool-slider:hover .tool-icons {
  animation-play-state: paused;
}

.tool-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
  transition: transform 0.2s ease;
  box-shadow: 0 0 12px rgba(0, 255, 128, 0.1);
}

.tool-icon-wrap img {
  max-height: 60px;
  max-width: 90px;
  object-fit: contain;
  filter: brightness(0.9) drop-shadow(0 0 2px #00ffcc);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.tool-icon-wrap:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(0, 255, 128, 0.3);
}

.tool-icon-wrap img:hover {
  transform: scale(1.3);
  filter: brightness(1.2) drop-shadow(0 0 10px #00ffaa);
}


/* ===== OS Slider ===== */
.os-slider {
  overflow-x: auto;
  padding: 20px;
  white-space: nowrap;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.os-slider::-webkit-scrollbar {
  display: none;
}

.os-icons {
  display: flex;
  align-items: center;
  animation: scrollos 30s linear infinite;
  gap: 20px;
}

.os-slider:hover .os-icons {
  animation-play-state: paused;
}

.os-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
  transition: transform 0.2s ease;
  box-shadow: 0 0 12px rgba(0, 255, 128, 0.1);
}

.os-icon-wrap img {
  max-height: 50px;
  max-width: 80px;
  object-fit: contain;
  filter: brightness(0.85) drop-shadow(0 0 2px #00ff88);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.os-icon-wrap:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(0, 255, 128, 0.3);
}

.os-icon-wrap img:hover {
  transform: scale(1.3);
  filter: brightness(1.3) drop-shadow(0 0 10px #00ffaa);
}


/* ===== Animations ===== */
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes scrollos {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Contact Form */
form#contact-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
}
input, textarea {
  margin: 10px 0;
  padding: 10px;
  background: #1a1a1a;
  color: #00ff00;
  border: 1px solid #00ff00;
  border-radius: 4px;
}
button {
  background: #00ff00;
  color: #000;
  padding: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
button:hover {
  background: #00ffaa;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #000;
  border-top: 1px solid #00ff00;
}
.social-icons img {
  width: 30px;
  margin: 0 10px;
  filter: brightness(0.9);
  transition: transform 0.3s;
}
.social-icons img:hover {
  transform: scale(1.3);
  filter: brightness(1.2);
}

/* Utility */
.neon-border {
  border: 2px solid #00ff99;
  box-shadow: 0 0 10px #00ffaa;
}

/* ===== Projects Section ===== */
#projects {
  padding: 80px 20px;
  text-align: center;
}

.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

/* Individual Project Cards */
.project-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: #111;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px #00ff66;
  min-height: 300px; /* Ensures consistent height */
}

/* Hover Effect */
.project-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 20px #00ffaa;
}

/* Project Title */
.project-item h3 {
  margin-bottom: 10px;
}

/* Project Description */
.project-item p {
  flex-grow: 1; /* Push the button to the bottom */
  margin-bottom: 20px;
}

/* GitHub Link */
.project-item a {
  display: inline-block;
  margin-top: auto;
  color: #00ffaa;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.2s;
}

/* GitHub Link Hover */
.project-item a:hover {
  color: #00ffcc;
}
