/*
	Document: style.css
	Theme Name: Miloss Digital Portofilo
	Authors: Miloš Stojanović
*/

/* Font Awesome 500 Weight Overrides to prevent icon breakage */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/webfonts/fa-solid-900.woff2') format('woff2'),
    url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/webfonts/fa-solid-900.ttf') format('truetype');
}

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/webfonts/fa-brands-400.woff2') format('woff2'),
    url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/webfonts/fa-brands-400.ttf') format('truetype');
}

.fa-solid,
.fas {
  font-weight: 500 !important;
}

.fa-solid.fa-comments,
.fas.fa-comments {
  font-weight: normal !important;
}

:root {

  --font-family: 'Figtree', sans-serif;

  --muted-text: #B1B0B5;
  --primary-text: #535353;
  --secondary-text: #fff;
  /* sekundarna boja teksta */

  --primary-color: #289980;
  /* svetlo zelena */
  --primary-rgb: 40, 153, 128;
  /* dodato za rgba funkcije */
  --secondary-color: #ffffff;
  --third-color: #289980;
  --third-color-rgb: 0, 0, 0;
  --fourth-color: #000;
  /* crna */
  --fifth-color: #183b7d;
  /* yellow */
  --sixth-color: #1e2125;
  /* darker grey */
  --seventh-color: #006ca6;
  /* darker blue*/
  --eight-color: #e2385b;
  /* darker red*/
  --nineght-color: #15171a;
  /* darkest grey*/
  --tenth-color: #2f363e;
  /* middle dark grey*/

  --hover-color: #1e725f;
  /* tamnije zelena */

  --border: #ccc;
  --border2: #289980;

  --logo-dark: url('../img/miloss-logo-dark.svg');
  --logo-light: url('../img/miloss-logo-light.svg');
  --logo-fill: var(--primary-text);

  --input-bg: #F5F5F6;
  --input-bg-hover: #ecebed;
  --input-border-focus: var(--muted-text);
  --input-text: var(--primary-text);
  --input-placeholder: var(--muted-text);

  --button-text: #D19361;
  --button-text-hover: #faf4ef;

  --icon-socials: var(--primary-text);
  --icon-socials-hover: #77757e;

  --default-border-radius: 8px;
  --default-transition: color .3s ease-in-out, background-color .3s ease-in-out, border-color .3s ease-in-out, fill .3s ease-in-out, transform .3s ease-in-out;

  --header-fixed: rgba(247, 247, 247, 0.9);
}

* {
  box-sizing: border-box;
}

/*body {
	margin: 0;
	background: #fff;
	color: var(--primary-text); 
	font-family: var(--font-family);
	padding-top: 90px;
	padding-right: 0 !important;
	height: auto;
    min-height: 100vh; 
}*/

/* Osnovni body stilovi */
body {
  margin: 0;
  background: #fff;
  color: var(--primary-text);
  font-family: var(--font-family);
  padding-top: 0;
  min-height: 100vh;
}

/* Visina headera za inner/fixed header */
body.header-fixed {
  padding-top: 90px;
  /* visina headera */
}

/* ===============================
   HEADER ZA INNER / FIXED STRANICE
   =============================== */
body.header-fixed #header {
  padding: 15px 0;
  background: #fff;
  /* fiksni header je uvek svetao */
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  z-index: 997;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
  backdrop-filter: none;
}

/* Ako header dobija dodatno "header-fixed" stanje na scroll (ako koristiš) */
body.header-fixed #header.header-fixed {
  background: var(--header-fixed);
  backdrop-filter: blur(6px);
}

/* Logo za fiksni header (inner stranice) */
body.header-fixed #header .svg {
  display: block;
  width: 180px;
  height: 60px;
  background-image: url('../img/miloss-logo-dark.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
}

/* ===============================
   HEADER ZA HOME / TRANSPARENT
   =============================== */
body.header-transparent #header {
  padding: 15px 0;
  background: transparent;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  z-index: 997;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
  backdrop-filter: none;
}

body.header-transparent #header.header-fixed {
  background: var(--header-fixed);
  backdrop-filter: blur(6px);
}

