/* ============================================
   AUTOMATIKS - Professional Website Styles
   ============================================ */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --success-color: #198754;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --text-muted: #6c757d;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --transition: all 0.3s ease;
}

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

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #212529;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

/* Language Switcher */
.lang-switcher {
    padding: 3px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 50px !important;
}

.lang-toggle-btn {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
}

.lang-toggle-btn.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3) !important;
}

.lang-toggle-btn:hover:not(.active) {
    background-color: rgba(13, 110, 253, 0.08) !important;
    color: var(--primary-color) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--dark-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    color: var(--dark-color);
}

/* Footer logo */
.footer h5 img {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    width: 80%;
}

.navbar-nav .btn-primary {
    transition: var(--transition);
}

.navbar-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    height: calc(100vh - 80px);
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.hero-section .container-fluid {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

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

.hero-content {
    padding: 80px 60px;
    color: white;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    opacity: 1;
    visibility: visible;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: white;
    opacity: 1;
    visibility: visible;
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    opacity: 1;
    visibility: visible;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
    visibility: visible;
}

.hero-cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(180deg, #0a58ca 0%, #0d6efd 100%);
    color: white;
    border: none;
    transition: var(--transition);
    margin-top: 1rem;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

.hero-image-wrapper {
    background-image: url('../../izmene/1 automatiks ormar.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Dark overlay on image */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   Animation Classes
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
}

.animate-on-scroll.animated {
    opacity: 1;
    visibility: visible;
}

.hero-badge {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-badge.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Old hero-title styles removed - using new hero section styles */

.hero-form {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.hero-form.animated {
    opacity: 1;
    transform: translateY(0);
}

.hero-stats {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease 0.4s, transform 1s ease 0.4s;
}

.hero-stats.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Old hero-image-wrapper animation removed - using new hero section styles */

.hero-main-image {
    position: relative;
    z-index: 2;
}

.hero-main-image img {
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
    opacity: 0;
    transform: scale(0.9);
    animation-delay: 0.5s;
}

.hero-image-wrapper.animated .hero-main-image img {
    opacity: 1;
    transform: scale(1);
    animation: float 6s ease-in-out infinite 0.5s;
}

.hero-main-image:hover img {
    transform: scale(1.05);
}

.feature-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    z-index: 3;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-badge.animated {
    opacity: 1;
    transform: scale(1);
    animation: pulse 2s ease-in-out infinite 1s;
}

.feature-badge-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.feature-badge-2 {
    top: 50%;
    right: -10%;
    animation-delay: 0.5s;
}

.feature-badge-3 {
    bottom: 10%;
    right: 5%;
    animation-delay: 1s;
}

.badge-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-content {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* ============================================
   Features Section
   ============================================ */

.industries-section {
    position: relative;
    max-width: 100%;
    overflow-x: hidden;
}

.industries-title {
    font-size: 2.5rem;
}

.industry-card {
    transition: var(--transition);
    border-radius: 1rem;
    background-color: #f5f6f8;
}

.industry-image-wrapper img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.industry-heading {
    font-size: 1.25rem;
}

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

.features-section {
    position: relative;
}

/* ============================================
   Why Us Section
   ============================================ */

.whyus-section {
    background: linear-gradient(135deg, #06356f, #0b4a9a);
    color: #ffffff;
    max-width: 100%;
    overflow-x: hidden;
}

.whyus-title {
    font-size: 2.7rem;
}

.whyus-list li span {
    font-size: 1.05rem;
}

.whyus-check-icon {
    font-size: 1.25rem;
    color: #4cd964;
    margin-top: 0.2rem;
}

.whyus-cta-box {
    background: rgba(10, 88, 202, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.whyus-cta-box h3 {
    font-size: 1.6rem;
}

.whyus-cta-box p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.whyus-cta-btn {
    background: #ffffff;
    color: #0b4a9a;
    border: none;
    padding-inline: 2.5rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.whyus-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #0b4a9a;
}

.whyus-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .whyus-title {
        font-size: 2.1rem;
    }
}

.feature-card {
    transition: var(--transition);
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease, var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-flow {
    font-size: 1.25rem;
}

/* ============================================
   Products Section
   ============================================ */

.products-section {
    position: relative;
}

.product-showcase-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-showcase-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.product-showcase-card:hover {
    transform: scale(1.02);
}

.product-card {
    transition: var(--transition);
    cursor: pointer;
}

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

.product-card img {
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-image-wrapper {
    margin-top: auto;
}

/* ============================================
   Easy Control Section
   ============================================ */

.easy-control-section {
    position: relative;
}

.control-card {
    transition: var(--transition);
}

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

.feature-number {
    width: 50px;
    height: 50px;
    font-weight: 700;
    font-size: 1.25rem;
}

/* ============================================
   About Section
   ============================================ */

.about-section {
    position: relative;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    transition: var(--transition);
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-badge {
    bottom: -20px;
    right: -20px;
    max-width: 250px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease 0.5s both;
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
    position: relative;
}

.service-card {
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color) !important;
    color: white !important;
}

/* ============================================
   Download App Section
   ============================================ */

.download-app-section {
    position: relative;
}

.download-app-section a {
    transition: var(--transition);
    display: block;
}

.download-app-section a:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.download-app-section a:hover i {
    animation: bounce 0.6s ease;
}

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

.avatar-group {
    display: flex;
    gap: -10px;
}

.avatar {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: -10px;
    border: 2px solid white;
}

.avatar:first-child {
    margin-left: 0;
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
    color: var(--primary-color) !important;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
    position: relative;
}

.contact-form {
    transition: var(--transition);
}

.contact-item {
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    position: relative;
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

/* ============================================
   Animations
   ============================================ */

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

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

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

/* Animation classes based on data-animation attribute */
.animate-on-scroll[data-animation="fadeInUp"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll[data-animation="fadeInUp"].animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll[data-animation="fadeInRight"] {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll[data-animation="fadeInRight"].animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll[data-animation="fadeInLeft"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll[data-animation="fadeInLeft"].animated {
    opacity: 1;
    transform: translateX(0);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Smooth Scroll
   ============================================ */

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

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .feature-badge {
        position: relative;
        margin: 0.5rem 0;
    }
    
    .feature-badge-1,
    .feature-badge-2,
    .feature-badge-3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    .about-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        padding: 60px 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: calc(100vh - 80px);
        min-height: 500px;
    }
    
    .hero-content {
        padding: 40px 30px;
        text-align: left;
        align-items: flex-start;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-cta-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: auto;
        max-width: 100%;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .footer h5 img {
        height: 24px;
    }
    
    /* Hide about section image and badge on mobile */
    .about-image-wrapper {
        display: none !important;
    }
    
    .about-badge {
        display: none !important;
    }
    
    /* Center about section content on mobile */
    .about-section .col-lg-6:first-child {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 30px 20px;
        text-align: left;
        align-items: flex-start;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   Catalog Page Styles
   ============================================ */

.catalog-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.category-filter {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: white;
}

.category-filter .btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   Product Detail Page Styles
   ============================================ */

.product-detail-section {
    min-height: 60vh;
}

.product-images .main-image img {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
}

.thumbnail-images .thumbnail {
    transition: var(--transition);
}

.thumbnail-images .thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail-images .thumbnail.active img {
    border-width: 3px !important;
}

.product-info h1 {
    color: var(--dark-color);
}

.product-specifications table {
    font-size: 0.95rem;
}

.product-specifications th {
    font-weight: 600;
}

.features-list {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* ============================================
   Utility Classes
   ============================================ */

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

/* ============================================
   Loading Animation
   ============================================ */

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   Product Grid
   ============================================ */

.product-grid-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    display: flex;
}

.product-grid-item:nth-child(1) { animation-delay: 0.1s; }
.product-grid-item:nth-child(2) { animation-delay: 0.2s; }
.product-grid-item:nth-child(3) { animation-delay: 0.3s; }
.product-grid-item:nth-child(4) { animation-delay: 0.4s; }
.product-grid-item:nth-child(5) { animation-delay: 0.5s; }
.product-grid-item:nth-child(6) { animation-delay: 0.6s; }

/* Product Card Styles */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .product-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    min-height: 6rem;
    flex-grow: 0;
    flex-shrink: 0;
}

.product-card .product-image-wrapper {
    flex-shrink: 0;
}

.product-card .product-category {
    flex-shrink: 0;
}

.product-card h5 {
    flex-shrink: 0;
}

.product-card .btn {
    margin-top: auto;
    flex-shrink: 0;
}

/* ============================================
   Form Styles
   ============================================ */

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    transition: var(--transition);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

