/* Base Styles */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --text-color: #333333;
    --light-text: #777777;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --border-color: #e9ecef;
    --success-color: #38b000;
    --warning-color: #ffaa00;
    --error-color: #d90429;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --section-spacing: 6rem; /* Smanjeno sa 8rem */
    --section-spacing-mobile: 4rem; /* Smanjeno sa 5rem */
}

/* Clean transition effect */
.pixelated-transition {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    overflow: hidden;
    line-height: 0;
    z-index: -1;
}

.pixelated-transition svg {
    width: 100%;
    height: 70px;
    display: block;
}

@media (max-width: 768px) {
    .pixelated-transition {
        height: 50px;
    }
    
    .pixelated-transition svg {
        height: 50px;
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-spacing) 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
    margin-bottom: 2rem;
    font-weight: 700;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.4rem;
    background: var(--primary-color);
    border-radius: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    max-width: 70rem;
    margin: 0 auto 3rem; /* Smanjeno sa 5rem */
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    border-radius: 5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 0.1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Hero Button Styles */
.hero-btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    border-radius: 5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 0.1rem;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    will-change: transform, box-shadow;
    isolation: isolate;
}

.hero-btn span {
    position: relative;
    z-index: 1;
}

.hero-btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid transparent;
}

.hero-btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transform: skewX(-25deg);
    transition: all 0.5s ease;
    z-index: -1;
}

.hero-btn:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn-primary:hover {
    color: white;
}

.hero-btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

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

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

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 2rem 0;
}

.header.scrolled {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    font-weight: 700;
    font-size: 2.4rem;
    font-family: 'Montserrat', sans-serif;
}

.logo img {
    height: 40px;
    transition: all 0.3s ease;
    width: auto;
}

.header.scrolled .logo img {
    height: 35px;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 3rem;
    position: relative;
}

.nav-link {
    display: block;
    padding: 1rem 0;
    color: white;
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
    font-size: 1.4rem;
}

.header.scrolled .nav-link {
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.1rem;
    left: 1.5rem;
    width: calc(100% - 3rem);
    height: 0.2rem;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.header.scrolled .nav-link:hover, .header.scrolled .nav-link.active {
    color: var(--primary-color);
}

.header.scrolled .nav-link.kontakt-btn {
    color: white;
}

.nav-link.kontakt-btn {
    color: white;
}

.dropdown {
    position: relative;
}

/* Dropdown styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    font-weight: 400;
    transition: all 0.3s ease;
    background-color: white;
}

.dropdown-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.dropdown .fa-chevron-down {
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.kontakt-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5rem;
}

.kontakt-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.kontakt-btn::after {
    content: none;
}

.nav-menu-contact {
    display: none;
}

/* Desktop/Mobile menu visibility */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    background-color: var(--text-color);
    margin: 0.5rem 0;
    transition: var(--transition);
}

/* Hero Section - UPDATED */
.hero {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    min-height: 70vh; /* Smanjeno sa 85vh */
    padding: 10rem 0 8rem; /* Smanjeno sa 10rem 0 15rem */
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    width: 90%;
    max-width: 100rem;
    margin: 0 auto;
}

.hero h1, .hero p, .page-hero h1, .page-hero p {
    color: white;
}

.hero h1 {
    font-size: 4.8rem;
}

.hero h2 {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.hero-buttons {
    margin-top: 3rem;
}

.hero-wave {
    position: absolute;
    bottom: -2px; /* Pomaknuto gore sa -50px */
    left: 0;
    width: 100%;
    z-index: 1;
}

/* Intro Section - UPDATED */
.intro {
    background-color: white;
    padding-top: 4rem; /* Dodato da smanji razmak */
}

.intro-content {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
}

.intro-text p {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.intro-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Services Section */
.services {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr)); /* Promenjeno sa auto-fill na auto-fit */
    gap: 3rem;
    margin-top: 3rem; /* Smanjeno sa 5rem */
}

