/* Minimal Modern CSS for ePrijave JLS */

/* Custom Properties - Harmonious Color Palette */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    /* Harmonious variations */
    --primary-light: #8fa4f3;
    --primary-dark: #4c63d2;
    --secondary-light: #9d7bb8;
    --secondary-dark: #5d3a7a;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Custom Color Classes - Override Bootstrap */
.bg-primary {
    background: var(--primary-gradient) !important;
}

.bg-secondary {
    background: var(--secondary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* .border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
} */

/* .btn-primary {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
} */

/* Scroll offset for fixed navbar */
section {
    scroll-margin-top: 100px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1050;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary-color) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
    color: var(--primary-color) !important;
}

.navbar-brand i {
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    gap: 1rem;
}

.nav-link {
    font-weight: 600;
    color: #2c3e50 !important;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(52, 152, 219, 0.1);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Icon width */
.municipalities i.fas,
.cities-counties i.fas {
    width: 1.3rem !important;
}

/* Custom Buttons */
.municipalities .btn-primary,
.cities-counties .btn-secondary {
    font-weight: 500;
    transition: all 0.3s ease;
}

.municipalities .btn-primary {
    background: var(--primary-dark);
}

.municipalities .btn-primary:hover,
.cities-counties .btn-secondary:hover {
    transform: translateY(-2px);
}

.municipalities .btn-primary:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 10px 25px var(--primary-dark);
}

.cities-counties .btn-secondary {
    background: var(--secondary-dark);
}

.cities-counties .btn-secondary:hover {
    border-color: var(--secondary-dark);
    box-shadow: 0 10px 25px var(--secondary-dark);
}

/* .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
} */

/* Legal Badge */
.legal-badge-circle {
    width: 120px;
    height: 120px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
}

/* Hero Section with Background */
.hero-bg {
    background-image: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%),
        url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

.hero-overlay {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px 0;
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
        min-height: 100vh;
    }
    
    .hero-overlay {
        padding: 120px 0 80px 0;
        min-height: 100vh;
    }
}

.hero-bg h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-bg p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 3rem 2rem 2rem;
    color: white;
}

