/* Tailwind-like utility classes and modern variables */
:root {
    /* Colors */
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #60a5fa;
    --secondary-color: #34a853;
    --accent: #3b82f6;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-color: #333;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

/* Chat Button - Modern Floating Action Button */
.chat-button {
    position: fixed;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-button span {
    display: none; /* Sakrivamo tekst, ostavljamo samo ikonu */
}

.chat-button i {
    font-size: 28px;
    margin-right: 0;
}

.chat-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.5);
}

/* Pulsirajući efekat za privlačenje pažnje */
.chat-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    z-index: -1;
    animation: pulse 2s infinite;
    opacity: 0.5;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .chat-button {
        bottom: 20px !important;
        right: 20px !important;
        width: 50px;
        height: 50px;
    }
    
    .chat-button i {
        font-size: 24px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 110px; /* Raised to avoid overlap with chat button */
    right: 30px;
    background: #0066ff;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000; /* Niži z-index od chat dugmeta */
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0052cc;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px; /* Potvrđeno */
        right: 20px; /* Potvrđeno */
        width: 40px;
        height: 40px;
    }
    
    .back-to-top i {
        font-size: 16px;
    }
}

html {
    scroll-behavior: smooth;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
nav, header nav {
    width: 100%;
    background: rgba(26, 115, 232, 0.15);
    border-bottom: 1px solid rgba(26, 115, 232, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(26, 115, 232, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo img {
    height: 32px;
    width: auto;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-button {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(26, 115, 232, 0.2);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    color: #1a73e8;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
}

.nav-button:hover {
    background: rgba(26, 115, 232, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.25);
}

.cta-button {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
    background: linear-gradient(135deg, #1557b0 0%, #1a73e8 100%);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    position: relative;
    background-color: var(--background-alt);
    background-image: url('assets/raspored.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 102, 255, 0.1), rgba(255, 255, 255, 0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.revolution-container {
    width: 100%;
    max-width: 1100px;
    padding: 4rem;
    background: rgba(230, 240, 255, 0.98) !important;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.2) !important;
    border: 1px solid rgba(26, 115, 232, 0.15) !important;
    text-align: left;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Hero Section Carousel */
.hero-image {
    width: 50%;
    max-width: 800px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow);
}

.carousel-container,
.mobile-carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.carousel-slide,
.mobile-carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

@media screen and (max-width: 768px) {
    .hero-image {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .carousel,
    .mobile-carousel {
        height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .carousel,
    .mobile-carousel {
        height: 250px;
    }
}

/* Mobile App Section */
.mobile-app {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

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

.mobile-app-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.mobile-app-features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mobile-app-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.mobile-app-feature i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.mobile-app-screens {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.mobile-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow);
}

.mobile-carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-carousel-slide img {
    width: auto;
    height: 90%;
    max-height: 380px;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .mobile-app-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mobile-app-screens {
        max-width: 250px;
    }

    .mobile-carousel-slide img {
        max-height: 280px;
    }
}

@media screen and (max-width: 480px) {
    .mobile-app-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mobile-app-screens {
        max-width: 200px;
    }

    .mobile-carousel-slide img {
        max-height: 230px;
    }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--background);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

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

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--shadow);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
    background: var(--background-alt);
}

.benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

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

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

.benefit h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.about ul {
    list-style: none;
    margin-top: 2rem;
}

.about li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.about li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--background-alt);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Carousel Styles */
.carousel,
.mobile-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow);
}

.carousel-container,
.mobile-carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide,
.mobile-carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img,
.mobile-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-button,
.mobile-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-button:hover,
.mobile-carousel-button:hover {
    background: white;
    color: var(--primary-color);
}

.carousel-button.prev,
.mobile-carousel-button.prev {
    left: 10px;
}

.carousel-button.next,
.mobile-carousel-button.next {
    right: 10px;
}

.carousel-dots,
.mobile-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot,
.mobile-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active,
.mobile-carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Mobile Carousel Specific */
.mobile-carousel {
    height: 400px;
}

.mobile-carousel-slide img {
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .carousel,
    .mobile-carousel {
        height: 300px;
    }

    .carousel-button,
    .mobile-carousel-button {
        width: 35px;
        height: 35px;
    }

    .carousel-dot,
    .mobile-carousel-dot {
        width: 8px;
        height: 8px;
    }
}

@media screen and (max-width: 480px) {
    .carousel,
    .mobile-carousel {
        height: 250px;
    }

    .carousel-button,
    .mobile-carousel-button {
        width: 30px;
        height: 30px;
    }
}

/* Testimonials Section */
.testimonials {
    background: var(--background-alt);
    padding: 6rem 0;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

.testimonial-box {
    background: var(--background);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    box-shadow: 0 2px 4px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px var(--shadow);
}

.testimonial-box.featured {
    border: 2px solid var(--primary-color);
}

.enterprise-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.enterprise-badge i {
    color: #ffd700;
    margin-right: 0.5rem;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.2;
}

.testimonial-text {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.testimonial-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.metric i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.metric span {
    color: var(--text-color);
    font-weight: 500;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.author-info strong {
    display: block;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

.achievement-box {
    background: var(--background);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px var(--shadow);
    transition: transform 0.3s ease;
}

.achievement-box:hover {
    transform: translateY(-5px);
}

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

.achievement-content h3 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.achievement-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cta-container {
    text-align: center;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-metrics {
        grid-template-columns: 1fr;
    }
}

/* Chat Button Styles */
.support-chat-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.support-chat-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px var(--shadow);
}

.support-chat-button i {
    font-size: 1.25rem;
}

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

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

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

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

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

.chat-message.user {
    background: var(--primary-light);
    color: white;
    margin-left: auto;
}

.chat-message.assistant {
    background: var(--background-alt);
    margin-right: auto;
}

.chat-input {
    border-top: 1px solid var(--border);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.chat-input textarea {
    flex-grow: 1;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    resize: none;
    font-family: inherit;
}

.send-message {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-message:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .chat-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    background-image: url('assets/blog/route-optimization.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 10, 30, 0.9), rgba(10, 10, 30, 0.95));
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .mobile-app-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .mobile-app-feature {
        justify-content: center;
    }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .language-selector {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .carousel-button,
    .mobile-carousel-button {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .carousel-dot,
    .mobile-carousel-dot {
        width: 8px;
        height: 8px;
    }
}

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Navigation mobile styles */
    nav .container {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .language-selector {
        width: 100%;
        justify-content: center;
        gap: 1rem;
        margin-top: 0.5rem;
    }

    /* Documentation specific mobile styles */
    .docs-content-wrapper {
        flex-direction: column;
    }

    .docs-nav {
        width: 100%;
        margin-bottom: 2rem;
        overflow-x: auto;
        display: flex;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }

    .docs-content-container {
        width: 100%;
        padding-left: 0;
    }

    .docs-search {
        flex-direction: column;
        gap: 0.5rem;
    }

    .docs-search input {
        width: 100%;
    }

    .docs-search button {
        width: 100%;
    }

    /* Content adjustments for mobile */
    .docs-block {
        padding: 1rem;
    }

    .docs-image img {
        width: 100%;
        height: auto;
    }

    /* Make text more readable on mobile */
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Make buttons more touch-friendly */
    button,
    .docs-nav-item,
    .lang-switch {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    /* Code blocks and API documentation */
    .api-endpoint {
        padding: 1rem;
        overflow-x: auto;
    }

    code {
        font-size: 0.9rem;
        word-break: break-word;
        white-space: pre-wrap;
    }
}

/* Additional improvements for very small screens */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .docs-nav {
        padding: 0.5rem;
    }

    .docs-block {
        padding: 0.75rem;
    }
}

/* Mobile Responsive Styles for Landing Page */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }
    
    /* Hero section za mobilne uređaje */
    .revolution-container {
        padding: 1.5rem !important;
    }
    
    .revolution-title {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    .revolution-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem !important;
    }
    
    .mobile-menu-button {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-color);
        cursor: pointer;
        padding: 0.5rem;
    }

    /* Hero Section */
    .hero .container {
        flex-direction: column;
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        margin-bottom: 2rem;
    }

    .hero-image {
        width: 100%;
        margin-top: 2rem;
    }

    /* Features Section */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* Mobile App Section */
    .mobile-app-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mobile-app-screens {
        order: -1;
    }

    .mobile-app-features {
        gap: 1.5rem;
    }

    /* Testimonials */
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-box {
        padding: 1.5rem;
    }

    /* Achievements */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .achievement-box {
        padding: 1.5rem;
        text-align: center;
    }

    /* About Section */
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-text,
    .about-image {
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        padding: 0 1rem;
    }

    /* Carousel Adjustments */
    .carousel-container {
        height: 300px;
    }

    .carousel-slide img {
        height: 100%;
        object-fit: cover;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
    }

    /* CTA Buttons */
    .cta-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
}

/* Additional adjustments for very small screens */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding-top: 80px;
    }

    .feature-card,
    .testimonial-box,
    .achievement-box {
        padding: 1rem;
    }

    .carousel-container {
        height: 250px;
    }
}

/* General Button Styles */
.button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-size: 1rem;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.primary-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

.secondary-button {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.secondary-button:hover {
    background-color: rgba(26, 115, 232, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ===== Hero Section Specific Styles ===== */
.hero {
    padding: 6rem 0;
    position: relative;
    background-color: var(--background-alt);
    background-image: url('../assets/raspored.jpg'); /* Relativna putanja */
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    overflow: hidden; /* Spriječava curenje overlay-a */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 102, 255, 0.1), rgba(255, 255, 255, 0.9)); /* Gradient overlay */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); /* Fleksibilniji odnos */
        gap: 4rem;
    }
}

.revolution-container {
    width: 100%;
    padding: clamp(2rem, 5vw, 3rem); /* Responzivni padding */
    background: rgba(255, 255, 255, 0.98); /* Skoro neprozirna bijela */
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.12);
    border: 1px solid rgba(26, 115, 232, 0.15);
    text-align: left;
}

.revolution-title {
    font-size: clamp(2.2rem, 5vw, 3rem); /* Smanjena max veličina sa 3.2rem */
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.25;
    font-weight: 700;
    overflow-wrap: break-word; /* Omogućava prelamanje ako je potrebno */
    word-break: break-word; /* Dodatna sigurnost za prelamanje */
}

.revolution-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem); /* Prilagođena veličina */
    color: var(--text-color-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 650px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap; 
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
}

/* Carousel Styles */
.hero-carousel-wrapper {
    width: 100%;
    max-width: 600px; /* Ograničena širina */
    margin: 0 auto; /* Centriranje ako je uži od kolone */
}

.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10; /* Održava proporcije */
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.18);
    background: white;
    border: 1px solid rgba(26, 115, 232, 0.1);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box; 
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prikazuje cijelu sliku */
    max-height: 95%; /* Malo margine unutar slide-a */
    max-width: 95%;  
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.2s ease;
    color: var(--primary-color);
}

.carousel-button:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

.carousel-button.prev {
    left: 15px;
}

.carousel-button.next {
    right: 15px;
}

.carousel-button i {
    font-size: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
}

/* Adjust existing styles if needed */
/* Example: Ensure hero padding doesn't conflict */
.features {
    padding: 5rem 0;
}
