/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #b28c50; /* Zlatá */
    --primary-hover: #d4a964;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-color: #f4f4f4;
    --text-muted: #a0a0a0;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
    --transition: all 0.3s ease;
}

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

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

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.highlight { color: var(--primary-color); }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--white);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    background: rgba(18, 18, 18, 0.9); /* Priesvitnosť */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.navbar .logo img { width: 120px; height: auto; }

.navbar .links { display: flex; gap: 2.5rem; }
.navbar .links a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.navbar .links a:hover { color: var(--primary-color); }
.navbar .links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}
.navbar .links a:hover::after { width: 100%; }

.action_btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(178, 140, 80, 0.3);
}

.action_btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 140, 80, 0.5);
    color: var(--white);
}

.toggle_btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--white); }

/* Dropdown Menu (Mobile) */
.dropdown_menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(15px);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.dropdown_menu.open { display: block; animation: slideDown 0.3s ease; }
.dropdown_menu li { margin: 1.5rem 0; }
.dropdown_menu .mobile-btn { display: inline-block; width: 100%; max-width: 250px; margin-top: 1rem; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- PAGE CONTENT --- */
main { padding-top: 150px; padding-bottom: 80px; }
.container { max-width: 1200px; margin: auto; padding: 0 20px; }

.page-title { text-align: center; margin-bottom: 3rem; margin-top: 2rem; }
.page-title h1 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem); color: var(--white); }
.page-title p { color: #aaa; margin-top: 10px; font-size: 1.1rem; }

/* --- JOB GRID --- */
.job-grid {
    display: grid;
    /* Automaticky vytvorí stĺpce podľa šírky displeja */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.job-card {
    position: relative;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
}

.job-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.8;
}

/* Gradient Overlay */
.job-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.2) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    transition: all 0.3s;
}

.job-card h3 {
    color: var(--white);
    font-size: 1.6rem;
    font-family: var(--font-heading);
    margin-bottom: 5px;
    transform: translateY(10px);
    transition: 0.3s;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
}

/* Hover Effects */
.job-card:hover img { transform: scale(1.1); opacity: 0.5; }
.job-card:hover h3 { transform: translateY(0); margin-bottom: 10px; }
.job-card:hover .btn-text { opacity: 1; transform: translateY(0); }
.job-card:hover { border: 1px solid var(--primary-color); }

/* --- SCROLL TO TOP BUTTON --- */
#myBtn {
    position: fixed; bottom: 30px; right: 30px;
    z-index: 99;
    border: none; outline: none;
    background-color: var(--primary-color); color: white;
    cursor: pointer;
    padding: 15px; border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
#myBtn.show { opacity: 1; visibility: visible; }
#myBtn:hover { background-color: var(--white); color: var(--dark-bg); transform: translateY(-3px); }

/* --- FOOTER --- */
footer { background: #0d0d0d; padding-top: 4rem; color: #a0a0a0; margin-top: auto; }
.footer-container {
    max-width: 1200px; margin: auto; display: flex; flex-wrap: wrap; gap: 3rem;
    padding: 0 20px 3rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-col { flex: 1 1 250px; }
.footer-logo { width: 150px; margin-bottom: 1rem; opacity: 0.8; }
.footer-col h4 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a:hover {
    color: rgba(178, 140, 80, 0.9);
    margin: 5px;
}
.footer-bottom { text-align: center; padding: 1.5rem; background: #000; font-size: 0.85rem; }

/* --- RESPONSIVE --- */
@media(max-width: 992px) {
    .navbar .links, .navbar > .action_btn { display: none; }
    .toggle_btn { display: block; }
}

@media(max-width: 600px) {
    .job-grid { grid-template-columns: 1fr; } /* Jedna karta na riadok */
    .job-card { height: 300px; }
    #myBtn { bottom: 20px; right: 20px; padding: 12px; }
}
/* --- OPRAVA TEXTU INFORMÁCIE PRE FIRMY (CTA) --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-col p {
        justify-content: center;
    }
    .infcontainer {
        position: relative !important;
        flex-direction: column;
        gap: 12px;
        padding: 20px !important;
        font-size: 0.9rem;
    }
    .reveal {
        transform: translateY(20px); 
        transition: all 0.6s ease;
    }
}
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width: 992px) {
    .navbar .links, .navbar .action_btn { display: none; }
    .toggle_btn { display: block; }
    header { padding: 15px 20px; } /* Zmenšenie paddingu headeru */
}

@media(max-width: 768px) {

    /* OPRAVA: INFCONTAINER - pridanie horného marginu, aby nebol nalepený na tlačidlách */
    .infcontainer { 
        position: relative; 
        flex-direction: column; 
        gap: 15px; 
        padding: 1.5rem 10px; 
        background: var(--primary-color);
        margin-top: 20px; /* Odsunutie od tlačidiel hero sekcie */
        width: calc(100% + 40px); /* Roztiahnutie na celú šírku (kompenzácia paddingu body) */
        margin-left: -20px; 
    }
    .infcontainer a { font-size: 0.95rem; } /* Zmenšenie textu v lište */
    .infcontainer .divider { display: none; }
    /* Footer */
    .footer-container { gap: 2rem; }
    .footer-col { flex: 1 1 100%; text-align: center; }
    .footer-col p { justify-content: center; }
}

@media(max-width: 480px) {
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .page-title h1{
        font-size: 29px;
    }
}