@font-face {
    font-family: 'Redaction35';
    src: url('redaction-35.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    width: 100vw;
    height: 100vh;
    cursor: none;
}
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #000;
    margin: 0;
    font-family: 'Redaction35', Arial, sans-serif;
    color: #fff;
}
h1 {
    font-family: 'Redaction35', Arial, sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
    margin: 0;
}
.welcome {
    font-size: 1.1rem;
    font-style: italic;
    display: block;
    letter-spacing: 1px;
    margin-bottom: 0.2em;
}
.matimh {
    font-size: 2rem;
    font-family: 'Redaction35', Arial, sans-serif;
    letter-spacing: 2px;
    margin-bottom: 2em;
    font-weight: normal;
}
.matimh-big {
    font-size: 3.2rem;
    font-family: 'Redaction35', Arial, sans-serif;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 1.5em;
    color: #fff;
    text-align: center;
    line-height: 1.1;
}
#main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1.3s cubic-bezier(.77,0,.18,1), transform 1.3s cubic-bezier(.77,0,.18,1);
    pointer-events: none;
}
#main-title.main-title-show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition-delay: 0s;
}
#main-title span:first-child {
    font-size: 1.1rem;
    font-style: italic;
    display: block;
    letter-spacing: 1px;
}
#main-title span:last-child {
    font-size: 3rem;
    font-family: 'Redaction35', Arial, sans-serif;
    letter-spacing: 2px;
}
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 1.2s cubic-bezier(.77,0,.18,1), filter 1.2s cubic-bezier(.77,0,.18,1), transform 2.5s cubic-bezier(.77,0,.18,1);
    will-change: opacity, filter, transform;
}
#overlay.overlay-hide {
    opacity: 0;
    filter: blur(24px) brightness(1.5) grayscale(0.7);
    transform: scale(1.15) rotate(-8deg) translateY(-60px);
    pointer-events: none;
    transition: opacity 1.2s cubic-bezier(.77,0,.18,1), filter 1.2s cubic-bezier(.77,0,.18,1), transform 2.5s cubic-bezier(.77,0,.18,1);
}
#overlay-text {
    font-family: 'Redaction35', Arial, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 0.5em 1.5em;
    border-radius: 18px;
    box-shadow: 0 2px 16px #0002;
    background: none;
    background-image: radial-gradient(circle at 80% 80%, #831111 0%, #fff 20%, #831111 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-align: center;
}
#overlay span { display: none; }
#music-info {
    position: fixed;
    right: 20px;
    top: 20px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Redaction35', Arial, sans-serif;
    opacity: 0.8;
    background: rgba(0,0,0,0.4);
    padding: 6px 14px;
    border-radius: 16px;
    pointer-events: auto;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
}
#mute-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 2px 6px;
    border-radius: 50%;
}
#mute-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}
#volume-slider {
    width: 80px;
    accent-color: #fff;
    background: transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, box-shadow 0.2s;
    border-radius: 8px;
    height: 4px;
    margin-left: 10px;
}
#volume-slider:hover, #volume-slider:focus {
    opacity: 1;
    box-shadow: 0 0 0 2px #fff2;
}
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #888;
    box-shadow: 0 2px 6px #0003;
    transition: background 0.2s, border 0.2s;
}
#volume-slider:hover::-webkit-slider-thumb {
    background: #eee;
    border: 2px solid #fff;
}
#volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #888;
    box-shadow: 0 2px 6px #0003;
    transition: background 0.2s, border 0.2s;
}
#volume-slider:hover::-moz-range-thumb {
    background: #eee;
    border: 2px solid #fff;
}
#volume-slider::-ms-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #888;
    box-shadow: 0 2px 6px #0003;
    transition: background 0.2s, border 0.2s;
}
#volume-slider:hover::-ms-thumb {
    background: #eee;
    border: 2px solid #fff;
}
#volume-slider:focus {
    outline: none;
}
.cursor-dot {
    position: fixed;
    pointer-events: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 60%, #aaa 100%);
    opacity: 0.7;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 2px 8px #fff3;
}
.main-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.2em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.main-link {
    font-family: 'Redaction35', Arial, sans-serif;
    font-size: 1.15rem;
    color: #fff;
    opacity: 0.85;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.2s, opacity 0.2s, font-size 0.2s;
    font-style: italic;
    font-weight: 600;
}
.main-link:hover {
    color: #b3b3ff;
    opacity: 1;
    font-size: 1.25rem;
}
.main-sep {
    color: #fff7;
    font-size: 1.2em;
    user-select: none;
    pointer-events: none;
    font-style: normal;
    font-weight: normal;
}
.projects-container {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5em 2em;
    justify-content: center;
}
.project-card {
    background: linear-gradient(135deg, #181818 70%, #23233a 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px #000a;
    width: 320px;
    padding: 1.2em 1em 1.5em 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-family: 'Redaction35', Arial, sans-serif;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    cursor: pointer;
    border: 1.5px solid #222;
    position: relative;
    overflow: hidden;
}
.project-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px #000c;
    background: linear-gradient(135deg, #23233a 60%, #181818 100%);
}
.project-card img {
    width: 90%;
    max-width: 260px;
    border-radius: 12px;
    margin-bottom: 1em;
    box-shadow: 0 2px 12px #0005;
    background: #222;
}
.project-title {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 0.5em;
    text-align: center;
    letter-spacing: 1px;
}
.project-desc {
    font-size: 1em;
    opacity: 0.85;
    margin-bottom: 0.7em;
    text-align: center;
    min-height: 48px;
}
.project-tech {
    font-size: 0.95em;
    opacity: 0.7;
    margin-bottom: 0.7em;
    text-align: center;
}
.project-link {
    color: #b3b3ff;
    text-decoration: underline;
    font-size: 0.98em;
    margin-top: 0.5em;
    transition: color 0.2s;
}
.project-link:hover {
    color: #fff;
}
.projects-header {
    text-align: left;
    margin-top: 40px;
    margin-left: 120px;
    font-family: 'Redaction35', Arial, sans-serif;
    letter-spacing: 2px;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 0.5em;
}
.back-home {
    position: fixed;
    top: 24px;
    left: 32px;
    color: #fff;
    font-family: 'Redaction35', Arial, sans-serif;
    font-size: 1.1em;
    opacity: 0.7;
    text-decoration: none;
    z-index: 20;
    transition: opacity 0.2s;
}
.back-home:hover {
    opacity: 1;
    text-decoration: underline;
}
.skill-badge {
    display: inline-block;
    background: linear-gradient(135deg, #23233a 60%, #181818 100%);
    color: #fff;
    font-family: 'Redaction35', Arial, sans-serif;
    font-size: 1.05em;
    padding: 0.45em 1.2em;
    border-radius: 18px;
    margin: 0.2em 0.3em;
    box-shadow: 0 2px 8px #0003;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.92;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.skill-badge:hover {
    background: #b3b3ff;
    color: #181818;
    transform: scale(1.08);
    opacity: 1;
}
.experience-section {
    display: flex;
    flex-direction: column;
    gap: 2.2em;
    margin-top: 2em;
}
.exp-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #23233a 60%, #181818 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px #000a;
    padding: 1.2em 2em;
    color: #fff;
    font-family: 'Redaction35', Arial, sans-serif;
    gap: 2em;
    margin-bottom: 0.5em;
}
.exp-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #222;
    object-fit: contain;
    box-shadow: 0 2px 12px #0005;
}
.exp-content {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}
.exp-title {
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 1px;
}
.exp-role {
    font-size: 1.05em;
    opacity: 0.85;
}
.exp-tags {
    font-size: 0.98em;
    opacity: 0.7;
    margin-top: 0.2em;
}
footer {
    position: fixed;
    left: 20px;
    bottom: 20px;
    color: #fff;
    z-index: 1000;
    font-size: 1rem;
}

@media (max-width: 600px) {
  .skills-section {
    max-width: 98vw !important;
    margin: 24px auto 0 auto !important;
    padding: 0 8px;
    text-align: center;
  }
  .projects-header {
    font-size: 2rem !important;
    margin-top: 1.2em;
  }
  .skill-badge {
    font-size: 1em !important;
    padding: 0.4em 1em !important;
    margin: 0.3em 0.2em !important;
    display: inline-block;
  }
  .back-home {
    font-size: 1em !important;
    margin: 0.7em 0 0.7em 0.5em !important;
    display: inline-block;
  }
  .skills-section > p {
    font-size: 1em !important;
    padding: 0 2px;
  }
  .skills-section > div {
    flex-direction: column !important;
    gap: 0.7em !important;
    align-items: center !important;
  }
}
@media (max-width: 600px) {
  .projects-header {
    text-align: center !important;
    margin-top: 1.2em !important;
    margin-left: 0 !important;
    margin-bottom: 1.2em !important;
    font-size: 2rem !important;
  }
  .experience-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.1em !important;
    max-width: 99vw !important;
  }
  .exp-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1em 0.7em !important;
    gap: 1em !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}
