/* Mistral Usluge - High Conversion Dark Theme */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --accent-blue: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: #0f172a;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Logo Styling & Zoom Animation */
.logo-container {
    display: flex;
    align-items: center;
    padding: 10px 0; /* Vertical space for the zoom to expand into */
    overflow: visible;
}

.logo-square {
    height: 60px; /* Base height */
    width: auto;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

/* The Zoom Effect */
.logo-square:hover {
    transform: scale(1.1); /* Zooms in by 100% */
}

/* Navigation */
header {
    min-height: 90px; /* Increased from 80px */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg, 
        rgba(56, 189, 248, 0) 0%, 
        rgba(56, 189, 248, 0.5) 50%, 
        rgba(56, 189, 248, 0) 100%
    );
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between links */
    margin-left: auto; /* Double insurance to push to right */
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    position: relative; /* Necessary for the underline positioning */
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%; /* Start from the middle */
    background-color: var(--accent-blue);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%); /* Keeps it centered as it grows */
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-links a:hover::after {
    width: 100%; /* Line grows to full width */
}
.nav-links a.nav-btn::after {
    display: none;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue) !important;
    
    /* Force the button to be a specific minimum size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Explicit dimensions to override inherited constraints */
    min-height: 48px;  /* This forces the border away vertically */
    min-width: 160px;  /* This forces the border away horizontally */
    
    padding: 0 20px;   /* Extra safety padding */
    
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 25px;
    
    /* Reset any inherited heights */
    line-height: normal; 
    box-sizing: border-box; 
    
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-btn:hover {
    background-color: var(--accent-blue) !important;
    color: var(--bg-dark) !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* Language Switcher Styles */
.lang-switcher {
    position: relative;
    margin-left: 20px;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    padding: 5px;
}

.lang-btn img {
    width: 24px; /* Adjust size as needed */
    height: auto;
}

/* 1.1x Zoom Animation */
.lang-btn:hover {
    transform: scale(1.1);
}

.lang-btn img {
    width: 24px;
    height: auto;
}

/* Hidden Dropdown Menu */
.lang-dropdown {
    /* Position stays the same */
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background-color: var(--bg-card);
    min-width: 150px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* ANIMATION LOGIC */
    opacity: 0;             /* Fully transparent */
    visibility: hidden;     /* Prevents clicking links while hidden */
    transform: translateY(10px); /* Starts slightly lower for a "slide up" effect */
    
    /* This transition handles the FADE OUT (Closing) */
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    transition-delay: 0.2s; /* The 'lingering' effect after mouse leaves */
}

.lang-dropdown a {
    display: flex; 
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    padding: 10px 15px; /* Consistent internal padding */
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
    
    /* RESET: These lines fix the "too much padding/margin" issue */
    margin-left: 0 !important; 
    padding-left: 15px !important; 
}

.dropdown-flag {
    width: 20px; /* Set a fixed small size */
    height: 20px;
    border-radius: 50%; /* Makes them perfectly circular */
    object-fit: cover; /* Ensures the flag doesn't look stretched */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for visibility */
    flex-shrink: 0;
}

.lang-dropdown a:hover {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
}

/* Show dropdown on hover */
.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Slides up to its original position */
    
    /* This transition handles the FADE IN (Opening) */
    /* No delay when opening so it feels responsive */
    transition-delay: 0s; 
}
/* Remove the underline animation from the dropdown links */
.lang-dropdown a::after {
    display: none;
}

.lang-dropdown a span {
    position: relative;
}

/* Mobile Toggle Styling */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* Desktop Header Fixes */
.header-container {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
}

.main-lang {
    margin-left: 20px; /* Space between the 'Contact' button and the flag */
}