/* Logo za transparentni header */
#header.header-transparent .svg {
  display: block;
  width: 180px;
  height: 60px;
  background-image: url('../img/miloss-logo-dark.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
}

/* Linkovi u navigaciji za transparent i fixed */
#header.header-transparent .nav-menu li a {
  color: var(--primary-text);
  /* tamni linkovi na transparentnom headeru */
}

#header.header-fixed .nav-menu li a {
  color: var(--primary-text);
  /* tamni linkovi na fiksnom */
}

#header.header-fixed .nav-menu li a:hover {
  color: var(--hover-color);
  /* tamni linkovi na fiksnom */
}

body::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

body::-webkit-scrollbar {
  width: 8px;
  background-color: #555;
}

body::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

a {
  color: var(--primary-text);
  font-family: var(--font-family);
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  color: var(--third-color);
  outline: none;
  font-family: var(--font-family);
}

p {
  padding: 0;
  margin: 20px 0 20px 0;
  font-family: var(--font-family);
  color: var(--primary-text);
  font-size: 19px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}


.tg-btn {
  display: block;
  width: fit-content;
  color: var(--primary-color);
  border: 1px solid var(--border2);
  border-radius: 1px;
  font-weight: 500;
  font-size: 18px;
  padding: 0.80rem 1.4rem;
  margin-top: 1.8rem;
  margin-right: 0.8rem;
  -webkit-appearance: none;
  appearance: none;
}

.tg-btn:hover,
.tg-btn:focus,
.tg-btn:active {
  color: #fff;
  background-color: var(--primary-color);
  outline: 0;
  box-shadow: none;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.tg-btn i {
  margin-left: 10px;
}

/*--------------------------------------------------------------
# RESPONSIVE
--------------------------------------------------------------*/

@media (max-width: 768px) {

  /* MOBILE VIEW – HOME section */
  #about-me .row {
    display: flex;
    flex-direction: column;
    /* elementi idu jedan ispod drugog */
  }

  #about-me .row .column:first-child {
    order: 1;
    /* slika ide prvo */
  }

  #about-me .row .column:last-child {
    order: 2;
    /* tekst ide posle slike */
  }

  #about-me .row .column {
    width: 100%;
    /* kolone pune širine */
  }

  #about-me .pic2 img {
    width: 100%;
    height: auto;
    /* da slika bude responsive */
  }

  /* MOBILE VIEW – ABOUT section */
  #about .pic {
    height: 600px;
    /* možeš podesiti visinu po želji */
  }

  #about .pic img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* kropuje sliku da ispuni kontejner */
    object-position: center;
    /* fokus u centru slike */
  }

  /* MOBILE VIEW – REPERTOIRE section */
  #repertoire .row {
    flex-direction: column;
  }

  #repertoire .column {
    flex: 1 1 100%;
    width: 100%;
  }

  .table-container {
    overflow-x: auto;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
  }

  td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    word-break: break-word;
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
    flex-basis: 40%;
    text-align: left;
  }

  /* MOBILE VIEW – TEACHING section */
  #teaching .row:nth-of-type(2) {
    flex-direction: column;
  }

  /* Slogan sekcija */
  #teaching .slogan {
    width: 95%;
    /* isto kao i kolone */
    max-width: 600px;
    /* ograničenje širine radi konzistentnosti */
    margin: 0 auto 20px auto;
    padding: 0 10px;
    text-align: center;
  }

  #teaching .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  #teaching .column1,
  #teaching .column2 {
    width: 95%;
    /* isto kao i .column na drugim stranicama */
    max-width: 600px;
    /* opcionalno ograničenje širine kao kod ostalih sekcija */
    margin: 0 auto 0 auto;
    padding: 0 10px;
  }

  #teaching .column1 .btn.tg-btn {
    width: 100%;
  }

  #teaching .column2 p {
    text-align: justify;
    /* opciono, samo ako želiš lepše poravnanje teksta */
  }

  .popup-content {
    max-width: 95vw;
    max-height: 90vh;
    padding: 8px;
  }

  .popup-content img {
    max-height: calc(85vh - 70px);
  }

  .popup-caption {
    font-size: 14px;
  }

  .popup-close {
    font-size: 18px;
    padding: 4px 8px;
  }

  /* MOBILE VIEW – PHOTOS section */
  .popup {
    padding: 20px;
  }

  .popup-image-wrapper img {
    max-height: 70vh;
  }

  #prevBtn {
    left: 10px;
  }

  #nextBtn {
    right: 10px;
  }

  .nav {
    font-size: 32px;
    padding: 8px 12px;
  }


  /* MOBILE VIEW – OPTIONS section */
  #options .row {
    flex-direction: column;
    align-items: center;
  }

  #options .column {
    flex: 1 1 100%;
    max-width: 100%;
  }

  #txt_content {
    min-width: 100%;
    max-width: 100%;
  }

  /* MOBILE VIEW – FOOTER section */
  #footer-top .nav-menu li {
    display: block;
    margin-top: 20px;
  }

  #footer-bottom p {
    margin-bottom: 40px;
  }
}

