body {
    font-family: 'Orbitron', sans-serif;
    color: #e0e0e0;
    background: #0a0a0a;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  
  .sci-fi-header {
    background: linear-gradient(135deg, #1f1f1f, #333);
    text-align: center;
    padding: 50px 20px;
    color: #00ffcc;
    border-bottom: 2px solid #00ffcc;
  }

  /* Default for large view (desktop and up) */
  .sci-fi-header h1 {
    font-size: 4rem; /* Adjust this for desktop */
    margin-bottom: 10px;
    display: flex; /* Align items in a row */
    justify-content: center;
    align-items: center; /* Vertically center text and image */
    gap: 3px; /* Spacing between elements */
    text-align: center;
  }

  .title-part {
    color: #00ffcc; /* Your theme color */
  }

  @keyframes rotate-brighten {
    0% {
      transform: rotateY(0deg);
      filter: brightness(1);
    }
    50% {
      transform: rotateY(360deg);
      filter: brightness(1.5); /* Increase brightness at halfway point */
    }
    100% {
      transform: rotateY(720deg);
      filter: brightness(1); /* Reset brightness at the end */
    }
  }
  
  .q-image {
    max-height: 60px;
    object-fit: cover;
    transition: filter 0.3s ease;
    animation: rotate-brighten 5s infinite ease-in-out;
  }

.sci-fi-section h2 {
  font-size: 2.5rem;
  color: #00ffcc;
  border-bottom: 1px solid #00ffcc;
  padding-bottom: 10px;
  margin-bottom: 20px;
}


.sci-fi-header p {
  font-size: 1.2rem;
}

/* Tablet view (up to 1024px) */
@media (max-width: 1024px) {
  .sci-fi-header h1 {
    font-size: 3rem; /* Slightly smaller for tablets */
  }

  .sci-fi-section h2 {
    font-size: 2rem; /* Scale down for better readability on tablets */
  }

  .q-image {
    max-height: 50px;
  }
}

/* Phone view (up to 768px) */
@media (max-width: 768px) {
  .sci-fi-header h1 {
    font-size: 2.5rem; /* Adjust for smaller screens */
  }

  .sci-fi-section h2 {
    font-size: 1.8rem; /* Keep h2 readable on mobile */
  }
  .sci-fi-header p {
    font-size: 1.1rem; /* Adjust for smaller screens */
  }

  .q-image {
    max-height: 40px;
  }
}

/* Small phone view (up to 480px) */
@media (max-width: 480px) {
  .sci-fi-header h1 {
    font-size: 2rem; /* Further reduce for small phones */
  }

  .sci-fi-header p {
    font-size: .8rem; /* Adjust for smaller screens */
  }

  .sci-fi-section h2 {
    font-size: 1.5rem; /* Fit h2 comfortably on small screens */
  }

  .q-image {
    max-height: 30px;
  }
}

  
  .sci-fi-section {
    padding: 40px 20px;
    border-bottom: 1px solid #333;
  }
  
  .sci-fi-section ul {
    list-style: none;
  }
  
  .sci-fi-section li {
    margin-bottom: 20px;
  }
  
  .sci-fi-section a {
    color: #00ffcc;
    text-decoration: none;
  }
  
  .sci-fi-section a:hover {
    text-decoration: underline;
  }
  
  .sci-fi-footer {
    background: linear-gradient(135deg, #1f1f1f, #333);
    text-align: center;
    padding: 20px;
    color: #00ffcc;
  }
  
  .skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .skill-item {
    flex: 1 1 calc(25% - 40px); /* 4 items per row on desktop */
    max-width: calc(25% - 40px);
    text-align: center;
    background: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    transition: background 0.3s;
  }
  
  .skill-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }
  
  .skill-item p {
    font-size: 1.2rem;
    color: #00ffcc;
  }
  
  
  .skill-item:hover {
    background: #333;
  }
  
  @media (max-width: 1024px) {
    .skill-item {
      flex: 1 1 calc(50% - 40px); /* 2 items per row on tablets */
      max-width: calc(50% - 40px);
    }
  }
  
  @media (max-width: 768px) {
    .skill-item {
      flex: 1 1 calc(100% - 40px); /* 1 item per row on mobile */
      max-width: calc(100% - 40px);
    }
  }
  
  /* Tab content containers */
.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tab-button {
  background: #1f1f1f;
  color: #00ffcc;
  font-family: 'Orbitron', sans-serif;
  border: 2px solid #00ffcc;
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  text-transform: uppercase;
}

.tab-button.active {
  background: #00ffcc;
  color: #0a0a0a;
}

.tab-button:hover {
  background: #333;
  color: #00ffcc;
}

@media (max-width: 768px) {
  .tab-button {
    padding: 10px;
    margin: 5px;
    font-size: 0.9rem;
  }
}