/* SCROLL bar */
/* Stilizacija vertikalne trake za skrolovanje */
::-webkit-scrollbar {
    width: 12px;
}

/* Stilizacija pozadine trake za skrolovanje */
::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}

/* Stilizacija samog klizaca */
::-webkit-scrollbar-thumb {
    background-color: black;
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #1d1d1d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Rubik", sans-serif;
}

h2, h3 {
    font-family: "Rubik", sans-serif;
}

p {
    font-family: "Rubik", sans-serif;
}

/* NAV BAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: black;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1002;
}

.logo img {
    height: 40px;
    width: auto;
    margin-left: 43px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-right: 40px;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

ul.nav-links li a.active-link {
  color: rgb(197, 179, 110);
  font-weight: bold;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

/* HERO - pocetna slika */
/* HERO - pocetna slika */
.hero {
    position: relative;
    margin-top: 74px;
}

.hero img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-text {
  animation: popIn 0.8s ease-out forwards;

  /* tvoja postojeća pravila: */
  white-space: pre-line;
  position: absolute;
  top: 14%;
  left: 18%;
  text-align: left;
  color: white;
  font-family: "Special Gothic Expanded One", sans-serif;
  font-size: 1.65em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
}

/* OVERLAY - zamagljenje pozadine kada je menu otvoren */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 1001;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* DIV about-section-one */
.about-section-one p {
    text-align: justify;
}

@media (max-width: 768px) {
    .about-section-one p {
        padding: 0 20px;
    }
}

/* STATS section */
.stats-section {
    text-align: center;
    background: #f5f5f5;
    padding: 50px 20px;
}

.container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.stat-box p {
    margin-top: 5px;
    font-size: 16px;
    font-weight: normal;
    color: #666;
}

.number {
    font-size: 40px;
    color: black;
}

/* GALERY */
.galery {
    font-family: "Rubik", sans-serif;
    margin: 0;
	padding: 1rem;
	min-height: 70vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(20, 20, 20, 1);
}

.galery img {
	width: 100%;
    height: 30vh;
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 1000ms;
}

.galery ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
	max-width: 100%;
	width: 70rem;
}

figure {
	margin: 0;
	position: relative;
	overflow: hidden;
}

figure::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 200%;
	height: 200%;
	background: rgba(0, 0, 0, 0.5);
	transform-origin: center;
	opacity: 0;
	transform: scale(2);
	transition: opacity 300ms;
}

figcaption {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	place-items: center;
	text-align: center;
	padding: 1rem;
	color: white;
	font-size: 1.2rem;
	z-index: 1;
	opacity: 0;
	transition: opacity 600ms, transform 600ms;
}

.galery span:is(:hover, :focus) figure::after {
	opacity: 1;
}

.galery span:is(:hover, :focus) figcaption {
	opacity: 1;
	transition: opacity 600ms;
}

@media (prefers-reduced-motion: no-preference) {
	figcaption {
		transform: translate3d(0, 2rem, 0);
	}
	
	figure::after {
		border-radius: 50%;
		opacity: 1;
		transform: scale(0);
		transition: transform 900ms;
	}
	
	.galery span:is(:hover, :focus) figure::after {
		transform: scale(2.5);
	}

	.galery span:is(:hover, :focus) figcaption {
		opacity: 1;
		transform: translate3d(0, 0, 0);
		transition: opacity 600ms 400ms, transform 600ms 400ms;
	}

	.galery span:is(:hover, :focus) img {
		transform: scale(1.2);
	}
}

/* ABOUT US section 1 */
.about-office {
    position: relative;
    background: linear-gradient(135deg, #000000, #242424);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

.about-text {
    font-size: 20px;
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* Animirani mehurici */
.bubble-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: floatBubble 10s infinite ease-in-out;
}

.bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-duration: 12s;
    animation-delay: -6s;
}

.bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 30%;
    animation-duration: 14s;
    animation-delay: -7s;
}

.bubble:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 60%;
    animation-duration: 18s;
    animation-delay: -9s;
}

.bubble:nth-child(4) {
    width: 50px;
    height: 50px;
    left: 80%;
    animation-duration: 10s;
    animation-delay: -5s;
}

@keyframes floatBubble {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .about-text {
        font-size: 18px;
        padding: 0 20px;
    }
}

/* ABOUT US section 2 */
.about-us {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.about-us .container {
    max-width: 1100px;
    margin: auto;
}

.section-title {
    text-align: center;
    padding-top: 25px;
    font-size: 32px;
    color: black;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555;
}

.about-icons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.about-item {
    flex: 1;
    min-width: 280px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.about-item i {
    font-size: 40px;
    color: black;
    margin-bottom: 15px;
}

.about-item:hover i {
    color: rgb(197, 179, 110);
}

.about-item h3 {
    font-size: 22px;
    color: black;
    margin-bottom: 10px;
}

.about-item p {
    font-size: 16px;
    color: #444;
}

.arrow-link {
    display: inline-block;
    font-size: 24px;
    margin-top: 55px;
    text-decoration: none;
    color: black;
}

.arrow-link:hover {
    font-weight: bold;
}
  
/* Responsive za mobilne uredjaje */
@media (max-width: 768px) {
    .about-icons {
        flex-direction: column;
        align-items: center;
    }

    .about-item {
        width: 100%;
        max-width: 400px;
    }
}

/* FOOTER */
.footer {
    background-color: black;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-family: "Rubik", sans-serif;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer p {
    font-size: 1em;
    margin: 0;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1003;
    }

    .menu-toggle.hidden {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        margin-right: 0;
        background-color: black;
        text-align: left;
        padding-top: 60px;
        transition: right 0.3s ease-in-out;
        z-index: 1003;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        padding: 15px;
    }

    .nav-links a {
        color: white;
        font-size: 20px;
        display: block;
    }

    .close-menu {
        display: none;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 30px;
        color: white;
        cursor: pointer;
    }

    .nav-links.active .close-menu {
        display: block;
    }

    .logo img { 
        margin-left: 0px;
    }
    
    .hero img {
        width: 100%;
        height: 72vh;
        object-fit: cover;
    }

    .hero-text {
        font-size: 1em;
        text-align: left;
        top: 10%;
        left: 5%;
        transform: translateX(-50%);
        padding: 0 15px;
        width: 83%;
        letter-spacing: 0;
    }

    .footer p {
        font-size: 0.9em;
    }
}

@media screen and (min-width: 769px) {
    .close-menu {
        display: none;
    }
}