:root {
    --primary: #004445;
    --primary-dark: #004445;
    --secondary: #2A5C99;
    --light: #F8F9FA;
    --dark: #212529;
    --success: #28A745;
}

#home, #o-nama, #banke {
    scroll-margin-top: 30vh;
  }

#usluge {
    scroll-margin-top: 20vh;
  }
  

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 15px;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
/*
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}*/

/* Osnovni stilovi za header */
/* Header osnovni stilovi */
/* Osnovni stilovi */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

/* Hamburger dugme */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
    z-index: 1001;
    margin-left: auto; /* Pomera dugme u desni ugao */
}

/* Glavni meni - sakriven po defaultu */
.main-nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}


/* Prikaz menija kada je aktivan */
.main-nav.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Lista stavki */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.main-nav ul li {
    padding: 14px 24px;
    border-bottom: 1px solid #e0e0e0;
    text-align: end;
}

.main-nav ul li:last-child {
    border-bottom: none;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px 0; /* Dodajemo prostor oko teksta */
}

.main-nav ul li a:hover {
    color: #1e5b4b;
}

/* Ikone */
.close-icon {
    display: none;
}

/* Responsivnost - ako kasnije želite drugačiji prikaz na mobilnim */
@media (max-width: 768px) {
    .main-nav {
        width: 100%;
    }
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.logo-img {
    height: auto; 
    max-height: 40px; 
    width: auto; 
}


nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: #004445;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2b4450;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* Hero sekcija */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1601597111158-2fceff292cdc?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    background-size: cover;
    color: #fff;
    padding: 120px 0; 
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2; 
}

.hero-content h2 {
    font-size: 2.2em;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #f1f1f1; 
}

.hero-content p {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #f1f1f1;
}

.hero-content .intro-text {
    font-weight: 400;
}

.cta-btn {
    background-color: #004445;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-top: 30px;
    width: 230px;
}

.cta-btn:hover {
    background-color: #497285;
    transform: translateY(-5px);
}

/* Usluge */
#usluge {
    margin-top: 80px;
    background-color: #fff;
}

.section-title {
    margin-top: 50px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #333;
    position: relative;
}

.section-title-contactus {
    margin-top: 10px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color:#004445;
    margin: 15px auto 0;
    border-radius: 2px;
}

.usluge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.usluga-card {
    background-color: var(--light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px #004445;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    height: 100%;
}

.usluga-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px #719192;
}

.usluga-icon {
    background-color: #004445;
    color: white;
    font-size: 2.8rem;
    padding: 30px;
    text-align: center;
}

.usluga-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.usluga-content h3 {
    color: #004445;
    margin-bottom: 15px;
    font-size: 20px;
}

.usluga-content p {
    color: #555;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.usluga-btn {
    background-color: #004445;
    color: #fff;
    padding: 12px 0;
    font-size: 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: block;
    text-align: center;
    margin-top: auto;
    width: 100%;
}



.naslov-visi h3 {
    margin-top: -8px;
}


/* Kalkulator */
#kalkulator {
  font-family: Arial, sans-serif;
  background-color: #004445;
  color: black;
  padding: 40px 20px;
  text-align: center;
  margin-top: 70px;
}

#kalkulator .container {
  background: #fff;
  color: black;
  border-radius: 10px;
  padding: 30px;
  max-width: 550px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: left;
}

#kalkulator .logo {
  display: block;
  margin: 0 auto 20px;
  width: 150px;
}

#kalkulator .section-title {
  color: #004445;
  margin-bottom: 10px;
  text-align: center;
}

#kalkulator .form-group {
  margin-bottom: 20px;
  color: #004445;
}

#kalkulator .form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

#kalkulator input[type="text"],
#kalkulator input[type="number"],
#kalkulator select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

#kalkulator button {
  background-color: #004445;
  color: white;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#kalkulator button:hover {
  background-color: #497285;
}

#kalkulator h3 {
  margin-top: 30px;
  color: #333;
}

#kalkulator #result {
  font-size: 16px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
  line-height: 1.6;
  color: #004445;
}

/* Responsivnost */
@media (max-width: 600px) {
  #kalkulator .container {
    padding: 20px;
  }

  #kalkulator input,
  #kalkulator button {
    font-size: 15px;
  }
}


#privacyConsent + label {
    color: rgb(255, 255, 255); 
}

#privacyConsent + label a{
    color: #dbd8e3;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    margin-top: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2c786c;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

#contactForm input{
    border-color: #004445;
}

#contactForm textarea {
    border-color: #004445;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: #ffffff;
    opacity: 1; 
}


.range-slider {
    width: 100%;
    color: #004445;
    margin: 15px 0;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 14px;
    color: #004445;;
}

.btn-calculate {
    background-color: #004445;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-calculate:hover {
    background-color: #497285;
}

.result-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f8ff;
    border-radius: 5px;
    display: none;
}

