@font-face {
    font-family: 'Primal';
    src: url('../fonts/Primal.woff2') format('woff2'),
    url('../fonts/Primal.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/*TECHSTACK*/

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
    width: 100%;
}

.tech-stack-tile {
    background-color: rgba(36, 36, 36, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tech-stack-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(45, 45, 45, 0.9);
}

.tech-stack-title {
    color: #1EC8FF;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.tech-logos-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    width: 100%;
}

.tech-logo {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.tech-logo:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tech-logo i {
    font-size: 2rem;
    transition: all 0.3s ease;
}

.tech-logo-name {
    color: white;
    font-size: 0.8rem;
    text-align: center;
    user-select: none
}

/*PROJECTS*/

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.project-tile {
    background-color: rgba(36, 36, 36, 0.8);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.project-tile:hover {
    transform: translateY(-5px);
}

.project-tile img {
    max-width: 100%;
    height: auto;
}

/*ABOUT ME*/
.about-me-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
    width: 100%;
}

.about-me-tile {
    background-color: rgba(36, 36, 36, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.about-me-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(45, 45, 45, 0.9);
}

.about-me-content {
    color: white;
    text-align: center;
    line-height: 1.8;
    padding: 1.5rem;
    font-size: 1.25rem; /* Increased font size */
}

.about-me-title {
    color: #1EC8FF;
    font-size: 1.8rem; /* Increased font size */
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/*INFRASTRUCTURE*/
.infrastructure-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
    width: 100%;
}

.server-tile {
    background-color: rgba(36, 36, 36, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    /* Remove the fixed width to let the grid control sizing */
}


.server-subtitle {
    color: #9EEAF9;
    font-size: 0.9rem;
    margin-top: 0.2rem;
    margin-bottom: 0;
    font-style: italic;
}


.server-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(45, 45, 45, 0.9);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.server-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.proxmox-logo {
    width: 32px;
    height: 32px;
}

.server-title {
    color: #1EC8FF;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.spec-tile {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.spec-tile:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.spec-icon {
    background-color: rgba(30, 200, 255, 0.1);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-icon i {
    color: #1EC8FF;
    font-size: 1.2rem;
}

.spec-info {
    display: flex;
    flex-direction: column;
}

.spec-label {
    color: #1EC8FF;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    color: white;
    font-size: 1rem;
    margin-top: 0.2rem;
}

.spec-icon {
    background-color: rgba(30, 200, 255, 0.1);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-icon .mud-icon {
    color: #1EC8FF;
    font-size: 24px;
}

.static-text {
    font-family: Primal, serif;
    color: white;
    font-size: 25px;
}

/*Cursor Text*/
.typing-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Primal, serif;
    color: white;
    font-size: 25px;
}

.static-text {
    white-space: nowrap;
}

.dynamic-text-wrapper {
    position: relative;
    display: inline-block;
    min-width: 20px;
}

.typing-text {
    white-space: nowrap;
}

.cursor {
    position: absolute;
    right: -4px;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: white;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { opacity: 0 }
    50% { opacity: 1 }
}

canvas {
    background: #232323;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}
