/*
    STYLESHEET FOR AIMOJSTER.SI
    Last Updated: 16. September 2025 (v2.1 - Full Styles & Fixes)
    Author: Gemini AI for AIMojster.si
*/

:root {
    /* Tech & AI Inspired Color Scheme */
    --primary-color: #7B2DFF;      /* Vibrant Purple */
    --secondary-color: #9A5BFF;    /* Lighter Violet */
    --accent-color: #00F5D4;       /* Bright Teal/Cyan */
    --accent-light: #70F8E3;      /* Light Teal */
    --text-color: #1D2B48;         /* Deep Blue-Black */
    --light-text: #6B7C93;         /* Muted Gray-Blue */
    --background: #ffffff;          /* Pure White */
    --light-background: #F9F7FF;   /* Very Light Purple Tint */
    --border-color: #EAE6FF;       /* Light Purple-Gray Border */
    --success-color: #4CD5B0;      /* Minty Green */
    
    --shadow: 0 4px 10px rgba(123, 45, 255, 0.08);
    --shadow-lg: 0 10px 25px rgba(123, 45, 255, 0.12);

    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

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

html,
body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

/* --- Header & Navigation --- */
.header {
    background: var(--background);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo-header {
    height: 20px; /* POPRAVEK: Velikost logotipa v glavi */
    display: flex;
    align-items: center;
}

.logo-header a {
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-header img {
    height: 100%;
    width: auto;
}

.nav-links {
    display: flex;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.phone-number {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-background);
    color: var(--primary-color);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.language-switch i {
    margin-right: 0.5rem;
}

.language-switch:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* --- Mobile Menu & Responsive --- */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1001;
}

/* --- Hero Section --- */
.hero {
    padding: clamp(6rem, 12vw, 8rem) 1.5rem clamp(3rem, 6vw, 4rem);
    text-align: center;
    background: linear-gradient(rgba(29, 43, 72, 0.7), rgba(29, 43, 72, 0.6)), url('images/hero-bg-ai.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.15;
    color: white;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 2.25vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-weight: 400;
}

.hero .cta-button {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    padding: clamp(1rem, 2.5vw, 1.2rem) clamp(2.5rem, 6vw, 3.5rem);
    border-radius: 50px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    margin-top: 1rem;
}

.hero .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-accent);
    color: var(--text-color);
}

/* --- General Section Styling --- */
section {
    padding: clamp(4rem, 7vw, 6rem) 1.5rem;
}

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

h2 {
    text-align: center;
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-color);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto clamp(2rem, 5vw, 4rem);
    line-height: 1.6;
}

/* --- NOVO: Demo Center Section --- */
.demos {
    background-color: var(--background);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-card {
    background: var(--light-background);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    box-shadow: var(--shadow);
}

.demo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.demo-card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    height: 48px;
}

.demo-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.demo-description {
    flex-grow: 1;
}

.demo-description .description-title {
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.demo-description p {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.6;
}

.launch-demo-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
    border: none;
    cursor: pointer;
}

.launch-demo-btn:hover {
    background: var(--gradient-accent);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* --- Benefits Section ("Why Us") --- */
.why-us {
    background: var(--light-background);
}

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

.benefit-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: clamp(1.75rem, 3vw, 2rem);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--light-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.benefit-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Process Section --- */
.process {
    background: var(--background);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 4.5rem;
    height: 4.5rem;
    background: var(--gradient-accent);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1) rotate(10deg);
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--light-text);
}

/* --- Packages Section --- */
.packages {
    background: var(--light-background);
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.package-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.package-card h3 {
    font-size: 1.8rem;
    color: var(--text-color);
}

.package-card .subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    margin: 0.5rem 0 1rem;
    min-height: 44px; /* Align heights */
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    flex-grow: 1;
}

.package-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.package-features li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    margin-top: 2px;
}

.contact-for-price {
    text-align: center;
    margin-top: 3rem;
}

.contact-for-price p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

/* --- About Section --- */
.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.about-feature {
    background-color: var(--light-background);
    padding: 1.5rem;
    border-radius: 1rem;
}

