main, main * {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    background-color: #000;
    color: #e0e0e0;
    font-family: 'IBM Plex Mono', monospace;
}

::-webkit-scrollbar {
    display: none;
}
 
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: radial-gradient(circle, #0a0a0a 0%, #000 100%);
}

.align-adjust {
    position: relative;
    top: 4px;
}

/* Cursor retro más rápido y cuadrado */
.cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background-color: #e0e0e0;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Terminal */
.terminal {
    position: relative;
    background: rgba(10, 10, 10, 0.9);
    padding: 1.5rem;
    border-left: 1px solid rgba(80, 80, 80, 0.3);
    min-height: 300px;
    overflow: hidden;
}

.terminal-line {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    animation: appear 0.3s forwards;
}

@keyframes appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-prompt {
    color: #5f87ff;
}

.terminal-command {
    color: #e0e0e0;
}

.terminal-output {
    color: #a0a0a0;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.terminal-input {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

/* Glitch effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 1px;
    text-shadow: -1px 0 rgba(255, 0, 0, 0.7);
    clip: rect(44px, 450px, 56px, 0);
}

.glitch::after {
    left: -1px;
    text-shadow: -1px 0 rgba(0, 255, 255, 0.7);
    clip: rect(44px, 450px, 56px, 0);
}

.glitch-effect {
    animation: glitch-anim 0.8s infinite;
}

@keyframes glitch-anim {
    0% { clip: rect(32px, 9999px, 28px, 0); }
    5% { clip: rect(13px, 9999px, 37px, 0); }
    10% { clip: rect(45px, 9999px, 33px, 0); }
    15% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(88px, 9999px, 98px, 0); }
    25% { clip: rect(9px, 9999px, 98px, 0); }
    30% { clip: rect(37px, 9999px, 17px, 0); }
    100% { clip: rect(37px, 9999px, 17px, 0); }
}

/* Scan line effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(80, 80, 80, 0.2);
    box-shadow: 0 0 8px rgba(100, 100, 100, 0.3);
    animation: scan 6s linear infinite;
    z-index: 100;
    pointer-events: none;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Minimalist links */
a {
    color: #5f87ff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

a:hover {
    color: #7fa3ff;
}

a::after {
    content: " ↗";
    font-size: 0.8em;
}

/* Spacing enhancements */
.spaced-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.spaced-item {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.extra-spacing {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-divider {
    border-top: 1px solid rgba(80, 80, 80, 0.5);
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.experience-block {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Custom grid spacing */
.custom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .custom-grid {
        grid-template-columns: 1fr 2fr;
        gap: 4rem;
    }
}

/* Language Toggle Button Styles */
#language-toggle {
  background: none;
  border: 1px solid #5f87ff;
  color: #5f87ff;
  padding: 0.2rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: absolute; /* Changed to absolute for minimalist placement */
  top: 20px; /* Adjust as needed */
  right: 20px; /* Adjust as needed */
  z-index: 50; /* Ensure it's above other content if necessary */
}

#language-toggle:hover {
  background-color: #5f87ff;
  color: #000;
}