body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

a {
    text-decoration: none;
}

/* ── NAVBAR ── */
nav {
    background: linear-gradient(90deg,
        #1a3a5c 0%,
        #0d2740 45%,
        #071a2e 75%,
        #040d16 100%
    );
}

.brand-text {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffffff;
    text-transform: uppercase;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-right: 15px;
    transition: 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
    opacity: 0.75;
}

.nav-link.active {
    border-bottom: 2px solid #fff;
    padding-bottom: 4px;
}

.navbar-brand img {
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}

.navbar-brand img:hover {
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.4));
    transform: scale(1.05);
}

.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background-color: #0d2740;
}

.dropdown-item {
    color: #fff;
}

.dropdown-item:hover {
    background-color: #1a3a5c;
    color: #fff;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── HERO ── */
#hero {
  background: linear-gradient(135deg, rgba(7,26,46,0.82) 0%, rgba(13,39,64,0.70) 100%),
              url('/assets/img/hero.jpeg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  color: #fff;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

/* NAPOMENA: Zameniti Unsplash sliku sa pravom slikom vaših proizvoda:
   background: url('../assets/img/hero.jpg') no-repeat center center; */

#hero-content {
  background-color: rgba(4, 13, 22, 0.55);
  border-radius: 8px;
  padding: 40px 30px;
  max-width: 780px;
  margin: 0 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

#hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

#hero p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  opacity: 0.92;
}

#hero a.btn {
  font-size: 0.9rem;
  padding: 10px 22px;
}

.btn-primary-custom {
    background-color: #1a3a5c;
    color: #fff;
    border: 2px solid #2a5080;
    transition: background 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #2a5080;
    color: #fff;
}

/* ── INFRASTRUCTURE / FEATURES ── */
#infrastructure {
    background-color: #ffffff;
}

.infra-title {
    font-size: 1.9rem;
    color: #0d2740;
}

.infra-text {
    color: #555;
    font-size: 1.05rem;
}

.feature-box {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #1a3a5c;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}

.infra-icon {
    font-size: 2.5rem;
    color: #1a3a5c;
    margin-bottom: 16px;
    display: block;
}

/* ── DARK MIDDLE SECTION ── */
#what-is-tetra {
    background: linear-gradient(135deg, rgba(7,26,46,0.88) 0%, rgba(13,39,64,0.85) 100%),
                url('https://images.unsplash.com/photo-1565193566173-7a0ee3dbe261?w=1600&q=80') no-repeat center center;
    background-size: cover;
    min-height: 380px;
    display: flex;
    align-items: center;
}

/* NAPOMENA: Zameniti pozadinsku sliku sa realnom fotografijom postrojenja */

#what-is-tetra .overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 60px 20px;
}

.tetra-text {
    font-size: 1.05rem;
    max-width: 720px;
    opacity: 0.92;
    line-height: 1.8;
}

/* ── ASORTIMAN / PRODUCTS ── */
#wifi-section {
    background-color: #f8fafc;
}

.product-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e0e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.1);
}

.product-icon {
    font-size: 2.8rem;
    color: #1a3a5c;
    display: block;
}

.btn-outline-primary {
    border-color: #1a3a5c;
    color: #1a3a5c;
}

.btn-outline-primary:hover {
    background-color: #1a3a5c;
    border-color: #1a3a5c;
    color: #fff;
}

/* ── SEKTORI / KUPCI ── */
#network-users .card {
    border-radius: 14px;
    transition: transform 0.3s ease;
}

#network-users .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1) !important;
}

.sector-icon {
    font-size: 2.5rem;
    color: #1a3a5c;
    display: block;
}

/* ── CTA BAR ── */
#cta-bar {
    background: linear-gradient(90deg, #0d2740 0%, #1a3a5c 100%);
}

/* ── FOOTER ── */
#footer-main,
#footer-main .container {
    background-color: #f8f9fa;
}

#copyright {
    background-color: #0d2740;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.colorhover:hover {
    color: #1a3a5c !important;
    text-decoration: underline;
}

/* ── LANGUAGE SWITCH (ako zatreba) ── */
.lang-switch {
  font-size: 14px;
  letter-spacing: 1px;
  user-select: none;
  white-space: nowrap;
}