.about-feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* --- Contact Section --- */
.contact {
    background: var(--light-background);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--background);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1.2rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 16px; /* POPRAVEK: Velikost logotipa v nogi */
    margin-bottom: 1rem;
}

.footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

/* --- Chatbot Widget --- */
#chat-widget-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 998;
    transition: transform 0.3s ease;
}

#chat-widget-button:hover {
    transform: scale(1.1);
}

#chat-widget-button i {
    font-size: 28px;
    color: white;
}

#chat-widget-container {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 370px;
    max-width: 90vw;
    height: 70vh;
    max-height: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}

#chat-widget-container.hidden {
    display: none;
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
}

#close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

#chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    max-width: 85%;
    margin-bottom: 0.75rem;
}

.bot-message {
    background-color: var(--light-background);
    align-self: flex-start;
}

.user-message {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
}

.chat-footer {
    padding: 0.5rem 1rem 1rem 1rem;
    border-top: 1px solid var(--border-color);
}

#chat-reset-btn {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    font-size: 0.8rem;
    margin: 0 auto 8px;
    display: none;
}

#chat-reset-btn.visible {
    display: block;
}

#chat-input-form {
    display: flex;
}

#chat-input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.75rem 1rem;
}

#chat-input-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin-left: 0.5rem;
}

.bot-selection-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.bot-selection-btn {
    background-color: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
}

.bot-selection-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .navbar {
        padding: 1rem 1.25rem;
    }

    .demo-grid,
    .package-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        gap: 1.75rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    section {
        padding: clamp(3.5rem, 6vw, 5rem) 1.25rem;
    }

    .hero {
        min-height: 70vh;
        padding-top: clamp(5rem, 10vw, 6.5rem);
    }

    .hero h1 {
        max-width: 760px;
    }

    .demo-grid,
    .package-grid {
        gap: 1.5rem;
    }

    .benefits-grid {
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-feature {
        text-align: left;
    }

    .process-steps {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .demo-grid,
    .package-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }

    .package-card {
        padding: 2.25rem 1.75rem;
    }

    .footer-content {
        gap: 2.75rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: clamp(2.5rem, 9vw, 3.5rem) 1.25rem;
    }

    .navbar {
        padding: 0.75rem 1.25rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .hero {
        min-height: auto;
        padding-top: clamp(5rem, 12vw, 6rem);
        padding-bottom: clamp(2.5rem, 8vw, 3.5rem);
    }

    .hero h1 {
        font-size: clamp(2.2rem, 7vw, 2.5rem);
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .demo-grid,
    .package-grid,
    .benefits-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-steps {
        gap: 1.25rem;
    }

    .step {
        padding: 1.75rem 1.5rem;
    }

    .contact-form {
        padding: 2.25rem 1.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
        text-align: center;
    }

    #chat-widget-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    #chat-widget-container {
        bottom: 85px;
        right: 16px;
        width: calc(100vw - 32px);
        max-width: 420px;
        height: 65vh;
        max-height: 520px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: clamp(4.5rem, 14vw, 5.5rem);
    }

    .hero-text {
        font-size: 1.05rem;
    }

    section {
        padding: clamp(2rem, 8vw, 3rem) 1.25rem;
    }

    .benefits-grid {
        gap: 1.5rem;
    }

    .benefit-card {
        padding: 1.75rem 1.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
        gap: 1.25rem;
    }

    .submit-button {
        width: 100%;
    }

    .footer-bottom {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        gap: 1.5rem;
        background-position: center;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.3rem);
        letter-spacing: -0.25px;
    }

    .hero .cta-button {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .language-switch {
        padding: 0.4rem 0.75rem;
    }

    .benefit-card,
    .package-card,
    .about-feature,
    .step {
        padding: 1.5rem;
    }

    .benefit-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    #chat-widget-container {
        bottom: 75px;
        right: 12px;
        width: calc(100vw - 24px);
        height: 60vh;
        max-height: none;
    }

    #chat-widget-button {
        bottom: 16px;
        right: 16px;
    }
}

/* --- Animations --- */
.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--light-text);
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); } 
    40% { transform: scale(1.0); }
}
