/* ppuzzle.dev - Botanical Neon Developer Portfolio */
/* Colors: #f5ffe8, #6a8a6a, #1a4a20, #39ff14, #00f5ff, #ff6b35, #0a2010, #2d8a3a */
/* Fonts: JetBrains Mono, Source Sans 3, Inter */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Source Sans 3", "Inter", sans-serif;
    background-color: #0a2010;
    color: #f5ffe8;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================ */
/* Botanical Leaf Decorations */
/* ============================================ */

.botanical-leaf {
    position: fixed;
    z-index: 0;
    pointer-events: none;
}

.botanical-leaf--top-left {
    top: -20px;
    left: -20px;
    width: 220px;
    height: 330px;
}

.botanical-leaf--bottom-right {
    bottom: -20px;
    right: -20px;
    width: 220px;
    height: 330px;
}

/* ============================================ */
/* Tropical Fish Easter Eggs */
/* ============================================ */

.tropical-fish {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.tropical-fish.visible {
    opacity: 1;
}

.tropical-fish--1 {
    top: 15%;
    right: 3%;
    width: 50px;
    animation: fishSwim1 12s ease-in-out infinite;
}

.tropical-fish--2 {
    bottom: 25%;
    left: 2%;
    width: 40px;
    animation: fishSwim2 15s ease-in-out infinite;
}

.tropical-fish--3 {
    top: 60%;
    right: 5%;
    width: 35px;
    animation: fishSwim3 10s ease-in-out infinite;
}

@keyframes fishSwim1 {
    0%, 100% { transform: translateX(0) translateY(0) scaleX(1); }
    25% { transform: translateX(-30px) translateY(-10px) scaleX(1); }
    50% { transform: translateX(-60px) translateY(5px) scaleX(-1); }
    75% { transform: translateX(-20px) translateY(-5px) scaleX(-1); }
}

@keyframes fishSwim2 {
    0%, 100% { transform: translateX(0) translateY(0) scaleX(-1); }
    25% { transform: translateX(20px) translateY(-15px) scaleX(-1); }
    50% { transform: translateX(50px) translateY(0) scaleX(1); }
    75% { transform: translateX(25px) translateY(10px) scaleX(1); }
}

@keyframes fishSwim3 {
    0%, 100% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(-25px) translateY(-20px); }
    66% { transform: translateX(15px) translateY(10px); }
}

/* ============================================ */
/* Header */
/* ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: linear-gradient(to bottom, #0a2010 0%, rgba(10, 32, 16, 0.95) 60%, rgba(10, 32, 16, 0) 100%);
    backdrop-filter: blur(8px);
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}

.header__logo-bracket {
    color: #6a8a6a;
}

.header__logo-text {
    color: #f5ffe8;
}

.header__logo-dot {
    color: #39ff14;
}

.header__nav {
    display: flex;
    gap: 32px;
}

.header__nav-link {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    color: #6a8a6a;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.header__nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #39ff14;
    transition: width 0.3s ease;
}

.header__nav-link:hover {
    color: #39ff14;
}

.header__nav-link:hover::after {
    width: 100%;
}

/* ============================================ */
/* Hero Section */
/* ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 120px 0 60px;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__greeting {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
    color: #39ff14;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.hero__title {
    font-family: "JetBrains Mono", monospace;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #f5ffe8;
    margin-bottom: 24px;
}

.hero__title-accent {
    color: #39ff14;
    text-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
}

.hero__subtitle {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.15rem;
    color: #6a8a6a;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 36px;
}

.hero__cta {
    display: flex;
    gap: 16px;
}

.hero__btn {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    padding: 14px 28px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
}

.hero__btn--primary {
    background: #39ff14;
    color: #0a2010;
    border-color: #39ff14;
}

.hero__btn--primary:hover {
    background: transparent;
    color: #39ff14;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.hero__btn--secondary {
    background: transparent;
    color: #f5ffe8;
    border-color: #6a8a6a;
}

.hero__btn--secondary:hover {
    border-color: #00f5ff;
    color: #00f5ff;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

/* Hero Visual / Geometric */

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__geometric {
    position: relative;
    width: 350px;
    height: 350px;
}

.hero__geo-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid rgba(57, 255, 20, 0.15);
    animation: geoRotate 20s linear infinite;
}

.hero__geo-square {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 180px;
    height: 180px;
    border: 1.5px solid rgba(0, 245, 255, 0.2);
    animation: geoRotate 15s linear infinite reverse;
}

.hero__geo-triangle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(255, 107, 53, 0.08);
    animation: geoRotate 25s linear infinite;
}

.hero__leaf-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

@keyframes geoRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Scroll Indicator */

