:root {
    --bg-dark: #050505; /* Made slightly darker for better contrast */
    --bg-card: #0f0f0f;
    --text-main: #f5f5f5;
    --text-muted: #a3a3a3;
    --accent: #dfff00; 
    --accent-glow: rgba(223, 255, 0, 0.4);
    --border-color: #262626;
    
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for custom one */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--accent);
    transition: width 0.2s ease, height 0.2s ease;
}

.custom-cursor.hovering {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid var(--accent);
    box-shadow: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.text-muted { color: var(--text-muted); }
.terminal-text { 
    color: var(--accent); 
    font-family: monospace; 
    margin-bottom: 15px; 
    text-shadow: 0 0 5px var(--accent-glow);
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.logo-dot {
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.btn-nav-cv {
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-dark);
    background-color: var(--accent);
    padding: 8px 16px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.btn-nav-cv:hover {
    background-color: transparent;
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow) inset;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover { 
    color: var(--accent); 
    text-shadow: 0 0 8px var(--accent-glow);
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 0.95)), url('foto-hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2; 
    transform: scale(1.05); 
}

/* Tech Grid Overlay */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(223, 255, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(223, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    animation: backgroundPan 20s linear infinite;
}

@keyframes backgroundPan {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; }
}

.hero-content {
    position: relative;
    z-index: 1; 
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7.5rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--text-main);
    text-shadow: 0px 4px 15px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* LAYOUT & SECTIONS */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--border-color);
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* CARDS */
.card, .project-card {
    background-color: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(5px);
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Glowing accent lines on hover */
.card::before, .project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent));
    transition: left 0.5s ease;
}

.card:hover::before, .project-card:hover::before {
    left: 100%;
}

.border-accent { border-left: 4px solid var(--accent); }

.card:hover, .project-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(223, 255, 0, 0.1);
}

.card h3, .project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.project-card { margin-bottom: 20px; }

/* TECH SPECS */
.tech-specs { list-style: none; padding-left: 0; }
.tech-specs li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
    position: relative;
    padding-left: 20px;
}
.tech-specs li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: monospace;
    opacity: 0.5;
}
.tech-specs li strong {
    color: var(--accent);
    font-family: monospace;
    font-size: 1rem;
}

/* BUTTONS */
.contact-links { display: flex; gap: 20px; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.btn-primary:hover::after {
    transform: translateY(0);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(223, 255, 0, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--bg-dark);
    background-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* PROJECT HEADER */
.project-card {
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border-color);
    padding: 30px;
}

.project-header { margin-bottom: 25px; }

.project-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* METRICS READOUT */
.metrics-readout {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(5, 5, 5, 0.5);
    border: 1px dashed var(--border-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-left: 3px solid var(--accent);
    background-color: var(--bg-card);
    transition: transform 0.2s ease, background-color 0.2s;
}

.metric-item:hover {
    transform: translateX(5px);
    background-color: #1a1a1a;
}

.metric-label {
    font-family: monospace;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
}

.metric-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* VIDEO EMBED */
.video-section { margin-top: 30px; }

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* FOOTER */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    background: #050505;
}

/* IMAGE GRIDS */
.grid-about {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 40px;
    align-items: start;
}

.profile-image-wrapper {
    width: 100%;
    border: 1px solid var(--accent);
    padding: 10px;
    background-color: rgba(20, 20, 20, 0.8);
    position: relative;
}

.profile-image-wrapper::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    border: 1px dashed var(--accent);
    z-index: -1;
    opacity: 0.5;
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.5s ease;
}

.profile-img:hover {
    filter: grayscale(0%) contrast(1);
}

.grid-project {
    display: grid;
    grid-template-columns: 1.5fr 1fr; 
    gap: 30px;
    align-items: center;
}

.project-visual {
    width: 100%;
    background-color: #000;
    border: 1px solid var(--border-color);
    padding: 5px;
    position: relative;
}

.img-responsive {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.6;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.grid-project:hover .img-responsive {
    opacity: 1; 
    transform: scale(1.02);
}

/* RESPONSIVE LAYOUT */
@media (max-width: 768px) {
    * { cursor: auto; } /* Disable custom cursor on mobile */
    .custom-cursor { display: none; }
    
    .navbar { padding: 15px 20px; }
    .nav-links { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
    .contact-links { flex-direction: column; }
    .btn-primary, .btn-secondary { text-align: center; width: 100%; }

    .grid-about { grid-template-columns: 1fr; }
    .profile-image-wrapper {
        max-width: 300px;
        margin: 0 auto 30px auto;
    }
    .grid-project { grid-template-columns: 1fr; }
}