/*--------------------------------------------------------------
# CONTACT SECTION (Custom Flexbox & Form Styles)
--------------------------------------------------------------*/
#contact {
  background: rgba(var(--third-color-rgb), .04);
  padding: 40px 0 40px 0;
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
}

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

#contact h2 {
  color: var(--primary-color);
  font-size: 50px;
  font-weight: bold;
  padding-bottom: 50px;
  text-align: center;
}

h6.section-subtitle {
  color: var(--primary-text);
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 18px;
  text-align: center;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.contact-col {
  flex: 1;
  min-width: 300px;
}

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

.contact-info li h4 {
  color: var(--third-color);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 24px;
}

.contact-info li h5 {
  color: var(--third-color);
  font-weight: bold;
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.contact-info li p {
  color: var(--primary-text);
  font-weight: normal;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Contact Form Styling */
#contact .box-silver {
  padding: 20px;
  background: rgba(var(--third-color-rgb), .05);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form .form-row:last-child {
  margin-bottom: 0;
}

.contact-form .form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.contact-form .form-group.full-width {
  flex: 100%;
}

.contact-form label {
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 8px;
  font-size: 15px;
}

.contact-form label::after {
  content: " *";
  color: var(--primary-text);
  font-size: 18px;
  line-height: 1;
}

.contact-form .required-note {
  font-size: 15px;
  color: var(--primary-text);
  margin-top: 15px;
  margin-bottom: 0;
  text-align: left;
  font-weight: 500;
}

.contact-form .custom-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--default-border-radius);
  background-color: var(--input-bg);
  color: var(--input-text);
  font-size: 15px;
  font-family: var(--font-family);
  transition: var(--default-transition);
}

.contact-form .custom-input:focus {
  outline: none;
  border-color: var(--third-color);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(40, 153, 128, 0.1);
}

.contact-form textarea.custom-input {
  min-height: 140px;
  resize: vertical;
}

.contact-form .error-text p {
  color: #e2385b;
  font-size: 16px;
  margin: 5px 0 0 0;
  font-weight: 500;
}

.contact-form .form-msg {
  font-size: 16px !important;
  margin-bottom: 15px !important;
  padding: 15px !important;
  border-radius: 8px;
  text-align: left !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.contact-form .form-msg::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 10px;
  font-size: 35px !important;
}

.contact-form .form-msg.error {
  background-color: #ffebee;
  color: #e2385b !important;
  border: 1px solid #ffcdd2;
  font-size: 16px !important;
}

.contact-form .form-msg.error::before {
  content: "\f071";
}

.contact-form .form-msg.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.contact-form .form-msg.success::before {
  content: "\f058";
}

.contact-form .btn-group {
  align-items: flex-start;
}

.contact-form .btn-group input[type="submit"] {
  display: flex;
  width: fit-content;
  margin: 0;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  transition: background-color 0.3s ease;
  font-size: 20px;
  font-weight: normal !important;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
}

.contact-form .btn-group input[type="submit"]:hover {
  background-color: var(--hover-color);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .contact-row {
    flex-direction: column;
  }
}

/* DECORATIVE NETWORK BACKGROUND FOR SECTIONS */
.deco-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-size: 510px 170px;
  background-repeat: no-repeat;
}

