/* ===== Color Palette ===== */
:root {
    --bg: #0f0f18;
    --fg: #e1e1e6;
    --primary: #00fff0;
    --accent: #ad4fff;
    --card-bg: rgba(16,16,24,0.8);
    --glow: 0 0 20px var(--primary);
  }
  
  /* ===== Reset & Base ===== */
  * { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
  }
  
  body {
    font-family: 'Segoe UI', sans-serif;
    color: var(--fg);
    position: relative;
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
  }
  
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/portfolio background image.png');
    background-size: cover;
    background-position-x: 50%;
    background-position-y: 10%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(10px);  /* Adjust blur amount as needed */
    z-index: -1;
  }
  
  a { 
    text-decoration: none; 
    color: inherit; 
  }
  
  /* ===== Utility Classes ===== */
  .container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    overflow-x: hidden;
    width: 100%;
  }
  
  section { 
    padding: 80px 0; /* Standardize padding for all sections */
  }
  
  .gradient-text {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .primary-text {
    color: var(--primary);
  }
  
  /* ===== Typography ===== */
  h1, h2, h3 {
    font-weight: 800;
    letter-spacing: 1px;
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; margin-bottom: 10px; }
  h3 { font-size: 1.5rem; }
  
  /* ===== Navigation ===== */
  nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15,15,24,0.9);
    z-index: 100;
    transition: background-color 0.3s ease;
  }
  
  nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
  }
  
  .logo {
    font-size: 1.3rem;
    font-weight: bold;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
  }
  
  nav li {
    cursor: pointer;
    position: relative;
  }
  
  nav li::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .3s;
  }
  
  nav li:hover::after {
    width: 100%;
    box-shadow: var(--glow);
  }
  
  /* ===== Hero Section ===== */
  #hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #fff;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }
  
  #bot-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .hero-content.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    align-items: center;
  }
  
  .btn {
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 240, 0.2);
  }
  
  .btn:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: var(--glow);
    transform: translateY(-2px);
  }
  
  /* ===== Scroll Indicator ===== */
  .scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 46%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
  }
  
  .scroll-text {
    color: var(--primary);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  
  .scroll-icon {
    color: var(--primary);
    animation: bounceDown 2s infinite;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translate(-50%, 20px);
    }
    to {
      opacity: 1;
      transform: translate(-50%, 0);
    }
  }
  
  @keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(8px);
    }
    60% {
      transform: translateY(4px);
    }
  }
  
  /* ===== About Section ===== */
  #about {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  
  #about .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  #about h2.section-heading {
    text-align: center;
    width: 100%;
    margin-bottom: 40px;
    padding: 0;
    align-self: center;
  }
  
  .section-label {
    position: relative;
    background-color: #161923;
    color: #00ffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(0, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 10px;
    outline: none;
  }
  
  .section-label:hover,
  .section-label:focus-visible {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4),
                inset 0 0 20px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
  }
  
  .section-label::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(45deg, 
      rgba(0, 255, 255, 0.5), 
      rgba(0, 255, 255, 0.2)
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .section-label:hover::before,
  .section-label:focus-visible::before {
    opacity: 1;
  }
  
  .about-container {
    display: grid;
    grid-template-columns: minmax(300px, 700px) 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .chat-card {
    background-color: #1B1F2A;
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    font-family: 'Courier New', monospace;
    width: 100%;
  }
  
  .status {
    position: absolute;
    top: 8px;
    left: 20px;
    padding: 4px 12px;  /* Increased padding */
    font-size: 14px;
    color: #00ff88;
    display: flex;
    align-items: center;
    gap: 8px;  /* space between dot and text */
    border-radius: 4px;
    white-space: nowrap;  /* Prevent text wrapping */
  }
  
  .status-dot {
    width: 8px;
    height: 8px;
    background-color: #27c93f;  /* bright green color */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(39, 201, 63, 0.6);  /* glow effect */
  }
  
  .command-section, .response-section {
    margin-top: 20px;
  }
  
  .label {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 4px;
  }
  
  .command-box, .response-box {
    background-color: #0D0F16;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    white-space: pre-line;
    font-size: 15px;
    line-height: 1.4;
  }
  
  .response-box {
    color: #e1e1e6;
    transition: opacity 0.3s ease;
    white-space: pre-line;
    padding: 15px;
    line-height: 1.6;
  }
  
  .response-box ul, .response-box li {
    margin-left: 15px;
  }
  
  /* Ensure proper bullet points display */
  .response-box li::before {
    content: "•";
    color: var(--primary);
    display: inline-block;
    margin-right: 8px;
  }
  
  .response-box p, .response-box br {
    margin-bottom: 8px;
  }
  
  .response-box .highlight {
    color: var(--primary);
    display: block;
    margin-top: 20px;
  }
  
  .highlight, .response-box code {
    color: #00ffff;
    margin-top: 8px;
    display: inline-block;
  }
  
  /* Option Items Styling */
  .option-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .option-item {
    background: rgba(16,16,24,0.95);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
  }
  
  .option-item.active {
    border-color: var(--primary);
    background: rgba(0,255,240,0.05);
    box-shadow: 0 0 20px rgba(0, 255, 240, 0.2);
  }
  
  .option-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--glow);
  }
  
  .option-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .option-left .icon {
    font-size: 1.4rem;
    color: var(--primary);
    opacity: 1;
    text-shadow: 0 0 10px var(--primary);
    transition: transform 0.3s ease;
  }
  
  .option-item:hover .icon {
    transform: scale(1.1);
  }
  
  .option-left span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--fg);
  }
  
  .option-item:hover .option-left span {
    color: var(--primary);
  }
  
  .option-item .arrow {
    color: var(--primary);
    opacity: 0.7;
    transition: transform 0.3s ease;
  }
  
  .option-item:hover .arrow,
  .option-item.active .arrow {
    opacity: 1;
    transform: translateX(4px);
  }
  
  /* ===== Terminal Section ===== */
  .terminal {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--glow);
    overflow: hidden;
    margin: 60px 0;
  }
  
  .terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
  }
  
  .terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
  }
  
  .terminal-btn.red { background: #ff5f56; }
  .terminal-btn.yellow { background: #ffbd2e; }
  .terminal-btn.green { background: #27c93f; }
  
  .terminal-title {
    margin-left: 12px;
    color: rgba(255,255,255,0.7);
    font-size: .9rem;
  }
  
  .terminal-body {
    padding: 24px;
  }
  
  .terminal-body #cli-header {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1.2rem;
    color: #00ffff;
    margin-bottom: 20px;
  }
  
  /* ===== Projects Section ===== */
  .cards.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
  }

  .card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--glow);
    transition: transform .3s, box-shadow .3s;
  }

  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px var(--primary);
  }

  .card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .card h3 {
    color: var(--primary);
    margin-bottom: 10px;
  }

  .card p {
    color: var(--fg);
    margin-bottom: 15px;
    line-height: 1.5;
  }

  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
  }

  .tags span {
    background: rgba(0,255,240,0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
  }

  .project-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 500;
    transition: transform 0.3s ease;
  }

  .project-link:hover {
    transform: translateX(5px);
  }

  .filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
  }

  .filters button {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
  }

  .filters button:hover,
  .filters button.active {
    background: var(--primary);
    color: var(--bg);
    box-shadow: var(--glow);
  }

  /* ===== Skills in About Section ===== */
  .skills-content .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
  }
  
  .skills-content .tags span {
    background: transparent;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 240, 0.2);
    cursor: default;
    text-shadow: 0 0 8px rgba(0, 255, 240, 0.3);
  }
  
  .skills-content .tags span:hover {
    background: var(--primary);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: var(--glow);
  }
  
  .skills-content .education-item {
    margin-bottom: 25px;
  }
  
  .skills-content .education-item h4 {
    color: var(--primary);
    margin-bottom: 12px;
  }
  
  .skills-content .education-item i {
    margin-right: 8px;
  }
  
  .skills-content .education-item {
    margin-bottom: 25px;
  }
  
  .skills-content .education-item h4 {
    color: var(--primary);
    margin-bottom: 12px;
  }
  
  .skills-content .education-item i {
    margin-right: 8px;
  }

  /* Media Queries */
  @media (max-width: 1024px) {
    .skill-categories {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    html {
      font-size: 14px;
    }
  
    section {
      padding: 60px 0;
    }
  
    h1 { 
      font-size: 2.5rem; 
    }
  
    h2 { 
      font-size: 2rem; 
    }
  
    nav .container {
      flex-direction: column;
      gap: 1rem;
      height: auto;
      padding: 1rem;
    }
  
    nav ul {
      gap: 1rem;
      flex-wrap: wrap;
      justify-content: center;
    }
  
    .hero-buttons {
      flex-direction: column;
      gap: 16px;
    }
  
    .btn {
      width: 100%;
      max-width: 250px;
      text-align: center;
    }
  
    .filters {
      gap: 8px;
    }
  
    .about-container {
      grid-template-columns: 1fr;
      gap: 24px;
    }
  }
  
  @media (max-width: 480px) {
    html {
      font-size: 13px;
    }
  
    .container {
      padding: 0 16px;
    }
  
    .command-label {
      font-size: 12px;
      padding: 8px 16px;
    }
  
    .status {
      position: relative;
      top: 0;
      left: 0;
      margin-bottom: 16px;
    }
  
    .chat-card {
      padding: 16px;
    }
  
    .option-item {
      padding: 12px 16px;
    }
  
    .social-links {
      gap: 0.8rem;
    }
  
    .social-icon {
      width: 36px;
      height: 36px;
    }
  
    #toTop {
      width: 40px;
      height: 40px;
      bottom: 20px;
      right: 20px;
    }
  
    .modal-tags {
      gap: 6px;
    }
  
    .modal-tags span {
      font-size: 0.8rem;
      padding: 4px 10px;
    }
  }
  
  /* Fix for devices with notches */
  @supports (padding: max(0px)) {
    .container {
      padding-left: max(20px, env(safe-area-inset-left));
      padding-right: max(20px, env(safe-area-inset-right));
    }
  }
  
  /* ===== Orientation specific styles ===== */
  @media (max-height: 600px) and (orientation: landscape) {
    #hero {
      min-height: 500px;
    }
  
    .scroll-indicator {
      bottom: 20px;
    }
  }
  
  /* Update hidden class for smoother transitions */
  .hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
  }
  
  .visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  
  /* ===== Section Heading ===== */
  .section-heading {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
  }
  
  /* ===== Command Label ===== */
  .command-label {
    background: #161923;
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 25px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
    position: relative;
    cursor: default;
  }
  
  /* Remove hover effects */
  .command-label:hover {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
    transform: none;
  }
  
  /* Remove section-specific overrides */
  #skills .command-label,
  #about .command-label,
  #projects .command-label {
    margin-bottom: 10px;
    cursor: default;
  }
  
  .command-label i {
    margin-right: 4px;
  }
  
  /* ===== Detail Cards ===== */
  .detail-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
  }
  
  .detail-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--glow);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .detail-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ===== Social Media Links ===== */
  .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
  }
  
  .social-icon:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
  }
  
  .social-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0.9);
  }
  
  .social-icon.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
  }
  
  .social-icon.github:hover {
    background: rgba(36, 41, 46, 0.2);
  }
  
  .social-icon.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
  }
  
  /* Social Icons */
  .social-icons {
      display: flex;
      gap: 1.5rem;
      margin: 1.5rem 0;
  }
  
  .social-icon {
      color: #00ffff;
      font-size: 1.5rem;
      transition: all 0.3s ease;
      opacity: 0.8;
  }
  
  .social-icon:hover {
      opacity: 1;
      transform: translateY(-3px);
  }
  
  /* Ensure icons only show in about section */
  #education .social-icons,
  #publications .social-icons {
      display: none;
  }
  
  /* Education Section Styling */
  .education-content {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
  }
  
  .education-item {
      background: rgba(16,16,24,0.6);
      border-radius: 12px;
      padding: 1.2rem;
      border: 1px solid rgba(0, 255, 255, 0.1);
      transition: all 0.3s ease;
      opacity: 0;
      transform: translateY(20px);
      will-change: transform, opacity;
      animation: fadeInUp 0.6s ease forwards;
  }
  
  .education-item:nth-child(1) { animation-delay: 0.1s; }
  .education-item:nth-child(2) { animation-delay: 0.3s; }
  .education-item:nth-child(3) { animation-delay: 0.5s; }
  .education-item:nth-child(4) { animation-delay: 0.7s; }
  
  @keyframes fadeInUp {
      from {
          opacity: 0;
          transform: translateY(20px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }
  
  .education-item:hover {
      border-color: var(--primary);
      background: rgba(0,255,240,0.05);
      transform: translateY(-2px);
      box-shadow: 0 0 20px rgba(0, 255, 240, 0.2);
  }
  
  .education-item i {
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
      display: inline-block;
      transition: transform 0.3s ease;
  }
  
  .education-item:hover i {
      transform: scale(1.2) rotate(5deg);
  }
  
  .education-item h4 {
      color: var(--primary);
      font-size: 1.1rem;
      margin: 0.5rem 0;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
      transition: color 0.3s ease;
  }
  
  .education-item:hover h4 {
      color: var(--primary);
  }
  
  .education-item .institution {
      color: var(--fg);
      font-size: 0.9rem;
      opacity: 0.9;
  }
  
  .education-period {
      color: var(--accent);
      font-size: 0.9rem;
      margin-bottom: 0.5rem;
      font-family: 'Courier New', monospace;
  }
  
  .education-details {
      color: var(--fg);
      font-size: 0.95rem;
      line-height: 1.6;
      white-space: pre-line;
  }
  
  /* ===== Role Text Animation ===== */
  .typing-container {
    display: inline-block;
    transition: opacity 0.3s ease;
  }
  
  .role-text {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-align: left;
  }
  
  .cursor {
    /* display: inline-block; */
    width: 3px;
    height: 1em;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
    vertical-align: bottom;
    animation: blink 0.7s steps(1) infinite;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  
  /* ===== Footer ===== */
  .footer-container {
    background: var(--bg);
    color: var(--fg);
    padding: 40px 0;
    text-align: center;
    font-size: 15px;
  }
  
  /* ===== Progress Bar ===== */
  .progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 5px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    z-index: 1000;
    transition: width 0.2s ease;
  }

  /* ===== Modal Styles ===== */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 24, 0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .modal.show {
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 15px;
    position: relative;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
  }
  
  .modal.show .modal-content {
    transform: translateY(0);
  }
  
  .close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    color: var(--fg);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
  }
  
  .close-modal:hover {
    color: var(--primary);
  }
  
  .modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--primary);
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  
  .project-details {
    display: grid;
    gap: 24px;
  }
  
  .project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--fg);
  }
  
  .project-tech-stack h3,
  .project-features h3 {
    color: var(--primary);
    margin-bottom: 12px;
  }
  
  .modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .modal-tags span {
    background: rgba(0,255,240,0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
  }
  
  .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
  }
  
  .features-list li {
    position: relative;
    padding-left: 24px;
    line-height: 1.4;
  }
  
  .features-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
  }

  #toTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--bg);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--glow);
    transition: transform 0.2s;
    z-index: 100;
  }
  
  #toTop:hover {
    transform: translateY(-5px);
  }
  
  /* Projects section command label alignment */
  #projects .command-label {
    display: flex;
    justify-content: center;
    margin: 0 auto 10px;
    width: fit-content;
  }