@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

html {
    visibility: visible;
    opacity: 1;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #f5f3f0;
    --text-color: #2d2d2d;
    --text-secondary: #666;
    --border-color: #2d2d2d;
    --border-light: #d0ceca;
    --hover-bg: #eeece9;
    --btn-bg: transparent;
    --btn-hover-bg: #2d2d2d;
    --btn-hover-text: #f5f3f0;
    --logo-border: #1a1a1a;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #404040;
    --border-light: #303030;
    --hover-bg: #252525;
    --btn-bg: transparent;
    --btn-hover-bg: #e0e0e0;
    --btn-hover-text: #1a1a1a;
    --logo-border: #d0ceca;
}

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

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bottom-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.control-btn {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background-color: var(--hover-bg);
    transform: scale(1.1);
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.profile-section {
    margin-top: auto;
    margin-bottom: 30px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--logo-border);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: rotate(5deg) scale(1.05);
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 1rem;
}

.links-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 30px;
    margin-bottom: 40px;
}

.category-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: left;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 5px;
}

.category-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    background-color: var(--btn-bg);
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.link-btn i {
    position: absolute;
    left: 20px;
    font-size: 1.4rem;
}

.link-btn .custom-svg-icon {
    position: absolute;
    left: 20px;
    width: 1.4rem;
    height: 1.4rem;
    background-color: currentColor;
    -webkit-mask: var(--svg-url) no-repeat center / contain;
    mask: var(--svg-url) no-repeat center / contain;
}

.link-btn span {
    text-align: center;
    width: 100%;
}

.link-btn:hover {
    background-color: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

footer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 20px;
}

footer a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--text-secondary);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        padding: 40px 20px 80px;
    }
    .category-links {
        grid-template-columns: 1fr;
    }
    .link-btn i {
        font-size: 1.2rem;
        left: 15px;
    }
    .link-btn .custom-svg-icon {
        width: 1.2rem;
        height: 1.2rem;
        left: 15px;
    }
    .link-btn {
        font-size: 1rem;
    }
}