/* Responsive Mobile Rules */
@media (max-width: 768px) {

    .header-container {
        display: flex !important;
        flex-direction: row !important; /* Forces side-by-side */
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .menu-toggle {
        display: flex !important;
        order: 1; /* First element */
        flex: 0 0 40px;
    }

    .services-dropdown .lang-dropdown {
        position: static; /* Removes the absolute 'floating' behavior */
        opacity: 1;
        visibility: visible;
        display: none;    /* We will toggle this with a class */
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05); /* Subtle background contrast */
        width: 100%;
        margin-top: 10px;
        border: none;
        transition: none;
    }

    /* 2. Style the dropdown links to look like sub-menu items */
    .services-dropdown .lang-dropdown a {
        padding: 12px 0 12px 40px !important; /* Indent them to the right */
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* 3. Class to show the menu when clicked */
    .services-dropdown.open .lang-dropdown {
        display: block !important;
    }

    /* 4. Optional: Add a small arrow indicator */
    .services-dropdown .dropdown-trigger::after {
        content: ' ▼';
        font-size: 0.7rem;
        vertical-align: middle;
    }

    .logo-container {
        margin-right: 0;
        order: 2;
        flex: 1; /* Takes available space to center itself */
        display: flex;
        justify-content: center;
        margin: 0;
        text-align: center;
    }

    .logo-square {
        height: 45px; /* Slightly smaller for mobile */
    }

    .main-lang {
        display: block !important;
        order: 3;
        flex: 0 0 40px; /* Match hamburger width for perfect logo centering */
        position: relative;
    }

    /* Transform Nav into Mobile Menu */
    .nav-links {
        display: none; /* Hidden by default */
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        border-bottom: 2px solid rgba(255,255,255,0.1);
        z-index: 1000;
        text-align: center;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links a, .services-dropdown {
        width: 100%;
        padding: 15px 0;
    }

    .nav-btn {
        display: flex !important;       /* Ensures flexbox is active */
        align-items: center !important;  /* Vertically centers the text */
        justify-content: center !important; /* Horizontally centers the text */
        
        height: 55px;                    /* Give it a fixed height for better touch target */
        padding: 0 20px !important;      /* Consistent side padding */
        line-height: 1 !important;       /* Resets any inherited line height issues */
        
        width: 100%;                     /* Makes it full width on mobile for better UX */
        max-width: 280px;                /* Prevents it from being too wide */
        margin: 15px auto !important;    /* Centers the button itself in the menu */
    }

    .menu-toggle span {
    background-color: var(--text-main) !important;
    height: 2px;
    width: 25px;
    margin: 2px 0;
}
}

/* Split Hero Section */
.hero {
    min-height: 90vh;
    /*background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), 
                url('../assets/images/logo-banner.png') center/cover;*/
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.hero-content h1 { font-size: 3.0rem; line-height: 1.1; margin: 20px 0; }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; }

/* The Lead Form Card */
.form-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-card h3 { margin-bottom: 20px; font-size: 1.5rem; text-align: center; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: 0.9rem; }

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid #334155;
    border-radius: 8px;
    color: white;
    outline: none;
}

.form-group input:focus { border-color: var(--accent-blue); }

.submit-btn {
    width: 100%;
    background: var(--accent-blue);
    color: var(--bg-dark);
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover { background: #7dd3fc; transform: scale(1.02); }

/* --- Process Section Styles --- */
.process-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    position: relative;
}

/* Header for the section */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Grid Layout */

a.process-card {
    text-decoration: none; /* Removes underline */
    display: block;        /* Ensures the link fills the whole card area */
    color: inherit;        /* Keeps your white/muted text colors */
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns equal width */
    gap: 30px;
}

/* Individual Cards */
.process-card {
    background: var(--bg-card);
    padding: 30px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden; /* Keeps the number contained */
}

.process-card:hover {
    transform: translateY(-10px); /* Lifts up on hover */
    border-color: var(--accent-blue);
}


/* The Big Number (01, 02...) */
.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03); /* Very subtle watermark style */
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
    pointer-events: none;
}

/* Icons */
.process-img {
    width: 200px;  /* Defined size for consistency */
    height: 200px;
    object-fit: cover; /* Ensures the image doesn't stretch if not perfectly square */
    display: block; /* Allows margin auto to work */
    margin: 0 auto 25px auto; /* Centers horizontally + bottom space */
    border-radius: 12px; /* Smooth rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Adds depth */
    position: relative;
    z-index: 2; /* Ensures image sits on top of the watermark number */
}

/* Update the Process Card to ensure text alignment matches */
.process-card {
    text-align: center; /* Ensures text is centered under the image */
    /* ... keep your existing background/padding/border settings ... */
}

/* Typography inside card */
.process-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.process-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Add a connecting line effect on Desktop only */
.process-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.process-card:hover::before {
    width: 100%; /* Blue line grows at the bottom on hover */
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablets */
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr; /* Stack vertically on phones */
    }
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Custom adjustment for the Services dropdown text */
.services-dropdown .dropdown-trigger {
    margin-left: 0 !important;
    padding: 5px 0;
}

