* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto Mono', monospace;
}

body, html {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  position: relative;
  background-color: black; 
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* Internet Explorer/Edge */
  user-select: none;  
}

#clock {
    font-size: 18px; 
    font-weight: bold; 
    color: #00b7ff; 
    font-family: 'Orbitron', sans-serif; 
    text-align: center; 
    letter-spacing: 2px; 
    margin: 20px 0; 
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; 
}

.content {
  position: relative;
  color: white;
  text-align: center;
  font-family: Arial, sans-serif;
  z-index: 1; 
}

.logo-container {
  width: 480px; 
  height: 480px; 
  border-radius: 50%; 
  background-color: purple; 
  animation: logoAnimation 3s infinite alternate; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
}

.logo {
  width: 95%; 
  height: auto; 
  border-radius: 50%; 
}

@keyframes logoAnimation {
  0% {
    background-color: rgb(255, 0, 255); 
  }
  15% {
    background-color: rgb(255, 123, 0); 
  }
  30% {
    background-color: rgb(0, 255, 106);
  }
  45% {
    background-color: rgb(255, 0, 0); 
  }
  60% {
    background-color: rgb(0, 255, 221); 
  }
  75% {
    background-color: rgb(255, 217, 0);
  }
  90% {
    background-color: rgb(0, 255, 64); 
  }
  100% {
    background-color: blue; 
  }
}

@media (max-width: 768px) { 
  .logo-container {
    width: 360px; 
    height: 360px; 
  }
}

@media (max-width: 480px) { 
  .logo-container {
    width: 240px; 
    height: 240px; 
  }
}

header {
  height: 55px;
  background: rgba(31, 39, 49, 0.9);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 0 10px #58a6ff44;
  margin-right: 10px;
  margin-left: 10px;
  margin-top: 10px;
  border: 2px solid red;
  border-left: 8px solid rgb(0, 26, 255);
  border-right: 8px solid rgb(0, 26, 255);
  border-radius: 35px;
  background: rgba(79, 106, 148, 0.3);
  backdrop-filter: blur(5px);        
  -webkit-backdrop-filter: blur(10px); 
}

header h1 {
  font-size: 1.5rem;
  color: #58a6ff;
}

nav {
  display: flex; 
}

nav a {
  color: #00b7ff;
  margin-left: 1rem;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff005f;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer; 
}

@media (max-width: 600px) {
  header {
    padding: 1rem;
  }

  nav {
    display: none; 
    flex-direction: column; 
    align-items: flex-start; 
    margin-top: 5px; 
    width: 100%; 
    background: rgba(31, 39, 49, 0.9); 
    border-radius: 5px; 
    position: absolute; 
    top: 55px; 
    left: 0; 
    z-index: 998; 
    border: 2px solid red;
    border-left: 8px solid rgb(0, 26, 255);
    border-right: 8px solid rgb(0, 26, 255);
    border-radius: 23px;
    background: rgba(79, 106, 148, 0.3);
    backdrop-filter: blur(10px);        
    -webkit-backdrop-filter: blur(10px); 
  }

  nav a {
    margin-left: 0;
    margin-bottom: 0.5rem; 
    width: 100%; 
    text-align: left;
    padding: 10px;
  }

  .menu-toggle {
    display: block; 
  }
}

#connect {
  position: relative; 
  height: auto; 
  padding: 20px;
}

.social-links {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 0.5rem; /* Reduced gap */
  margin-top: 100px; 
}

.social-link {
  display: inline-block;
  padding: 10px; 
  border: 2px solid transparent; 
  border-radius: 10px; 
  transition: border-color 0.3s ease; 
  position: relative; 
  flex: 1 1 calc(45% - 20px); /* Default for larger screens */
  max-width: 150px; 
}