.service-card {
    background-color: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

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

.service-card h3 {
    margin-bottom: 1.5rem;
}

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

/* Pricing Section */
.pricing {
    background-color: white;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem; /* Smanjeno sa 5rem */
}

.pricing-tab {
    padding: 1rem 2rem;
    background-color: transparent;
    border: none;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--light-text);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.pricing-tab::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0.2rem;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.pricing-tab.active {
    color: var(--primary-color);
}

.pricing-tab.active::after {
    width: 50%;
}

.pricing-content {
    display: block;
}

.pricing-content.hidden {
    display: none;
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.pricing-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 3rem;
    width: 100%;
    max-width: 35rem;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -1.5rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    margin-bottom: 1rem;
}

.price {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pricing-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

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

.pricing-features {
    margin-bottom: 3rem;
}

.pricing-features ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 3rem;
}

.pricing-features ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success-color);
    position: absolute;
    left: 0;
    top: 0;
}

.pricing-card .btn {
    width: 100%;
}

.additional-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.additional-service {
    background-color: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 3rem;
    width: 100%;
    max-width: 35rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.additional-service:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.additional-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

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

.additional-service h3 {
    margin-bottom: 2rem;
}

.additional-service ul li {
    margin-bottom: 1rem;
}

.additional-service .price {
    font-size: 2rem;
}

/* SEO Section */
.seo {
    background-color: var(--light-bg);
}

.seo-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5rem;
}

.seo-text {
    flex: 1;
    min-width: 30rem;
}

.seo-text p {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.seo-text strong {
    color: var(--primary-color);
}

.seo-text h3 {
    margin: 3rem 0 1.5rem;
}

.seo-text ul {
    margin-bottom: 3rem;
}

.seo-text ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 3rem;
}

.seo-text ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success-color);
    position: absolute;
    left: 0;
    top: 0;
}

.seo-offers {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
}

.seo-offer {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 25rem;
}

.seo-offer-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

.seo-offer h4 {
    margin-bottom: 1rem;
}

.seo-conclusion {
    font-style: italic;
    color: var(--text-color);
    font-weight: 500;
}

.seo-image {
    flex: 1;
    min-width: 30rem;
    display: flex;
    justify-content: center;
}

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

/* Why Us Section */
.why-us {
    background-color: white;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-top: 3rem; /* Smanjeno sa 5rem */
}

.why-us-card {
    background-color: var(--light-bg);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    transition: var(--transition);
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.why-us-icon {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow);
}

.why-us-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.why-us-card h3 {
    margin-bottom: 1rem;
}

.why-us-card p {
    color: var(--light-text);
}

.why-us-cta {
    text-align: center;
    margin-top: 3rem; /* Smanjeno sa 5rem */
}

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

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    margin-top: 3rem; /* Smanjeno sa 5rem */
}

.contact-form {
    flex: 2;
    min-width: 30rem;
}

