/* -----------------------------------------------------------
   Global Variables & Reset
----------------------------------------------------------- */
:root {
  --bg: #05060a;       
  --card-bg: rgba(255, 255, 255, 0.02);
  --accent: #a64dff;   
  --accent-2: #e68aff; 
  --highlight: #a64dff; 
  --muted: #9aa4b2;    
  --text: #e6eef6;     
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Heebo', system-ui, Arial, sans-serif;
  background: 
    radial-gradient(ellipse at 10% 20%, rgba(84, 23, 84, 0.4), transparent 70%),
    radial-gradient(ellipse at 90% 80%, rgba(0, 255, 204, 0.05), transparent 70%),
    var(--bg);
  background-size: cover; 
  background-attachment: fixed;
  background-position: center;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

/* -----------------------------------------------------------
   Layout & Grid
----------------------------------------------------------- */
.stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

canvas#particles {
  width: 100%;
  height: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}

aside.card {
  position: -webkit-sticky;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  transition: all 0.3s ease;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--accent) transparent;
}

/* -----------------------------------------------------------
   UI Components: Cards & Buttons
----------------------------------------------------------- */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 24px;
  margin-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#ai-chat.card {
    background: #11111e; 
    border: 1px solid #6a5af9; 
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn {
  background: rgba(80, 0, 126, 0.205);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(238, 5, 238, 0.1);
  color: #fff;
  padding: 12px 25px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* -----------------------------------------------------------
   Typography & Headers
----------------------------------------------------------- */
h1, h2, h3 { margin: 0; }

h1.neon {
  font-size: 2rem;
  margin-bottom: 5px;
  color: #fff;
  text-shadow: 0 0 10px rgba(166, 77, 255, 0.6);
}

h2 {
  font-size: 1rem;
  color: var(--highlight);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.header {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header i { color: var(--accent); }

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.typed {
  color: var(--highlight);
  font-weight: 700;
}

/* -----------------------------------------------------------
   Profile Sidebar
----------------------------------------------------------- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 15%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--highlight));
  box-shadow: 0 0 20px rgba(166, 77, 255, 0.3);
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 15%;
  object-fit: cover;
  border: 4px solid var(--bg);
  background-color: var(--bg);
}

.meta {
  width: 100%;
  margin-top: 10px;
  text-align: left;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  font-size: 0.9rem;
  color: #ccc;
}

.meta-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.meta-item i {
  width: 24px;
  text-align: center;
  color: var(--highlight);
}

.profile-actions {
  width: 100%; 
  margin-top: 12px; 
  display: flex; 
  gap: 10px; 
  justify-content: center;
}

/* -----------------------------------------------------------
   Skills Tags
----------------------------------------------------------- */
.skills-container {
  width: 100%; 
  margin-top: 20px;
}

.skill-category {
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.skill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

/* -----------------------------------------------------------
   Projects & Jobs
----------------------------------------------------------- */
.pc-showcase {
  margin-bottom: 28px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.pc-showcase img {
  width: 100%;
  display: block;
  transition: transform 0.5s;
}

.pc-showcase:hover img {
  transform: scale(1.02);
}

.job {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 12px;
  border-left: 3px solid var(--accent);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--highlight);
  box-shadow: 0 5px 20px rgba(0, 255, 204, 0.1);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-top strong { font-size: 1rem; }

.badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badge Variants */
.badge.cpp { background: rgba(0, 89, 156, 0.2); color: #659ad2; }
.badge.java { background: rgba(255, 140, 0, 0.2); color: #ffa500; }
.badge.python { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
.badge.c { background: rgba(168, 185, 204, 0.2); color: #d0dae6; }
.badge.ai { background: rgba(166, 77, 255, 0.2); color: #e68aff; }

.project-card p {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 15px;
  flex-grow: 1;
}

.project-links a, .project-links span {
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.project-links a:hover { color: var(--highlight); }

/* -----------------------------------------------------------
   Forms & Inputs
----------------------------------------------------------- */
.contact-form {
  display: flex; 
  flex-direction: column; 
  gap: 10px;
}

input, textarea {
  font-family: inherit;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  transition: border-color 0.2s, background 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
}

/* -----------------------------------------------------------
   Utilities & Animations
----------------------------------------------------------- */
.mt-2 { margin-top: 10px; }
.mt-md { margin-top: 12px; }

.site-footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* Challenge Text Pulse */
.challenge-text {
  text-align: center;
  margin-top: 15px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
}

.challenge-text code {
  animation: pulse 2s infinite;
  display: inline-block;
}

@keyframes pulse {
  0%, 100% { text-shadow: 0 0 0 rgba(0, 255, 204, 0); }
  50% { text-shadow: 0 0 10px rgba(0, 255, 204, 0.5); color: var(--highlight); }
}

.challenge-text:hover code {
  color: var(--highlight);
  opacity: 1;
}

/* -----------------------------------------------------------
   Responsive Design
----------------------------------------------------------- */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .container {
    padding: 15px;
    margin: 10px auto;
  }
  
  aside.card {
    position: relative;
    top: 0;
    max-height: none;
    overflow-y: visible;
    margin-bottom: 20px;
  }
  
  .avatar {
    width: 140px;
    height: 140px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}


/* -----------------------------------------------------------
   Roadmap Section - Theme Integrated
----------------------------------------------------------- */

.roadmap-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px; 
    padding: 24px;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    
    width: 100%; 
    height: 100%;
    min-height: 220px; 
}

.roadmap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent, #a64dff);
}

.roadmap-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.roadmap-content h3 {
    color: var(--highlight, #a64dff);
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.roadmap-content p {
    color: var(--muted, #9aa4b2);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.roadmap-footer {
    margin-top: 20px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.roadmap-footer span {
    color: var(--accent, #a64dff);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.modal-box {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    
    width: 95vw;  
    height: 90vh;
    
    background: rgba(30, 30, 45, 0.98);
    border: 1px solid var(--accent, #a64dff);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(166, 77, 255, 0.2);
    
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.modal-title {
    text-align: center;
    color: var(--text, #e6eef6);
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    flex-shrink: 0; 
}

.close-btn {
    position: absolute;
    top: 15px; right: 25px;
    font-size: 35px;
    color: var(--muted, #9aa4b2);
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
    z-index: 100;
}

.close-btn:hover {
    color: var(--accent, #a64dff);
}

.graph-area {
    flex-grow: 1;         
    overflow: hidden;   
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 10px;
}

.mermaid {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mermaid svg {
    max-width: 100% !important;
    max-height: 100% !important;
    height: auto !important;
    width: auto !important;
}