:root {
    /* Colors - Sleek Interface Palette */
    --bg-color: #0A0A0B;
    --bg-dark-variant: #080809;
    --text-color: #ffffff;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;
    --accent-primary: #22D3EE; /* Cyan-400 */
    --accent-secondary: #2563EB; /* Blue-600 */
    --accent-purple: #9333EA; /* Purple-600 */
    --card-bg: #161618;
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 90px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: initial;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Background Glows */
body::before {
    content: "";
    position: fixed;
    top: -10%; left: -10%;
    width: 50%; height: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    bottom: -10%; right: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.bg-dark-variant {
    background-color: var(--bg-dark-variant);
}

/* Typography Utility */
.gradient-text {
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    text-align: center;
}

.loader-bar {
    width: 0%;
    height: 1px;
    background: var(--accent-primary);
    margin-top: 20px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    letter-spacing: 0.2rem;
    font-size: 1.5rem;
}

/* Header */
#header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

#header.scrolled {
    background: rgba(10, 10, 11, 0.82);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.nav-list {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-list a {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
}

.nav-list a:hover {
    color: var(--accent-primary);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.2);
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(34, 211, 238, 0.3);
}

.btn-secondary {
    padding: 0.8rem 1.8rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.full-width {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, rgba(15, 15, 17, 0.95) 0%, rgba(15, 15, 17, 0.95) 55%, rgba(15, 15, 17, 0.2) 55.1%, transparent 100%);
}

.hero-content-left {
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
}

.hero-text-wrapper {
    max-width: 700px;
    margin: 0;
}

.hero-subtitle {
    display: inline-block;
    color: #FF8359;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-content-left h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: #fff;
}

.hero-content-left p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 0 3.5rem 0;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.hero-btn {
    background: #FF8359 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-radius: 0 !important;
    padding: 1.25rem 3rem !important;
    font-size: 1.1rem !important;
}

.hero-btn:hover {
    background: #e56d45 !important;
    transform: none !important;
}

.hero-btn-outline {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid #FF8359 !important;
    box-shadow: none !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-radius: 0 !important;
    padding: 1.25rem 3rem !important;
    font-size: 1.1rem !important;
}

.hero-btn-outline:hover {
    background: rgba(255, 131, 89, 0.1) !important;
    transform: none !important;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 60px;
    align-items: center;
}

.text-content { grid-column: span 6; }
.visual-content { grid-column: span 6; }

.reversed .text-content {
    order: 2;
}

/* Section Styling */
.section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.section p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* Base Card Styling */
.bento-card, .portfolio-item, .contact-form-container, .stat-item, .testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    transition: var(--transition);
}

.bento-card:hover, .portfolio-item:hover {
    border-color: rgba(34, 211, 238, 0.2);
}

/* Check List */
.check-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.check-list li::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* Navigation Dropdown */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 250px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: var(--text-dim);
    transition: var(--transition);
    display: block;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
    padding-left: 1.5rem;
}

/* Service Cards (Image Style) */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card-v2 {
    background: linear-gradient(135deg, #0a3a5a 0%, #168db7 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-card-v2 h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card-v2 p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.service-card-v2 .btn-card {
    background: #fff;
    color: #0d4b6d;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: center;
}

.service-card-v2 .btn-card:hover {
    background: #0d4b6d;
    color: #fff;
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .service-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .dropdown-menu {
        display: none; /* Hide dropdown in mobile nav if not specifically handled */
    }
}

.services-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 420px;
    gap: 32px;
    margin-top: 60px;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.bento-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-5px);
}

