/* ==========================================
   BRAĆA DRINIĆ - Main Stylesheet
   Colors: Navy (#2E3192) + Cyan (#00AEEF)
   ========================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --primary-navy: #2E3192;
    --primary-cyan: #0077A8;
    --primary-navy-dark: #1e2062;
    --primary-cyan-dark: #005F86;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #F5F5F5;
    --gray-300: #E9ECEF;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    --text-dark: #333333;
    
    /* Semantic Colors */
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 80px;
    --navbar-height: 80px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

*:focus {
    outline: none !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: var(--navbar-height);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.3;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus {
    outline: none;
}

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

a:hover {
    color: var(--primary-navy);
}

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

/* ==========================================
   LOADING SCREEN
   ========================================== */
.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #fff;
}

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

.loading-bar-container {
    width: 200px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #2E3192, #00AEEF);
    border-radius: 2px;
    animation: loading-slide 1.2s ease-in-out infinite;
}

@keyframes loading-slide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(250%); }
    100% { transform: translateX(-100%); }
}

.blazor-error-ui {
    background: var(--danger);
    color: white;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
}

.blazor-error-ui.show {
    display: block;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
    padding: 0.5rem 0;
    transition: all var(--transition-normal);
    box-shadow: none;
    border: none;
    user-select: none;
    -webkit-user-select: none;
}

.navbar.scrolled {
    padding: 0.25rem 0;
    background: rgba(46, 49, 146, 0.98);
    box-shadow: var(--shadow-md);
}

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

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-brand strong {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-cyan);
}

.navbar .btn-primary {
    background: var(--primary-cyan);
    border-color: var(--primary-cyan);
    font-weight: 600;
}

.navbar .btn-primary:hover {
    background: var(--primary-cyan-dark);
    border-color: var(--primary-cyan-dark);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary-navy);
}

.dropdown-item.active {
    background: var(--primary-cyan);
    color: white;
}

/* Mobile: language dropdown expands inline inside collapsed navbar */
@media (max-width: 991.98px) {
    #mainNav .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 0.25rem 0 0.5rem 0;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: none;
        border-radius: var(--radius-md);
    }

    #mainNav .navbar-collapse .dropdown-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        text-align: center;
        font-weight: 500;
    }

    #mainNav .navbar-collapse .dropdown-menu .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: white;
    }

    #mainNav .navbar-collapse .dropdown-menu .dropdown-item.active {
        background-color: var(--primary-cyan);
        color: white;
    }

    #mainNav .navbar-collapse .nav-item.dropdown .nav-link.dropdown-toggle {
        text-align: center;
        width: 100%;
    }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    user-select: none;
    -webkit-user-select: none;
}

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

.btn-primary:hover {
    background: var(--primary-cyan-dark);
    border-color: var(--primary-cyan-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.btn-outline-primary:hover {
    background: var(--primary-cyan);
    border-color: var(--primary-cyan);
    color: white;
}

.btn-outline-light {
    border-color: white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-navy);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    /* GRADIJENT OVERLAY - samo odozdo, slika vidljiva odozgo */
    background: 
        linear-gradient(
            to top,
            rgba(46, 49, 146, 0.92) 0%,      /* Navy odozdo (gde je tekst) */
            rgba(46, 49, 146, 0.65) 20%,     /* Srednji prelaz */
            rgba(46, 49, 146, 0.35) 45%,     /* Blagi tint */
            rgba(46, 49, 146, 0.15) 65%,     /* Skoro providno */
            transparent 85%                   /* Potpuno providno odozgo */
        ),
        url('/images/hero/HeroSectionReal.png') center/cover no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: var(--navbar-height);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.7);  /* Jaka senka za čitljivost */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2rem;
    max-width: 700px;
    line-height: 1.6;
    text-shadow: 
        1px 1px 6px rgba(0, 0, 0, 0.85),
        0 0 15px rgba(0, 0, 0, 0.6);  /* Senka za čitljivost */
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-cyan);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive za Hero Section */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

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

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

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

/* ==========================================
   SECTIONS
   ========================================== */
section {
    padding: var(--section-padding) 0;
}

