/* Bootstrap Color Customization - Black/Yellow Theme */
:root {
    /* Bootstrap Primary Color Override */
    --bs-primary: #FFD700;
    --bs-primary-rgb: 255, 215, 0;
    --bs-warning: #FFD700;
    --bs-warning-rgb: 255, 215, 0;
    
    /* Black & Gray Palette */
    --black: #000000;
    --dark-gray: #1a1a1a;
    --gray: #2d2d2d;
    --medium-gray: #4a4a4a;
    --light-gray: #808080;
    --lighter-gray: #e5e5e5;
    --lightest-gray: #f5f5f5;
    --white: #ffffff;
    
    /* Yellow Accent */
    --yellow: #FFD700;
    --yellow-dark: #FFC107;
    --yellow-hover: #FFE44D;
    
    /* Semantic Colors */
    --primary-color: var(--yellow);
    --primary-dark: var(--yellow-dark);
    --text-color: var(--black);
    --text-light: var(--medium-gray);
    --bg-color: var(--white);
    --bg-light: var(--lightest-gray);
    --bg-dark: var(--dark-gray);
    --border-color: var(--lighter-gray);
    --success-color: #10b981;
    --error-color: #ef4444;
}

/* Bootstrap Button Customization */
.btn-primary {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--yellow-hover);
    border-color: var(--yellow-hover);
    color: var(--black);
}

.btn-primary:active {
    background-color: var(--yellow-dark);
    border-color: var(--yellow-dark);
}

/* Bootstrap Form Control Focus */
.form-control:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

/* Bootstrap Navbar Link Hover */
.navbar-nav .nav-link {
    color: var(--medium-gray);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: var(--black);
    background-color: rgba(255, 215, 0, 0.1);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link.active {
    color: var(--black);
    background-color: rgba(255, 215, 0, 0.15);
}

.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Bootstrap Text Warning (Yellow) */
.text-warning {
    color: var(--yellow) !important;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Bootstrap navbar already handles most styling */
.navbar {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

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

/* Flash Messages */
.flash-messages {
    padding: 1rem;
}

.flash {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.flash-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid var(--success-color);
}

.flash-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid var(--error-color);
}

/* Hiring Banner */
.hero {
    position: relative;
}

.hiring-banner {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
    color: var(--black);
    padding: 0.4rem 1rem;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    transform: translateY(100%);
    animation: slide-in-from-right 0.8s ease-out 0.5s forwards, 
               subtle-bounce 4s ease-in-out 1.5s infinite;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    border-left: 2px solid rgba(0, 0, 0, 0.1);
}

.hiring-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.hiring-banner-link:hover {
    opacity: 0.8;
    color: var(--black);
    text-decoration: none;
}

.hiring-banner-text {
    display: inline-block;
    animation: text-glow 2s ease-in-out infinite;
}

.hiring-banner-arrow {
    display: inline-block;
    font-size: 1rem;
    animation: arrow-pulse 1.5s ease-in-out infinite;
}

@keyframes slide-in-from-right {
    0% {
        transform: translateX(100%) translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0) translateY(100%);
        opacity: 1;
    }
}

@keyframes subtle-bounce {
    0%, 100% {
        transform: translateY(100%);
    }
    50% {
        transform: translateY(95%);
    }
}

@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    50% {
        text-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    }
}

@keyframes arrow-pulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(3px);
        opacity: 0.7;
    }
}

/* Hero Section */
.hero {
    background-image: url('../images/konektor-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 20px;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.2;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    color: white;
    margin: 0;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Buttons - Bootstrap handles most styling, custom hover effects */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Page Header */
.page-header {
    background-image: url('../images/header-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--yellow) 50%, transparent 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    color: white;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--yellow);
    border-radius: 2px;
}

.page-header .display-5 {
    font-size: 3rem;
    color: white;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
    position: relative;
    display: inline-block;
}

.page-header .display-5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--yellow);
    border-radius: 2px;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.content-section.bg-light {
    background-image: url('../images/mehanizacija.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.content-section.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(100, 100, 100, 0.6);
    z-index: 0;
}

.content-section.bg-light .container {
    position: relative;
    z-index: 1;
}

.content-section.bg-light h2.display-5 {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.5);
}

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

.content-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: var(--text-color);
}

.content-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: justify;
}

.content-section p {
    text-align: justify;
}

.content-section p.lead.text-center {
    text-align: center !important;
}

.content-text h2:first-child {
    margin-top: 0;
}

/* Features Grid */
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

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

/* Headings on white/light backgrounds */
h2.display-5,
h2.fw-bold {
    color: #1a1a1a !important;
    font-weight: 700;
}

