/* Base styling with improved performance */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
  }
  
  html, body { 
    width: 100%; 
    height: 100%; 
    background: #000; 
    font-family: 'Courier New', monospace; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #00ff00;
  }
  
  /* Common page structure */
  .page-container {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
  }
  
  .page-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Header styles for inner pages */
  .page-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
  }
  
  .page-title {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    animation: glow 2s ease-in-out infinite alternate;
  }
  
  .page-subtitle {
    font-size: 1.2rem;
    color: #00ff00;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
  }
  
  @keyframes glow {
    from { text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00; }
    to { text-shadow: 0 0 30px #00ff00, 0 0 60px #00ff00, 0 0 90px #00ff00; }
  }
  
  /* Navigation for inner pages */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    z-index: 100;
    padding: 1rem 0;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
  }
  
  .logo {
    font-size: 1.5rem;
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
  }
  
  .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
  }
  
  .nav-links a {
    color: #00ff00;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none;
  }
  
  .nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
    transition: left 0.5s ease;
  }
  
  .nav-links a:hover::before {
    left: 100%;
  }
  
  .nav-links a:focus {
    border-color: #00ff00;
    background: rgba(0,255,0,0.25);
    box-shadow: 0 0 0 3px rgba(0,255,0,0.4);
    outline: none;
    z-index: 1;
  }
  
  .nav-links a:hover {
    border-color: #00ff00;
    box-shadow: 0 0 18px rgba(0,255,0,0.7);
    background: rgba(0,255,0,0.18);
  }
  
  .nav-links a.active {
    background: rgba(0,255,0,0.28);
    border-color: #00ff00;
    font-weight: bold;
  }
  
  /* Content sections */
  .content-section {
    margin-bottom: 4rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
  }
  
  .section-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px #00ff00;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 0.5rem;
    display: inline-block;
  }
  
  .section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(0, 255, 0, 0.9);
  }
  
  /* Cards and grid layouts */
  .grid-container {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  
  .card {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
  }
  
  .card:hover::before {
    transform: translateX(100%);
  }
  
  .card:hover {
    border-color: #00ff00;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.3);
    transform: translateY(-5px);
  }
  
  .card-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #00ff00;
  }
  
  .card-content {
    color: rgba(0, 255, 0, 0.8);
    font-size: 1rem;
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
  }
  
  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 0, 0.1);
    transition: left 0.3s ease;
  }
  
  .btn:hover::before {
    left: 0;
  }
  
  .btn:hover {
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    text-shadow: 0 0 10px #00ff00;
  }
  
  .btn-primary {
    background: rgba(0, 255, 0, 0.1);
  }
  
  .btn-primary:hover {
    background: rgba(0, 255, 0, 0.2);
  }
  
  /* Form elements */
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00ff00;
    font-size: 1.1rem;
  }
  
  .form-input,
  .form-textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
    color: #00ff00;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  .form-input:focus,
  .form-textarea:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    background: rgba(0, 30, 0, 0.9);
  }
  
  .form-textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  /* Progress bars */
  .progress-bar {
    background: rgba(0, 50, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
    height: 20px;
    position: relative;
  }
  
  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #33ff33);
    transition: width 1s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  }
  
  .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.1) 50%, transparent 50%, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    animation: progress-stripe 1s linear infinite;
  }
  
  @keyframes progress-stripe {
    from { background-position: 0 0; }
    to { background-position: 20px 0; }
  }
  
  /* Mobile responsiveness */
  @media (max-width: 768px) {
    .page-content {
      padding: 1rem;
    }
    
    .page-title {
      font-size: 2.5rem;
    }
    
    .nav-container {
      flex-direction: column;
      gap: 1rem;
    }
    
    .nav-links {
      flex-wrap: wrap;
      justify-content: center;
      gap: 1rem;
    }
    
    .grid-2,
    .grid-3 {
      grid-template-columns: 1fr;
    }
    
    .content-section {
      padding: 1.5rem;
    }
    
    .nav-links a {
      padding: 1rem 1.2rem;
      font-size: 1.15rem;
    }
  }
  
  @media (max-width: 480px) {
    .page-title {
      font-size: 2rem;
    }
    
    .section-title {
      font-size: 1.5rem;
    }
    
    .nav-container {
      padding: 0 1rem;
    }
  }
  
  /* Accessibility */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* Focus styles for accessibility */
  *:focus {
    outline: 2px solid #00ff00;
    outline-offset: 2px;
  }
  
  /* Skip link for accessibility */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 1000;
    background: #00ff00;
    color: #000;
    padding: 8px;
    text-decoration: none;
    transition: top 0.3s;
  }
  
  .skip-link:focus {
    top: 6px;
  }
  
  /* Performance hints */
  .card,
  .btn,
  .nav-links a {
    will-change: transform;
  }
  
  /* Print styles */
  @media print {
    body {
      background: white !important;
      color: black !important;
    }
    
    .main-nav,
    canvas,
    .loading {
      display: none !important;
    }
    
    .page-content {
      margin-top: 0 !important;
    }
  }

  /* Social Button Colors */
.btn-link {
  display: inline-block;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  color: #000;
  background: #00ff00;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

.btn-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
  color: #000;
}

/* Platform-specific hover tints */
.btn-link[href*="linkedin.com"]:hover {
  background-color: #0077b5;
  color: #fff;
}
.btn-link[href*="github.com"]:hover {
  background-color: #333;
  color: #fff;
}
.btn-link[href*="t.me"]:hover {
  background-color: #0088cc;
  color: #fff;
}

/* Adjust spacing for side-by-side sections */
.content-section {
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Reduce space between grouped items */
.competency-group {
  margin-bottom: 1.2rem;
}

/* Optional: tighten list spacing slightly */
.competency-group ul li {
  margin-bottom: 0.4rem;
}

.status-starting-soon {
  background: rgba(0, 123, 255, 0.15);
  color: #00bfff;
  border: 1px solid #00bfff;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
}
.hamburger span {
  height: 4px;
  width: 28px;
  background: #00ff00;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.4s;
  display: block;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100vw;
    height: 100vh;
    width: 70vw;
    max-width: 320px;
    background: rgba(0,0,0,0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 5rem 2rem 2rem 2rem;
    box-shadow: -2px 0 20px rgba(0,255,0,0.08);
    transition: right 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
    z-index: 150;
  }
  .nav-links.open {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
  .nav-container {
    justify-content: space-between;
  }
}

/* Hamburger open/close animation */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Ensure skip link is always visible on focus */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  background: #000;
  color: #00ff00;
  padding: 0.75rem 1.5rem;
  z-index: 300;
  font-size: 1.1rem;
  border-radius: 0 0 8px 0;
  transform: translateY(-100%);
  transition: transform 0.3s;
}
.skip-link:focus {
  transform: translateY(0);
}