.section-label {
    display: inline-block;
    color: var(--primary-navy);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ==========================================
   ABOUT PREVIEW
   ========================================== */
.about-preview-section {
    background: var(--gray-100);
}

.about-image {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--primary-cyan);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .years {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list i {
    color: var(--primary-cyan);
    font-size: 1.25rem;
}

/* ==========================================
   SERVICE CARDS
   ========================================== */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
    text-align: center;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-navy) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

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

.service-card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ==========================================
   CATEGORY CARDS
   ========================================== */
.categories-section {
    background: var(--gray-100);
}

/* Loading Placeholder for Categories */
.loading-placeholder {
    opacity: 0.6;
    pointer-events: none;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--gray-300) 25%, var(--gray-400) 50%, var(--gray-300) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

.placeholder-text {
    width: 70%;
    height: 20px;
    background: linear-gradient(90deg, var(--gray-300) 25%, var(--gray-400) 50%, var(--gray-300) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
    margin: 1rem;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================
   PROJECT CARDS
   ========================================== */
.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-year {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-navy);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.project-status.completed {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.project-status.inprogress {
    background: rgba(255, 193, 7, 0.1);
    color: #946800;
}

.project-status.upcoming {
    background: rgba(0, 174, 239, 0.1);
    color: #007ab3;
}

.project-content h3 {
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.project-content p {
    flex: 1;
    margin-bottom: 0;
    color: var(--gray-600);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
    color: white;
    padding: 4rem 0 3rem;
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: calc(var(--navbar-height) + 3rem);
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
    outline: none;
}

.page-header h1:focus {
    outline: none;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: var(--primary-cyan);
}

.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-brand h5 {
    color: white;
    margin: 0;
}

.footer-description {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.footer h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

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

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.footer-contact i {
    color: var(--primary-cyan);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--gray-400);
}

.footer-contact a:hover {
    color: var(--primary-cyan);
}

.working-hours {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.footer-unit-title {
    color: var(--primary-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.footer-unit .footer-contact li {
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.footer-unit .footer-contact i {
    font-size: 0.9rem;
}

/* Footer desktop adjustments */
@media (min-width: 992px) {
    .footer-links-col {
        padding-left: 3rem !important;
    }
}

.footer-contact-col > h5 {
    text-align: center;
    padding-right: 33%;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-cyan);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: var(--gray-700);
    margin: 2rem 0;
}

.copyright {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.9rem;
}

.footer-privacy-link {
    color: var(--gray-500);
    text-decoration: none;
}

.footer-privacy-link:hover {
    color: var(--primary-cyan);
}

.privacy-content h2 {
    font-size: 1.2rem;
    color: var(--primary-navy);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.privacy-content p,
.privacy-content li {
    color: var(--gray-600);
    line-height: 1.8;
}

.powered-by {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.9rem;
}

.powered-by a {
    color: var(--primary-cyan);
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-cyan);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

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

.back-to-top:hover {
    background: var(--primary-navy);
    transform: translateY(-3px);
}

/* ==========================================
   COOKIE CONSENT
   ========================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    color: white;
    padding: 1rem 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-text i {
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-info-list {
    margin-top: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h5 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-details p {
    margin: 0;
    color: var(--gray-600);
}

.contact-details a {
    color: var(--gray-600);
}

.contact-details a:hover {
    color: var(--primary-cyan);
}

.contact-form-wrapper {
    background: var(--gray-100);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: var(--radius-md);
    border-color: var(--gray-300);
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.15);
}

.success-message {
    text-align: center;
    padding: 3rem;
}

.success-message i {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.social-links-contact {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-cyan);
    color: white;
}

.map-section iframe {
    display: block;
}

/* ==========================================
   PRODUCTS
   ========================================== */
/* ==========================================
   TIMELINE
   ========================================== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-300);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--primary-cyan);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-navy);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ==========================================
   VALUES
   ========================================== */
.values-section {
    background: var(--gray-200);
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-navy) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.value-icon i {
    font-size: 1.75rem;
    color: white;
}

/* ==========================================
   STATS
   ========================================== */
.stats-section {
    background: var(--primary-navy);
    color: white;
}

.stat-card {
    padding: 2rem;
}

.stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ==========================================
   ERROR PAGE
   ========================================== */
.error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary-cyan);
    line-height: 1;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 2rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item .timeline-marker,
    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: -10px;
        right: auto;
    }

    /* Tablet - Project cards 2 columns */
    .projects-content-section .row .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Tablet - Production cards */
    .production-section .row .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .production-section .row .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Tablet - Modals */
    .modal-lg {
        max-width: 90%;
    }

    /* Tablet - Service cards */
    .service-detail-card {
        flex-direction: column;
        text-align: center;
    }

    .service-icon-large {
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 60px;
        --navbar-height: 70px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    /* Project Cards - Mobile */
    .project-card-detailed .project-content h3 {
        font-size: 1rem;
    }

    .project-card-detailed .project-content p {
        font-size: 0.85rem;
    }

    .project-description-content {
        padding: 1rem;
    }

    .project-description-content .lead {
        font-size: 1rem;
    }

    .project-description-content p {
        font-size: 0.85rem;
    }

    /* Production - Mobile */
    .production-image-placeholder {
        height: 180px;
    }

    .production-image-placeholder i {
        font-size: 2rem;
    }

    .production-image-placeholder p {
        font-size: 0.8rem;
    }

    /* Modals - Mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* Footer - Mobile */
    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-contact li {
        align-items: flex-start;
    }
}

/* ==========================================
   SERVICE DETAIL CARDS
   ========================================== */
.service-detail-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

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

.service-icon-large {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-navy));
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.5rem;
}

.service-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-navy);
}

.service-info p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.service-features li i {
    color: var(--primary-cyan);
}

/* ==========================================
   PROJECT CARDS DETAILED
   ========================================== */
.project-card-detailed {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

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

.project-card-detailed .project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-card-detailed .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.project-card-detailed:hover .project-image img {
    transform: scale(1.05);
}

.partner-properties-section .project-card-detailed .project-image img {
    object-fit: contain;
    background-color: #f5f5f5;
}

.partner-properties-section .project-card-detailed:hover .project-image img {
    transform: none;
}

/* Video thumbnail on card cover */
.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    cursor: pointer;
    overflow: hidden;
}

.card-cover-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    pointer-events: none;
}

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    font-size: 1.5rem;
    padding-left: 4px;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.video-thumbnail-wrapper:hover .card-play-btn {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* Big play button overlay on carousel video slide */
.carousel-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.75rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}

.carousel-video-play-btn:hover {
    background: rgba(0, 119, 168, 0.75);
    transform: translate(-50%, -50%) scale(1.08);
}

.coming-soon-notice {
    text-align: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(46, 49, 146, 0.06), rgba(0, 119, 168, 0.06));
    border: 1px dashed rgba(0, 119, 168, 0.35);
    border-radius: 8px;
    color: var(--primary-navy);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Carousel arrow overrides — blue on white document backgrounds */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 1;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230077A8'%3e%3cpath stroke='%230077A8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    background-size: 2rem 2rem;
    filter: none;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230077A8'%3e%3cpath stroke='%230077A8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-size: 2rem 2rem;
    filter: none;
}

.project-year-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-navy);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.project-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-status-badge.completed {
    background: var(--success);
    color: white;
}

