:root {
    --bg-color: #0f1115;
    --bg-secondary: #161b22;
    --text-primary: #ffffff;
    --text-secondary: #a0aaec;
    --accent: #3b82f6;
    /* Blue default */
    --accent-glow: #60a5fa;
    --gradient-start: #3b82f6;
    --gradient-end: #8b5cf6;
    --success: #10b981;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === TYPING EFFECT === */
.cursor-blink {
    color: var(--accent);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.highlight {
    color: var(--accent);
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 35px;
    width: auto;
}

.navbar nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--text-primary);
}

.cta-nav {
    background: var(--accent);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* === MOBILE MENU BTN === */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* === HERO === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulseBg 10s infinite alternate;
}

@keyframes pulseBg {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 800px;
}

.tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* === BUTTONS === */
.cta-button {
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.cta-button.primary {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pulse {
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* === CARDS & TOOLS === */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.problem-grid,
.services-grid,
.cases-grid,
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (min-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.problem-card,
.service-card,
.tool-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
}

.problem-card:hover,
.service-card:hover,
.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.tool-card h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.problem-card h3,
.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.problem-card p,
.service-card p,
.tool-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === USE CASES === */
.cases-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.case-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.case-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.case-header i {
    font-size: 1.2rem;
    color: var(--accent);
}

.case-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.case-stat {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #a0aaec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.case-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === PROCESS (NEW) === */
.process-section {
    background: var(--bg-color);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.process-step h3 {
    margin-top: 20px;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === ABOUT SECTION === */
.about-section {
    background: var(--bg-secondary);
    text-align: center;
    padding: 100px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    margin-bottom: 30px;
}

.about-content .lead {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.5;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 40px;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.about-stats .stat {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.check-list {
    margin-top: 20px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #d1d5db;
}

.check-list i {
    color: var(--success);
}

/* === PRICING TABLES (CENIK) === */
.pricing-table-container {
    overflow-x: auto;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    margin-top: 40px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-secondary);
    min-width: 600px;
    /* Prevent squishing on mobile */
}

.pricing-table th,
.pricing-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-table th {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.price-tag {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}


/* === FAQ SECTION === */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Arbitrary large number */
    padding-bottom: 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}


/* === CTA MID === */
.cta-section {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.cta-section h2 {
    max-width: 600px;
    margin: 0 auto 20px;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* === CONTACT === */
.footer-section {
    background: #000;
    padding-top: 80px;
    padding-bottom: 40px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
    margin-bottom: 40px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--accent);
}

.contact-form-box {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--accent);
}

.input-group select option {
    background-color: var(--bg-secondary);
    color: white;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-secondary);
    padding: 0 5px;
    color: var(--accent);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn:hover {
    background: var(--accent-glow);
}

.footer-bottom {
    text-align: center;
    color: #4b5563;
    font-size: 0.8rem;
}

.secondary-links a {
    color: #6b7280;
    margin: 0 10px;
}

.secondary-links a:hover {
    color: white;
}

/* === ANIMATIONS === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-bg {
        display: none;
    }

    .navbar .container {
        padding: 15px;
    }

    /* Reset height for mobile menu */

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .navbar nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 100%;
        height: 100vh;
        background: rgba(15, 17, 21, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
    }

    .navbar nav.active {
        right: 0;
        /* Shown */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .navbar nav ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .navbar nav ul li a {
        font-size: 1.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* === KALKULACKA CENOTVORBY === */
.tool-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-container h2 {
    text-align: center;
}

.tool-container .subtitle {
    text-align: center;
    margin: 0 auto 40px auto;
}

.calculator-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-column .form-section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input[type="number"]:focus {
    border-color: var(--accent);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6b7280; /* A gray from the existing footer styles */
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.form-actions .cta {
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.form-actions .cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.calculator-result {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--accent);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.calculator-result h3 {
    margin-bottom: 20px;
}

.calculator-result p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.calculator-result .final-price {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 15px;
    color: var(--text-primary);
}

.calculator-result .final-price span {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .calculator-form .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-column:last-child {
        margin-top: 30px;
    }
    .tool-container {
        padding: 20px;
    }
}

/* === INFO MODAL === */
.label-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.info-icon:hover {
    color: var(--accent);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    width: 90%;
    position: relative;
    color: var(--text-secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-content h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.modal-content h4 {
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.modal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* === FAKTURAČNÍ NÁSTROJ === */
.invoice-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#invoice-form input[type="text"],
#invoice-form input[type="date"],
#invoice-form input[type="file"],
#invoice-form input[type="number"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 10px;
}

#invoice-form input:focus {
    border-color: var(--accent);
}

.styled-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    margin-left: 10px;
    vertical-align: middle;
}

.secondary-cta {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.1);
}

#invoice-items .item-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

#invoice-items .item-row input {
    margin-bottom: 0;
}

#invoice-items .item-row .delete-item-btn {
    background: none;
    border: none;
    color: #ef4444; /* Red */
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
}

#invoice-items .item-row .delete-item-btn:hover {
    color: #f87171; /* Lighter red */
}