:root {
    --bg: #ffffff;
    --color-base: #55386E;
    --color-accent-1: #FB1CA5;
    --color-accent-2: #9EE601;
    --color-text: #1a1a1a;
    --color-text-light: #ffffff;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--color-text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: var(--color-accent-2);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-1);
    text-decoration: underline;
}

.header {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    z-index: 100;
    background: var(--bg);
    border-bottom: 2px solid var(--color-base);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1100px;
    margin: 0px auto;
}

.header__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-base);
    text-decoration: none;
}

.header__logo:hover {
    text-decoration: none;
    color: var(--color-accent-1);
}

.header__menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: medium;
    cursor: pointer;
    padding: 4px;
}

.header__menu-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-base);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.header__menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header__menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.header__menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0px;
    right: 0px;
    background: var(--bg);
    border-bottom: 2px solid var(--color-base);
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
}

.header__nav.open {
    display: flex;
}

.header__nav a {
    color: var(--color-base);
    font-weight: 600;
    font-size: 1.1rem;
}

.header__nav a:hover {
    color: var(--color-accent-1);
    text-decoration: none;
}

.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    background: var(--color-base);
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ripple {
    position: absolute;
    border: 1.5px solid var(--color-accent-2);
    border-radius: 50%;
    pointer-events: none;
    animation: ripple-expand 1.2s ease-out forwards;
    opacity: 0;
}

@keyframes ripple-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: var(--ripple-size, 300px);
        height: var(--ripple-size, 300px);
        opacity: 0;
    }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero__tagline {
    font-size: 1.2rem;
    color: var(--color-accent-2);
    font-weight: 500;
}

section {
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0px auto;
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-base);
    margin-bottom: 1.5rem;
    /* padding-left: 0.75rem; */

}

.about p {
    margin-bottom: 1rem;
    max-width: 700px;
}

.about__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    position: relative;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--color-base);
    color: var(--color-text-light);
    border-radius: 1px;
    font-size: 0.85rem;
    font-weight: 600;
}

.work__grid {
    display: grid;
    gap: 1.5rem;
}

.card {
    border: 1px solid var(--color-base);
    border-radius: 2px;
    padding: 1.5rem;
    transition: background-color 0.2s;
    background-color: var(--color-base);

}

.card:hover {

}

.card h3 {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.card p {
    margin-bottom: 0.75rem;
    color: var(--color-text-light);
}

.card a {
    font-weight: 600;
    color: var(--color-accent-2);
}

.card a:hover {
    color: var(--color-accent-1);
}

.contact {
    background: var(--color-base);
    color: var(--color-text-light);
    max-width: none;
    padding: 4rem 1.5rem;
}

.contact h2 {
    color: var(--color-text-light);
    border-left-color: var(--color-accent-2);
}

.contact p {
    max-width: 700px;
    margin-bottom: 1.5rem;
}

.contact__links a {
    color: var(--color-accent-2);
    font-weight: 600;
    font-size: 1.1rem;
}

.frog {
    position: absolute;
    width: 36px;
    height: 36px;
    z-index: 99;
    cursor: pointer;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
    pointer-events: none;
}

.frog svg {
    width: 100%;
    height: 100%;
}

.quak-bubble {
    position: absolute;
    transform: translate(-50%, -100%);
    background: var(--color-accent-1);
    color: var(--color-text-light);
    font-weight: 800;
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    z-index: 100;
    white-space: nowrap;
    animation: quak-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
}

.quak-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid var(--color-accent-1);
}

.quak-bubble:hover {
    background: var(--color-accent-2);
    color: var(--color-base);
    text-decoration: none;
}

.quak-bubble:hover::after {
    border-top-color: var(--color-accent-2);
}

.quak-bubble--fade {
    animation: quak-fade 0.3s ease-out forwards;
}

@keyframes quak-pop {
    0% {
        transform: translate(-50%, -100%) scale(0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -100%) scale(1);
        opacity: 1;
    }
}

@keyframes quak-fade {
    0% {
        transform: translate(-50%, -100%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -120%) scale(0.5);
        opacity: 0;
    }
}

.splash {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-base);
    border-radius: 50%;
    pointer-events: none;
    animation: splash-fly 0.6s ease-out forwards;
}

@keyframes splash-fly {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translate(var(--splash-dx), var(--splash-dy)) scale(0);
        opacity: 0;
    }
}

/* Blog */
.blog {
    max-width: 750px;
    padding: 6rem 1.5rem 4rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .blog {
        padding: 6rem 3rem 5rem;
    }
}

.blog h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-base);
    margin-bottom: 2rem;
}

.blog-post {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post h2 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.blog-post time {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 1rem;
}

.blog-post p {
    margin-bottom: 1rem;
    max-width: none;
}

.blog-post blockquote {
    border-left: 3px solid var(--color-accent-1);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

.blog-back {
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 600;
}

.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.85rem;
    color: rgb(136, 136, 136);
}

@media (min-width: 768px) {
    .header__menu-btn {
        display: none;
    }

    .header__nav {
        display: flex;
        position: static;
        border-bottom-width: medium;
        border-bottom-style: none;
        border-bottom-color: currentcolor;
        padding: 0px;
        flex-direction: row;
        gap: 2rem;
    }

    .hero {
        padding: 8rem 3rem 6rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero__tagline {
        font-size: 1.5rem;
    }

    section {
        padding: 5rem 3rem;
    }

    .work__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact {
        padding: 5rem 3rem;
    }
}

@media (min-width: 1024px) {
    .work__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}