:root {
    --primary: #1a1a1a;
    --secondary: #f0f0f0;
    --accent: #8c8c8c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: var(--primary);
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M10 10L90 10L90 90L10 90Z' fill='none' stroke='%23333' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 20px;
}

/* Canvas backgrounds */
.section-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

header, section {
    position: relative;
    overflow: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    z-index: 1000;
    border-bottom: 2px solid var(--accent);
    background: rgba(26, 26, 26, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Header */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    padding-top: 80px;
}

.profile-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--secondary);
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    z-index: 1;
}

.cat-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cat-eyes {
    position: absolute;
    top: 60px;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.eye {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    position: relative;
}

.eye::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 22px;
    width: 10px;
    height: 10px;
    background-color: var(--secondary);
    border-radius: 50%;
}

.cat-nose {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
}

.cat-mouth {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 10px;
    border-bottom: 2px solid var(--primary);
    border-radius: 0 0 20px 20px;
}

.whiskers {
    position: absolute;
    top: 120px;
    width: 100%;
}

.whisker {
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: var(--primary);
}

.whisker:nth-child(1) {
    left: 30px;
    transform: rotate(-10deg);
}

.whisker:nth-child(2) {
    left: 25px;
    top: 15px;
    transform: rotate(-5deg);
}

.whisker:nth-child(3) {
    right: 30px;
    transform: rotate(10deg);
}

.whisker:nth-child(4) {
    right: 25px;
    top: 15px;
    transform: rotate(5deg);
}

.name {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 1;
    position: relative;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 1;
    position: relative;
}

.social-link {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--secondary);
    border-radius: 5px;
    transition: all 0.3s;
    color: var(--secondary);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

/* Sections */
section {
    padding: 6rem 2rem;
    min-height: 500px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: "=^..^=";
    display: block;
    margin-top: 1rem;
    color: var(--accent);
    font-size: 1.2rem;
}

/* About */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-content a {
    color: var(--secondary);
    text-decoration: underline;
}

/* Projects Grid*/
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 0.5rem;
}

.project-card {
    background-color: #282828;
    border: 2px solid var(--accent);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

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

.project-img {
    width: 100%;
    height: 120px;
    background-color: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2.8rem;
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-info a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: var(--primary);
    border: 1px solid var(--secondary);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s;
    color: var(--secondary);
    text-decoration: none;
    text-align: center;
}

.project-info a:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    background-color: #282828;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    border: 1px solid var(--accent);
}

/* Contact */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-container p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.contact-link {
    padding: 1rem 2rem;
    background-color: #282828;
    border: 2px solid var(--accent);
    border-radius: 10px;
    transition: all 0.3s;
    color: var(--secondary);
    text-decoration: none;
}

.contact-link:hover {
    background-color: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #101010;
    position: relative;
}

.cat-tail {
    position: absolute;
    bottom: 0;
    right: 20%;
    width: 10px;
    height: 100px;
    background-color: var(--secondary);
    border-radius: 10px;
    transform: rotate(-45deg);
    transform-origin: bottom;
    animation: tail-wag 2s infinite alternate ease-in-out;
}

@keyframes tail-wag {
    0% { transform: rotate(-45deg); }
    100% { transform: rotate(-25deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(26, 26, 26, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    header {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
    }

    .name {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 1.5rem;
    }
}