.card-interior {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.bento-card.card-large {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-card.card-medium {
    grid-column: span 1;
}

.card-label {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.bento-card h3 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.bento-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 380px;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 20px;
    color: #fff;
    border-bottom: 1px solid var(--accent-primary);
    padding-bottom: 2px;
}

/* Card Visuals - Realistic Props */
.card-graphic {
    flex: 1;
    display: flex;
    align-items: flex-end;
    margin-top: 20px;
}

.browser-ui {
    width: 100%;
    background: #000;
    border: 1px solid var(--glass-border);
    border-radius: 12px 12px 0 0;
    height: 200px;
    padding: 12px;
}

.browser-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.circles {
    display: flex;
    gap: 5px;
}

.circles span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
}

.skeleton-line {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    margin-bottom: 10px;
}

.skeleton-line.half { width: 50%; }

.card-graphic-mobile {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.phone-outline {
    width: 120px;
    height: 220px;
    border: 1px solid var(--glass-border);
    background: #000;
    border-radius: 24px;
    padding: 10px;
    position: relative;
    transform: rotate(5deg);
}

/* Footer - Redefined Professional */
.footer {
    padding: 120px 0 0;
    background: #050505;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 100px;
}

.footer-desc {
    margin: 24px 0;
    color: var(--text-dim);
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-contact-info p {
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.footer-nav-col h4, .footer-newsletter h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-bottom: 30px;
    color: var(--accent-primary);
}

.footer-nav-col ul li {
    margin-bottom: 15px;
}

.footer-nav-col a {
    color: var(--text-dim);
    transition: var(--transition);
}

.footer-nav-col a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-links a {
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.05em;
}

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

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Subpage Utility Styles */
.subpage #header {
    background: rgba(10, 10, 11, 0.95);
    border-bottom: 1px solid var(--glass-border);
}

.page-hero {
    padding: 180px 0 100px;
    background: linear-gradient(to bottom, #0d0d0f, var(--bg-color));
    text-align: center;
}

.hero-subtext {
    max-width: 600px;
    margin: 30px auto 0 !important;
}

.nav-list a.active {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Bento Graphic Props Fixes */
.app-card {
    height: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 10px;
}

.card-graphic-ui {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    margin-top: 20px;
}

.ui-circles {
    position: relative;
    width: 140px;
    height: 100px;
}

.ui-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.6;
}

.ui-circle.c1 {
    width: 80px;
    height: 80px;
    left: 0;
    bottom: 0;
    z-index: 2;
}

.ui-circle.c2 {
    width: 100px;
    height: 100px;
    left: 40px;
    bottom: 20px;
    opacity: 0.3;
}

.card-graphic-chart {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 20px;
}

.chart-bars {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.bar-chart {
    width: 30px;
    background: var(--accent-primary);
    border-radius: 6px 6px 0 0;
    opacity: 0.8;
}

.bar-chart.b1 { height: 60px; opacity: 0.5; }
.bar-chart.b2 { height: 100px; opacity: 0.7; }
.bar-chart.b3 { height: 140px; }

.skeleton-grid {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.skeleton-grid span {
    flex: 1;
    height: 40px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}

.stat-grid-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-info, .contact-form-container, .map-container { 
    grid-column: span 6; 
}

@media (max-width: 991px) {
    .contact-info, .contact-form-container, .map-container { 
        grid-column: span 12; 
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 140px 0 60px;
    }
    .page-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .services-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-card.card-large, .bento-card.card-medium {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}


/* Section Styling Override */
.mockup-frame {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.abstract-shape {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    opacity: 0.8;
}

.device-mockup {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: #000;
    border: 12px solid #1a1a1a;
    border-radius: 48px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-mobile {
    width: 85%; height: 85%;
    background: linear-gradient(to bottom, var(--accent-purple), transparent);
    border-radius: 32px;
}

/* Portfolio */
.section-header.center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.portfolio-header-more {
    margin: 0.85rem 0 0;
}

.portfolio-header-more .sv3-link {
    margin-top: 0;
    justify-content: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Kartice su uvek "prisutne" — animacija ide samo na transform, ne na opacity */
#portfolio .portfolio-item {
    opacity: 1;
}

.item-visual {
    height: 280px;
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.abstract-card {
    width: 100%; height: 100%;
    opacity: 0.15;
}

.abstract-card.blue { background: radial-gradient(circle at center, var(--accent-primary), transparent); }
.abstract-card.purple { background: radial-gradient(circle at center, var(--accent-purple), transparent); }
.abstract-card.gold { background: radial-gradient(circle at center, #FFD700, transparent); }

/* Mini pregled uživo (iframe) — umanjen prikaz gornjeg dela stranice */
.portfolio-item--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.portfolio-item--link:hover .item-info h3 {
    color: var(--accent-primary);
}

/* Google Play (iframe se ne učitava) — pločica umesto minijature */
.item-visual--store {
    position: relative;
    padding: 0;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0f2418 0%, #0a0c0b 100%);
    border: 1px solid rgba(15, 157, 88, 0.28);
    box-sizing: border-box;
}

.store-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
    padding: 1.25rem;
}

.store-tile-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #81c995;
}

.store-tile-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e8f5e9;
    letter-spacing: -0.02em;
    max-width: 12rem;
    line-height: 1.25;
}

/* Vet Record: hero sa videom nema smislen iframe pregled */
.item-visual--vet-tile {
    position: relative;
    padding: 0;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, #1a1f2e 0%, #0c1018 50%, #121820 100%);
    border: 1px solid rgba(96, 165, 250, 0.22);
    box-sizing: border-box;
}

.vet-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-align: center;
    padding: 1.25rem;
}

.vet-tile-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94a3b8;
}

.vet-tile-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: #e2e8f0;
    letter-spacing: -0.03em;
    max-width: 14rem;
    line-height: 1.2;
}

.item-visual--embed {
    position: relative;
    padding: 0;
    margin-bottom: 2rem;
    background: #0d0d0f;
}

.embed-site-preview {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
    border-radius: 20px;
    isolation: isolate;
    background: linear-gradient(160deg, #14141a 0%, #0a0a0c 100%);
}

.embed-site-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 400%;
    border: 0;
    transform: scale(0.25);
    transform-origin: top left;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .embed-site-preview iframe {
        display: none;
    }
    .embed-site-preview {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .embed-site-preview::after {
        content: "Klik za otvaranje sajta (pregled isključen)";
        font-size: 0.8rem;
        color: var(--text-dim);
        text-align: center;
        padding: 0 1rem;
    }
}

.item-info h3 { font-size: 1.5rem; margin-bottom: 8px; }
.item-info p { color: var(--text-dim); }

/* Recenzije u stilu Google profil + ime + zvezdice */
.testimonial-section {
    background: var(--bg-color, #0a0a0b);
}

.google-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.g-review-card {
    background: #161618;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem 1.35rem 1.35rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.g-review-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.75rem;
}

.g-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff8359 0%, #c94b7c 100%);
    letter-spacing: 0.02em;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.g-avatar--2 {
    background: linear-gradient(135deg, #5b7cfa 0%, #8b5cf6 100%);
}

.g-avatar--3 {
    background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
}

.g-profile {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.g-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f3f3f3;
    line-height: 1.25;
}

.g-badge {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 400;
}

.g-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 0.7rem;
    line-height: 1;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.g-stars .g-star {
    color: #fbbc04;
    text-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
}

.g-stars .g-star--empty {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.05rem;
}

.g-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d1d5db;
}

@media (max-width: 900px) {
    .google-reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats */
.about-flex {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    align-items: center;
}

.about-text { flex: 1.5; }
.stats-grid { 
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-item {
    padding: 30px 20px;
    text-align: center;
    border-radius: 24px;
}

.stat-item .number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.stat-item p { margin-bottom: 0; font-size: 1rem; }

/* Contact — kontakt stranica i sekcije sa .grid-2 */
.contact-section .grid-2 {
    align-items: start;
    gap: clamp(2rem, 5vw, 60px);
}

.contact-info h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 0;
}

.contact-details {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-item h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dim, #8b8b90);
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.contact-item p {
    margin: 0;
    font-size: 1.05rem;
    color: #fff;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 131, 89, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-item a:hover {
    color: #ff8359;
    border-color: #ff8359;
}

/* Contact & Map */
.contact-form-container {
    padding: clamp(1.5rem, 4vw, 3.75rem);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form-container iframe,
#modal-view-form iframe {
    max-width: 100%;
    display: block;
}

/* Kontakt strana: forma puna širina, bez kartice koja seče sadržaj */
.contact-page-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 3.5rem);
    max-width: 900px;
    margin: 0 auto;
}

.contact-page-stack .contact-info {
    grid-column: auto;
}

.office-form-standalone {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.office-form-standalone iframe {
    display: block;
    width: 100% !important;
    max-width: 640px;
}

/* Microsoft Forms u kartici: ukloni okvir gde nema polja, forma u punoj širini kolone */
.contact-form-container:has(> iframe[src*="forms.office.com"]) {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.contact-section .grid-2:has(.contact-form-container iframe[src*="forms.office.com"]) {
    grid-template-columns: 1fr;
}

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

.input-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.8rem;
    color: var(--text-dim);
    font-weight: 700;
}

.input-group input, .input-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.25rem;
    color: #fff;
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
    font-size: 1rem;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.06);
}

.map-container {
    border-radius: 32px;
    overflow: hidden;
    height: 100%;
}

.map-placeholder {
    width: 100%; height: 100%;
    background: #111112;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 480px;
}

.location-dot {
    width: 20px; height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--accent-primary);
    position: relative;
}

.location-dot::after {
    content: "";
    position: absolute;
    top: -100%; left: -100%;
    width: 300%; height: 300%;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Floating Elements */
.scroll-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px; height: 60px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-btn.show { opacity: 1; pointer-events: all; }
.scroll-btn:hover { border-color: var(--accent-primary); transform: translateY(-5px); }

.floating-cta {
    position: fixed;
    bottom: 120px;
    right: 40px;
    z-index: 1000;
}

.cta-bubble {
    width: 60px; height: 60px;
    background: var(--accent-primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.3);
    transition: var(--transition);
}

.cta-bubble:hover { transform: scale(1.1); background: #fff; }

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
}

.bar {
    width: 30px; height: 2px;
    background: #fff;
    transition: var(--transition);
    transform-origin: center;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-color);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: var(--transition);
}

.mobile-nav-overlay.active { transform: translateY(0); }
.mobile-nav-list { width: 100%; padding: 0 2rem; max-height: 80vh; overflow-y: auto; }
.mobile-nav-list li { margin: 1.5rem 0; text-align: left; }
.mobile-nav-list a { font-size: 1.8rem; font-family: 'Space Grotesk'; font-weight: 700; color: #fff; }

/* Mobile Submenu Styles */
.mobile-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dropdown-arrow::after {
    content: '+';
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.mobile-dropdown.active .dropdown-arrow::after {
    content: '-';
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    padding-left: 1.5rem;
    transition: max-height 0.4s ease-out;
}

.mobile-dropdown.active .mobile-submenu {
    max-height: 1000px;
}

.mobile-submenu li {
    margin: 0.8rem 0;
}

.mobile-submenu a {
    font-size: 1.2rem !important;
    font-weight: 400 !important;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .desktop-nav { display: none; }
    .mobile-nav-toggle { display: flex; }
    
    .hero-content-left h1 { font-size: 4rem; }
    
    .grid-2 { 
        gap: 50px;
    }
    
    .text-content, .visual-content { grid-column: span 12; order: 1; }
    .reversed .text-content { order: 1; }
    .reversed .visual-content { order: 2; }
    
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .about-flex { flex-direction: column; }
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .hero-content-left h1 { font-size: 3.5rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .hero-btn, .hero-btns .hero-btn-outline { width: 100%; }

    .contact-section .grid-2 {
        gap: 2rem;
    }

    .contact-form-container {
        border-radius: 20px;
    }

    .input-group input,
    .input-group textarea {
        font-size: 16px;
    }
}

/* Floating Contact Stack - Right Side */
.floating-contact-stack {
    position: fixed;
    top: 50%;
    right: 20px;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
    border: none;
    text-decoration: none;
    position: relative;
}

.contact-icon:hover {
    transform: scale(1.15) translateX(-5px);
}

.contact-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .floating-contact-stack {
        right: 15px;
        gap: 10px;
    }
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    .contact-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Brand Colors */
.contact-icon.phone { background: var(--accent-primary); color: #000; }
.contact-icon.viber { background: #7360f2; }
.contact-icon.whatsapp { background: #25d366; }
.contact-icon.email { background: #ea4335; }

/* Pulse Animation for Phone */
.pulse-trigger {
    animation: pulse-ring 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

/* Contact Modal Pop */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem 2.5rem;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.contact-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.contact-modal-content {
    background: #111113;
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    width: 95%;
    max-width: min(680px, 100%);
    text-align: center;
    transform: scale(0.8) translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    margin: 2rem auto;
    overflow: visible;
    flex-shrink: 0;
}

.contact-modal-overlay.active .contact-modal-content {
    transform: scale(1) translateY(0);
}

.modal-view {
    display: none;
}

.modal-view.active {
    display: block;
}

#modal-view-form {
    overflow: visible;
}

#modal-view-form iframe {
    min-height: 480px;
}

.contact-modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.contact-modal-content p {
    color: var(--text-dim);
    margin-bottom: 25px;
    font-size: 1rem;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-opt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.modal-opt-btn:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.modal-opt-btn.highlight {
    background: var(--accent-primary);
    color: #000;
    border: none;
}

.modal-opt-btn.highlight:hover {
    background: #fff;
}

/* Modal Form Styles */
.modal-form {
    text-align: left;
}

.modal-form .input-group {
    margin-bottom: 1.2rem;
}

.modal-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 500;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(34, 211, 238, 0.05);
}

.back-to-options {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.close-modal-btn {
    margin-top: 25px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-decoration: underline;
}


/* New Services Grid — ujednačene visine, kartice u istom ritmu */
.services-grid-new {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: stretch;
}

.sv3-card {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #0a0a0c;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.sv3-card:hover {
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 131, 89, 0.18);
    border-color: rgba(255, 131, 89, 0.22);
    transform: translateY(-6px);
}

.sv3-image {
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #121214;
}

.sv3-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.sv3-card:hover .sv3-image img {
    transform: scale(1.06);
}

.sv3-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 92%;
    max-width: 100%;
    margin: -2.5rem auto 0;
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.5rem 1.75rem;
    background: linear-gradient(180deg, #141518 0%, #0f1012 100%);
    border-radius: 14px 14px 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease;
}

.sv3-card:hover .sv3-content {
    transform: translateY(-2px);
}

.sv3-icon {
    margin-bottom: 1rem;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 131, 89, 0.1);
    border: 1px solid rgba(255, 131, 89, 0.2);
}

.sv3-icon svg {
    width: 24px;
    height: 24px;
    stroke: #ff8359;
}

.sv3-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.75rem;
    min-height: 2.6em;
    color: #fff;
    letter-spacing: -0.02em;
}

.sv3-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    flex: 1 1 auto;
}

.sv3-link {
    color: #ff8359;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    margin-top: auto;
    letter-spacing: 0.02em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.sv3-link::after {
    content: "→";
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.sv3-link:hover {
    color: #fff;
}

.sv3-link:hover::after {
    transform: translateX(3px);
}

@media (max-width: 991px) {
    .services-grid-new {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .sv3-content {
        width: 94%;
        margin-top: -2rem;
        padding: 1.35rem 1.25rem 1.5rem;
    }

    .sv3-content h3 {
        min-height: 0;
    }
}

/* Custom cursor — uključuje samo JS kada je (fine pointer + hover, bez reduce motion) */
:root {
    --cursor-orange: #ff8359;
    --cursor-size: 14px;
    --cursor-pulse: 0.5s;
}

/* Samo uz aktivnu klasu na <html> — inače uvek uobičajen kursor (fallback) */
@media (pointer: fine) and (hover: hover) and (prefers-reduced-motion: no-preference) {
    html.custom-cursor--enabled * {
        cursor: none !important;
    }
}

/* Reduce motion: eksplicitan fallback (ako se klasa zakači greškom) */
@media (prefers-reduced-motion: reduce) {
    html.custom-cursor--enabled * {
        cursor: auto !important;
    }
}

/* Jasan sistemski kursor pri visokom kontrastu (fallback) */
@media (prefers-contrast: more) {
    html.custom-cursor--enabled * {
        cursor: auto !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
    /* will-change: transform + compositor; NE contain:strict — 0×0 + paint containment odsijava prsten */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    opacity: 0;
    transition: opacity 0.2s ease;
    visibility: hidden;
}

html.custom-cursor--enabled .custom-cursor--visible {
    opacity: 1;
    visibility: visible;
}

.custom-cursor__ring {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    margin-left: calc(var(--cursor-size) * -0.5);
    margin-top: calc(var(--cursor-size) * -0.5);
    box-sizing: border-box;
    border: 2px solid var(--cursor-orange);
    border-radius: 50%;
    background: rgba(255, 131, 89, 0.2);
    box-shadow: 0 0 14px rgba(255, 131, 89, 0.38);
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.12s ease, border-width 0.12s ease;
}

.custom-cursor--hover .custom-cursor__ring {
    transform: scale(1.45);
    border-width: 2.5px;
}

/* Puls se vrti na ::after — glavni prsten zadržava hover skaliranje */
.custom-cursor__ring::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 131, 89, 0.55);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.65);
    pointer-events: none;
}

.custom-cursor--pulse .custom-cursor__ring::after {
    animation: customCursorPulseRing var(--cursor-pulse) cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes customCursorPulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.75);
        opacity: 0.75;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.4);
        opacity: 0;
    }
}
