:root {
    --bg-color: #0a0a0a;
    --text-color: #c7c7c7;
    --primary-color: #39FF14;
    --primary-glow: rgba(57, 255, 20, 0.5);
    --card-bg-color: #1a1a1a;
    --border-color: #2c2c2c;
    --font-mono: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    line-height: 1.6;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    background-size: auto 4px;
    z-index: 1000;
    pointer-events: none;
    animation: scan 7s linear infinite;
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

::selection {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

main {
    padding: 0 150px;
    position: relative;
    z-index: 1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.7);
}

.navbar--hidden {
    transform: translateY(-100%);
}

.navbar-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--primary-glow);
}

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

.navbar-links a {
    font-size: 0.9rem;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-intro h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.hero-intro .subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    min-height: 3.5rem; 
    text-shadow: 0 0 8px var(--primary-glow);
}

.hero-intro .summary {
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--primary-glow);
    color: var(--primary-color);
}

.btn:hover {
    background-color: rgba(57, 255, 20, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary-glow);
    color: #fff;
}

.content-section {
    padding: 100px 0;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.section-title span {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 1rem;
}
.about-text .fun-fact {
    color: var(--primary-color);
    font-style: italic;
}

.about-skills ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.about-skills li::before {
    content: "▹";
    color: var(--primary-color);
    margin-right: 10px;
}

.skills-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    min-height: 400px;
}

.skills-neural-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.neuron {
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
    background: radial-gradient(circle at center, #333, #111);
    box-shadow: 0 0 10px #000, 0 0 25px var(--primary-glow), inset 0 0 15px #000;
}

.neuron-center {
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    z-index: 10;
    animation: pulse-neuron 4s ease-in-out infinite;
}

@keyframes pulse-neuron {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.skill-node {
    width: 80px;
    height: 80px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0; 
    transform: translate(-50%, -50%);
    animation: fade-in-neuron 0.5s forwards;
}

.skills-neural-container.visible .skill-node {
    animation-play-state: running;
}

@keyframes fade-in-neuron {
    to { opacity: 1; }
}

#skill-1 { animation-delay: 0.2s; }
#skill-2 { animation-delay: 0.4s; }
#skill-3 { animation-delay: 0.6s; }
#skill-4 { animation-delay: 0.8s; }
#skill-5 { animation-delay: 1.0s; }
#skill-6 { animation-delay: 1.2s; }
#skill-7 { animation-delay: 1.4s; }
#skill-8 { animation-delay: 1.6s; }

.connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.connection-line {
    stroke: var(--border-color);
    stroke-width: 1;
}

.synapse-pulse {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-dasharray: 10 1000;
    stroke-dashoffset: 10;
    opacity: 0;
    animation: fire-synapse 2s ease-out forwards;
}

.skills-neural-container.visible .synapse-pulse {
    animation-play-state: running;
}

@keyframes fire-synapse {
    0% {
        stroke-dashoffset: 200;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

.skill-node:hover {
    color: var(--primary-color);
    box-shadow: 0 0 10px #000, 0 0 40px var(--primary-glow), inset 0 0 15px #000;
    transform: translate(-50%, -50%) scale(1.1);
}

.skills-bars-container {
    flex-grow: 1;
    max-width: 450px;
}

.skill-bar {
    margin-bottom: 1.5rem;
}

.skill-bar-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-bar-progress {
    width: 100%;
    height: 8px;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #fff);
    border-radius: 4px;
    box-shadow: 0 0 8px var(--primary-glow);
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: var(--card-bg-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.project-card h3 {
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.project-card p {
    font-size: 0.9rem;
    flex-grow: 1;
}

.project-card footer {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    font-size: 0.8rem;
    background-color: rgba(57, 255, 20, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.project-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: bold;
    align-self: flex-start;
}
.project-link::after {
    content: " →";
}

.contact-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 100px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.contact-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.contact-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.contact-section p {
    margin-bottom: 2rem;
}

footer {
    padding: 2rem;
    text-align: center;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    margin: 0 1rem;
    display: inline-block;
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
    transition: all 0.3s ease;
}

.social-links a:hover svg {
    fill: var(--primary-color);
    transform: translateY(-3px);
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { color: transparent; }
    50% { color: var(--primary-color); }
}

@media (max-width: 1080px) {
    main {
        padding: 0 100px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 50px;
    }
    .navbar {
        padding: 1.5rem 2rem;
    }
    .navbar-links {
        display: none;
    }
    .about-content, .skills-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .skills-neural-container {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 25px;
    }
    .skills-neural-container {
        transform: scale(0.7);
    }
}