.lang-switch .lang {
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity .2s ease;
}

.lang-switch .lang:hover {
  opacity: 1;
}

.lang-switch .lang.active {
  opacity: 1;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang-switch .sep {
  color: #fff;
  opacity: 0.6;
  margin: 0 6px;
}

/* ── PAGE HERO (unutrašnje stranice) ── */
#pages-hero {
    background: linear-gradient(135deg, #071a2e 0%, #0d2740 60%, #1a3a5c 100%);
    min-height: 220px;
    padding: 60px 20px;
}

#pages-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

#pages-hero .lead {
    font-size: 1.05rem;
    opacity: 0.85;
}

/* ── SECTION TITLE ── */
.section-title {
    color: #0d2740;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #1a3a5c;
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ── ABOUT IMAGE PLACEHOLDER ── */
.about-img-placeholder {
    width: 100%;
    min-height: 320px;
    background-color: #e8eef4;
    border: 2px dashed #b0c4d8;
}

/* ── PRODUCT IMAGE WRAP ── */
.product-img-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #e0e8f0;
    transition: box-shadow 0.3s ease;
}
.product-img-wrap:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.product-img-wrap img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 6px;
}

/* ── PRICE TABLE ── */
.price-table thead {
    background-color: #0d2740;
    color: #fff;
}
.price-table thead th {
    font-weight: 600;
    font-size: 0.9rem;
    border-color: #1a3a5c;
}
.price-table tbody tr:hover {
    background-color: #f0f6ff;
}
.price-table td, .price-table th {
    vertical-align: middle;
    font-size: 0.88rem;
}
.price-table .table-secondary td {
    background-color: #e8eef5;
    color: #0d2740;
    font-size: 0.9rem;
}

/* ── CATALOG TABS ── */
.catalog-tabs .nav-link {
    color: #0d2740 !important;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    border: 1px solid #dee2e6;
    margin-right: 4px;
}
.catalog-tabs .nav-link.active {
    background-color: #0d2740 !important;
    color: #fff !important;
    border-color: #0d2740;
    border-bottom-color: #fff;
}
.catalog-tabs .nav-link:hover:not(.active) {
    background-color: #e8eef5;
    opacity: 1;
}

/* ── DARK BUTTON ── */
.btn-dark-custom {
    background-color: #0d2740;
    color: #fff;
    border: none;
    transition: background 0.3s;
}
.btn-dark-custom:hover {
    background-color: #1a3a5c;
    color: #fff;
}

/* ── CONTACT PAGE ── */
.contact-card {
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #1a3a5c;
    margin-bottom: 12px;
}
.contact-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.contact-icon {
    font-size: 1.1rem;
    color: #1a3a5c;
    min-width: 20px;
    text-align: center;
}
.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 0;
    font-weight: 600;
}
.contact-value {
    font-weight: 500;
    color: #0d2740;
    margin-bottom: 0;
    font-size: 0.95rem;
    padding-left: 30px;
}
.contact-value a {
    color: #1a3a5c;
    text-decoration: none;
}
.contact-value a:hover {
    text-decoration: underline;
}
.firma-info {
    background: #e8eef5;
    border: 1px solid #c8d8e8;
}
.contact-form-wrap {
    background: #fff;
    border: 1px solid #e0e8f0;
}
.contact-form-wrap .form-control,
.contact-form-wrap .form-select {
    border-color: #c8d8e8;
    font-size: 0.9rem;
}
.contact-form-wrap .form-control:focus,
.contact-form-wrap .form-select:focus {
    border-color: #1a3a5c;
    box-shadow: 0 0 0 0.2rem rgba(26,58,92,0.15);
}
.map-wrap {
    border: 1px solid #e0e8f0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 1.5rem;
    }
    #hero p {
        font-size: 0.95rem;
    }
    #hero-content {
        padding: 28px 18px;
    }
    .tetra-text {
        font-size: 0.95rem;
    }
}

@media (min-width: 992px) {
    #hero h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 576px) {
    .price-table td, .price-table th {
        font-size: 0.75rem;
        padding: 4px 5px;
    }
}