.result-title {
    color:#3c4245;
    margin-bottom: 15px;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #2b4450;
}

/* Banke partneri */
#banke {
    padding: 60px 0;
    background-color: white;
}

.banke-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.banka-logo {
    width: 150px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.banka-logo:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Kontakt */
#kontakt {
    padding: 80px 0;
    background-color: #004445;
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
}

.section-title-contactus {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #fff;
    position: relative;
}

.section-title-contactus::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #fff;
    margin: 15px auto 0;
    border-radius: 2px;
}

.contact-info h3 {
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 18px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    padding: 20px; 
    box-sizing: border-box;  
}

.contact-form a {
    color: #004445;
    text-decoration: none; 
}

.contact-form a:hover {
    color: #004445;
    text-decoration: underline;
}


.contact-info p {
    color: #e0e0e0;
    margin: 6px 0;
    font-size: 15px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #cccccc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.contact-form button {
    background-color: #2b4450;
    margin-top: 20px; 
    justify-content: center;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.contact-form button:hover {
    background-color:#36626a;
    transform: translateY(-3px);
}

.button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%; 
}

#submitBtn {
    background-color: #dbd8e3; /* promenite boju po želji */
    color: #004445; /* boja teksta */
}


#privacyConsent:checked ~ #submitBtn {
    background-color: #dbd8e3;
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
}
/*
.contact-form .form-group {
    display: flex;
    align-items: center;
    gap: 12px; 
    margin-top: 15px; 
}*/

.contact-form input[type="checkbox"] {
    transform: scale(1.5); 
    margin: 0; 
}

.contact-form label {
    font-size: 12.5px; 
    color: #333; 
    line-height: 1.5; 
    display: inline-block; 
}


/* Responsivnost */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}


/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-inline: auto;
}

.footer-logo {
    font-size: 26px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    display: inline-block;
    text-decoration: none;
}

.footer-about p {
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

.social-links a {
    color: #aaa;
    font-size: 18px;
    margin-right: 12px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

.footer-links h4 {
    color: white;
    margin-bottom: 18px;
    font-size: 18px;
    position: relative;
}

.footer-links h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #004445;
    margin-top: 8px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Dodatno: mala sekcija ispod footera za copyright */
.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #888;
    border-top: 1px solid #333;
    padding-top: 15px;
}

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

.social-links a {
    color: white;
    font-size: 20px;
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}



/* Responsivnost */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        padding: 15px 0;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
}



@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .usluge-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .calculator-container {
        padding: 30px 20px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }

 /* About Section */
.about-section {
    background-color: #f7f7f7;
    padding: 4rem 2rem; /* Povećan razmak za bolji vizuelni dojam */
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Blaga senka za dublji izgled */
    border-radius: 10px;
    max-width: 1200px; /* Maksimalna širina */
}

.about-section .container {
    max-width: 900px; /* Manja širina za bolje poravnanje sa sadržajem */
    margin: 0 auto;
    padding: 0 20px;
}

.about-section .section-title {
    color: #004445; /* Tvoja brend boja */
    font-size: 2.5rem; /* Veći font za isticanje naslova */
    font-weight: 600;
    margin-bottom: 2rem; /* Povećan razmak ispod naslova */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px; /* Razmak između slova za eleganciju */
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.8; /* Povećan razmak između redova za bolju čitljivost */
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify;
    font-family: 'Arial', sans-serif; /* Moderni font za tekst */
    transition: all 0.3s ease; /* Efekat pri hoveru */
}

.about-section p:hover {
    color: #555; /* Tamnija boja teksta pri hoveru */
    text-decoration: underline; /* Podvlačenje pri hoveru */
}

/* Responsivnost za manje ekrane */
@media screen and (max-width: 768px) {
    .about-section {
        padding: 3rem 1rem;
    }

    .about-section .section-title {
        font-size: 2rem; /* Manji font za mobilne uređaje */
    }

    .about-section p {
        font-size: 1rem; /* Manji font za mobilne uređaje */
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 768px) {
    .form-group {
        flex-direction: column; /* Postavljanje checkboxa i teksta u vertikalni raspored */
        align-items: flex-start; /* Poravnanje na levoj strani */
    }

    #privacyConsent {
        width: 25px; /* Veći checkbox za mobilne uređaje */
        height: 25px;
    }

    label {
        font-size: 14px; /* Manji font za mobilne uređaje */
        line-height: 1.5; /* Bolja čitljivost na manjim ekranima */
    }
}

/* Za veće ekrane, vraćamo originalne postavke */
@media (min-width: 769px) {
    .form-group {
        flex-direction: row; /* Pomeranje checkboxa i teksta u horizontalnu liniju */
    }

    #privacyConsent {
        width: 18px; /* Standardna veličina checkboxa */
        height: 18px;
    }

    label {
        font-size: 16px; /* Standardni font za veće ekrane */
    }
}


     
}

