/* Online Posao - SaaS Tech Dashboard Styles */
:root {
    --indigo: #4f46e5;
    --indigo-dark: #3730a3;
    --mint: #10b981;
    --mint-dark: #059669;
    --bg-slate: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Header */
.tech-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-accent {
    color: var(--indigo);
}

.tech-nav {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tech-nav-item {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.2rem 0.4rem;
    transition: var(--transition);
}

.tech-nav-item:hover {
    color: var(--indigo);
}

/* Hero Section */
.tech-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
}

.hero-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--indigo);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

.btn-primary {
    background-color: var(--indigo);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background-color: var(--indigo-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--indigo);
}

/* Code Editor box mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.code-box {
    width: 100%;
    max-width: 450px;
    background-color: #1e293b;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    overflow: hidden;
}

.code-header {
    background-color: #0f172a;
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.code-content {
    padding: 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.code-content p {
    margin-bottom: 0.4rem;
}

.indent {
    padding-left: 1.5rem;
}

.keyword { color: #f472b6; }
.str { color: #34d399; }
.bool { color: #60a5fa; }

/* Skills Section */
.skills-section {
    padding: 5rem 1.5rem;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-lead {
    color: var(--text-muted);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background-color: var(--bg-slate);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--indigo);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.05);
}

.skill-icon {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.skill-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.skill-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Calculator Section */
.calculator-section {
    padding: 6rem 1.5rem;
}

.calc-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
}

.calc-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
}

.calc-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.calc-desc {
    color: var(--text-muted);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.tech-input, .tech-select {
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
    background-color: var(--bg-slate);
}

.tech-input:focus, .tech-select:focus {
    border-color: var(--indigo);
    background-color: var(--bg-white);
}

.btn-calc {
    background-color: var(--mint);
    color: white;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.btn-calc:hover {
    background-color: var(--mint-dark);
}

/* Calculator Results */
.calc-results {
    background-color: var(--bg-slate);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-placeholder {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
}

.results-data-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeIn 0.4s ease;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.result-val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
}

.result-val-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.text-red {
    color: #ef4444;
}

.result-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.total-net {
    background-color: rgba(16, 185, 129, 0.08);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--mint);
}

.result-val-green {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--mint-dark);
}

/* Footer */
.tech-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 5rem 1.5rem 2rem 1.5rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    display: inline-block;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .calc-card {
        padding: 2rem 1.5rem;
    }
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .tech-nav {
        justify-content: center;
        gap: 0.5rem 0.8rem;
    }
}

/* Image mockup and inner pages layout */
.image-mockup {
    width: 100%;
    max-width: 500px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background-color: var(--bg-slate);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.mockup-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Subpage Hero Section */
.tech-sub-hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
}

.tech-sub-hero .hero-title {
    color: white;
    margin-bottom: 1rem;
}

.tech-sub-hero .hero-lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Page-specific background gradients */
.hero-bg-how { background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(49, 46, 129, 0.95)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80'); }
.hero-bg-upwork { background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(49, 46, 129, 0.95)), url('https://images.unsplash.com/photo-1531403009284-440f080d1e12?auto=format&fit=crop&w=1600&q=80'); }
.hero-bg-fiverr { background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(49, 46, 129, 0.95)), url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&w=1600&q=80'); }
.hero-bg-copywriting { background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(49, 46, 129, 0.95)), url('https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=1600&q=80'); }
.hero-bg-seo { background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(49, 46, 129, 0.95)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1600&q=80'); }
.hero-bg-design { background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(49, 46, 129, 0.95)), url('https://images.unsplash.com/photo-1561070791-26c113006238?auto=format&fit=crop&w=1600&q=80'); }
.hero-bg-taxes { background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(49, 46, 129, 0.95)), url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?auto=format&fit=crop&w=1600&q=80'); }
.hero-bg-prod { background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(49, 46, 129, 0.95)), url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?auto=format&fit=crop&w=1600&q=80'); }
.hero-bg-calc { background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(49, 46, 129, 0.95)), url('https://images.unsplash.com/photo-1508873535684-277a3cbcc4e8?auto=format&fit=crop&w=1600&q=80'); }
.hero-bg-contact { background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(49, 46, 129, 0.95)), url('https://images.unsplash.com/photo-1534536281715-e28d76689b4d?auto=format&fit=crop&w=1600&q=80'); }

/* Rich text container for tech pages */
.tech-rich-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.tech-rich-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.tech-rich-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: var(--indigo-dark);
}

.tech-rich-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.tech-rich-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.tech-rich-content li {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}


/* SaaS Modern Dropdowns */
.tech-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-trigger {
    cursor: pointer;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 190px;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: 1000;
    padding: 0.5rem 0;
}
.dropdown-menu a {
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    transition: var(--transition);
}
.dropdown-menu a:hover {
    background-color: var(--bg-slate);
    color: var(--indigo);
}
.nav-item-dropdown:hover .dropdown-menu {
    display: block;
}
