* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #DC2626;
    --color-secondary: #1a1a1a;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-dark: #0f0f0f;
    --color-gray: #666666;
    --color-light-gray: #f5f5f5;
    --color-text: #333333;
}

body {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    background-color: var(--color-white);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Ensure images and media are responsive */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Logo Splash Screen */
.logo-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.logo-splash.fade-out {
    opacity: 0;
    pointer-events: none;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: logoEntrance 1.2s ease-out;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 1200px;
    height: 1200px;
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    object-fit: contain;
}

@keyframes logoEntrance {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.main-content.visible {
    opacity: 1;
}

.main-content.hidden {
    display: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    left: 0;
    right: 0;
    overflow-x: hidden;
}

.navbar.scrolled {
    padding: 0;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    overflow: hidden;
    gap: 15px;
    flex-wrap: nowrap;
    width: 100%;
    position: relative;
}

.logo-small {
    display: flex;
    align-items: center;
    height: 100px;
    flex-shrink: 0;
    min-width: 0;
    max-width: 220px;
}

.nav-logo-img {
    width: 220px;
    height: 90px;
    object-fit: contain;
    display: block;
    margin: 0;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .logo-small {
        height: 90px;
    }
    .nav-logo-img {
        width: 200px;
        height: 80px;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 0;
}

.nav-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-text, #111111);
    color: var(--color-text, #111111);
    margin-left: 10px;
    margin-right: 6px;
    transition: all 0.3s ease;
    font-size: 18px;
    background: var(--color-white, #ffffff);
}

.nav-social:hover {
    background: var(--color-primary, #DC2626);
    border-color: var(--color-primary, #DC2626);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
}

.nav-social-icon {
    width: 18px;
    height: 18px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    padding-right: 0;
    min-width: 0;
    flex-shrink: 1;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    padding: 2px 0;
    white-space: nowrap;
    display: inline-block;
}

.language-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-left: 0;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--color-text);
    color: var(--color-text);
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn .flag {
    width: 22px;
    height: 16px;
    display: inline-block;
    border-radius: 2px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.flag-gb {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><path fill='%23012169' d='M0 0h60v30H0z'/><path stroke='%23ffffff' stroke-width='6' d='M0 0l60 30M60 0L0 30'/><path stroke='%23c8102e' stroke-width='4' d='M0 0l60 30M60 0L0 30'/><path fill='%23ffffff' d='M25 0h10v30H25zM0 10h60v10H0z'/><path fill='%23c8102e' d='M27 0h6v30h-6zM0 12h60v6H0z'/></svg>");
}

.flag-rs {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='3' height='2' fill='%23ffffff'/><rect width='3' height='0.666' y='0' fill='%23c6363c'/><rect width='3' height='0.666' y='0.666' fill='%230c4076'/></svg>");
}

.lang-btn .lang-text {
    text-transform: uppercase;
}

.lang-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.lang-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    margin: -8px;
    background: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 1000;
    font-family: inherit;
    color: inherit;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    transition: all 0.3s ease;
    pointer-events: none;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(26, 26, 26, 0.05) 100%),
                url('slika1.jpg') center/cover no-repeat;
    padding-top: 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(26, 26, 26, 0.7) 100%),
                url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(220,38,38,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 1;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border-radius: 30px;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--color-white);
    font-family: 'Oswald', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 16px 35px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.btn i {
    font-size: 14px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.35);
}

.hero-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-feature i {
    color: var(--color-primary);
    font-size: 18px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(220, 38, 38, 0.75));
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 40px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.25);
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    color: #111111;
    margin-bottom: 20px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.section-title:hover {
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Section */
.services {
    background: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 35px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 36px;
    color: var(--color-primary);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    transform: rotateY(360deg);
}

.service-card:hover .service-icon i {
    color: var(--color-white);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-family: 'Oswald', sans-serif;
}

.service-card p {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.service-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

.service-link i {
    font-size: 12px;
}

/* About Section */
.about {
    background: var(--color-light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-badge {
    margin-bottom: 20px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.about-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-feature i {
    font-size: 32px;
    color: var(--color-primary);
    margin-top: 5px;
}

.about-feature h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.about-feature p {
    font-size: 14px;
    color: var(--color-gray);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 56px;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.stat-label {
    font-size: 14px;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Projects Section */
.projects {
    background: var(--color-light-gray);
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.project-item {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--color-secondary);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(220, 38, 38, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    color: var(--color-white);
    font-size: 40px;
}

.project-name {
    padding: 25px 30px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    text-align: center;
    margin: 0;
}

/* Contact Section */
.contact {
    background: var(--color-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: var(--color-light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--color-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.contact-details p {
    font-size: 15px;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 5px;
}

.contact-form {
    background: var(--color-light-gray);
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--color-white);
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    color: var(--color-text);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-gray);
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* Footer */
.footer {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 14px;
    color: var(--color-white);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: 600;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-white);
    font-family: 'Oswald', sans-serif;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--color-primary);
}

.footer-column ul li i {
    margin-right: 10px;
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-container {
        padding: 0 20px;
        gap: 10px;
    }
    
    .nav-menu {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 80px;
        gap: 8px;
    }
    
    .logo-small {
        height: 80px;
        max-width: 150px;
        flex-shrink: 1;
    }
    
    .nav-logo-img {
        width: 140px;
        height: 60px;
        max-width: 100%;
    }
    
    .nav-right {
        gap: 6px;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--color-white);
        flex-direction: column;
        padding: 40px 20px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 15px 0;
        font-size: 16px;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-toggle {
        display: flex;
        margin-left: 8px;
        flex-shrink: 0;
        padding: 8px;
        margin: -8px -8px -8px 0px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        pointer-events: auto;
        position: relative;
        z-index: 1000;
    }
    
    .nav-toggle span {
        width: 22px;
        height: 2.5px;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 80px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }

    .nav-menu {
        flex: none;
        justify-content: flex-start;
    }
    .nav-right {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
        height: 70px;
        gap: 6px;
    }
    
    .logo-small {
        height: 70px;
        max-width: 120px;
    }
    
    .nav-logo-img {
        width: 120px;
        height: 50px;
        max-width: 100%;
    }
    
    .nav-right {
        gap: 5px;
        margin-left: auto;
    }
    
    .nav-social {
        width: 30px;
        height: 30px;
        font-size: 12px;
        margin-left: 2px;
        margin-right: 2px;
        flex-shrink: 0;
    }
    
    .nav-social-icon {
        width: 14px;
        height: 14px;
    }
    
    .language-switcher {
        margin-left: 3px;
        gap: 3px;
        flex-shrink: 0;
    }
    
    .lang-btn {
        padding: 4px 6px;
        font-size: 11px;
        min-width: 36px;
    }
    
    .lang-btn .flag {
        width: 14px;
        height: 10px;
    }
    
    .lang-btn .lang-text {
        display: none; /* Sakrij tekst na malim ekranima, samo zastave */
    }
    
    .nav-toggle {
        margin-left: 5px;
        padding: 8px;
        margin: -8px -8px -8px -3px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        pointer-events: auto;
        position: relative;
        z-index: 1000;
    }
    
    .nav-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 25px;
        font-size: 14px;
        min-height: 44px; /* Better touch target */
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .services-grid {
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .projects-grid {
        gap: 20px;
    }
    
    .project-image {
        height: 220px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-number {
        font-size: 36px;
    }
    
    .contact-content {
        gap: 30px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Extra small devices (phones in portrait, less than 360px) */
@media (max-width: 360px) {
    .nav-container {
        padding: 0 10px;
        height: 65px;
        gap: 4px;
    }
    
    .logo-small {
        height: 65px;
        max-width: 100px;
    }
    
    .nav-logo-img {
        width: 100px !important;
        height: 40px !important;
        max-width: 100%;
    }
    
    .nav-right {
        gap: 4px;
    }
    
    .nav-social {
        width: 28px;
        height: 28px;
        margin-left: 1px;
        margin-right: 1px;
    }
    
    .nav-social-icon {
        width: 12px;
        height: 12px;
    }
    
    .language-switcher {
        margin-left: 2px;
    }
    
    .lang-btn {
        padding: 3px 5px;
        font-size: 10px;
        min-width: 32px;
    }
    
    .lang-btn .flag {
        width: 12px;
        height: 9px;
    }
    
    .nav-toggle {
        margin-left: 3px;
        padding: 8px;
        margin: -8px -8px -8px -5px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        pointer-events: auto;
        position: relative;
        z-index: 1000;
    }
    
    .nav-toggle span {
        width: 18px;
        height: 2px;
    }
    
    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
        padding: 30px 15px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Large screens (monitors, 1920px and above) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .nav-container {
        max-width: 1600px;
    }
}

/* Ultra-wide screens (2560px and above) */
@media (min-width: 2560px) {
    .container {
        max-width: 2000px;
    }
    
    .nav-container {
        max-width: 2000px;
    }
    
    .hero-title {
        font-size: 90px;
    }
    
    .section-title {
        font-size: 60px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .lang-btn, .service-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 10px 0;
    }
}