h3.fw-bold {
    color: #1a1a1a;
    font-weight: 700;
}

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

.feature-card {
    background-color: #f5f5f5;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s;
    color: #1a1a1a;
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.feature-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.feature-card p {
    color: #4a4a4a;
    margin-bottom: 0;
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid #2d2d2d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, border-left-color 0.3s;
    text-align: left;
}

.service-card:hover {
    border-left-width: 5px;
    border-left-color: #1a1a1a;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.service-card p {
    color: #4a4a4a;
    margin-bottom: 0;
    text-align: left;
}

.cta-section {
    text-align: center;
    padding: 3rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
}

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

.cta-section p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.contact-info p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.contact-info-section {
    height: 100%;
}

.contact-header-section {
    flex-wrap: nowrap;
}

.contact-logo {
    flex-shrink: 0;
}

.contact-logo-img {
    width: 120px;
    height: auto;
}

.contact-header-text {
    flex: 1;
}

.contact-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-details h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.contact-info-item {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.contact-info-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

/* Form controls - Bootstrap handles styling */

.form-group textarea {
    resize: vertical;
}

/* Footer - Bootstrap classes handle most styling */

/* Google Maps Section */
.map-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0.5rem;
}

/* Reference Section */
.reference-image-box {
    border: 1px solid var(--lighter-gray);
}

.reference-image-box img {
    width: 100%;
    max-width: 100%;
}

/* Reference title is now a regular heading, no special styling needed */

/* Reference Section */
.reference-section {
    width: 100%;
}

.reference-section p {
    text-align: justify;
}

/* Carousel Customization */
#referenceCarousel {
    position: relative;
    width: 100%;
}

#referenceCarousel .carousel-control-prev,
#referenceCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--black);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

#referenceCarousel .carousel-control-prev {
    left: 15px;
}

#referenceCarousel .carousel-control-next {
    right: 15px;
}

#referenceCarousel .carousel-control-prev:hover,
#referenceCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: var(--gray);
}

#referenceCarousel .carousel-indicators {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
}

#referenceCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    border: none;
    margin: 0 5px;
}

#referenceCarousel .carousel-indicators button.active {
    background-color: var(--black);
}

/* Career Position Description */
.position-description {
    max-height: 1.5em;
    overflow: hidden;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Gallery Section */
.gallery-section {
    padding: 0;
    overflow: hidden;
}

.gallery-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--light-gray) transparent;
}

.gallery-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--light-gray);
    border-radius: 4px;
}

.gallery-grid {
    display: flex;
    gap: 1rem;
    padding: 2rem 1rem;
    min-width: max-content;
}

.gallery-item {
    flex-shrink: 0;
    position: relative;
}

.gallery-placeholder {
    background-color: var(--lighter-gray);
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-height: 400px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}


/* Responsive Design - Bootstrap handles most responsive behavior */
/* Tablet resolutions */
@media (min-width: 769px) {
    /* Ensure buttons don't overlap content on tablets */
    #referenceCarousel .carousel-item .container {
        padding-left: 70px;
        padding-right: 70px;
    }
    
    #referenceCarousel .carousel-control-prev {
        left: 15px;
    }
    
    #referenceCarousel .carousel-control-next {
        right: 15px;
    }
}


@media (max-width: 768px) {
    .hiring-banner {
        padding: 0.35rem 0.8rem;
    }
    
    .hiring-banner-link {
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .hiring-banner-arrow {
        font-size: 0.9rem;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-content {
        padding: 2rem 20px;
    }
    
    #referenceCarousel .carousel-control-prev,
    #referenceCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    #referenceCarousel .carousel-control-prev {
        left: 5px;
    }
    
    #referenceCarousel .carousel-control-next {
        right: 5px;
    }
    
    /* Ensure buttons don't overlap content on mobile */
    #referenceCarousel .carousel-item .container {
        padding-left: 50px;
        padding-right: 50px;
    }
    
    .gallery-image {
        max-height: 250px;
    }
    
    .gallery-grid {
        padding: 1.5rem 1rem;
        gap: 0.75rem;
    }
    
    .map-container {
        height: 350px;
        margin-top: 1rem;
    }
    
    
    .contact-details {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .contact-details h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .contact-info-item {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .page-header {
        padding: 2.5rem 0;
    }
    
    .page-header h1,
    .page-header .display-5 {
        font-size: 2rem;
    }
    
    .page-header h1::after,
    .page-header .display-5::after {
        width: 40px;
        height: 2px;
        bottom: -8px;
    }
}