/* Ensure the dropdown appears when hovering over the container */
.services-dropdown:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

/* Prevent the underline animation from conflicting with dropdown behavior */
.services-dropdown .dropdown-trigger::after {
    bottom: -5px; /* Adjust if line is too close to text */
}

/* Standardize dropdown width for services */
.services-dropdown .lang-dropdown {
    min-width: 200px;
    left: 0; /* Aligned to the start of the 'Usluge' text */
    right: auto;
    top: 100%; /* Sits exactly below the header border */
}

/* Footer Styles */
/* Footer Styles */
.main-footer {
    background-color: #0b1121;
    padding: 80px 0 0 0;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr; /* Left, Center (wider), Right */
    gap: 40px;
    padding-bottom: 60px;
    align-items: start;
}

.footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 250px;
}

/* Legal links specific alignment to the right */
.legal-links {
    text-align: right;
}

.legal-links ul li {
    list-style: none;
}

.footer-links h4 {
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.1rem;
    position: relative;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--accent-blue);
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- About Page Specifics --- */

.text-accent { color: var(--accent-blue); }

.about-hero {
    padding: 100px 0 60px;
    text-align: center;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.about-hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.about-story {
    padding: 80px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.story-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-values {
    padding: 80px 0;
    background: rgba(30, 41, 59, 0.3);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.value-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-cta {
    padding: 100px 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Klasa koju ćemo dodati putem JS-a  za obrazac nakon cta klika*/
.highlight-animation {
    animation: pulse-border 1.5s ease-in-out;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0px rgba(0, 123, 255, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(0, 123, 255, 0);
        transform: scale(1.02); /* Lagano se poveća */
    }
    100% {
        box-shadow: 0 0 0 0px rgba(0, 123, 255, 0);
        transform: scale(1);
    }
}

/* Responsive About */
@media (max-width: 968px) {
    .story-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .about-hero h1 {
        font-size: 2.5rem;
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack everything on mobile */
        text-align: center;
        gap: 40px;
    }
    
    .legal-links {
        text-align: center;
    }
    
    .footer-brand {
        order: -1; /* Puts logo on top for mobile */
        margin-bottom: 20px;
    }
}
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    .footer-brand p {
        margin: 0 auto;
    }

    /* --- Legal Pages Styling --- */
.legal-page {
    padding: 80px 0;
    min-height: 70vh;
}

.legal-card {
    background: var(--bg-card);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.legal-card h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent-blue);
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-card h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.legal-card p, .legal-card li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-card ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-card a {
    color: var(--accent-blue);
    text-decoration: none;
}

.legal-card a:hover {
    text-underline-offset: 4px;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .legal-card {
        padding: 30px;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-split { 
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 40px; /* Reduced gap for mobile */
    }

    /* On mobile, we re-center the items so they stack nicely */
    .hero-split > div {
        margin: 0 auto; /* Centers the form card if it's not full width */
    }

    /* Make the image smaller on mobile so it fits better */
    .hero-content img {
        max-width: 100% !important; 
        height: auto;
    }
    
    .logo-container {
        padding: 5px 0;
    }
}

/* --- Equal Height Story Grid --- */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch; /* This is key */
}

.story-image {
    height: 100%;
}

.image-placeholder {
    height: 100%;
}

.image-placeholder img {
    width: 100%;
    height: 100%;       /* Force image to match the text height */
    object-fit: cover;  /* Prevents stretching; crops the image slightly to fit */
    border-radius: 20px;
    display: block;
}

.story-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    height: 100%;
}

.story-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.story-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Left-Aligned Contact Box --- */
.contact-inline-box {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--accent-blue); /* Visual accent to show alignment */
    margin-top: 30px; /* Space between text and box */
}

.contact-inline-item {
    margin-bottom: 10px;
    font-size: 1rem;
}

.contact-inline-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-weight: 800;
    color: var(--text-main);
    margin-right: 10px;
    display: inline-block;
    min-width: 70px;
}

.contact-inline-item a, .contact-inline-item span:not(.contact-label) {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-inline-item a:hover {
    color: var(--accent-blue);
}

/* Responsive Fix */
@media (max-width: 968px) {
    .story-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .story-content-wrapper {
        justify-content: flex-start;
        height: auto;
        margin-bottom: 40px;
    }
}

/* --- Roadmap Section --- */
.roadmap-section {
    padding: 40px 0; /* Smanjen padding jer se nadovezuje na procese */
    background-color: var(--bg-dark);
}

.roadmap-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.roadmap-img {
    width: 100%;
    max-width: 1200px; /* Prati širinu containera */
    height: auto;
    border-radius: 20px;
    border: 20px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    /* Blagi efekt sjaja koji prati tvoj accent-blue */
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.1));
}

