/* --- CSS FROM pages/cv_variants/v2.html --- */

:root {
  --bg: #050510;
  --card-bg: rgba(10, 10, 25, 0.6);
  --card-border: rgba(100, 200, 255, 0.1);
  --primary: #00f0ff; /* Cyan */
  --secondary: #7000ff; /* Purple */
  --text: #e0e0e0;
  --text-muted: #8899a6;
  --grid-color: rgba(0, 240, 255, 0.05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scroll from canvas */
}

/* --- CANVAS BACKGROUND --- */
#neuralCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

/* --- UI OVERLAY --- */
.scan-line {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 5px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
  animation: scan 8s linear infinite;
  z-index: 0;
  pointer-events: none; /* Allows clicks to pass through */
}
@keyframes scan { 0% { top: -10vh; } 100% { top: 110vh; } }

.hud-frame {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 2; /* Ensure UI is above background */
}

/* --- HEADER --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 30px;
  position: relative;
}
header::after {
  content: ''; position: absolute; bottom: -1px; left: 0; width: 30%; height: 1px; background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.header-content {
  flex: 1; /* Allow content to take up available space */
}

h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(32px, 5vw, 64px);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -2px;
  background: linear-gradient(90deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 24px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- GRID --- */
.grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr; /* Main content wider than sidebar */
  gap: 40px;
}

/* --- CARDS (GLASS HUD) --- */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* For Safari */
  border: 1px solid var(--card-border);
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  /* Cut-corner effect */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: all 0.3s ease; /* Smooth transitions for hover effects */
}

.card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--secondary); opacity: 0; transition: opacity 0.3s;
}

.card:hover {
  border-color: rgba(100, 200, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); /* Subtle shadow on hover */
  transform: translateY(-2px); /* Slight lift effect */
}
.card:hover::before { opacity: 1; } /* Show accent bar on hover */

h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--primary);
  margin: 0 0 24px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
h2::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1);
}

/* --- LISTS --- */
.timeline-item { margin-bottom: 24px; }
.role { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.place { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--secondary); margin-bottom: 12px; }
ul { padding-left: 20px; color: var(--text-muted); line-height: 1.6; }
li { margin-bottom: 8px; }

/* --- SKILL BARS --- */
.skill-container { margin-bottom: 16px; }
.skill-header { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.skill-bar { height: 6px; background: rgba(255,255,255,0.1); width: 100%; position: relative; overflow: hidden; }
    .skill-fill { height: 100%; background: var(--primary); width: 100%; box-shadow: 0 0 10px var(--primary); }
/* --- BUTTONS --- */
.btn-row { display: flex; gap: 16px; align-items: center; margin-top: 32px; }

.cyber-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  padding: 12px 24px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
}

.cyber-btn:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 20px var(--primary);
}

/* --- Profile Photo --- */
#profile-card {
  background: transparent;
  backdrop-filter: none;
  border: none;
  padding: 0;
  clip-path: none;
  margin: 0; /* Reset margin */
  flex-shrink: 0; /* Prevent image card from shrinking */
}

#profile-img {
  width: 280px;
  height: 280px;
  object-fit: cover; /* Ensure image covers the area without distortion */
  border-radius: 0; /* Square corners */
  border: 3px solid var(--primary);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6); /* Glowing effect */
}

#profile-card:hover {
  border-color: var(--card-border); /* Reset border color on hover */
  box-shadow: none; /* Remove shadow on hover */
  transform: none; /* Remove lift effect on hover */
}

#profile-card:hover::before {
  opacity: 0; /* Hide the pseudo-element on hover */
}


/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--card-border);
  padding: 30px 0;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #555;
}

/* --- PRINT STYLES --- */
@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  #neuralCanvas, .scan-line {
    display: none !important;
  }
  .hud-frame {
    padding: 20px;
    margin: 0;
    max-width: none;
  }
  .card {
    background: white;
    border: 1px solid #ccc;
    color: black;
    box-shadow: none;
    clip-path: none;
    margin-bottom: 15px;
    padding: 15px;
  }
  .card::before {
    display: none;
  }
  h1, h2, .role, .subtitle {
    color: black !important;
    -webkit-text-fill-color: black !important;
    background: none !important;
  }
  .system-badge, .place {
    color: #555 !important;
    border-color: #ccc !important;
    background: none !important;
    box-shadow: none !important;
  }
  .cyber-btn {
    border: 1px solid black;
    color: black;
    background: none;
    box-shadow: none;
  }
  .cyber-btn:hover {
    background: none;
    color: black;
    box-shadow: none;
  }
  ul {
    color: #333;
  }
  footer {
    border-top-color: #ccc;
    color: #666;
  }
  .skill-bar {
    background: #eee;
  }
  .skill-fill {
    background: #007bff; /* A standard blue for printing */
    box-shadow: none;
  }
  .btn-row {
    justify-content: flex-start;
  }
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 900px) { 
  .grid { grid-template-columns: 1fr; } /* Stack columns */
}

@media (max-width: 768px) {
  header {
    flex-direction: column; /* Stack header items vertically */
    text-align: center;
  }
  .header-content {
    margin-bottom: 30px;
    order: 2; /* Text content below image */
  }
  #profile-card {
      order: 1; /* Image first */
  }
  #profile-img {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 425px) {
  #neuralCanvas {
    display: none;
  }
  .btn-row .cyber-btn {
    font-size: 12px; /* Smaller font size for better fit on small screens */
    padding: 10px 15px; /* Adjust padding as well */
  }
}