.overlay-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.overlay-text p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Dashboard Preview */
.dashboard-preview {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.preview-header {
    background: #f8f9fa;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
}

.preview-dots span:first-child { background: #ff5f56; }
.preview-dots span:nth-child(2) { background: #ffbd2e; }
.preview-dots span:last-child { background: #27ca3f; }

.preview-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 300px;
}

.preview-sidebar {
    background: #f8f9fa;
    padding: 1rem;
    border-right: 1px solid #e9ecef;
}

.sidebar-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.sidebar-item.active {
    background: var(--primary-color);
    color: white;
}

.sidebar-item:hover:not(.active) {
    background: #e9ecef;
}

.preview-main {
    padding: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

/* Accordion Section */
.accordion {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.accordion-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-button {
    background-color: #f8f9fa;
    border: none;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button .badge {
    font-size: 0.9rem;
}

.accordion-button::after {
    filter: invert(1) hue-rotate(40deg) saturate(0) contrast(1.5);
}

.video-container {
    height: 500px;
    overflow: hidden;
}

.video-container video {
    object-fit: cover;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 3rem;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Pricing Card */
/* municipalities. cities and counties */

.pricing-card {
    border-radius: 12px;
    /* overflow: hidden; */
}

.pricing-card.municipalities {
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    overflow: visible;
}

.pricing-card.cities-counties {
    border: 2px solid var(--secondary-dark);
    color: var(--secondary-dark);
}
.municipalities .pricing-header {
    /* background: var(--primary-dark); */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-top-left-radius: 0.6rem;
    border-top-right-radius: 0.6rem;
}

.cities-counties .pricing-header {
    /* background: var(--secondary-dark); */
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    border-top-left-radius: 0.6rem;
    border-top-right-radius: 0.6rem;
}

/* Company Logo */
.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Screenshot Gallery */
.screenshot-gallery {
    position: relative;
}

.screenshot-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.screenshot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.screenshot-card .placeholder-img {
    transition: transform 0.3s ease;
    width: 100%;
    border-radius: 8px;
}

.screenshot-card:hover .placeholder-img {
    transform: scale(1.05);
}

/* Video Thumbnails */
.video-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #667eea;
    position: relative;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: transparent;
    z-index: 10;
}

.video-thumbnail video {
    display: none !important;
}


/* Video Play Button Overlay */
.video-play-overlay {
    z-index: 5;
    transition: all 0.3s ease;
}

.video-play-overlay i {
    font-size: 4rem !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.screenshot-card:hover .video-play-overlay i {
    transform: scale(1.2);
    color: #667eea !important;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Locked Videos - IP Protection */
.locked-videos-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.locked-videos-inner {
    filter: blur(6px);
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.locked-card {
    cursor: default !important;
}

.locked-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.locked-overlay-content {
    text-align: center;
    color: #333;
    padding: 2rem;
}

.locked-overlay-content i.fa-lock {
    color: #667eea;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.locked-overlay-content h4 {
    color: #2d3748;
}

.locked-overlay-content p {
    color: #718096;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Sales CTA Box */
.sales-cta-box {
    background: linear-gradient(135deg, #4a3a7e 0%, #5e4a9e 100%);
}

.sales-cta-box .lightbulb-icon {
    opacity: 0.9;
}

.sales-cta-box .cta-text {
    font-size: 0.95rem;
}

.sales-cta-box .btn-cta {
    color: #5e4a9e;
}

/* Responsive layout for CTA box */
@media (max-width: 991px) {
    .sales-cta-box .d-flex {
        flex-direction: column !important;
        text-align: center;
    }
    
    .sales-cta-box .lightbulb-icon {
        margin-bottom: 1rem;
    }
    
    .sales-cta-box .btn-cta {
        margin-top: 1rem;
        margin-left: 0 !important;
        width: 100%;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
    .sales-cta-box {
        padding: 1.5rem !important;
    }
    
    .sales-cta-box h5 {
        font-size: 1.1rem;
    }
    
    .sales-cta-box .cta-text {
        font-size: 0.85rem;
    }
    
    .sales-cta-box .lightbulb-icon {
        font-size: 2.5rem !important;
    }
}

/* Accordion Improvements */
.accordion-button {
    border-radius: 8px !important;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.accordion-item {
    border-radius: 12px;
    overflow: hidden;
}

.accordion-body {
    background: #fafafa;
}

/* Badge Styling */
.badge.fs-6 {
    font-size: 0.875rem !important;
    padding: 0.5rem 0.75rem;
}

/* Cool Hero Headlines - Simple Monochrome */
.hero-headline-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-headline-split h1 {
    color: white;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin: 0;
}

@keyframes subtleGradient {
    0% {
        filter: hue-rotate(0deg) brightness(1) saturate(1);
    }
    50% {
        filter: hue-rotate(5deg) brightness(1.05) saturate(1.1);
    }
    100% {
        filter: hue-rotate(0deg) brightness(1) saturate(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-headline-split {
        gap: 0.25rem;
    }
    
    .hero-headline-split h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-headline-split h1 {
        font-size: 2rem !important;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        text-align: center;
    }
    
    .dashboard-preview {
        transform: none;
    }
    
    .preview-content {
        grid-template-columns: 1fr;
    }
    
    .preview-sidebar {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .screenshot-gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .accordion-button {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .accordion-button .badge {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem;
    }
}

.onsale-section {
  position: absolute;
  top: -8px;
  left: 2.2rem;
  z-index: 10;
  box-shadow: -7px 4px 6px 0px;
}

.onsale-section:after {
  position: absolute;
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 2.6rem solid transparent;
  border-right: 2.6rem solid transparent;
}

.onsale {
  position: relative;
  display: inline-block;
  text-align: center;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  padding: 12px 8px 6px;
  border-top-right-radius: 8px;
  width: 84px;
  height: 4rem;
  text-transform: uppercase
}

.onsale:before,
.onsale:after {
  position: absolute;
  content: '';
  display: block;
}

.onsale:before {
  height: 7px;
  width: 6px;
  left: -6px;
  top: 0;
}

.onsale:after {
  background: #212121;
  height: 7px;
  width: 8px;
  border-radius: 8px 8px 0 0;
  left: -9px;
  top: 0;
}

.product img {
  display: block;
}

.municipalities .onsale {
    background: #214abc;
}

.cities-counties .onsale {
    background: #4a127f;
}

.municipalities .onsale::before {
    background: #214abc;
}

.cities-counties .onsale::before {
    background: #4a127f;
}

.municipalities .onsale-section:after {
    border-top: 0.7rem solid #214abc;
}
.cities-counties .onsale-section:after {
    border-top: 0.7rem solid #4a127f;
}

@media (max-width: 576px) {
    .onsale-section {
        left: .2rem;
        transform: translateX(16%);
    }
}