.deco-network-small {
  position: absolute;
  top: -60px;
  width: 410px;
  height: 210px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

#blog .deco-network-small,
#usluge .deco-network-small,
#contact .deco-network-small {
  left: -60px;
}

#about-me .deco-network-small,
#projects .deco-network-small,
#technologies .deco-network-small {
  right: -60px;
}



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

#technologies .nosi {
  text-align: center;
  width: 100%;
}

#technologies .subtitle p {
  color: var(--primary-text);
  font-weight: 700;
  margin: 0 0 2px 0;
  font-size: 18px;
  text-align: center;
}

#technologies .section-title {
  color: var(--primary-color);
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

#technologies ul {
  padding: 0;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#technologies ul>li {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  position: relative;
  border-radius: 50px;
  font-weight: 700;
  font-size: 19px;
  padding: 0.66rem 1.5rem;
  border: 2px solid var(--primary-color);
  transform: translateY(0);
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
  text-align: center;
  margin-bottom: 15px;
  min-width: 120px;
}

#technologies ul>li:hover {
  transform: translateY(-8px);
  transition-duration: 0.2s;
  transition-timing-function: ease-in;
  background-color: var(--primary-color);
  color: #fff;
  cursor: default;
}

@media (max-width: 768px) {
  #technologies ul {
    justify-content: center;
    gap: 15px;
  }
}

#projects {
  background: var(--secondary-color);
}

#projects .box-silver .icon1 {
  display: block;
  -moz-box-sizing: border-box;

  box-sizing: border-box;
  background-image: var(--icon1);
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 12px;
  height: 105px;
  background-size: 30%;
  padding-left: 100%;
}

#projects .box-gold .icon2 {
  display: block;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background-image: var(--icon2);
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 12px;
  height: 105px;
  background-size: 30%;
  padding-left: 100%;
}

#projects .box-platinum .icon3 {
  display: block;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background-image: var(--icon3);
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 12px;
  height: 105px;
  background-size: 30%;
  padding-left: 100%;
}

#projects .box-silver h4 a,
#choose .box-platinum h4 a {
  color: #ebcb80;
}

#projects .box-silver h4 a:hover,
#choose .box-platinum h4 a:hover {
  color: var(--primary-text);
}

#projects .box-silver h6 a,
#choose .box-platinum h6 a {
  color: #ebcb80;
  font-size: 16px;
}

#projects .box-silver h6 a:hover,
#choose .box-platinum h6 a:hover {
  color: var(--primary-text);
}

#projects ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#projects ul li .price-value {
  font-weight: 700;
  font-size: 63px;
}

#projects ul li .interval {
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

#projects ul li p {
  font-weight: 200;
  font-size: 16px;
  padding: 0;
  color: var(--primary-text);
}

#projects ul li.purchase-button a {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 50px;
  border-radius: 50px;
  transition: 0.2s;
  margin: 20px 10px 0 0;
  color: #4b4b4b;
  background: #ebcb80;
}

#projects ul li.purchase-button a:hover {
  background: var(--primary-text);
}

#projects .box-gold {
  padding: 20px 20px 20px 20px;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  background: var(--primary-color);
  border-radius: 12px;
  border: 1px solid var(--border);
}

#projects .box-gold h4 {
  color: var(--primary-text);
}

#projects .box-gold ul li {
  color: var(--primary-text);
}

#projects .box-gold ul li.purchase-button a {
  transition: 0.2s;
  background: var(--primary-color);
  color: var(--primary-text);
  display: inline-block;

}

#projects .box-gold ul li.purchase-button a:hover {
  background: var(--primary-text);
  color: var(--primary-color);
}

#projects .box-platinum {
  padding: 20px 20px 20px 20px;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  background: var(--primary-color);
  border-radius: 12px;
  border: 1px solid var(--border);
}

#projects .subtitle p {
  color: var(--primary-text);
  font-weight: 700;
  margin: 0 0 2px 0;
  font-size: 18px;
  text-align: center;
}

#projects .section-title {
  color: var(--third-color);
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

