:root {
    --bg-color: #0d0d0d;
    --text-primary: #e0e0e0;
    --text-secondary: #999999;
    --accent: #ff3b30; /* Engineering Red - výrazná, ale nie bolestivá */
    --accent-glow: rgba(255, 59, 48, 0.25);
    --border: #222222;
    --card-bg: #141414;
    --font-main: 'Montserrat', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* POZADIE - Technickejší grid */
.tech-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Kombinácia bodiek a čiar */
    background-image:
            radial-gradient(var(--border) 1px, transparent 1px),
            linear-gradient(rgba(255, 59, 48, 0.03) 1px, transparent 1px);
    background-size: 30px 30px, 100% 60px;
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.thin { font-weight: 200; }
.heavy { font-weight: 900; letter-spacing: -1px; }
.accent { color: var(--accent); }

/* HERO */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

/* Rámček na fotku - Šesťuholník (Hexagon) pre strojársky look? Alebo Kruh?
   Dáme kruh s technickým orámovaním */
.profile-frame {
    width: 150px; height: 150px;
    border-radius: 50%;
    border: 2px dashed var(--border); /* Prerušovaná čiara ako na výkrese */
    padding: 5px;
    margin-bottom: 30px;
    transition: all 0.5s ease;
}

.profile-frame:hover {
    border-color: var(--accent);
    transform: rotate(90deg);
}

.profile-img-placeholder {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-weight: bold; color: var(--accent);
    /* Tu potom pôjde <img> s object-fit: cover */
}

.main-title {
    font-size: 3.5rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.separator {
    width: 80px; height: 4px;
    background: repeating-linear-gradient(
            45deg,
            var(--accent),
            var(--accent) 10px,
            transparent 10px,
            transparent 20px
    ); /* Výstražná šrafovaná čiara */
    margin: 20px auto;
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.bio {
    max-width: 650px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* BUTTONS */
.cta-group { display: flex; gap: 20px; }

.btn {
    padding: 12px 30px; border-radius: 0; /* Ostré rohy pre technický look */
    text-decoration: none; font-weight: 700; font-size: 0.9rem;
    transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px;
    position: relative; overflow: hidden;
}

.btn-primary {
    background-color: var(--accent); color: #000;
    border: 1px solid var(--accent);
}
.btn-primary:hover {
    background-color: transparent; color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
    background-color: transparent; color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--text-primary); color: var(--text-primary);
}

/* SECTIONS */
section { padding: 80px 0; }
.section-title {
    font-size: 2rem; font-weight: 800;
    text-transform: uppercase; margin-bottom: 60px;
    display: flex; align-items: center; gap: 15px;
}
.section-title::before {
    content: "//"; color: var(--accent); font-family: var(--font-mono);
}

/* PHILOSOPHY GRID */
.grid-2 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.info-box {
    background: var(--card-bg);
    padding: 40px;
    border-left: 2px solid var(--accent);
}
.info-box h3 { margin-bottom: 15px; font-family: var(--font-mono); }
.info-box p { color: var(--text-secondary); font-size: 0.95rem; }

/* SKILLS GRID */
.grid-3 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.card {
    background: var(--card-bg); padding: 40px 30px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.card .icon svg {
    width: 48px; height: 48px;
    stroke: var(--accent);
    margin-bottom: 25px;
}
.card h4 {
    font-size: 1.2rem; margin-bottom: 15px;
    text-transform: uppercase; font-weight: 700;
}
.techs {
    font-family: var(--font-mono); font-size: 0.8rem;
    color: var(--accent); margin-bottom: 20px; display: block;
}
.desc { font-size: 0.9rem; color: #888; line-height: 1.7; }

/* TIMELINE (PROJECTS) */
.timeline-item {
    display: flex; gap: 30px; margin-bottom: 40px;
    border-left: 1px solid var(--border);
    padding-left: 30px; position: relative;
}
.timeline-item::before {
    content: ""; position: absolute; left: -5px; top: 5px;
    width: 9px; height: 9px; background: var(--accent);
    transform: rotate(45deg); /* Kosoštvorec */
}
.date {
    min-width: 120px; font-family: var(--font-mono);
    color: var(--accent); font-size: 0.9rem;
}
.content h4 { font-size: 1.3rem; margin-bottom: 10px; }
.tag {
    font-size: 0.7rem; background: #222; padding: 3px 8px;
    margin-right: 5px; color: #bbb; text-transform: uppercase;
}
.content p { margin-top: 10px; color: var(--text-secondary); }

/* FOOTER (Flexbox adaptovaný na červenú) */
footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 40px 0; margin-top: 50px;
    background: #080808;
}
.signature-wrapper { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.signature-card {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 30px;
}
.sig-photo img, .sig-photo div {
    width: 100px; height: 100px; border-radius: 50%;
}
.sig-divider { width: 1px; height: 100px; background-color: #333; }
.sig-content {
    display: flex; flex-direction: column; justify-content: center; height: 100px;
}
.sig-name {
    font-size: 20px; color: #fff; text-transform: uppercase; margin-bottom: 4px;
}
.sig-title {
    font-size: 11px; font-weight: 700; color: var(--accent);
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.sig-info { font-size: 12px; color: #bbb; }
.white { color: #fff; text-decoration: none; font-weight: 600; }
.red { color: var(--accent); text-decoration: none; font-weight: 700; }
.sep { color: #444; padding: 0 6px; }
.sub-links { color: #777; font-size: 11px; }

/* Copyright */
.copyright {
    text-align: center; margin-top: 40px; font-size: 0.8rem;
    color: #444; font-family: var(--font-mono);
}
.easter-hint { cursor: pointer; color: #444; transition: color 0.3s; }
.easter-hint:hover { color: var(--accent); }

/* TERMINAL & RESPONZIVITA - rovnaké ako u teba */
.hidden { display: none !important; }
#terminal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 999;
    display: flex; align-items: center; justify-content: center;
}
.terminal-window {
    width: 600px; height: 400px; background: #1e1e1e;
    font-family: 'JetBrains Mono', monospace; border: 1px solid #333;
}
.terminal-header {
    background: #2d2d2d; padding: 10px; display: flex; align-items: center;
}
.dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.title { color: #888; font-size: 0.8rem; margin: 0 auto; }
.terminal-body { padding: 20px; color: var(--accent); }
#terminal-input {
    background: transparent; border: none; color: #fff;
    font-family: inherit; font-size: inherit; outline: none; width: 50%;
}

.real-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Toto zabezpečí, že fotka vyplní kruh bez deformácie */
    border-radius: 50%;
}

/* Footer "Powered by" oprava */
.power-link {
    color: #ffffff; /* Biela pre čitateľnosť */
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--accent); /* Červené podčiarknutie pre branding */
    transition: color 0.3s ease;
}

.power-link:hover {
    color: var(--accent); /* Pri hoveri zčervenie */
}

@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    .signature-card { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .sig-divider { width: 40px; height: 1px; margin: 0 auto; }
    .sig-content { height: auto; }
}