/* ULTRA-MODERN PROJECTS.CSS - CYBERPUNK EDITION */

/* 1. CORE SETUP & VARIABLES -------------------------------------------- */
:root {
    --neon-green: #00ff00;
    --neon-blue: #00ffff;
    --neon-pink: #ff00ff;
    --dark-bg: #000000;
    --card-bg: rgba(0, 255, 0, 0.05);
    --gradient-primary: linear-gradient(145deg, rgba(0, 255, 0, 0.05), rgba(0, 40, 0, 0.2));
    --gradient-hover: linear-gradient(145deg, rgba(0, 255, 0, 0.1), rgba(0, 40, 0, 0.3));
    --animation-slow: 0.5s;
    --animation-fast: 0.3s;
  }
  
  /* 2. RESET & BASE STYLES --------------------------------------------- */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    background: var(--dark-bg);
    color: var(--neon-green);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  /* 3. PROJECTS SECTION & GRID -------------------------------------- */
  .projects-section {
    position: relative;
    min-height: 100vh;
    padding: 4rem 2rem;
    background: 
      radial-gradient(circle at top right, rgba(0, 255, 0, 0.1), transparent 50%),
      radial-gradient(circle at bottom left, rgba(0, 255, 255, 0.05), transparent 50%),
      var(--dark-bg);
    overflow: hidden;
    isolation: isolate;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Changed to always show 2 columns */
    gap: 3rem;
    max-width: 1600px; /* Increased from 1400px for wider content */
    margin: 0 auto;
    padding: 2rem;
    perspective: 1000px;
  }
  
  /* 4. PROJECT CARDS & IMAGES --------------------------------------------- */
  .project-card {
    background: var(--gradient-primary);
    border: 2px solid rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: 
      transform var(--animation-slow) ease-out,
      box-shadow var(--animation-slow) ease-out;
    transform-style: preserve-3d;
    backface-visibility: hidden;
  }
  
  .project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      45deg,
      transparent 0%,
      rgba(0, 255, 0, 0.1) 45%,
      rgba(0, 255, 0, 0.2) 50%,
      rgba(0, 255, 0, 0.1) 55%,
      transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
  }
  
  .project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
      0 12px 30px rgba(0, 255, 0, 0.15),
      0 0 0 1px rgba(0, 255, 0, 0.2),
      0 0 20px rgba(0, 255, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  
  .project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      120deg,
      transparent 0%,
      rgba(0, 255, 0, 0.1) 50%,
      transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
  }
  
  .project-card:hover::after {
    transform: translateX(100%);
  }
  
  .project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
    transition: all var(--animation-slow) ease;
    filter: brightness(0.8) contrast(1.2);
  }
  
  .project-card:hover .project-image {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.4);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
  }
  
  /* 5. PROJECT CONTENT ------------------------------------------ */
  .project-content {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 2px rgba(0, 255, 0, 0.3);
  }
  
  .project-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 
        0 0 8px rgba(0, 255, 0, 0.5),
        0 0 15px rgba(0, 255, 0, 0.3);
  }
  
  .project-description {
    font-size: 1.1rem;
    color: #c0c0c0;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
  }

  /* Add these new styles for project header elements */
.project-header {
    position: relative;
    margin-bottom: 2rem;
}

.project-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 255, 0, 0.1);
    padding: 0.5rem 1rem;
    border: 1px solid var(--neon-green);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--neon-green);
}

.project-preview {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--neon-green);
    font-size: 1rem;
}

/* 6. TECH STACK ---------------------------------------------- */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
  }
  
  .tech-badge {
    padding: 0.5rem 1rem;
    border: 1px solid var(--neon-green);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--neon-green);
    background: rgba(0, 255, 0, 0.05);
    transition: all var(--animation-fast);
  }
  
  .tech-badge:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
  }
  
  /* 7. PROJECT LINKS --------------------------------------- */
  .project-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .project-link {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--neon-green);
    border-radius: 4px;
    color: var(--neon-green);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 0 10px rgba(0, 255, 0, 0.2),
        inset 0 0 15px rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .project-link:hover {
    color: #000;
    border-color: transparent;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.4),
        inset 0 0 20px rgba(0, 255, 0, 0.2);
    text-shadow: none;
    transform: translateY(-2px);
  }
  
  .project-link:active {
    transform: translateY(1px);
    box-shadow: 
        0 0 10px rgba(0, 255, 0, 0.4),
        inset 0 0 10px rgba(0, 255, 0, 0.2);
  }

  /* Update button styles to use introduction-expertise-buttons */
.introduction-expertise-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.introduction-expertise-buttons .neo-matrix-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--neon-green);
    border-radius: 4px;
    color: var(--neon-green);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 0 10px rgba(0, 255, 0, 0.2),
        inset 0 0 15px rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.introduction-expertise-buttons .neo-matrix-btn:hover {
    color: #000;
    background: var(--neon-green);
    border-color: transparent;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.4),
        inset 0 0 20px rgba(0, 255, 0, 0.2);
    text-shadow: none;
    transform: translateY(-2px);
}

