:root {
    --blue: #304c7a;
    --white: #f4f5f7;
    --red: #c72138;
    --orange: #e06236;
    --gold: #d7a64b;
}

body {
    background-color: var(--blue);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--white);
}

.main-container {
    max-width: 900px;
    margin: 50px auto 0;
    padding: 0 1.5rem;
}

.hero {
    padding: 2rem 1rem 1rem;
}

.hero-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

.hero-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0;
    color: var(--gold);
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 400px;
}

.hero-text p a {
    text-decoration: none;
    color: var(--orange);
    transition: color 0.2s ease;
}

.hero-text p a:hover {
    color: var(--red);
    text-decoration: underline;
}

.body-title {
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 600;
    margin: 0 0 2rem;
}

.bio-text {
    max-width: 670px;
}

.social-section {
    margin-bottom: 2rem;
}

.social-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.social-tile {
    width: 162px;
    height: 162px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-tile:hover {
    background: var(--red);
    transform: translateY(-2px);
}

.social-tile i {
    font-size: 50px;
    color: var(--gold);
}

.social-tile:hover i {
    color: var(--white);
}

.wip-card {
    width: 670px;
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--blue);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.15s ease, background 0.2s ease;
    margin-top: 2rem;
}

.wip-card:hover {
    background: var(--orange);
    color: var(--white);
    cursor: pointer;
    transform: translateY(-2px);
}

.wip-image {
    width: 100%;
    height: 350px;
    border-radius: 6px;
    display: block;
}

.wip-tag {
    background: var(--blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    width: fit-content;
}

.wip-description {
    color: var(--blue);
    font-size: 1rem;
    line-height: 1.4;
    margin: 0.25rem 0 2rem;
}

.wip-link {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: var(--red);
    text-decoration: none;
}

.body-titleFP {
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 600;
    margin: 2rem 0 2rem;
}

.project-carousel {
    position: relative;
    width: 670px;
    margin: 3rem 0 0;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-card {
    position: absolute;
    top: 0;
    width: 500px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    color: var(--blue);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.main-card {
    z-index: 3;
    transform: translateX(0) scale(1);
    opacity: 1;
}

.side-card {
    z-index: 2;
    transform: scale(0.6);
    opacity: 0.5;
}

.left-card {
    transform: translateX(-135px) scale(0.6);
}

.right-card {
    transform: translateX(135px) scale(0.6);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold);
    color: var(--blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    z-index: 4;
    transition: background 0.2s ease;
}

.carousel-arrow:hover {
    background: var(--red);
    color: var(--white);
}

.carousel-arrow.prev {
    left: -40px;
}

.carousel-arrow.next {
    right: -40px;
}

.project-image {
    width: 100%;
    height: 300px;
    border-radius: 6px;
}

.project-tag {
    background: var(--blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    width: fit-content;
}

.project-description {
    color: var(--blue);
    font-size: 1rem;
    line-height: 1.4;
    margin: 0.25rem 0 2rem;
}

.project-link {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
}

.project-link:hover {
    text-decoration: underline;
}

.main-card:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateX(0) scale(1.03);
}

.main-card:hover .project-tag {
    background: var(--white);
    color: var(--blue);
}

.main-card:hover .project-link {
    color: var(--white);
    text-decoration: underline;
}

footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 3rem 0 2rem;
    font-size: 0.9rem;
    color: var(--white);
}

.footer-inner {
    max-width: 670px;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .main-container {
        margin: 20px auto 0;
        padding: 0 1rem;
    }

    .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .hero-img {
        width: 130px;
        height: 130px;
    }

    .hero-text p {
        max-width: 100%;
    }

    .social-grid {
        justify-content: center;
        gap: 0.75rem;
    }

    .social-tile {
        width: calc(50% - 0.75rem);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .social-tile i {
        font-size: 40px;
    }

    .wip-card,
    .project-card,
    .project-carousel {
        width: 100%;
    }

    .project-image,
    .wip-image {
        height: 220px;
    }

    .left-card {
        transform: translateX(-100px) scale(0.55);
    }

    .right-card {
        transform: translateX(100px) scale(0.55);
    }

    .carousel-arrow.prev {
        left: -10px;
    }

    .carousel-arrow.next {
        right: -10px;
    }
}
