@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Bebas+Neue&display=swap');

:root {
  --bg-dark: #050505;
  --window-bg: rgba(12, 12, 12, 0.85);
  --border-color: #444;
  --text-main: #e0e0e0;
  --text-muted: #888;
  --accent-yellow: #F5C518;
  --accent-blue: #3a86ff;
  --font-mono: 'Space Mono', monospace;
  --font-display: 'Bebas Neue', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url('Referencias/Referencia.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.85); /* Darken the background image heavily */
}

/* Background Collage to supplement */
.collage-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.collage-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

/* Yellow Rays */
.yellow-rays {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: 
    linear-gradient(65deg, transparent 40%, rgba(245, 197, 24, 0.05) 45%, transparent 50%),
    linear-gradient(75deg, transparent 50%, rgba(245, 197, 24, 0.08) 55%, transparent 60%);
}

/* Container Grid */
.desktop-container {
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr 350px;
  gap: 2rem;
  align-items: start;
}

/* Columns */
.col-left, .col-center, .col-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* OS Window Style */
.os-window {
  background: var(--window-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.os-window:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-2px);
}

.os-bar {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.os-dots {
  display: flex;
  gap: 6px;
}

.os-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
}

.os-dots span:nth-child(1) { background: #ff5f56; }
.os-dots span:nth-child(2) { background: #ffbd2e; }
.os-dots span:nth-child(3) { background: #27c93f; }

.os-title {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.os-controls {
  letter-spacing: 4px;
}

.os-content {
  padding: 1.5rem;
}

/* Specific Window Contents */
.hero-role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-main);
  background: #222;
  padding: 4px 8px;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.contact-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

/* Tech Stack Icons/Text */
.tech-item {
  margin-bottom: 1rem;
}
.tech-item h4 {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.logo-grid {
  display: flex;
  gap: 12px;
  font-size: 1.8rem;
}
.logo-grid i {
  transition: transform 0.2s;
}
.logo-grid i:hover {
  transform: scale(1.2);
}

/* Terminal Error Window */
.terminal-text {
  color: var(--text-muted);
  font-size: 11px;
}
.terminal-error {
  color: #ff5f56;
}

/* Projects Window */
.projects-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.project-item {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.project-info h3 {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-info h3::before {
  content: '►';
  color: var(--accent-yellow);
  font-size: 10px;
}
.project-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.project-img {
  cursor: pointer;
  width: 220px;
  height: 140px;
  border: 1px solid var(--border-color);
  background: #222;
  object-fit: cover;
  opacity: 0.8;
  border-radius: 4px;
  transition: opacity 0.3s;
}
.project-img:hover {
  opacity: 1;
}

.project-actions {
  margin-top: 15px;
}
.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #24292e;
  color: #fff;
  padding: 6px 12px;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 11px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
}
.github-btn:hover {
  background: #fafbfc;
  color: #24292e;
  border-color: #fafbfc;
}

/* Experience / Side Windows */
.exp-item {
  margin-bottom: 1.5rem;
}
.exp-title {
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.exp-desc {
  font-size: 11px;
  color: var(--text-muted);
}
.exp-graph {
  width: 100%;
  height: 60px;
  border: 1px solid var(--border-color);
  margin-top: 10px;
  background: repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 11px);
  position: relative;
}
.exp-graph::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-yellow);
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1rem;
}
.cert-card {
  border: 1px solid var(--border-color);
  padding: 10px;
  text-align: center;
  background: rgba(255,255,255,0.02);
}
.cert-card h4 {
  font-size: 16px;
  margin-bottom: 5px;
}
.cert-card p {
  font-size: 10px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .desktop-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-container {
    grid-template-columns: 1fr;
  }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  border-radius: 4px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--accent-yellow);
}