.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero__scroll-text {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    color: #6a8a6a;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #39ff14, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ============================================ */
/* Projects Section */
/* ============================================ */

.projects {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.projects__header {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.projects__title {
    font-family: "JetBrains Mono", monospace;
    font-size: 2rem;
    font-weight: 600;
    color: #f5ffe8;
    margin-bottom: 12px;
}

.projects__title-symbol {
    color: #39ff14;
}

.projects__description {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.05rem;
    color: #6a8a6a;
    max-width: 600px;
}

.projects__grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* Project Card */

.project-card {
    background: rgba(26, 74, 32, 0.3);
    border: 1px solid rgba(106, 138, 106, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.project-card:hover {
    border-color: #39ff14;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.project-card:nth-child(even):hover {
    border-color: #00f5ff;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-card__image svg {
    width: 100%;
    height: 100%;
    display: block;
}

.project-card__content {
    padding: 24px;
}

.project-card__tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    color: #39ff14;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(57, 255, 20, 0.3);
    padding: 3px 10px;
    border-radius: 3px;
}

.project-card__title {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f5ffe8;
    margin: 14px 0 10px;
}

.project-card__desc {
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.92rem;
    color: #6a8a6a;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-card__tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-card__tech span {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: #2d8a3a;
    background: rgba(45, 138, 58, 0.15);
    padding: 3px 10px;
    border-radius: 3px;
}

/* Slide Reveal Animation */

.slide-reveal {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-reveal.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================ */
/* About Section */
/* ============================================ */

.about {
    padding: 120px 0;
    background: linear-gradient(to bottom, transparent, rgba(26, 74, 32, 0.1), transparent);
    position: relative;
    z-index: 2;
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about__title {
    font-family: "JetBrains Mono", monospace;
    font-size: 2rem;
    font-weight: 600;
    color: #f5ffe8;
    margin-bottom: 24px;
}

.about__title-symbol {
    color: #39ff14;
}

.about__text {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.05rem;
    color: #6a8a6a;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.about__skill-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: #39ff14;
    margin-bottom: 12px;
    font-weight: 500;
}

.about__skill-list {
    list-style: none;
}

.about__skill-list li {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #f5ffe8;
    padding: 4px 0;
    opacity: 0.7;
}

.about__skill-list li::before {
    content: "~ ";
    color: #2d8a3a;
}

/* Terminal */

.about__terminal {
    background: #0a2010;
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.about__terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(26, 74, 32, 0.4);
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
}

.about__terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.about__terminal-dot--red { background: #ff6b35; }
.about__terminal-dot--yellow { background: #39ff14; }
.about__terminal-dot--green { background: #00f5ff; }

.about__terminal-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: #6a8a6a;
    margin-left: 8px;
}

.about__terminal-body {
    padding: 20px;
    min-height: 200px;
}

.about__terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.about__terminal-prompt {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    color: #39ff14;
}

.about__terminal-cmd {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    color: #f5ffe8;
}

.about__terminal-cursor {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    color: #39ff14;
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================ */
/* Contact Section */
/* ============================================ */

.contact {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.contact__title {
    font-family: "JetBrains Mono", monospace;
    font-size: 2rem;
    font-weight: 600;
    color: #f5ffe8;
    margin-bottom: 16px;
}

.contact__title-symbol {
    color: #39ff14;
}

.contact__text {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.1rem;
    color: #6a8a6a;
    margin-bottom: 40px;
    max-width: 500px;
}

.contact__links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #f5ffe8;
    transition: color 0.3s ease;
    width: fit-content;
}

.contact__link:hover {
    color: #39ff14;
}

.contact__link-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d8a3a;
    transition: color 0.3s ease;
}

.contact__link:hover .contact__link-icon {
    color: #39ff14;
}

.contact__link-icon svg {
    width: 20px;
    height: 20px;
}

.contact__link-text {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contact__link:hover .contact__link-text {
    border-color: #39ff14;
}

/* ============================================ */
/* Footer */
/* ============================================ */

.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(106, 138, 106, 0.15);
    position: relative;
    z-index: 2;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer__text {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #6a8a6a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__separator {
    color: #2d8a3a;
}

.footer__tagline {
    color: #2d8a3a;
}

/* ============================================ */
/* Responsive */
/* ============================================ */

@media (max-width: 900px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__visual {
        display: none;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

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

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

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

@media (max-width: 600px) {
    .header__container {
        padding: 0 20px;
    }

    .header__nav {
        gap: 16px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .projects__header,
    .projects__grid,
    .about__container,
    .contact__container,
    .footer__container {
        padding: 0 20px;
    }

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

    .footer__text {
        flex-direction: column;
        gap: 4px;
    }
}