:root {
    --color-light: #F1EFEC;
    --color-beige: #D4C9BE;
    --color-navy: #123458;
    --color-navy-dark: #0b203a;
    --color-navy-light: #1a4980;
    --color-dark: #030303;
    --color-accent: #1e5faa;
    --icon-size: 2.2rem;
    --transition-speed: 0.3s;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

/* Font display strategy for better font rendering */
@font-face {
    font-family: 'Roboto Mono';
    font-display: swap;
}

body {
    font-family: 'Roboto Mono', monospace, sans-serif;
    background-color: var(--color-beige);
    color: var(--color-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: auto;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    max-height: 80vh;
    background: linear-gradient(135deg, 
        var(--color-navy-dark) 0%,
        var(--color-navy) 50%,
        var(--color-navy-light) 100%);
    border-radius: 6px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4), 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.1), 
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.fonts-loaded .container {
    opacity: 1;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--color-light);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(3, 3, 3, 0.2);
    font-family: 'Roboto Mono', monospace, sans-serif;
}

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-navy);
    height: 60px;
    width: 60px;
    border-radius: 50%;
    background-color: var(--color-light);
    box-shadow: 0 4px 12px rgba(3, 3, 3, 0.15);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.link-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.link-item:hover {
    transform: translateY(-8px) scale(1.1);
    background-color: white;
    color: var(--color-accent);
    box-shadow: 0 12px 24px rgba(3, 3, 3, 0.25);
}

.link-item:hover:before {
    opacity: 1;
    transform: scale(1.5);
}

.link-item:active {
    transform: translateY(-2px) scale(0.95);
    transition: all 0.1s ease;
}

.link-item i {
    font-size: var(--icon-size);
    position: relative;
    z-index: 2;
}

footer {
    padding: 5px;
    font-size: 0.9rem;
    color: var(--color-light);
    margin-top: auto;
}

/* Animation for links */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-item {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.link-item:nth-child(1) {
    animation-delay: 0.1s;
}

.link-item:nth-child(2) {
    animation-delay: 0.2s;
}

.link-item:nth-child(3) {
    animation-delay: 0.3s;
}

.link-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 1.5rem;
    }
    
    .container {
        max-height: calc(100vh - 3rem);
    }
    
    h1 {
        font-size: 3rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    
    .container {
        padding: 1.5rem;
        max-height: calc(100vh - 2rem);
    }
    
    h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .links {
        gap: 1.5rem;
    }
    
    .link-item {
        height: 55px;
        width: 55px;
    }
}