:root {
    --bg-dark: #0b0d0b;
    --bg-card: rgba(255, 255, 255, 0.03);
    --accent-green: #4ade80;
    --accent-green-glow: rgba(74, 222, 128, 0.2);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-3d: 0 20px 40px rgba(0, 0, 0, 0.6);
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
#bg-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.spore {
    position: absolute;
    background: var(--accent-green);
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 10px var(--accent-green), 0 0 20px var(--accent-green-glow);
    animation: float-and-fade linear infinite;
    will-change: transform, opacity;
}
.mouse-spore {
    position: absolute;
    background: var(--accent-green);
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 8px var(--accent-green);
    animation: float-up-fade 2s ease-out forwards;
    pointer-events: none;
    z-index: 0;
}
@keyframes float-up-fade {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-80px) translateX(20px) scale(0);
        opacity: 0;
    }
}
@keyframes float-and-fade {
    0% {
        transform: translateY(110vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    50% {
        transform: translateY(50vh) translateX(-20px) scale(1.2);
        opacity: 0.8;
    }
    90% {
        opacity: 0.4;
        transform: translateY(10vh) translateX(10px) scale(1);
    }
    100% {
        transform: translateY(-10vh) translateX(0) scale(0);
        opacity: 0;
    }
}
h1, h2, h3 { 
    font-family: 'Bricolage Grotesque', sans-serif; 
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.2);
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 222, 128, 0.4);
}
header {
    width: 100%;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}
header.scrolled {
    background: rgba(11, 13, 11, 0.85);
    backdrop-filter: blur(15px);
    padding: 15px 8%;
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.logo {
    font-weight: 800;
    font-size: 1.2rem;
    font-family: 'Bricolage Grotesque', sans-serif;
}
nav ul { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
}
nav ul li a { 
    text-decoration: none; 
    color: #fff; 
    font-weight: 500; 
    transition: var(--transition); 
}
nav ul li a:hover { 
    color: var(--accent-green); 
}
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    gap: 40px;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.hero-title { 
    font-size: clamp(3rem, 7vw, 5rem); 
    line-height: 1.1; 
    margin-bottom: 20px; 
}
.accent-text { 
    color: var(--accent-green); 
}
#typing-text {
    color: var(--accent-green);
    font-weight: 700;
}
.cursor {
    color: var(--accent-green);
    animation: blink 0.7s infinite;
    margin-left: 2px;
}
.hero-description {
    max-width: 600px;
    color: var(--text-muted);
    font-size: 1.1rem;
}
.hero-socials { 
    display: flex; 
    gap: 20px; 
    margin-top: 40px; 
}
.hero-socials a {
    width: 50px; 
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-decoration: none; 
    font-size: 1.4rem; 
    transition: var(--transition);
}
.hero-socials a:hover { 
    background: var(--accent-green); 
    color: var(--bg-dark); 
    transform: translateY(-8px) scale(1.1);
}
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(300px, 40vw, 450px);
    height: clamp(300px, 40vw, 450px);
    flex-shrink: 0;
}
.hero-image-container::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--accent-green), transparent 40%);
    animation: rotate-aura 4s linear infinite;
    filter: blur(15px);
    z-index: 1;
}
.hero-image-container::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-green-glow) 0%, transparent 70%);
    animation: pulse-aura 3s ease-in-out infinite;
    z-index: 1;
}
.image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(74, 222, 128, 0.4);
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: var(--bg-dark);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.2);
}
.profile-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
section {
    padding: 100px 8%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}
.section-title { 
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
    color: var(--accent-green); 
    text-align: center; 
    margin-bottom: 20px; 
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header p {
    color: var(--text-muted);
}
.skill-plant-container {
    position: relative;
    height: 700px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 50px;
    perspective: 1000px;
}
.tree-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.plant-trunk {
    position: absolute;
    bottom: 0;
    width: 12px;
    height: 80%;
    background: linear-gradient(to top, #1a2e1a, var(--accent-green));
    border-radius: 10px;
    box-shadow: 0 0 30px var(--accent-green-glow);
    z-index: 1;
    transform-origin: bottom center;
    animation: sway 6s ease-in-out infinite;
}
.plant-trunk::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 40px;
    background: var(--accent-green);
    filter: blur(25px);
    opacity: 0.5;
}
.skill-fruit {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 85px;
    height: 85px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 50%;
    background: rgba(11, 13, 11, 0.6);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    animation: fruitBob 4s ease-in-out infinite;
    animation-delay: var(--delay);
}
.skill-fruit i {
    font-size: 1.8rem;
    color: var(--accent-green);
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}
.skill-fruit .label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    opacity: 0.8;
}
.skill-fruit:hover {
    transform: scale(1.15) translateY(-10px);
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent-green);
    box-shadow: 0 0 30px var(--accent-green-glow);
}
.skill-fruit:hover i {
    transform: scale(1.2) rotate(10deg);
}
.skill-card-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: rgba(11, 13, 11, 0.95);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(20px);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: left;
}
.skill-card-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#skill-icon-display {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 15px;
    display: block;
}
#skill-name-display {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-light);
}
#skill-desc-display {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.close-btn {
    top: 15px;
    right: 15px;
    background: transparent;
    color: var(--text-muted);
    width: 30px;
    height: 30px;
}
.close-btn:hover {
    color: var(--accent-green);
    transform: rotate(90deg);
}
@keyframes sway {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(1deg); }
}
.plant-trunk {
    animation: sway 4s ease-in-out infinite;
    transform-origin: bottom center;
}
@keyframes canopyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes fruitPop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes fruitBob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -6px; }
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
    margin-top: 40px;
}
.specimen-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(74, 222, 128, 0.08);
    border-radius: 28px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    height: 100%;
}
.specimen-card:hover {
    transform: translateY(-12px);
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.04);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-green-glow);
}
.specimen-image {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}
.specimen-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.specimen-card:hover .specimen-image img {
    transform: scale(1.08);
}
.specimen-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 12px;
}
.specimen-badge {
    background: rgba(74, 222, 128, 0.08);
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(74, 222, 128, 0.15);
}
.specimen-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}
.specimen-content {
    padding: 0 10px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.specimen-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.specimen-title i {
    font-size: 1.4rem;
    color: var(--accent-green);
    margin-top: 3px;
}
.specimen-title h3 {
    font-size: 1.6rem;
    line-height: 1.2;
    color: var(--text-light);
}
.specimen-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}
.specimen-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 25px;
}
.specimen-tag {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.specimen-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.specimen-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.specimen-btn-primary {
    background: var(--accent-green);
    color: var(--bg-dark);
}
.specimen-btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
}
.specimen-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.specimen-btn-secondary:hover {
    border-color: var(--accent-green);
    background: rgba(74, 222, 128, 0.05);
}
.skill-fruit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, var(--accent-green), transparent);
    transform-origin: top center;
    transform: rotate(var(--stem-angle)) translateY(40px);
    z-index: -1;
    opacity: 0.2;
    transition: 0.5s ease;
}
.skill-fruit:hover::before {
    opacity: 0.6;
    height: 140px;
    filter: blur(1px);
}
#contact { 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 600px;
}
.envelope-container {
    perspective: 1000px;
    position: relative;
    margin-top: 20px;
}
.envelope-wrapper {
    position: relative;
    width: 300px;
    height: 200px;
    background-color: #1a1c1a;
    border-radius: 0 0 15px 15px;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}
