
:root {
    --bg-color: #3e5c41;
    --text-primary: rgb(167, 204, 164);
    --text-muted: rgba(167, 204, 164, 0.6);
    --text-hover: rgb(210, 235, 208);
    --font-main: 'Bricolage Grotesque', sans-serif;
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: center;
    justify-items: center;
    padding: 2rem 1.5rem;
    overflow-x: hidden;
    opacity: 0;
    animation: revealBlur 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.top-nav {
    display: flex;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    z-index: 10;
}

.nav-item {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: lowercase;
    transition: color var(--transition-smooth), transform var(--transition-smooth);
}

.nav-item:hover {
    color: var(--text-hover);
    transform: translateY(-2px);
}

.nav-item.active {
    color: var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 4px;
}

.profile-content {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 1100px;
    margin: auto 0;
    padding: 1rem 0;
}

.text-aboutme {
    width: 100%;
    max-width: 650px;
    text-align: center;
}

.text-aboutme h1 {
    font-size: clamp(2.2rem, 5vw + 1rem, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-aboutme p {
    font-size: clamp(1.1rem, 1vw + 0.8rem, 1.6rem);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.pic-container {
    position: relative;
    width: clamp(180px, 45vw, 320px);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 24%;
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-smooth);
    will-change: opacity;
}

.pic-container:hover .avatar.me,
.pic-container:active .avatar.me {
    opacity: 0;
}

@media (min-width: 769px) {
    body {
        overflow-y: hidden; 
    }

    .profile-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 5vw;
    }

    .text-aboutme {
        text-align: left;
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
        opacity: 1;
    }
    .nav-item, .avatar {
        transition: none;
    }
}

@keyframes revealBlur {
    0% {
        filter: blur(12px);
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        filter: blur(0);
        opacity: 1;
        transform: scale(1);
    }
}


body.cats-page {
    overflow-y: auto;
}

.cats-container {
    width: 100%;
    max-width: 1100px;
    margin: 2rem 0 auto 0;
    text-align: center;
}

.cats-title {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 800;
    margin-bottom: 3rem;
}

/* Update this section in your style.css */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    gap: 2rem;
    width: 100%;
    padding-bottom: 3rem;
    justify-content: center; 
}

.cat-card {
    background-color: rgba(167, 204, 164, 0.05);
    border: 2px solid var(--text-primary);
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    position: relative;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.cat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    color: transparent; 
}

.contact-container {
    width: 100%;
    max-width: 1100px;
    margin: 2rem 0 auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 800;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: rgba(167, 204, 164, 0.05);
    border: 2px solid var(--text-primary);
    border-radius: 24px;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.contact-message {
    font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.8rem);
    font-weight: 700;
    color: var(--text-hover);
    letter-spacing: 0.5px;
}