.project-status-badge.inprogress {
    background: var(--warning);
    color: var(--gray-900);
}

.project-status-badge.upcoming {
    background: var(--info);
    color: white;
}

.project-card-detailed .project-image img.project-placeholder-img {
    object-fit: contain;
    background-color: #f5f5f5;
}

.project-card-detailed:hover .project-image img.project-placeholder-img {
    transform: none;
}

.project-card-detailed .project-content {
    padding: 1.5rem;
}

.project-card-detailed .project-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-navy);
    line-height: 1.4;
}

.project-card-detailed .project-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-materials {
    font-size: 0.85rem;
}

.project-materials strong {
    color: var(--primary-navy);
    display: block;
    margin-bottom: 0.5rem;
}

.project-materials ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-materials ul li {
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
}

/* Projects Content Section */
.projects-content-section {
    padding: var(--section-padding) 0;
    background: var(--gray-100);
}

/* Services Content Section */
.services-content-section {
    padding: var(--section-padding) 0;
}

/* Why Choose Section */
.why-choose-section {
    padding: var(--section-padding) 0;
    background: var(--gray-100);
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.advantage-item i {
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

.advantage-item h5 {
    margin-bottom: 0.25rem;
    color: var(--primary-navy);
}

.advantage-item p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Service CTA Section */
.service-cta-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-navy-dark));
    color: white;
}

