@import url("fonts/jetbrains-mono.css");

:root {
    --text-primary: #e2e1e1;
    --text-secondary: #8a99ad;
    --bg-dark: #0b0f17;
    --primary-accent: #4c9ffe;
    --secondary-accent: #a5cfff;
}

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

html,
body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--bg-dark);
    font-family: 'JetBrains Mono', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

#bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(25px);
}

.fullpage {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem;
    scroll-snap-align: start;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    color: var(--primary-accent);
    font-size: 1.5rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.scroll-btn:hover {
    background: rgba(76, 159, 254, 0.15);
    border-color: var(--primary-accent);
    box-shadow: 0 0 15px rgba(76, 159, 254, 0.2);
}

.scroll-btn:active {
    transform: scale(0.95);
}

.scroll-btn.left-btn {
    left: -90px;
}

.scroll-btn.right-btn {
    right: -90px;
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 2rem;
    text-align: center;
}

.content .lh {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(45deg, var(--text-primary) 0%, var(--secondary-accent) 72%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow: hidden;
}

.content .desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    display: inline-block;
    border-right: 2px solid var(--primary-accent);
    padding-right: 4px;
}

.content .desc.typing {
    animation: caret 0.9s step-end infinite;
}

.content .cards {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
    max-width: 1200px;
    padding: 30px 0;
    margin-top: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.content .cards::-webkit-scrollbar {
    display: none;
}

.content .cards .card {
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
    min-width: 100%;
    height: auto;
    min-height: 220px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    color: var(--text-primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    scroll-snap-align: start;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
    text-align: left;
}

.card:hover {
    transform: translateY(-6px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(76, 159, 254, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary-accent);
}

.card-icon img {
    max-width: 24px;
    max-height: 24px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1; 
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.anchor-list {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    padding: 20px;
}

.anchor-list a {
    color: var(--secondary-accent);
    text-decoration: none;
    transition: 0.2s;
}

.anchor-list a:hover {
    color: var(--primary-accent);
}

@keyframes caret {
    50% {
        border-color: transparent;
    }
}

@media (max-width: 900px) {
    .fullpage {
        padding: 2rem;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .scroll-btn.left-btn {
        left: -60px;
    }
    
    .scroll-btn.right-btn {
        right: -60px;
    }

    .content .cards {
        margin-top: 4rem;
    }

    .card {
        line-clamp: 4;
        flex: 0 0 100%;
        min-width: 100%;
    }

    .card img {
        max-width: 80px;
        max-height: 80px;
    }

    .content .cards-content {
        width: 50vw;
    }
}

@media (max-width: 600px) {
    .fullpage {
        padding: 1rem;
    }

    .content {
        padding: 1rem;
    }

    .scroll-btn.left-btn {
        left: -50px;
    }
    
    .scroll-btn.right-btn {
        right: -50px;
    }

    .content .cards {
        margin-top: 3rem;
    }

    .card {
        flex: 0 0 100%; 
        min-width: 100%;
        padding: 1.25rem;
    }

    .card img {
        max-width: 80px;
        max-height: 80px;
    }

    .card h1 {
        max-width: 30ch;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-desc {
        font-size: 0.9rem;
    }

    .content .cards-content {
        width: 50vw;
    }
}