:root {
    --neon-green: #00FF99;
    --deep-black: #000000;
    --gray: #0a0a0a;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--deep-black);
    color: var(--neon-green);
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><line x1="0" y1="10" x2="20" y2="10" stroke="%2300FF99" stroke-width="2"/><line x1="10" y1="0" x2="10" y2="20" stroke="%2300FF99" stroke-width="2"/></svg>'), auto;
}

/* ==================== LOADER ==================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--deep-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-pcb-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/5d1b96b0-1d34-4325-bd04-c05f23ecb7e5_1760536832461.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    animation: rotate-bg 30s linear infinite;
}

@keyframes rotate-bg {
    from { transform: rotate(0deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1.1); }
}

.loader-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.loader-logo {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.circuit-logo {
    width: 200px;
    height: 200px;
}

.logo-circle {
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    animation: draw-circle 2s ease-out forwards;
}

@keyframes draw-circle {
    to { stroke-dashoffset: 0; }
}

.loader-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 0.3em;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
    margin-bottom: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.progress-container {
    margin-top: 2rem;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 153, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--neon-green);
    opacity: 0.8;
}

.loader-status {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(0, 255, 153, 0.6);
    margin-top: 1rem;
    letter-spacing: 0.1em;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neon-green);
    z-index: 1000;
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
}

.navbar-cta {
    display: flex;
    gap: 1rem;
}

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.btn-glow {
    padding: 0.8rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--neon-green);
    border-radius: 4px;
    background: transparent;
    color: var(--neon-green);
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-glow:hover {
    background: var(--neon-green);
    color: var(--deep-black);
    box-shadow: 0 0 30px rgba(0, 255, 153, 0.8);
    transform: translateY(-2px);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--neon-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-glow:hover::before {
    width: 300px;
    height: 300px;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: var(--deep-black);
}

.pcb-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/bed17c51-50de-4eb7-8af8-0c8b8ead0dd9_1760536832825.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
}

.circuit-traces {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
    animation: pulse-trace 3s ease-in-out infinite;
}

@keyframes pulse-trace {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.15; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 2rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.laser-etched {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green),
        0 0 40px var(--neon-green),
        0 0 80px var(--neon-green);
    letter-spacing: 0.1em;
    animation: laser-appear 2s ease-out;
}

@keyframes laser-appear {
    0% {
        opacity: 0;
        letter-spacing: 1em;
        filter: blur(20px);
    }
    100% {
        opacity: 1;
        letter-spacing: 0.1em;
        filter: blur(0);
    }
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    color: var(--neon-green);
    opacity: 0.8;
    margin-bottom: 3rem;
    animation: fade-in 2s ease-out 0.5s both;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 0.8; transform: translateY(0); }
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fade-in 2s ease-out 1s both;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--neon-green);
    border-radius: 4px;
    background: transparent;
    color: var(--neon-green);
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.3);
}

.btn-hero-primary:hover,
.btn-hero-secondary:hover {
    background: var(--neon-green);
    color: var(--deep-black);
    box-shadow: 0 0 40px rgba(0, 255, 153, 0.8);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--neon-green));
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; height: 60px; }
    50% { opacity: 1; height: 80px; }
}

/* ==================== SECTIONS ==================== */
.projects-section,
.tools-section,
.contact-section {
    padding: 6rem 3rem;
    position: relative;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/3b58e1bb-3528-4418-830e-619ef9834e56_1760536832787.png');
    background-size: 400px;
    background-position: center;
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-green);
    animation: underline-pulse 2s ease-in-out infinite;
}

@keyframes underline-pulse {
    0%, 100% { width: 100%; opacity: 1; }
    50% { width: 0; opacity: 0.3; }
}

.pcb-divider {
    width: 200px;
    height: 2px;
    margin: 0 auto;
    background: var(--neon-green);
    position: relative;
}

.pcb-divider::before,
.pcb-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
}