.social-link img {
  width: 75px; 
  height: 75px; 
  transition: transform 0.3s, filter 0.3s;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 35px; 
  background: linear-gradient(45deg, #ff0080, #00bfff, #ff0080); 
  background-size: 300% 300%; 
  z-index: -1; 
  animation: gradient-animation 3s ease infinite; 
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.social-link:hover {
  border-color: transparent;
}

.social-link:hover img {
  transform: scale(1.2);
  filter: brightness(1.2) drop-shadow(0 0 5px rgb(0, 255, 213));
}

@media (max-width: 900px) { 
  .social-link {
    flex: 1 1 calc(50% - 10px); 
    margin: 5px; 
  }
}

section {
  padding: 4rem 2rem;
  min-height: 100vh;
  animation: fadeIn 1.5s ease-in;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.heroic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px; 
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid rgb(255, 102, 0);
  animation: typing 4s steps(30, end), blink-caret 0.75s step-end infinite; 
}

@keyframes typing {
  from {
      width: 0; 
  }
  to {
      width: 100%; 
  }
}

@keyframes blink-caret {
  from, to {
      border-color: transparent; 
  }
  50% {
      border-color: rgb(255, 94, 0); 
  }
}

.scroll-down {
  margin-top: 20px; 
  font-size: 15rem;
  animation: pulse 1.5s infinite; 
  color: rgb(255, 102, 0); 
}

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

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ff0000;
  border-bottom: 2px solid #30363d;
  display: inline-block;
}

@media (max-width: 900px) {
  .heroic {
    padding: 10px; 
  }

  .typewriter {
    font-size: 2rem; 
    white-space: normal;
  }

  .scroll-down {
    font-size: 8rem; 
  }
}

@media (max-width: 600px) {
  .heroic {
    padding: 10px; 
  }

  .typewriter {
    font-size: 1.5rem;
    white-space: normal; 
  }

  .scroll-down {
    font-size: 5rem; 
  }
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ff0000;
  border-bottom: 2px solid #30363d;
  display: inline-block;
}

@media (max-width: 600px) {
  .heroic {
    padding: 10px; 
  }

  .typewriter {
    font-size: 1.5rem; 
    white-space: normal; 
  }

  .scroll-down {
    font-size: 5rem; 
  }
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ff0000;
  border-bottom: 2px solid #30363d;
  display: inline-block;
}

.content-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.tool-card {
  background: rgba(79, 106, 148, 0.3);
  backdrop-filter: blur(5px);        
  -webkit-backdrop-filter: blur(10px); 
  padding: 1rem;
  border: 2px solid red;
  border-left: 8px solid rgb(4, 0, 255);
  border-right: 8px solid rgb(4, 0, 255);
  border-radius: 23px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
  transform: translateY(-12px) scale(1.05);
  border: 2px solid #0ff;
  box-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #f0f;
  background: rgba(33, 42, 56, 0.9); 
}

.tool-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.5rem;
}

.tool-card h3 {
  text-decoration: none;
  margin-bottom: 0.3rem;
  color: #00fff2;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #d3f800;
  font-size: 0.8rem;
}

#news-section {
  max-width: auto;
  height: auto;
  margin: 0 auto 4rem;
}

#news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
  gap: 1.2rem;
}

@media (max-width: 800px) {
  #news-list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
  }
}

@media (min-width: 768px) {
  #news-list {
    grid-template-columns: repeat(4, 1fr); 
  }
}

.news-card {
  background: rgba(33, 42, 56, 0.6);
  background: rgba(79, 106, 148, 0.3);
  backdrop-filter: blur(5px);        
  -webkit-backdrop-filter: blur(10px); 
  border: 2px solid red;
  border-left: 8px solid rgb(4, 0, 255);
  border-right: 8px solid rgb(4, 0, 255);
  border-radius: 23px;
  border-radius: 30px;
  border-radius: 30px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.news-card:hover {
  transform: translateY(-12px) scale(1.05);
  border: 2px solid #0ff; /* glowing border */
  box-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #f0f;
  background: rgba(33, 42, 56, 0.9); /* brighten background */
}

.news-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#news-modal.active {
  display: flex;
}

#news-modal-content img {
  max-width: 100%;
  margin: 1rem 0;
}

footer {
  text-align: center;
  padding: 2rem;
  background: rgba(22, 27, 34, 0.9);
  color: #8b949e;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slider-container {
  display: flex;
  align-items: center;
  overflow: hidden; 
  position: relative;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.2rem;
  transition: transform 0.5s ease;
}

#prev-button, #next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(145deg, #ff0000, #0051ff); 
  border: 2px solid #ff0000; 
  color: #0056b3; 
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-radius: 25px; 
  user-select: none;
  font-size: 1rem; 
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 86, 179, 0.2); 
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  z-index: 10;
  width: 60px; 
  height: 60px; 
}

#prev-button:hover, #next-button:hover {
  background: linear-gradient(145deg, #007bff, #ff0000); 
  color: #ffffff; 
  box-shadow: 0 0 25px rgba(0, 86, 179, 0.5), 0 0 40px rgba(0, 86, 179, 0.3); 
  border-color: #004494; 
}

#prev-button:disabled, #next-button:disabled {
  opacity: 0.5; 
  cursor: not-allowed; 
  box-shadow: none;
  color: #b0b0b000; 
  border-color: #b0b0b0; 
}

#prev-button {
  left: 20px; 
}

#next-button {
  right: 20px; 
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 30, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #0a0a1e;
  border: 2px solid #58a6ff;
  border-top: 2px solid #0f0;
  border-bottom: 2px solid rgb(255, 0, 0);
  border-radius: 8px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  color: #58a6ff;
  box-shadow: 0 0 20px #58a6ff;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: #58a6ff;
  font-size: 2rem;
  cursor: pointer;
}

#modal-readmore {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #58a6ff;
  color: #0a0a1e;
  text-decoration: none;
  border-radius: 4px;
  border-left: 2px solid #0f0;
  border-right: 2px solid rgb(255, 0, 0);
  transition: background 0.3s ease;
}