#projects .title {
  font-weight: 700;
  font-size: 21px;
  margin: 20px 0 15px 0;
  text-transform: uppercase;
}

#projects .description {
  font-size: 14px;
  line-height: 24px;
}

#projects .prjctimg {
  display: inline-block;
  overflow: hidden;
  /* clip the excess when child gets bigger than parent */
}

#projects .prjctimg img {
  display: block;
  transition: transform .4s;
  /* smoother zoom */
}

#projects .prjctimg:hover img {
  transform: scale(1.2);
  transform-origin: 50% 50%;
}

#projects .category {
  position: absolute;
  top: 60px;
  left: 15px;
  display: block;
  background-color: #289980;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.5);
  border-radius: 0 3px 3px 0;
}

#projects .box-silver ul li a i {
  margin-right: 10px;
}

#project-details {
  background: var(--secondary-color);
  padding: 40px 0 40px 0;
}

#project-details .box-silver h4 {
  text-align: left;
}

#project-details .box-silver p {
  text-align: left;
  margin-bottom: 7px;
}

#project-details .box-silver ul li:last-child p {
  margin-bottom: 0;
}

#project-details .box-silver p span {
  font-weight: 600;
  color: #289980;
}

#project-details {
  background: var(--secondary-color);
  padding: 40px 0 40px 0;
}

#project-details .prjct {
  padding: 0 8px;
}

#project-details .box-silver {
  padding: 15px;
  text-align: center;
  position: relative;
  background: var(--primary-color);
  border-radius: 12px;
  border: 1px solid var(--border);
}

#project-details .box-silver .icon1 {
  display: block;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background-image: var(--icon1);
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 12px;
  height: 105px;
  background-size: 30%;
  padding-left: 100%;
}

#project-details .box-gold .icon2 {
  display: block;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background-image: var(--icon2);
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 12px;
  height: 105px;
  background-size: 30%;
  padding-left: 100%;
}

#project-details .box-platinum .icon3 {
  display: block;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background-image: var(--icon3);
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 12px;
  height: 105px;
  background-size: 30%;
  padding-left: 100%;
}

#project-details .box-silver h4 a,
#choose .box-platinum h4 a {
  color: #ebcb80;
}

#project-details .box-silver h4 a:hover,
#choose .box-platinum h4 a:hover {
  color: var(--primary-text);
}

#project-details .box-silver h6 a,
#choose .box-platinum h6 a {
  color: #ebcb80;
  font-size: 16px;
}

#project-details .box-silver h6 a:hover,
#choose .box-platinum h6 a:hover {
  color: var(--primary-text);
}

#project-details ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#project-details ul li .price-value {
  font-weight: 700;
  font-size: 63px;
}

#project-details ul li .interval {
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

#project-details ul li p {
  font-weight: 200;
  font-size: 16px;
  padding: 0;
  color: var(--primary-text);
}

#project-details ul li.purchase-button a {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 50px;
  border-radius: 50px;
  transition: 0.2s;
  margin: 20px 10px 0 0;
  color: #4b4b4b;
  background: #ebcb80;
}

#project-details ul li.purchase-button a:hover {
  background: var(--primary-text);
}

#project-details .box-gold {
  padding: 20px 20px 20px 20px;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  background: var(--primary-color);
  border-radius: 12px;
  border: 1px solid var(--border);
}

#project-details .box-gold h4 {
  color: var(--primary-text);
}

#project-details .box-gold ul li {
  color: var(--primary-text);
}

#project-details .box-gold ul li.purchase-button a {
  transition: 0.2s;
  background: var(--primary-color);
  color: var(--primary-text);
  display: inline-block;

}

#project-details .box-gold ul li.purchase-button a:hover {
  background: var(--primary-text);
  color: var(--primary-color);
}

#project-details .box-platinum {
  padding: 20px 20px 20px 20px;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  background: var(--primary-color);
  border-radius: 12px;
  border: 1px solid var(--border);
}

#project-details .subtitle p {
  color: var(--primary-text);
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 18px;
  text-align: center;
}

#project-details .section-title {
  color: var(--third-color);
  font-size: 50px;
  font-weight: bold;
  padding-bottom: 50px;
  text-align: center;
}