.pcb-divider::before { left: 0; }
.pcb-divider::after { right: 0; }

/* ==================== PROJECTS ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    background: var(--gray);
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 255, 153, 0.4);
}

.card-circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(0, 255, 153, 0.1) 20px, rgba(0, 255, 153, 0.1) 21px),
        repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(0, 255, 153, 0.1) 20px, rgba(0, 255, 153, 0.1) 21px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .card-circuit-bg {
    opacity: 1;
    animation: data-flow 2s linear infinite;
}

@keyframes data-flow {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.card-content {
    position: relative;
    z-index: 1;
}

.project-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.project-description {
    font-family: 'Inter', sans-serif;
    color: rgba(0, 255, 153, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 153, 0.1);
    border: 1px solid var(--neon-green);
    border-radius: 3px;
    color: var(--neon-green);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn-card {
    padding: 0.6rem 1.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--neon-green);
    border-radius: 4px;
    background: transparent;
    color: var(--neon-green);
    transition: var(--transition);
}

.btn-card:hover {
    background: var(--neon-green);
    color: var(--deep-black);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 153, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.project-card:hover .card-glow {
    opacity: 1;
}

/* ==================== TOOLS ==================== */
.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tools-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 2rem;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.tool-item {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.tool-item:hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 153, 0.05);
}

.tool-icon {
    margin-bottom: 1rem;
}

.led-icon {
    width: 50px;
    height: 50px;
    animation: led-flicker 3s ease-in-out infinite;
}

.led-icon circle {
    fill: var(--neon-green);
    opacity: 0.8;
    filter: drop-shadow(0 0 10px var(--neon-green));
}

@keyframes led-flicker {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.tool-item:hover .led-icon {
    animation: led-rotate 1s ease-in-out;
}

@keyframes led-rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.tool-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--neon-green);
}

.custom-tools {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.custom-tool-item {
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    background: rgba(0, 255, 153, 0.02);
}

.custom-tool-icon {
    margin-bottom: 1.5rem;
}

.rotating-circuit {
    width: 100px;
    height: 100px;
    animation: rotate-slow 10s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.custom-tool-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 0.5rem;
}

.custom-tool-desc {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    color: rgba(0, 255, 153, 0.7);
}

/* ==================== CONTACT ==================== */
.contact-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/2c6a2707-8e19-4aee-86e7-9e3ac6a61b9d_1760536832553.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    filter: blur(3px);
}

.contact-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.contact-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
    margin-bottom: 3rem;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-heartbeat {
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--neon-green);
    border-radius: 4px;
    background: transparent;
    color: var(--neon-green);
    transition: var(--transition);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 153, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 153, 0.8); }
}

.btn-heartbeat:hover {
    background: var(--neon-green);
    color: var(--deep-black);
    animation: none;
    box-shadow: 0 0 50px rgba(0, 255, 153, 1);
    transform: translateY(-3px);
}

/* ==================== FOOTER ==================== */
.site-footer {
    padding: 3rem;
    border-top: 1px solid var(--neon-green);
    background: var(--gray);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-led {
    width: 12px;
    height: 12px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: led-blink 1.5s ease-in-out infinite;
}

@keyframes led-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--neon-green);
    letter-spacing: 0.2em;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    color: rgba(0, 255, 153, 0.7);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .tools-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .navbar-cta {
        display: none;
    }
    
    .floating-cta {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .floating-cta .btn-glow {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-section {
        padding: 0 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .projects-section,
    .tools-section,
    .contact-section {
        padding: 4rem 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn-heartbeat {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .loader-logo svg {
        width: 150px;
        height: 150px;
    }
    
    .progress-container {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .laser-etched {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
    
    .hero-tagline {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        letter-spacing: 0.1em;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .tool-item {
        padding: 1rem;
    }
    
    .floating-cta {
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    .loader-text {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }
    
    .loader-status {
        font-size: 0.8rem;
    }
}