/* Responzivnost za manje ekrane */
@media (max-width: 768px) {
    .roadmap-section {
        padding: 20px 0;
    }
    .roadmap-img {
        border-radius: 10px; /* Nešto manji radijus na mobitelima */
    }
}

/* Kontekst boja: #1e293b (tamna), #3b82f6 (akcent plava) */

.scope-section, .comparison-section, .calculator-section {
    padding: 80px 0;
}

/* Scope Kartice */
.scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.scope-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.scope-card:hover {
    border-color: #3b82f6;
    transform: translateY(-5px);
}

.scope-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Usporedba */
.comparison-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
}

.comp-card {
    background: #0f172a;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.comp-card.featured {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.comp-card ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.comp-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: #3b82f6;
}

/* Kalkulator */

.calc-intro {
    margin-bottom: 35px; /* Prilagodi po želji */
    color: #94a3b8;
    font-size: 1.1rem;
}

.calculator-box {
    background: #1e293b;
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
}

.calc-group {
    text-align: left;
    margin-bottom: 20px;
}

.calc-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.calc-group input[type="number"] {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.calc-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
}

.calc-group select {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.calc-result {
    margin-top: 30px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
}

#totalPrice {
    font-size: 3rem;
    font-weight: 800;
    color: #3b82f6;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
    font-family: 'Inter', sans-serif;
}

.calc-note {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 15px;
}

.calc-note a {
    color: inherit; /* Nasljeđuje boju od okolnog teksta, sprječava ljubičastu */
    text-decoration: none; /* Miče podcrtavanje */
    font-weight: bold; /* Čini ga podebljanim */
}

.calc-note a:hover {
    color: #3b82f6; /* Blaga plava boja samo kad se prijeđe mišem radi navigacije */
    text-decoration: underline; /* Podcrtavanje se pojavljuje samo na hoveru */
}

/* Mala animacija kad se cijena promijeni */
.bump {
    transform: scale(1.1);
    color: #ffffff !important; /* Bljesak bijele boje */
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
}

/* Postavke za formu na desktopu */
@media (min-width: 768px) {
    #shopCalc {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Dva jednaka stupca */
        gap: 20px 40px; /* Razmak između redova i stupaca */
        text-align: left;
    }

    /* Širimo box da stane dvo-stupčani layout */
    .calculator-box {
        max-width: 900px; /* Povećano sa 600px */
    }

    .calc-group:last-of-type {
        grid-column-start: 1;
        grid-column-end: 3; /* Spaja stupce */
        display: flex;
        align-items: center; /* Centriranje sadržaja */
    }

    .calc-group:last-of-type select {
        max-width: 400px; /* Kontrolirana širina inputa */
        margin: 0 auto;
    }
    
    .calc-group:last-of-type label {
        text-align: center;
    }
}

/* Osiguravamo da su labele i inputi unutar grupa i dalje uredni */
.calc-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Centriranje rezultata na dnu */
.calc-result {
    grid-column: 1 / -1; /* Rasteže se preko oba stupca u gridu ako je unutar forme */
    margin-top: 30px;
    width: 100%;
}

.scope-grid {
    display: grid;
    /* Smanjujemo minimalnu širinu na 250px kako bi 4 kartice stale u red na desktopu */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.scope-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px; /* Malo oštriji kutovi za moderniji look */
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Osigurava da su sve kartice u redu iste visine */
}

/* Square proporcije za sliku */
.scope-img-wrapper {
    width: 100%;
    /* Povećavamo visinu kako bi s širinom od cca 250-300px tvorila kvadrat */
    height: 200px; 
    overflow: hidden;
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.08);*/
}