.service-cta-section h2 {
    color: white;
}

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

/* Projects Stats Section */
.projects-stats-section {
    padding: var(--section-padding) 0;
    background: white;
}

/* Project CTA Section */
.project-cta-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-navy-dark));
    color: white;
    text-align: center;
}

.project-cta-section h2 {
    color: white;
}

/* Project Stats */
.project-stat {
    padding: 2rem;
}

.project-stat i {
    font-size: 2.5rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.project-stat .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-cyan);
    font-family: var(--font-heading);
}

.project-stat .stat-label {
    color: var(--gray-600);
    font-size: 1rem;
}

/* Project Description Formatting */
.project-description-content {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-cyan);
}

.project-description-content .lead {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-description-content p {
    display: flex;
    align-items: flex-start;
    line-height: 1.7;
    color: var(--gray-700);
}

.project-description-content i {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.formatted-description {
    font-size: 0.95rem;
}

.project-modal-description h6 {
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 1rem;
}


/* Projects CTA Section */
.projects-cta-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-navy-dark));
    color: white;
}

.projects-cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.projects-cta-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-section {
    padding: var(--section-padding) 0;
    background: var(--gray-100);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Large item spanning 2 rows */
.gallery-item.large {
    grid-row: span 2;
}

/* Wide item spanning 2 columns */
.gallery-item.wide {
    grid-column: span 2;
}

@media (max-width: 991.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    
    .gallery-item.large {
        grid-row: span 1;
    }
    
    .gallery-item.wide {
        grid-column: span 1;
    }
}

@media (max-width: 575.98px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item {
        height: 200px;
    }
}

/* ==========================================
   SCROLL ANIMATIONS (AOS-like)
   ========================================== */

/* Base state - hidden before animation */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Fade animations */
[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-50px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade"] {
    transform: none;
}

[data-aos="fade"].aos-animate {
    opacity: 1;
}

/* Zoom animations */
[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

[data-aos="zoom-out"] {
    transform: scale(1.2);
}

[data-aos="zoom-out"].aos-animate {
    transform: scale(1);
}

/* Flip animations */
[data-aos="flip-up"] {
    transform: perspective(2500px) rotateX(-100deg);
}

[data-aos="flip-up"].aos-animate {
    transform: perspective(2500px) rotateX(0);
}

[data-aos="flip-left"] {
    transform: perspective(2500px) rotateY(-100deg);
}

[data-aos="flip-left"].aos-animate {
    transform: perspective(2500px) rotateY(0);
}

/* Slide animations */
[data-aos="slide-up"] {
    transform: translateY(100%);
}

[data-aos="slide-up"].aos-animate {
    transform: translateY(0);
}

/* Animation delays */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }
[data-aos-delay="600"] { transition-delay: 0.6s; }
[data-aos-delay="700"] { transition-delay: 0.7s; }
[data-aos-delay="800"] { transition-delay: 0.8s; }

/* Animation durations */
[data-aos-duration="300"] { transition-duration: 0.3s; }
[data-aos-duration="400"] { transition-duration: 0.4s; }
[data-aos-duration="500"] { transition-duration: 0.5s; }
[data-aos-duration="600"] { transition-duration: 0.6s; }
[data-aos-duration="800"] { transition-duration: 0.8s; }
[data-aos-duration="1000"] { transition-duration: 1s; }
[data-aos-duration="1200"] { transition-duration: 1.2s; }

/* Hero animations (always visible, different timing) */
.hero-section .animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

.hero-section .animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-section .animate-fade-in-delay-3 {
    animation: fadeIn 0.8s ease 0.6s forwards;
    opacity: 0;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Hover animations enhancement - Removed pulse animation for smoother effect */
.service-card:hover,
.service-detail-card:hover,
.category-card-large:hover,
.project-card-detailed:hover,
.value-card:hover {
    /* Smooth transform handled by individual card hover styles */
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.8s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.9s; }
.stagger-children > *:nth-child(10) { animation-delay: 1.0s; }
.stagger-children > *:nth-child(11) { animation-delay: 1.1s; }
.stagger-children > *:nth-child(12) { animation-delay: 1.2s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    [data-aos],
    .hero-section .animate-fade-in,
    .hero-section .animate-fade-in-delay,
    .hero-section .animate-fade-in-delay-2,
    .hero-section .animate-fade-in-delay-3 {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================
   PRODUCTION PAGE - INFO BLOCKS
   ========================================== */
.info-block {
    background: white;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-cyan);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.info-block:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.info-block h5 {
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 1.1rem;
}

.info-block ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.info-block ul li {
    padding: 0.4rem 0;
    color: var(--gray-700);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.info-block ul li::before {
    content: "\2713";  /* HTML entity for checkmark - safer for Android */
    color: var(--primary-cyan);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.info-block p {
    color: var(--gray-700);
    line-height: 1.7;
    margin: 0;
}

/* Application Cards (Grid) */
.application-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.application-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.application-card i {
    display: block;
}

.application-card h6 {
    color: var(--primary-navy);
    font-weight: 600;
    margin: 0.5rem 0 0.25rem 0;
    font-size: 0.95rem;
}

.application-card small {
    font-size: 0.85rem;
}

/* ==========================================
   PARTNERS
   ========================================== */
.partners-section-home,
.partners-section {
    padding: 5rem 0;
    background: var(--gray-200);
}

.partner-card,
.partner-card-home {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.partner-logo {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.partner-logo img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.partner-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-cyan);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.partner-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.partners-cta-section {
    background: var(--primary-navy);
    color: white;
    padding: 3rem 0;
}

.partners-cta-section h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: white;
}

.partners-cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ==========================================
   RESPONSIVE & OVERFLOW FIX
   ========================================== */
.container,
.container-fluid {
    max-width: 100%;
    /* overflow-x: hidden; */
}

.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Disable text selection for UI elements */
.navbar,
.navbar-brand,
.nav-link,
.btn,
.badge,
.section-label,
.stat-number,
.stat-label,
.service-card,
.category-card,
.partner-card,
.project-card,
.footer {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Images should not be selectable/draggable */
img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    pointer-events: none;
}

/* Allow clicks on carousel images for lightbox */
.carousel img {
    pointer-events: auto;
}

/* Image Slider component */
.img-slider-wrap {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.img-slider-wrap .img-slider-track {
    position: relative;
    width: 100%;
}

.img-slider-wrap .img-slider-track img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100%);
    pointer-events: none;
    z-index: 0;
}

.img-slider-wrap .img-slider-track img.active {
    position: relative;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
    animation: img-slider-in 0.6s ease both;
}

.img-slider-wrap .img-slider-track img.prev {
    transform: translateX(-100%);
    z-index: 1;
    animation: img-slider-out 0.6s ease both;
}

@keyframes img-slider-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@keyframes img-slider-out {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

.img-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 1;
}

.img-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    display: inline-block;
    transition: background 0.3s;
}

.img-slider-dot.active {
    background: #fff;
}

/* ── Page-level lightbox ── */
.page-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-lightbox-dialog {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    padding: 0 0.25rem;
}

.page-lightbox-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-lightbox-body img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
}

.page-lightbox-prev,
.page-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1;
}

.page-lightbox-prev:hover,
.page-lightbox-next:hover {
    background: rgba(0,0,0,0.8);
}

.page-lightbox-prev { left: 0.5rem; }
.page-lightbox-next { right: 0.5rem; }

/* Links in images should be clickable */
a img {
    pointer-events: auto;
}

/* Make sure sections don't overflow */
section {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Responsive media queries for horizontal scroll fix */
@media (max-width: 768px) {
    body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Hero section responsive */
    .hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Stats responsive */
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-item {
        min-width: calc(50% - 0.5rem);
    }

    /* Force single column on mobile for project/production cards */
    .row > .col-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Extra small - Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    /* Extra small - Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Extra small - Hero */
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Extra small - Cards */
    .project-card-detailed,
    .service-card,
    .partner-card {
        margin-bottom: 1rem;
    }

    /* Extra small - Production */
    .production-image-placeholder {
        height: 150px;
    }

    /* Extra small - Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-contact li {
        font-size: 0.85rem;
    }

    .footer h5 {
        font-size: 0.95rem;
    }

    /* Extra small - Navbar */
    .navbar-brand strong {
        font-size: 1rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    /* Extra small - Page header */
    .page-header {
        padding: 2rem 0 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }
}

/* ==========================================
   PRODUCTION PAGE
   ========================================== */
.production-section {
    background: var(--white);
}

.production-section h2 i,
.production-section h3 i,
.production-section h5 i {
    color: var(--primary-cyan);
    margin-right: 0.5rem;
}

.production-section .table {
    font-size: 0.9rem;
}

.production-section .table thead {
    background: var(--gray-100);
    color: var(--primary-navy);
    font-weight: 600;
}

.production-section .accordion-button {
    font-weight: 600;
    color: var(--primary-navy);
}

.production-section .accordion-button:not(.collapsed) {
    background-color: var(--primary-cyan);
    color: white;
}

.production-section .accordion-button:not(.collapsed) i {
    color: white;
}

.production-section .accordion-body {
    background: var(--gray-100);
}

.production-section img {
    border: 1px solid var(--gray-200);
}

.production-section .small.text-warning {
    font-size: 0.75rem;
    font-style: italic;
}

/* Placeholder slike */
.production-image-placeholder {
    height: 220px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--gray-300);
    transition: all var(--transition-normal);
}

.production-image-placeholder:hover {
    background: var(--gray-200);
    border-color: var(--primary-cyan);
}

.production-image-placeholder i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.production-image-placeholder p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* ==========================================
   LOCATIONS PAGE
   ========================================== */
.locations-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.location-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    flex: 1;
    transition: all var(--transition-normal);
}

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

.location-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-navy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.location-icon i {
    font-size: 1.75rem;
    color: white;
}

.location-card h3 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.location-subtitle {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.location-detail-item i {
    color: var(--primary-cyan);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.location-detail-item a {
    color: var(--primary-navy);
    font-weight: 600;
}

.location-detail-item a:hover {
    color: var(--primary-cyan);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    flex: 1;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    display: block;
}

.locations-section .row {
    align-items: stretch;
}
.locations-section .row [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Locations Info Section */
.locations-info-section {
    padding: var(--section-padding) 0;
    background: var(--gray-100);
}

/* Vertikalno poravnanje naslova - REŠENJE PROBLEMA */
.locations-info-section .row {
    align-items: center;
}

.locations-info-section h2,
.locations-info-section h3 {
    margin-top: 0;
    padding-top: 0;
}

.contact-cta-box {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-cta-box h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.contact-cta-box p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Responsive - Locations */
@media (max-width: 991.98px) {
    .location-card {
        padding: 2rem;
    }

    .contact-cta-box {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .location-card {
        padding: 1.5rem;
    }

    .map-container iframe {
        height: 300px;
    }

    .contact-cta-box {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .location-icon {
        width: 50px;
        height: 50px;
    }

    .location-icon i {
        font-size: 1.5rem;
    }

    .location-card h3 {
        font-size: 1.25rem;
    }

    .map-container iframe {
        height: 250px;
    }
}

/* ==========================================
   PERFORMANCE: content-visibility for
   below-the-fold sections
   ========================================== */
.about-preview-section,
.services-section,
.partners-section-home,
.projects-section,
.cta-section,
.gallery-section,
.values-section,
.production-section,
.locations-section,
.locations-info-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

/* Ensure gallery images reserve space */
.gallery-item img,
.project-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Map container reserve space */
.map-container {
    aspect-ratio: 4 / 3;
    min-height: 300px;
}

/* Map click-to-load placeholder */
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 350px;
    background: linear-gradient(135deg, #f0f2f5 0%, #e8eaed 100%);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    border: 2px dashed #ccc;
}

.map-placeholder:hover {
    background: linear-gradient(135deg, #e8eaed 0%, #dde0e4 100%);
    border-color: var(--primary-cyan);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.map-placeholder p {
    color: var(--primary-navy);
    font-weight: 500;
    margin: 0;
}