#project-details .title {
  font-weight: 700;
  font-size: 18px;
  margin: 20px 0 15px 0;
  text-transform: uppercase;
}

#project-details .description {
  font-size: 14px;
  line-height: 24px;
}

#project-details .prjctimg {
  display: inline-block;
  overflow: hidden;
  /* clip the excess when child gets bigger than parent */
}

#project-details .prjctimg img {
  display: block;
  transition: transform .4s;
  /* smoother zoom */
}

#project-details .prjctimg:hover img {
  transform: scale(1.2);
  transform-origin: 50% 50%;
}

#project-details .category {
  position: absolute;
  top: 45px;
  left: 15px;
  display: block;
  background-color: var(--third-color);
  color: #fff !important;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2);
  border-radius: 0 3px 3px 0;
  z-index: 10;
}

#project-details textarea {
  width: 100%;
  padding: 0;
  margin: 0 !important;
  display: inline-block;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: var(--primary-color);
  color: var(--primary-text);
  min-height: 70px;
}


/* Projects Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

#projects .col-lg-4,
#projects .col-md-6,
#projects .prjct {
  width: auto !important;
  /* Override bootstrap if it exists or old CSS */
  padding: 0 !important;
  max-width: none !important;
  flex: none !important;
}

#projects .box-silver {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  background: rgba(var(--third-color-rgb), .04);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  position: relative;
}

#projects .box-silver ul {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#projects .prjctimg {
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

#projects .prjctimg img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

#projects .category {
  position: absolute;
  top: 30px;
  left: 15px;
  background-color: #289980;
  color: #fff !important;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin: 0;
  z-index: 10;
}

#projects .title {
  color: var(--third-color) !important;
  font-size: 21px;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: 700;
}

#projects .box-silver ul li {
  margin-bottom: 10px;
}

#projects .box-silver ul li:has(.title) {
  flex-grow: 1;
  /* Pushes the rest to the bottom if titles vary in height */
}

#projects .more {
  margin-top: auto;
  /* Pushes learn more to bottom */
  padding-top: 15px;
}

#projects .box-silver ul li.more a {
  display: block;
  width: fit-content;
  color: var(--primary-color) !important;
  border: 1px solid var(--border2);
  border-radius: 100px;
  font-weight: 500;
  font-size: 18px;
  padding: 0.80rem 1.4rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: transparent;
}

#projects .box-silver ul li.more a:hover {
  background-color: var(--primary-color);
  color: #fff !important;
}

#projects .box-silver ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}

#projects .box-silver ul li a i {
  margin-right: 8px;
}


/* Projects Section Width */
#projects .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

#projects .btn-projects {
  display: flex;
  width: fit-content;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: #fff !important;
  text-decoration: none;
  border-radius: 100px;
  transition: background-color 0.3s ease;
  font-size: 20px;
  font-weight: 500;
}

#projects .btn-projects:hover {
  background-color: var(--hover-color);
  color: #fff !important;
}

/* Project Details Layout updates */
#project-details .pd-grid-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-bottom: 30px;
}

#project-details .pd-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 991px) {

  #project-details .pd-grid-top,
  #project-details .pd-grid-bottom {
    grid-template-columns: 1fr;
  }
}

#project-details .box-silver {
  background: rgba(var(--third-color-rgb), .04);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#project-details .box-silver h4 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--primary-text);
  font-size: 22px;
  font-weight: 600;
}

#project-details .box-silver ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#project-details .box-silver ul li p {
  color: var(--primary-text);
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
}

#project-details .box-silver ul li p span {
  color: var(--third-color);
  font-weight: 600;
}

#project-details .prjctimg {
  width: 100%;
  border-radius: 8px;
}

#project-details .prjctimg img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}




#projects .container,
#blog .container,
#technologies .container {
  position: relative;
  z-index: 1;
  /* Keep content above the background patterns */
}

/* Ensure all sections contain their absolute backgrounds and unified padding */
#about-me,
#usluge,
#projects,
#blog,
#technologies,
#contact {
  position: relative;
  overflow: hidden;
  padding: 40px 0 40px 0;
}

/* Fix iOS flicker */