.envelope-wrapper:hover {
    transform: translateY(-5px);
}
.flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-top: 110px solid #2d3b2d;
    transform-origin: top;
    transition: transform 0.4s ease-in-out, z-index 0.2s;
    z-index: 3;
}
.envelope .body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 150px solid #1e261e;
    border-right: 150px solid #1e261e;
    border-bottom: 100px solid #232d23;
    z-index: 2;
    border-radius: 0 0 15px 15px;
}
.letter {
    position: absolute;
    top: 10px;
    left: 15px;
    width: 270px;
    height: 180px;
    background: #f8fafc;
    border-radius: 10px;
    z-index: 1;
    transition: transform 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.letter-content {
    text-align: center;
    color: #0b0d0b;
}
.letter-content i {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 10px;
}
.letter-content p {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.contact-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-green);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    transition: 0.3s;
}
.contact-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--accent-green-glow);
}
.envelope-wrapper:hover .flap {
    transform: rotateX(180deg);
    z-index: 0;
}
.envelope-wrapper:hover .letter {
    transform: translateY(-120px);
    z-index: 2;
}
.envelope-prompt {
    margin-top: 40px;
    font-weight: 600;
    color: var(--accent-green);
    transition: 0.3s;
    animation: pulse 2s infinite;
}
.envelope-wrapper:hover + .envelope-prompt {
    opacity: 0;
    transform: translateY(10px);
}
footer { 
    padding: 60px; 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    color: var(--text-muted); 
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-25px); } 
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
}
@keyframes rotate-aura {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes pulse-aura {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 0.8; transform: scale(1.05); }
}
#mobile-menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 12px;
}
nav {
    position: relative;
}
nav .menu-close {
    display: none;
}
@media (max-width: 768px) {
    header { padding: 18px 5%; }
    #mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    nav {
        position: fixed;
        inset: 0;
        background: rgba(11, 13, 11, 0.95);
        z-index: 1500;
        display: flex;
        justify-content: center;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    nav.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    nav ul {
        display: flex;
        flex-direction: column;
        gap: 22px;
        text-align: center;
    }
    nav ul li a {
        font-size: 1.1rem;
        padding: 12px 20px;
    }
    nav .menu-close {
        display: inline-flex;
        position: absolute;
        top: 18px;
        right: 18px;
        border: none;
        background: transparent;
        color: #fff;
        font-size: 1.4rem;
        cursor: pointer;
    }
    #hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 60px;
    }
    .hero-socials {
        justify-content: center;
    }
    .hero-description {
        margin: 0 auto;
        max-width: 100%;
    }
    .hero-image-container {
        width: min(280px, 72vw);
        height: min(280px, 72vw);
        margin: 0 auto;
    }
    .skill-plant-container {
        height: 620px;
        padding-bottom: 35px;
    }
    .tree-canvas {
        transform: scale(0.72);
        transform-origin: center top;
    }
    .skill-card-overlay {
        position: fixed;
        bottom: 18px;
        left: 50%;
        transform: translateX(-50%);
        width: min(360px, calc(100% - 32px));
        padding: 22px;
        z-index: 1600;
    }
    .card-image {
        height: 180px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .project-heading {
        align-items: flex-start;
    }
    .project-heading-copy h3 {
        font-size: 1.55rem;
    }
    .card-links {
        flex-direction: column;
    }
    section {
        padding: 80px 5%;
    }
    .contact-subtitle {
        margin-bottom: 40px;
    }
    .envelope-wrapper {
        width: min(280px, 90vw);
        height: 180px;
    }
    footer {
        padding: 40px 5%;
    }
}