.introduction-expertise-buttons .neo-matrix-btn:active {
    transform: translateY(1px);
    box-shadow: 
        0 0 10px rgba(0, 255, 0, 0.4),
        inset 0 0 10px rgba(0, 255, 0, 0.2);
}

.introduction-expertise-buttons .btn-text {
    margin-right: 0.5rem;
}

.introduction-expertise-buttons i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.introduction-expertise-buttons .neo-matrix-btn:hover i {
    transform: translateX(4px);
}

/* Update scroll progress indicators */
.scroll-progress {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid var(--neon-green);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

/* Future Projects Specific Styles */
.future-card {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.05), rgba(0, 40, 40, 0.2));
    border-color: var(--neon-blue);
    position: relative;
    overflow: hidden;
}

.future-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.future-text {
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: rotate(90deg) translateX(-50%);
    color: var(--neon-blue);
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--neon-blue);
    opacity: 0.6;
}

.future-tech span {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.future-list li {
    color: #a0a0a0;
    font-style: italic;
}

.future-btn {
    border-color: var(--neon-blue) !important;
    color: var(--neon-blue) !important;
}

.future-btn:hover {
    background: var(--neon-blue) !important;
    color: var(--dark-bg) !important;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.2) !important;
}

.project-timeline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--neon-blue);
    font-size: 0.9rem;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-blue);
    animation: pulse 2s infinite;
}

.dot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.scroll-dot:hover .dot-tooltip {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
}
  
  /* 8. ANIMATIONS & KEYFRAMES --------------------------------------- */
  @keyframes textGlow {
    0%, 100% {
      text-shadow: 
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green),
        0 0 40px var(--neon-green);
    }
    50% {
      text-shadow: 
        0 0 20px var(--neon-green),
        0 0 40px var(--neon-green),
        0 0 80px var(--neon-green);
    }
  }
  
  @keyframes glitchText {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px); }
    80% { transform: translate(2px); }
  }
  
  /* 9. RESPONSIVE & PRINT ------------------------------------------- */
  @media (max-width: 1200px) {
    .projects-grid {
      gap: 2rem;
      padding: 1.5rem;
    }
    
    .projects-heading {
      font-size: 3rem;
    }
  }
  
  @media (max-width: 768px) {
    .projects-grid {
      grid-template-columns: 1fr; /* Single column on mobile */
      max-width: 100%; /* Changed from 600px to use full width */
      padding: 1rem;
      gap: 2rem;
    }
    
    .projects-heading {
      font-size: 2.5rem;
      letter-spacing: 0.3rem;
    }
  
    .project-card {
      padding: 1.5rem;
      width: 100%;
      margin: 0; /* Remove any margin */
    }
  
    .tech-stack {
      gap: 0.5rem;
    }
  
    .project-links {
      flex-direction: column;
    }

    .introduction-expertise-buttons {
        flex-direction: column;
    }

    .introduction-expertise-buttons .neo-matrix-btn {
        width: 100%;
    }

    .projects-section {
      padding: 2rem 1rem; /* Reduce padding */
    }

    .project-image {
      height: 200px; /* Slightly shorter images on mobile */
    }

    /* Adjust container width */
    .container {
      width: 95%;
      max-width: none;
      padding: 0;
    }

    /* Make content more compact */
    .project-details {
      margin: 1rem 0;
      padding: 1rem;
    }

    .tech-stack {
      gap: 0.5rem;
      margin: 1rem 0;
    }

    .tech-tags {
      gap: 0.5rem;
    }

    .tech-tags span {
      padding: 0.4rem 0.8rem;
      font-size: 0.85rem;
    }
  }
  
  @media (max-width: 480px) {
    .projects-heading {
      font-size: 2rem;
    }
  
    .project-card {
      padding: 1rem;
    }

    .projects-grid {
      padding: 0.5rem;
    }

    .projects-section {
      padding: 1rem 0.5rem;
    }
  }
  
  @media print {
    .projects-section {
      background: none;
      padding: 1rem;
    }
  
    .project-card {
      break-inside: avoid;
      border: 1px solid #000;
      box-shadow: none;
    }
  
    .project-links,
    .tech-badge:hover,
    .project-card:hover {
      transform: none;
      box-shadow: none;
    }
  }
  
  /* 10. UTILITIES ------------------------------------------ */
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  
  .no-scroll {
    overflow: hidden;
  }
  
  .fade-in {
    animation: fadeIn 0.5s ease-in;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .project-details {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 0, 0.2);
  }
  
  .tech-stack {
    position: relative;
  }
  
  .tech-stack h4 {
    color: var(--neon-green);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  }
    
  .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .tech-tags span {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--neon-green);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--neon-green);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .tech-tags span:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
  }
  
  @keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .tech-pie-chart {
      width: 120px;
      height: 120px;
    }
    
    .tech-tags span {
      font-size: 0.8rem;
      padding: 0.4rem 0.8rem;
    }
  }