.scope-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.scope-content {
    padding: 20px;
    flex-grow: 1; /* Gura sadržaj da popuni karticu do kraja */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.scope-content h3 {
    margin-bottom: 10px;
    font-size: 1.15rem; /* Malo manji font jer su kartice uže */
    color: #fff;
}

.scope-content p {
    font-size: 0.88rem; /* Kompaktniji tekst za 4 u nizu */
    line-height: 1.5;
    color: #94a3b8;
}

/* Hover efekt ostaje tvoj prepoznatljivi glow */
.scope-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.poruka a {
    color: inherit; /* Nasljeđuje boju od okolnog teksta, sprječava ljubičastu */
    text-decoration: none; /* Miče podcrtavanje */
    font-weight: bold; /* Čini ga podebljanim */
}

.poruka a:hover {
    color: #3b82f6; /* Blaga plava boja samo kad se prijeđe mišem radi navigacije */
    text-decoration: underline; /* Podcrtavanje se pojavljuje samo na hoveru */
}

/* --- Marketing Page Specifics --- */

/* Pricing Tables */
.pricing-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: stretch; /* Ensures cards are same height */
}

/* Re-using comp-card styles but refining for pricing */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card .nav-btn {
    /* Reset horizontal margins that might be pushing it right */
    margin-left: 0 !important;
    margin-right: 0 !important;
    
    /* Ensure it calculates width correctly */
    display: block;
    width: 100%;
    box-sizing: border-box; /* Includes padding in the 100% width */
    
    /* Keep your text centered */
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
}

.pricing-card.popular {
    background: linear-gradient(145deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    flex-grow: 1; /* Pushes button to bottom */
}

.pricing-features li {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent-blue);
    font-weight: bold;
    margin-right: 10px;
}

/* Service List (One-time) */
.service-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.item-details {
    list-style: none;
    margin-top: 10px;
    padding: 0;
}

.item-details li {
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.item-details li::before {
    content: "•";
    color: var(--accent-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-info h4 { margin-bottom: 5px; color: var(--text-main); }
.service-info p { font-size: 0.85rem; color: var(--text-muted); }
.service-price { font-weight: bold; color: var(--accent-blue); white-space: nowrap; margin-left: 20px; padding-top: 4px}

/* Calculator Adjustments for Marketing */
.calc-toggle-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.calc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    width: 100%;
}

.calc-checkbox-label input { width: auto; margin: 0; }

@media (max-width: 768px) {
    .service-list-grid { grid-template-columns: 1fr; }
    .calc-toggle-group { flex-direction: column; gap: 10px; }
}

/* DM starter pack card */
.starter-pack-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    padding: 0 10px; /* Prevents touching edges on mobile */
}

/* The card itself - constrained to match grid item widths */
.starter-card {
    /* We use the same min-width as the grid's minmax for consistency */
    width: 100%;
    max-width: 600px; 
    border: 2px solid var(--accent-blue) !important;
    background: rgba(56, 189, 248, 0.07) !important;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
    /* Transition for a nice hover effect consistent with other cards */
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.starter-card:hover {
    transform: translateY(-5px);
    background: rgba(56, 189, 248, 0.1) !important;
}

/* Ensure the description text inside looks good in a narrower card */
.starter-card .service-info p {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
    margin-top: 8px;
}

/* Responsive: on very small screens, let it be full width */
@media (max-width: 480px) {
    .starter-card {
        max-width: 100%;
    }
}

/* Performance Marketing Section */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-top: 50px;
    text-align: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.perf-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 35px 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Featured (Middle) Card Flare */
.perf-card.featured {
    border: 2px solid var(--accent-blue);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.15);
    transform: scale(1.03);
    z-index: 2;
}

/* Badge at the top */
.perf-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.perf-budget {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.perf-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1;
}

.perf-price span {
    font-size: 1rem;
    color: var(--accent-blue);
    display: block;
    font-weight: 400;
}

.perf-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.perf-desc small {
    display: block;
    margin-top: 10px;
    opacity: 0.7;
    font-style: italic;
}

/* Hover Effect */
.perf-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
    transform: translateY(-10px);
}

.perf-card.featured:hover {
    transform: translateY(-10px) scale(1.06);
}

/* Mobile Fix */
@media (max-width: 968px) {
    .performance-grid {
        grid-template-columns: 1fr; /* Stacks them for readability on mobile */
        max-width: 400px;
    }
    .perf-card.featured {
        transform: scale(1);
        margin: 10px 0;
    }
    .perf-card.featured:hover {
        transform: translateY(-10px);
    }
}