#modal-readmore:hover {
  background: #2ef1ff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#search {
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: auto; 
    margin-top: 60px;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(79, 106, 148, 0.3);
    backdrop-filter: blur(5px);        
    -webkit-backdrop-filter: blur(10px); 
    border: 2px solid red;
    border-left: 8px solid rgb(4, 0, 255);
    border-right: 8px solid rgb(4, 0, 255);
    border-radius: 23px;
    padding: 10px;
    background-color: rgba(18, 19, 20, 0.75);
    backdrop-filter: blur(3px);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
    transition: box-shadow 0.3s ease;
    margin: 10px auto; 
    width: 90%; 
    max-width: 2000px; 
}

.search-container:hover {
  transform: translateY(-12px) scale(1.05);
  border: 2px solid #0ff; /* glowing border */
  box-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #f0f;
  background: rgba(33, 42, 56, 0.9); /* brighten background */
}

#search-input {
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    padding: 10px;
    font-size: 16px;
    flex: 1; 
}

#search-button {
  background-color: #ff0000;
  border: none;
  border-radius: 20px;
  color: #ffffff;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  border-top: 2px solid rgb(255, 0, 0);
  border-bottom: 2px solid rgb(255, 0, 0);
}

#search-button:hover {
    background-color: #0004ff;
}

@media (max-width: 768px) {
    #search-input {
        font-size: 14px; /* Smaller font size for mobile */
    }

    #search-button {
        padding: 8px 16px; /* Smaller button padding */
    }
}

@media (max-width: 480px) {
    #search-input {
        font-size: 12px; 
    }

    #search-button {
        padding: 6px 12px; 
    }
}

/* Terminal Console */
.cyber-console {
  background: #131212bd;
  padding: 20px;
  margin: 60px auto;
  max-width: 90%;
  height: 450px;
  border-radius: 20px;
  background: rgba(24, 30, 41, 0.3);
  backdrop-filter: blur(5px);        
  -webkit-backdrop-filter: blur(10px); 
  border: 2px solid red;
  border-left: 8px solid rgb(4, 0, 255);
  border-right: 8px solid rgb(4, 0, 255);
  border-radius: 23px;
  overflow-y: auto;
}

.cyber-console:hover {
  transform: translateY(-12px) scale(1.05);
  border: 2px solid #0ff; /* glowing border */
  box-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #f0f;
  background: rgba(33, 42, 56, 0.9); /* brighten background */
}
.console-output {
  font-family: monospace;
  color: #0f0;
  height: 270px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.console-input {
  width: 100%;
  padding: 8px;
  background: #000;
  border-radius: 20px;
  border: 2px solid rgb(0, 4, 255);  color: #0f0;
  border-left: 7px solid rgb(255, 0, 0);
  border-right: 7px solid rgb(255, 0, 0);
  font-family: monospace;
  margin-top: 90px;
}

/* Base64 Decrypt Box */
.crypto-box {
  text-align: center;
  margin: 2em auto;
  padding: 1em;
  background: rgba(0, 255, 0, 0.05);
  border-radius: 20px;
  border: 2px solid rgb(0, 38, 255);  color: #0f0;
  border-left: 5px solid rgb(255, 0, 0);
  border-right: 5px solid rgb(255, 0, 0);
  max-width: 90%;
  height: 200px;
}

.crypto-box:hover {
  transform: translateY(-12px) scale(1.05);
  border: 2px solid #0ff; /* glowing border */
  box-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #f0f;
  background: rgba(33, 42, 56, 0.9); /* brighten background */
}

#decrypt-input {
  background: #000;
  color: #0f0;
  border-radius: 25px;
  border: 2px solid rgb(255, 0, 0);  color: #0f0;
  border-left: 7px solid rgb(17, 0, 255);
  border-right: 7px solid rgb(0, 4, 255);
  padding: 10px;
  width: 80%;
  margin-top: 10px;
}

button[onclick="decryptMessage()"] {
  background: rgba(255, 255, 255, 0);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 30px;
  border: 2px solid rgb(255, 0, 0);  color: #0f0;
  border-left: 7px solid rgb(17, 0, 255);
  border-right: 7px solid rgb(55, 0, 255);
}

button[onclick="decryptMessage()"]:hover {
  background: #0400ff;
  color: #0f0;
  transform: scale(1.05);
  transition: all 0.3s ease-in-out;
}

.terminal-output {
  color: #0f0;
  font-family: monospace;
  white-space: pre-wrap;
}

.terminal-cmd {
  color: #6f6;
  font-family: monospace;
  margin-top: 10px;
}

.terminal-ip {
  font-family: monospace;
  background: #000;
  border: 1px solid #0f0;
  padding: 8px 12px;
  margin-top: 10px;
  color: #0f0;
  white-space: pre;
}

.terminal-error {
  color: #f00;
  font-family: monospace;
}

/* Base hidden state */
.hidden {
  opacity: 0;
  transition: all 1s ease-out;
}

/* When shown */
.show {
  opacity: 1;
  transform: none !important;
}

/* Variants */
.fade-up    { transform: translateY(60px); }
.fade-down  { transform: translateY(-60px); }
.fade-left  { transform: translateX(-60px); }
.fade-right { transform: translateX(60px); }
.zoom-in    { transform: scale(0.8); }
.rotate-in  { transform: rotate(-10deg) scale(0.8); }

