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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #151518;
    color: #e8e8e8;
    line-height: 1.6;
    font-weight: 400;
}

::selection {
    background-color: #4a6fa5;
    color: #fff;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 100px 40px;
}

header {
    margin-bottom: 50px;
}

h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    color: #f5f5f5;
}

.title {
    font-size: 1.15rem;
    color: #7a7a80;
    font-weight: 400;
}

.project-info .stack {
    font-size: 0.8rem;
    color: #6a6a70;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.about {
    margin-bottom: 90px;
    padding-left: 2px;
}

.about p {
    font-size: 1.1rem;
    color: #a5a5ab;
    max-width: 580px;
    line-height: 1.85;
    font-weight: 300;
}

.projects {
    margin-bottom: 90px;
    background: #1a1a1e;
    padding: 35px 40px;
    border-radius: 16px;
}

.projects h2 {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #5a5a60;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Loading spinner */
.loader {
    width: 12px;
    height: 12px;
    border: 2px solid #3a3a40;
    border-top-color: #8b9dc3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

table {
    width: 100%;
    border-collapse: collapse;
}

tr {
    display: flex;
    align-items: center;
    gap: 50px;
    padding-bottom: 35px;
    margin-bottom: 35px;
    position: relative;
}

tr::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2a2a32 20%, #2a2a32 80%, transparent);
}

tr:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

tr:last-child::after {
    display: none;
}

.project-info {
    flex: 1;
}

.project-info h3 {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #ececec;
}

.product-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #1e1e24 0%, #252530 100%);
    color: #ececec;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #2a2a32;
    transition: all 0.2s ease;
    font-size: 1.35rem;
    font-weight: 500;
}

.product-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.25);
    border-color: #3a3a42;
    background: linear-gradient(135deg, #242430 0%, #2a2a38 100%);
}

.product-link-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.product-link-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.product-link-btn:hover svg {
    opacity: 1;
}

.project-info p {
    font-size: 0.95rem;
    color: #808088;
    line-height: 1.75;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.tab {
    background: transparent;
    border: 1px solid #2a2a30;
    color: #606068;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-family: inherit;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tab:hover {
    border-color: #3a3a42;
    color: #8a8a92;
}

.tab.active {
    background: #1e1e24;
    border-color: #3a3a42;
    color: #b0b0b8;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.project-media {
    flex-shrink: 0;
}

.gif-placeholder {
    width: 300px;
    height: 190px;
    background: #1c1c20;
    border: 1px solid #2a2a30;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #45454a;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.project-gif {
    width: 300px;
    height: 190px;
    border: 1px solid #2a2a30;
    border-radius: 12px;
    object-fit: cover;
}

@media (max-width: 700px) {
    main {
        padding: 70px 24px;
    }

    h1 {
        font-size: 2.2rem;
    }

    tr {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .gif-placeholder,
    .project-gif {
        width: 100%;
        max-width: 340px;
    }

    .projects {
        padding: 25px 20px;
    }
}