.form-group {
    margin-bottom: 2rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.contact-info {
    flex: 1;
    min-width: 25rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info-item {
    background-color: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    width: 30rem;
    max-width: 100%;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-info-icon i {
    font-size: 2.4rem;
    color: var(--primary-color);
}

.contact-info-item h3 {
    margin-bottom: 1rem;
}

.contact-info-item a {
    color: var(--text-color);
}

.contact-info-item a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 6rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-logo {
    flex: 1.5;
    min-width: 25rem;
}

.footer-logo a {
    margin-bottom: 2rem;
    display: block;
}

.footer-logo img {
    height: 5rem;
    width: auto;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    flex: 1.5;
    min-width: 20rem;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.footer-links h3,
.footer-social h3 {
    color: white;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 5rem;
    height: 0.2rem;
    background-color: var(--accent-color);
}

.footer-links ul li {
    width: calc(50% - 0.5rem);
    margin-bottom: 0.5rem;
    box-sizing: border-box;
    position: relative;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    transform: translateX(0.5rem);
}

.footer-links ul li a::before {
    display: none;
}

.footer-social {
    flex: 1;
    min-width: 15rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-5px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

/* Responsive */
@media screen and (max-width: 1024px) {
    html {
        font-size: 55%;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 58%;
    }

    .hero h1 {
        font-size: 3.2rem;
        line-height: 1.3;
    }

    .hero-content {
        width: 100%;
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .pricing-tabs {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 4rem;
    }

    .header.scrolled {
        padding: 1rem 0;
    }

    .hero h1 {
        font-size: 3.4rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 2rem;
    }

    .hero-content {
        width: 100%;
        padding: 3rem 0;
    }

    .hero-btn {
        padding: 1.4rem 2.5rem;
        font-size: 1.5rem;
    }

    .pricing-cards {
        flex-direction: column;
        gap: 3rem;
    }
}

/* Multi-page Styles */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Make sure kontakt-btn text is always white, even when active */
.nav-link.kontakt-btn.active,
.header.scrolled .nav-link.kontakt-btn.active {
    color: white;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Page Hero - UPDATED */
.page-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40vh; /* Smanjeno sa 50vh */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    position: relative;
    padding: 10rem 0 8rem; /* Smanjeno sa 15rem 0 15rem */
}

.page-hero-content {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem;
    z-index: 2;
}

.page-hero h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
}

.page-hero p {
    font-size: 2rem;
    margin-bottom: 3rem;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.page-hero .hero-wave {
    position: absolute;
    bottom: -2px; /* Promenjeno sa -220px */
    left: 0;
    width: 100%;
    z-index: 0;
}

/* Services Preview Section */
.services-preview {
    background-color: var(--light-bg);
    padding: var(--section-spacing) 0;
}

.services-cta {
    text-align: center;
    margin-top: 3rem; /* Smanjeno sa 4rem */
}

/* Pricing Preview Section */
.pricing-preview {
    background-color: white;
    padding: var(--section-spacing) 0;
}

.pricing-cards-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem; /* Smanjeno sa 4rem */
}

.pricing-cta {
    text-align: center;
}

/* Contact Preview Section */
.contact-preview {
    background-color: var(--light-bg);
    padding: var(--section-spacing) 0;
}

.contact-info-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 3rem;
    margin-bottom: 3rem; /* Smanjeno sa 4rem */
}

.contact-cta {
    text-align: center;
}

/* Webshop Page Styles - UPDATED */
.webshop-intro {
    padding-top: 6rem; /* Smanjeno sa 180px */
    position: relative;
    z-index: 2;
    background-color: white;
}

.webshop-intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5rem;
}

.webshop-intro-text {
    flex: 1;
    min-width: 30rem;
}

.webshop-intro-image {
    flex: 1;
    min-width: 30rem;
    display: flex;
    justify-content: center;
}

.feature-list {
    margin: 3rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

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

.feature-text {
    font-size: 1.6rem;
}

.webshop-pricing {
    background-color: var(--light-bg);
    padding: var(--section-spacing) 0;
}

.webshop-pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem; /* Smanjeno sa 5rem */
}

.additional-services {
    padding: var(--section-spacing) 0;
    background-color: white;
}

.additional-services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem; /* Smanjeno sa 5rem */
}

.additional-note {
    text-align: center;
    margin-top: 3rem; /* Smanjeno sa 4rem */
    font-style: italic;
}

/* About Us Page Styles - UPDATED */
.about-us {
    padding-top: 6rem; /* Smanjeno sa 180px */
    position: relative;
    z-index: 2;
    background-color: white;
}

.about-us-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5rem;
}

.about-us-text {
    flex: 1;
    min-width: 30rem;
}

.about-us-image {
    flex: 1;
    min-width: 30rem;
    display: flex;
    justify-content: center;
}

.lead {
    font-size: 2rem;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 3rem;
    margin: 3rem 0; /* Smanjeno sa 4rem 0 */
}

.value-card {
    background-color: var(--light-bg);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: var(--transition);
}

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

.value-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

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

.about-conclusion {
    margin-top: 3rem; /* Smanjeno sa 4rem */
    padding: 2rem;
    background-color: rgba(67, 97, 238, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.5rem;
}

.team-approach {
    background-color: var(--light-bg);
    padding: var(--section-spacing) 0;
}

.approach-steps {
    max-width: 80rem;
    margin: 3rem auto 0; /* Smanjeno sa 5rem */
}

.approach-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem; /* Smanjeno sa 4rem */
}

.step-number {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-right: 2rem;
    flex-shrink: 0;
}

.step-content {
    padding-top: 0.5rem;
}

.step-content h3 {
    margin-bottom: 1rem;
}

/* Contact Page Styles */
.contact-details {
    padding: 3rem 0; /* Smanjeno sa 4rem */
    background-color: white;
}

.contact-details-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem; /* Smanjeno sa 4rem */
    max-width: 120rem;
    margin: 0 auto;
}

.contact-detail-card {
    background-color: var(--light-bg);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    flex: 1;
    min-width: 25rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-detail-card.animate {
    opacity: 1 !important;
    visibility: visible !important;
}

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

.contact-detail-icon {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.contact-detail-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.contact-detail-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-detail-card p,
.contact-detail-card a {
    color: var(--text-color);
}

/* Contact Form Section - UPDATED */
.contact-form-section {
    padding-top: 4rem; /* Smanjeno sa 120px */
    position: relative;
    z-index: 2;
    background-color: var(--light-bg);
}

.contact-form-container {
    max-width: 80rem;
    margin: 2rem auto 0;
}

.contact-form {
    background-color: white;
    border-radius: 1rem;
    padding: 4rem;
    box-shadow: var(--shadow);
}

.faq-section {
    padding: 4rem 0; /* Smanjeno sa 5rem */
    background-color: white;
}

.faq-container {
    max-width: 80rem;
    margin: 2rem auto 0; /* Smanjeno sa 3rem */
}

.faq-item {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    position: relative;
    padding: 2rem;
    background-color: white;
    border-radius: 0.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: rgba(67, 97, 238, 0.05);
    box-shadow: var(--shadow);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
    flex: 1;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    transition: var(--transition);
}

.faq-toggle i {
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 2rem;
    max-height: 20rem;
    border-bottom-left-radius: 0.8rem;
    border-bottom-right-radius: 0.8rem;
    background-color: white;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.faq-item.active .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none;
}

.faq-item.active .faq-toggle {
    background-color: var(--primary-color);
    transform: rotate(180deg);
}

.faq-item.active .faq-toggle i {
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6rem 0; /* Smanjeno sa 8rem */
    text-align: center;
}

.cta-content {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-content h2 {
    font-size: 3.6rem;
    margin-bottom: 2rem;
}

.cta-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-content .btn {
    font-size: 1.6rem;
    padding: 1.5rem 4rem;
}

/* Responsive Adjustments for Multi-page */
@media screen and (max-width: 768px) {
    .page-hero {
        padding: 8rem 0 6rem; /* Smanjeno */
    }
    .page-hero h1 {
        font-size: 3.6rem;
    }
    .page-hero p {
        font-size: 1.6rem;
    }
    .webshop-intro-content,
    .about-us-content,
    .seo-content {
        flex-direction: column;
    }
    .about-us-image,
    .seo-image {
        margin-top: 3rem; /* Smanjeno sa 4rem */
    }
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .approach-step {
        flex-direction: column;
    }
    .step-number {
        margin-bottom: 2rem;
    }
    .contact-form {
        padding: 3rem;
    }
}

@media screen and (max-width: 480px) {
    .page-hero h1 {
        font-size: 3.2rem;
    }
    .contact-detail-card {
        padding: 2rem;
    }
}

/* Services Full Page Styles - UPDATED */
.services-full {
    padding-top: 6rem; /* Smanjeno sa 180px */
    position: relative;
    z-index: 2;
}

/* Process Section Styles */
.process-section {
    padding: var(--section-spacing) 0;
}

.process-steps {
    max-width: 80rem;
    margin: 3rem auto 0; /* Smanjeno sa 5rem */
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4rem; /* Smanjeno sa 5rem */
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 5rem;
    left: 2.5rem;
    width: 2px;
    height: calc(100% - 2rem);
    background-color: var(--border-color);
}

.process-number {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-right: 3rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.process-content {
    padding-top: 0.5rem;
}

.process-content h3 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

/* Tech Section Styles */
.tech-section {
    padding: var(--section-spacing) 0;
    background-color: white;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem; /* Smanjeno sa 5rem */
}

.tech-card {
    text-align: center;
    width: 15rem;
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-5px);
}

.tech-icon {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

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

/* Testimonials Styles */
.testimonials {
    padding: var(--section-spacing) 0;
}

.testimonials-slider {
    max-width: 90rem;
    margin: 3rem auto 0; /* Smanjeno sa 5rem */
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.testimonial {
    background-color: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow);
    max-width: 35rem;
    flex: 1;
}

.testimonial-content {
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 8rem;
    color: rgba(67, 97, 238, 0.1);
    position: absolute;
    top: -4rem;
    left: -1rem;
    font-family: Georgia, serif;
}

.testimonial-content p {
    font-size: 1.6rem;
    line-height: 1.6;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author-name {
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--text-color);
}

.testimonial-author-company {
    font-size: 1.4rem;
    color: var(--light-text);
}

/* Pricing Section Styles */
.pricing-section {
    padding: var(--section-spacing) 0;
}

.pricing-section.bg-light {
    background-color: var(--light-bg);
}

.pricing-faq {
    padding: var(--section-spacing) 0;
}

/* Explicitly apply the same styles to pricing-faq as faq-section */
.pricing-faq .faq-container {
    max-width: 80rem;
    margin: 2rem auto 0; /* Smanjeno sa 3rem */
}

.pricing-faq .faq-item {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.pricing-faq .faq-question {
    padding: 2rem;
    background-color: var(--light-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing-faq .faq-question h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.pricing-faq .faq-toggle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.pricing-faq .faq-toggle i {
    color: var(--primary-color);
    transition: var(--transition);
}

.pricing-faq .faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.pricing-faq .faq-item.active .faq-answer {
    padding: 2rem;
    max-height: 20rem;
}

.pricing-faq .faq-item.active .faq-toggle {
    background-color: var(--primary-color);
}

.pricing-faq .faq-item.active .faq-toggle i {
    color: white;
    transform: rotate(180deg);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .process-step {
        flex-direction: column;
    }

    .process-number {
        margin-bottom: 2rem;
    }

    .process-step:not(:last-child)::after {
        left: 2.5rem;
        top: 5rem;
        height: calc(100% - 5rem);
    }

    .tech-card {
        width: 12rem;
    }

    .tech-icon {
        width: 8rem;
        height: 8rem;
    }

    .tech-icon i {
        font-size: 4rem;
    }

    .testimonial {
        max-width: 100%;
    }
}

/* Website Types Section - UPDATED */
.website-types {
    padding-top: 6rem; /* Smanjeno sa 180px */
    position: relative;
    z-index: 2;
    background-color: white;
}

.website-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-top: 3rem; /* Smanjeno sa 5rem */
}

.website-type-card {
    background-color: var(--light-bg);
    border-radius: 1rem;
    padding: 3rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.website-type-icon {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.website-type-icon i {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.website-type-card h3 {
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.website-type-card p {
    margin-bottom: 2rem;
}

.website-type-features {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.website-type-features li {
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
}

.website-type-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0.2rem;
}

/* Website Features Section */
.website-features {
    padding: var(--section-spacing) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 4rem;
    margin-top: 3rem; /* Smanjeno sa 5rem */
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

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

.feature-content h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Website Packages Section */
.website-packages {
    padding: var(--section-spacing) 0;
    background-color: white;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .website-types-grid {
        grid-template-columns: 1fr;
    }

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

    .feature-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* SEO Page Styles - UPDATED */
.seo-intro {
    padding-top: 6rem; /* Smanjeno sa 180px */
    position: relative;
    z-index: 2;
    background-color: white;
}

.seo-intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5rem;
}

.seo-intro-text {
    flex: 1;
    min-width: 30rem;
}

.seo-intro-image {
    flex: 1;
    min-width: 30rem;
    display: flex;
    justify-content: center;
}

.seo-list {
    margin: 3rem 0;
}

.seo-list li {
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

.seo-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0.2rem;
}

.seo-services {
    padding: var(--section-spacing) 0;
}

.seo-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    gap: 3rem;
    margin-top: 3rem; /* Smanjeno sa 5rem */
}

.seo-service-card {
    background-color: white;
    border-radius: 1rem;
    padding: 3rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

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

.seo-service-icon {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.seo-service-icon i {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.seo-service-card h3 {
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.seo-service-card p {
    margin-bottom: 2rem;
}

.seo-service-features {
    margin-bottom: 2rem;
}

.seo-service-features li {
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
}

.seo-service-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0.2rem;
}

.seo-service-price {
    margin-top: auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.seo-service-price span {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.seo-service-price.included {
    background-color: rgba(67, 97, 238, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.seo-service-price.included span {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.seo-process {
    padding: var(--section-spacing) 0;
    background-color: white;
}

.seo-myths {
    padding: var(--section-spacing) 0;
}

.myths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-top: 3rem; /* Smanjeno sa 5rem */
}

.myth-card {
    background-color: white;
    border-radius: 1rem;
    padding: 3rem;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow);
}

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

.myth-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: rgba(217, 4, 41, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.myth-icon i {
    font-size: 2.5rem;
    color: var(--error-color);
}

.myth-card h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.seo-conclusion {
    padding: var(--section-spacing) 0;
    background-color: white;
}

.seo-conclusion-content {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
}

.seo-conclusion-content h2 {
    margin-bottom: 3rem;
}

.seo-conclusion-content p {
    margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .seo-intro-content {
        flex-direction: column;
    }

    .seo-intro-image {
        margin-top: 3rem;
    }

    .seo-services-grid,
    .myths-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 1200px) and (min-width: 769px) {
    .seo-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Media Queries */
@media screen and (max-width: 991px) {
    /* Section spacing for mobile */
    section {
        padding: var(--section-spacing-mobile) 0;
    }

    .container {
        padding: 0 2rem;
    }

    .header.scrolled {
        padding: 1rem 0;
    }

    .hero {
        min-height: 60vh; /* Smanjeno */
        padding: 8rem 0 6rem; /* Smanjeno */
    }

    .hero h1 {
        font-size: 3.4rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1.8rem; /* Smanjeno */
    }

    .pricing-cards {
        flex-direction: column;
        gap: 3rem;
    }

    .pricing-card {
        width: 100%;
        max-width: 45rem;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }

    .seo-content {
        flex-direction: column;
    }

    .seo-image {
        margin-top: 3rem; /* Smanjeno sa 4rem */
    }

    .contact-info-item {
        flex-basis: 100%;
    }

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

    .footer-links ul li a {
        font-size: 1.5rem;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 4rem;
        height: 4rem;
        cursor: pointer;
        z-index: 1001;
    }
    .nav-toggle span {
        display: block;
        width: 2.5rem;
        height: 0.3rem;
        background-color: white !important;
        margin: 0.25rem 0;
        transition: all 0.3s ease-in-out;
        border-radius: 0.2rem;
    }
    .header.scrolled .nav-toggle span {
        background-color: #333 !important;
    }
    
    /* Special case for blog page - keep hamburger white even when scrolled */
    body:has(.page-header) .header.scrolled .nav-toggle span,
    body:has(.blog-container) .header.scrolled .nav-toggle span {
        background-color: white !important;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: auto;
        right: 0;
        width: 35rem;
        max-width: 90%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 9rem 0 4rem;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12), -2px 0 15px rgba(0, 0, 0, 0.08);
        transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        transform: translateX(100%);
        z-index: 1000;
        display: flex;
        overflow-y: auto;
        border-left: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-menu.active {
        transform: translateX(0);
    }
    /* Show mobile menu items, hide desktop dropdown */
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
        margin-left: 0;
        position: relative;
    }
    
    .nav-menu li:not(.mobile-sub-item) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    /* Mobile section header */
    .mobile-section-header {
        padding: 2rem 3rem 1rem;
        border-bottom: 2px solid rgba(67, 97, 238, 0.1);
        background: rgba(67, 97, 238, 0.03);
    }
    
    .mobile-section-header .section-title {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--primary-color);
        text-transform: uppercase;
        letter-spacing: 1px;
        display: block;
    }
    
    /* Main service link styling */
    .mobile-main-service {
        font-weight: 600;
        color: var(--secondary-color) !important;
        background: rgba(67, 97, 238, 0.05);
    }
    
    .mobile-main-service:hover {
        background: rgba(67, 97, 238, 0.1) !important;
        color: var(--primary-color) !important;
    }
    
    /* Style for mobile sub-items */
    .mobile-sub-item {
        background: rgba(67, 97, 238, 0.02);
        border-left: 3px solid var(--primary-color);
        margin-left: 2rem;
        margin-right: 2rem;
        border-radius: 0 8px 8px 0;
    }
    
    .mobile-sub-item .nav-link {
        font-size: 1.5rem;
        padding: 1.2rem 2rem;
        color: #333333 !important;
        font-weight: 400;
        text-align: left;
        position: relative;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .mobile-sub-item .nav-link::before {
        content: '•';
        color: var(--primary-color);
        font-weight: bold;
        margin-right: 1rem;
        font-size: 1.2rem;
    }
    
    .mobile-sub-item .nav-link:hover {
        color: var(--primary-color);
        background: rgba(67, 97, 238, 0.08);
        transform: translateX(5px);
        padding-left: 2.5rem;
    }

    .nav-link {
        display: block;
        padding: 1.8rem 3rem;
        font-size: 1.7rem;
        font-weight: 500;
        color: #333333 !important;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-radius: 0;
        text-align: left;
        position: relative;
        text-transform: none;
        letter-spacing: 0.5px;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: var(--primary-color);
        transform: scaleY(0);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform-origin: bottom;
    }

    .nav-menu .nav-link:hover, .nav-menu .nav-link.active {
        color: var(--primary-color);
        background: rgba(67, 97, 238, 0.05);
        transform: translateX(8px);
        padding-left: 3.5rem;
    }
    
    .nav-menu .nav-link:hover::before, .nav-menu .nav-link.active::before {
        transform: scaleY(1);
        transform-origin: top;
    }

    .header .nav-link, .header.scrolled .nav-link,
    .nav-link.active {
        color: #333333 !important;
    }
    
    /* Ensure mobile hamburger menu links are always dark and visible */
    @media (max-width: 992px) {
        .nav-menu .nav-link,
        .nav-menu.active .nav-link {
            color: #333333 !important;
        }
        
        .nav-menu .nav-link.active,
        .nav-menu.active .nav-link.active {
            color: var(--primary-color) !important;
        }
        
        /* Ensure hamburger menu contact info is also visible */
        .nav-menu-contact p,
        .nav-menu-contact a {
            color: #333333 !important;
        }
        
        /* Special fix for blog page - ensure menu text stays dark when scrolled */
        body:has(.page-header) .nav-menu .nav-link,
        body:has(.blog-container) .nav-menu .nav-link,
        body:has(.page-header) .nav-menu.active .nav-link,
        body:has(.blog-container) .nav-menu.active .nav-link {
            color: #333333 !important;
        }
        
        body:has(.page-header) .nav-menu .nav-link.active,
        body:has(.blog-container) .nav-menu .nav-link.active,
        body:has(.page-header) .nav-menu.active .nav-link.active,
        body:has(.blog-container) .nav-menu.active .nav-link.active {
            color: var(--primary-color) !important;
        }
    }

    .nav-menu.active .nav-link.kontakt-btn,
    .nav-menu .nav-link.kontakt-btn {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white !important;
        margin: 2rem 2rem 0;
        border-radius: 12px;
        font-weight: 600;
        text-align: center;
        box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
        border: none;
        transform: none;
        padding: 1.5rem 2rem;
    }
    
    .nav-menu .nav-link.kontakt-btn::before {
        display: none;
    }
    
    .nav-menu .nav-link.kontakt-btn:hover {
        background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
        color: white !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
        padding-left: 2rem;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(0.8rem) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-0.8rem) rotate(-45deg);
    }

    /* Ensure X icon is always black */
    .nav-toggle.active span {
        background-color: #000 !important;
    }

    .dropdown {
        position: relative;
        overflow: hidden;
        width: 100%;
    }

    .dropdown > a {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        display: block;
        background: transparent;
        border: none;
        box-shadow: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
        margin-left: 0;
    }
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    .dropdown.active .fa-chevron-down {
        transform: rotate(180deg);
    }
    .dropdown-menu li {
        margin-bottom: 0.5rem;
        margin-left: 0;
    }
    .dropdown-menu li a {
        color: var(--text-color);
        font-size: 1.6rem;
        padding: 0.8rem 2rem;
        justify-content: center;
        background-color: rgba(0,0,0,0.03);
        border-radius: 5px;
    }
    .dropdown-menu li a:hover {
        color: var(--primary-color);
        background: transparent;
    }

    .nav-menu-contact {
        display: block;
        margin-top: auto;
        padding: 3rem 2rem 2rem;
        border-top: 1px solid rgba(67, 97, 238, 0.1);
        text-align: center;
        color: var(--light-text);
        width: 100%;
        background: rgba(67, 97, 238, 0.02);
    }

    .nav-menu-contact p {
        margin-bottom: 1.5rem;
        font-size: 1.3rem;
        color: var(--light-text);
        font-weight: 500;
    }

    .nav-menu-contact a {
        font-weight: 600;
        color: var(--primary-color);
        display: block;
        margin-bottom: 1rem;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-size: 1.4rem;
    }
    
    .nav-menu-contact a:hover {
        background: rgba(67, 97, 238, 0.1);
        transform: translateY(-1px);
    }

    body.no-scroll {
        overflow: hidden;
    }
    body.blurry > *:not(header):not(.nav-menu) {
        filter: blur(5px);
        transition: filter 0.3s ease-in-out;
    }
}

/* Price Table Styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 3rem 0;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table thead {
    background-color: var(--primary-color);
    color: white;
}

.price-table th,
.price-table td {
    padding: 1.5rem 2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.price-table tbody tr:nth-child(even) {
    background-color: rgba(67, 97, 238, 0.05);
}

.price-table tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.1);
    transition: var(--transition);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

@media screen and (max-width: 768px) {
    .price-table th,
    .price-table td {
        padding: 1rem 0.8rem;
        font-size: 1.4rem;
    }
}

/* Footer mobile view adjustments */
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }

    .footer-logo,
    .footer-links,
    .footer-social {
        width: 100%;
        margin: 0;
    }

    .footer-links h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul {
        columns: 2;
        gap: 2rem;
    }
    .footer-links ul li {
        break-inside: avoid;
        text-align: left;
        padding: 0.5rem 0;
    }

    .footer-links ul li a {
        font-size: 1.5rem;
    }

    .footer-links ul li a:hover {
        color: var(--accent-color);
    }

    .footer-links ul li a::before {
        display: none;
    }

    .social-icons {
        justify-content: center;
    }
    .footer-bottom {
        padding-top: 2rem;
    }
}

/* 2-column footer links on mobile */
@media screen and (max-width: 768px) {
    .footer-links ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 2rem;
        text-align: left;
    }

    .footer-links ul li {
        width: auto;
    }

    .footer-links ul li a:hover {
        transform: none;
    }
}

/* Additional mobile improvements */
@media screen and (max-width: 480px) {
    :root {
        --section-spacing: 4rem;
        --section-spacing-mobile: 3rem;
    }

    .hero {
        min-height: 50vh;
        padding: 6rem 0 4rem;
    }

    .page-hero {
        min-height: 35vh;
        padding: 8rem 0 5rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .section-subtitle {
        margin-bottom: 2rem;
    }

    /* Reduce top padding for sections that come after hero/page-hero */
    .intro,
    .webshop-intro,
    .about-us,
    .seo-intro,
    .services-full,
    .website-types,
    .contact-form-section {
        padding-top: 3rem;
    }
}

/* Design Services Page - Additional Styles */
.design-intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5rem;
    margin-top: 3rem;
}

.design-intro-text {
    flex: 1;
    min-width: 30rem;
}

.design-intro-image {
    flex: 1;
    min-width: 30rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.tip-card {
    background-color: white;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.tip-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

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

/* Final adjustments to ensure consistent spacing */
.bg-light {
    background-color: var(--light-bg);
}

/* Ensure all "intro" type sections have consistent spacing */
.intro,
.services-preview,
.pricing-preview,
.why-us,
.contact-preview {
    padding: var(--section-spacing) 0;
}

/* For pages with hero sections, reduce top padding of first content section */
main > section:first-child:not(.hero):not(.page-hero) {
    padding-top: 3rem;
} 