/* Local Samsung Sharp Sans font */
@keyframes grainMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

@font-face {
  font-family: 'WebfontADRIATICO';
  src: url('/assets/fonts/WebfontADRIATICORegular-Regular.woff2') format('woff2'),
       url('/assets/fonts/WebfontADRIATICORegular-Regular.woff') format('woff'),
       url('/assets/fonts/WebfontADRIATICORegular-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'WebfontADRIATICO';
  src: url('/assets/fonts/WebfontADRIATICOMedium-Medium.woff2') format('woff2'),
       url('/assets/fonts/WebfontADRIATICOMedium-Medium.woff') format('woff'),
       url('/assets/fonts/WebfontADRIATICOMedium-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'WebfontADRIATICO';
  src: url('/assets/fonts/WebfontADRIATICO-Bold.woff2') format('woff2'),
       url('/assets/fonts/WebfontADRIATICO-Bold.woff') format('woff'),
       url('/assets/fonts/WebfontADRIATICO-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* Import a visually similar to Samsung free Google font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

:root {
  /* Colors */
  --primary-color: #E8235B;
  --primary-black: #000000;
  --primary-white: #ffffff;

  /* Gradient */
  --gradient: linear-gradient(135deg, #010101, #E8235B, #4A02A9);

  /* Font family */
  --font-family-base: 'WebfontADRIATICO', 'Poppins', Arial, sans-serif;

  /* Typography */
  --h1-size: 98px;
  --h1-weight: 700;

  --h2-size: 37px;
  --h2-weight: 700;

  --h3-size: 39px;
  --h3-weight: 400;

  --p-size: 25px;
  --p-weight: 500;
  --p-line-height: 147%;

  --big-font-size: 194px;
  --big-font-weight: 700;
  --big-font-line-height: 200px;
}

/* Global Reset & Base Setup */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Hide scrollbar but keep scrolling */
html, body {
  overflow-y: scroll;  /* always allow vertical scrolling */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
html {
  font-size: 100%; /* 16px default */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* Chrome, Safari, Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body { 
	font-family: var(--font-family-base);
	color: var(--primary-white);
	background-color: var(--primary-black);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
    margin: 0;
    transition: overflow 0.3s ease;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url('grain.gif');
    background-repeat: repeat;
    opacity: 0.05;
    z-index: 9999;
}

/* Headings */
h1 {
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
}

h2 {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
}

h3 {
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
}

/* Paragraph */
p {
  /* font-size: var(--p-size); */
  /* font-weight: var(--p-weight); */
  line-height: var(--p-line-height);
}

/* Big Font Style */
.big-font {
  font-size: var(--big-font-size);
  font-weight: var(--big-font-weight);
  line-height: var(--big-font-line-height);
}

/* Utility classes */
.text-primary {
  color: var(--primary-color);
}

.bg-gradient {
  background: var(--gradient);
  color: var(--primary-white);
}

/* Hardware acceleration for smooth animations */
.menu-overlay,
.burger-menu,
.burger-line,
.close-menu,
.close-line,
.menu-link,
.social-link {
    will-change: transform;
    transform: translateZ(0);
}

/* Custom cursor styles */
.cursor {
	position: fixed;
	top: 0;
	left: 0;
	width: 64px;
	height: 64px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	pointer-events: none;
	transform: translate(-50%, -50%);
	z-index: 10000;
    mix-blend-mode: difference;
	opacity: 0; /* Start hidden */
}
/* Real cursor replacement - small white circle */
.real-cursor {
	/* display: none; */
	position: fixed;
	width: 8px;
	height: 8px;
	background-color: white;
	border-radius: 50%;
	pointer-events: none;
	z-index: 10000;
	transform: translate(-50%, -50%);
	mix-blend-mode: difference;
	opacity: 0; /* Start hidden */
}
/* Header Styles */
header.header {
    background: linear-gradient(0deg,rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.4) 70%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 2.5rem 3rem;
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    box-sizing: border-box;
}

/* Logo Styles */
.logo {
    z-index: 2001;
    position: relative;
}
/*FOOTER */
/* FOOTER GLAVNI STIL */
.site-footer {
    background-color: #fff;
    /* border-top: 1px solid #ddd; */
    padding: 0;
    margin: 0;
    width: 100%;
	height: 305px;
    position: relative;
    z-index: 10;
}

/* GLAVNI KONTEJNER */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    padding: 56px 173px 30px 40px;
    box-sizing: border-box;
	height: 100%;
}

/* LEVA STRANA (trešnjice) */
.footer-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    min-width: 250px;
	height: 100%;
}

.cherry {
    position: relative;
}

.cherry img {
    /* display: block; */
    /* max-width: 100%; */
    height: auto;
}

.cherry-1 img {
    /* width: 180px; */
    position: relative;
    top: 0;
    left: 71px;
}

.cherry-2 img {
    /* width: 180px; */
    position: absolute;
    top: -160px;
    left: 170px;
    z-index: 2;
}

.cherry-3 img {
    /* width: 306px; */
    position: absolute;
    top: 22px;
    left: 180px;
    z-index: 1;
}

/* DESNA STRANA */
.footer-right {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 300px;
}

/* KONTAKT */
/* .footer-contact p {
    margin: 0;
    font-size: 15px;
    color: #000;
	padding-right: 5px;
} */

/* MENI */
.footer-menu {
    margin-top: 33px;
	margin-right: 56px;
}

.footer-menu a {
    text-decoration: none;
    color: #000;
    margin: 0 5px;
    font-size: 17px;
    font-weight: 400;
    line-height: 135%;
    letter-spacing: 0%;
    text-align: right;
	padding-right: 5px;
    font-family: var(--font-family-base);
}

.footer-menu a:hover {
    text-decoration: underline;
}


/* DRUŠTVENE MREŽE */
.footer-social {
    padding-top: 33px;
    display: flex;
    flex-wrap: nowrap;
}
.footer-social img{
	padding-right:16px;
}
.footer-social a {
    text-decoration: none;
    color: #000;
    font-size: 15px;
    margin: 0 5px;
}
.footer-social img:nth-child(2) {
    padding-bottom: 4px;
}

.footer-social a:hover {
    text-decoration: underline;
}

/* LEGAL LINKOVI */
.footer-legal {
    margin-top: 20px;
}

.footer-legal a {
    text-decoration: none;
    color: #000;
    font-size: 13px;
    margin: 0 5px;
}

.footer-legal a:hover {
    text-decoration: underline;
}
.right-contact-side{
	padding-left:12px;
}
.footer-contact {
    display: flex;
    /* align-items: center;
    justify-content: center;
    gap: 30px; */
    font-family: 'Poppins', sans-serif;
}

.left-contact-side {
    text-align: right;
    color: #222;
    font-size: 14px;
    line-height: 1.6;
    padding-right: 15px;
    border-right: 2px solid #e53f6f; 
    align-content: center;
    font-family: var(--font-family-base);

}
.footer-menu {
    display: flex;
    flex-wrap: nowrap;
}
.nav-section-footer{
	display: flex;
}
.cherry {
	height: 100%;
}
/* RESPONSIVE */
/* MOBILNI */
@media (max-width: 900px) {

    .footer-container {
        display: flex;
        flex-direction: row-reverse;
        padding: 35px 0px 0 24px;
        position: relative;
        overflow: visible; 
        background-color: #fff;
    }

    .cherry-1,
    .cherry-2,
    .cherry-3 {
        display: none;
    }

    .footer-left {
        position: relative;
        z-index: 1;
        /* min-width: auto; */
        min-width: 170px;
        flex:initial;
        justify-content: normal;
    }

    .footer-right {
        flex: 1;
        width: 100%;
        min-width: auto;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        z-index: 10;
        box-sizing: border-box;
    }

    .footer-contact {
        flex-direction: column-reverse;
    }

    .left-contact-side {
        text-align: left;
        border-right: none;
        padding-left: 14px;
        padding-right: 0;
        padding-top: 9px;
    }

    .right-contact-side {
        border-left: 2px solid rgba(232, 35, 91, 1);
        text-align: left;
    }
    .right-contact-side img {
        width: 75%;
    }

    .nav-section-footer {
        flex-direction: column;
        /* width: 100%; */
    }

    .footer-menu {
        flex-direction: column;
        text-align: left;
        margin: 0;
        padding-top: 13px;
        padding-left: 10px;
    }

    .footer-social img:nth-child(2) {
        padding-bottom: 4px;
    }

    .footer-legal {
        display: none;
    }
    .footer-legal-mobile {        
        display: flex !important;
        padding: 4px 33px;
        position: relative;
        bottom: 42px; 
        gap: 15px;
        z-index: 20;
    }
    .footer-legal-mobile a {
        font-size: 12px;
        font-weight: 500;
        color: #000;
        text-decoration: none;
    }

    .cherry-1-mobile img,
    .cherry-2-mobile img,
    .cherry-3-mobile img {
        position: absolute;
        pointer-events: none;
    }

    .cherry-1-mobile img {
        top: -111px; 
        left: 40px;
        z-index: 999; 
    }

    .cherry-2-mobile img {
    position: absolute;
    top: 0;           
    left: 0;          
    transform: translateX(25%); 
    z-index: 1;
    pointer-events: none;
}

.cherry-3-mobile img {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateX(-30%); 
    z-index: 1;
    pointer-events: none;
}

    .site-footer {
        height: 497px;
        /* overflow: visible; */
        overflow: hidden;
        padding-top:50px;       
        background-color: transparent;
        margin-top: -51px;
    }
    
    .footer-social{
        padding-top: 18px;
        padding-left: 14px;
        align-items: flex-end;
    }
    .left-contact-side p{
        font-weight: 400;
        font-size: 15px;
        line-height: 135%;
    }
    .footer-menu a{
        font-weight: 500;
        font-size: 17px;
        line-height: 1.6;
        text-align: left;
        width:max-content;
    }
}
/* TABLET */
@media (min-width: 901px) and (max-width: 1200px) {
    .cherry-1-mobile,
    .cherry-2-mobile,
    .cherry-3-mobile{
        display: none;
    }
    .cherry-2 img{
        left:0;
    }
    .cherry-3 img{
        left: 55px;
    }
    .cherry-1 img {
        left: -37px;
    }
    .footer-container{
        padding: 56px 71px 30px 0px;
    }
    .footer-menu a{
        width: max-content;    
    }
    .footer-menu {
        margin-right: 33px;
    }
}
/* DESKTOP(LAPTOP) */
@media (min-width: 1201px){
    .cherry-2 img{
        left: 104px;
    }
    .cherry-1 img{
        left: 11px;
    }
    .cherry-3 img{
        left: 150px;
    }
    .footer-menu a{
        width: max-content;    
    }
     .footer-container{
        padding: 56px 71px 30px 0px;
    }
}
/* LARGE DESKTOP */
@media (min-width: 1600px) {
   
}


.logo a {
    display: block;
    text-decoration: none;
}

.logo-original,
.logo-inverted {
    position: absolute;
    left: 0;
    transition: opacity 0.8s ease;
}

.logo-original {
    opacity: 1;
}

.logo-inverted {
    opacity: 0;
}

.logo-original svg,
.logo-inverted img {
    height: 120px;
    width: auto;
    display: block;
}

/* Logo swap when menu is active */
body.menu-open .logo-original {
    opacity: 0;
}

body.menu-open .logo-inverted {
    opacity: 1;
}

/* Burger Menu Button */
.burger-menu {
    position: relative;
    width: 40px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001;
	margin-top: 10px;
}

.burger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #5F5F5F;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line {
	background: var(--primary-white);
}

/* Burger menu active state (X) */
.burger-line:nth-child(1) { top: 8px; }
.burger-line:nth-child(2) { top: 16px; }
.burger-line:nth-child(3) { top: 24px; }

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 16px;
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 16px;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1999;
    transition: visibility .8s cubic-bezier(0.25, 0.46, 0.45, 0.94), right .8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
}

.menu-overlay.active {
    right: 0;
    visibility: visible;
}

/* Staggered animation for menu items */
/* .menu-overlay.active .menu-link {
    animation: slideInFromRight 0.6s ease forwards;
}

.menu-overlay.active .overlay-menu li:nth-child(1) .menu-link { animation-delay: 0.1s; }
.menu-overlay.active .overlay-menu li:nth-child(2) .menu-link { animation-delay: 0.15s; }
.menu-overlay.active .overlay-menu li:nth-child(3) .menu-link { animation-delay: 0.2s; }
.menu-overlay.active .overlay-menu li:nth-child(4) .menu-link { animation-delay: 0.25s; }
.menu-overlay.active .overlay-menu li:nth-child(5) .menu-link { animation-delay: 0.3s; }
.menu-overlay.active .overlay-menu li:nth-child(6) .menu-link { animation-delay: 0.35s; } */

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus styles for accessibility */
.social-link:focus,
.lang-link:focus {
    outline: 1px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .menu-overlay,
    .burger-line,
    .close-line,
    .menu-link,
    .social-link,
    .overlay-language-switcher .lang-link {
        transition: none !important;
        animation: none !important;
    }
    
    .menu-link::before {
        transition: none !important;
    }
}

/* Overlay Logo */
.overlay-logo {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    z-index: 2001;
}

.overlay-logo a {
    display: block;
    text-decoration: none;
}

.overlay-logo img {
    height: 50px;
    width: auto;
    color: white; /* For SVG currentColor */
}

/* Close Button (X) */
.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-line {
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.close-line:nth-child(1) {
    transform: rotate(45deg);
}

.close-line:nth-child(2) {
    transform: rotate(-45deg);
}

/* Overlay Navigation */
.overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2rem;
}

.overlay-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    text-align: center;
}

.overlay-menu li {
    margin: 1rem 0;
}

.menu-link {
    color: var(--primary-white);
    text-decoration: none;
    font-size: 48px;
	line-height: 50px;
    font-weight: 400;
    letter-spacing: 0;
    display: block;
    padding: 18px;
    position: relative;
    overflow: hidden;
	text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Hover effect: blurred letters */
.menu-link:hover {
    color: var(--primary-color);
    filter: blur(2px);
    transform: translateX(10px);
}

/* If you prefer a glow/blur without moving the letters themselves */
.menu-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
    transform: translateX(10px);
}

/* Overlay Language Switcher */
.overlay-language-switcher {
    display: flex;
    align-items: center;
    /* gap: 1rem; */
    font-size: 32px;
    margin-top: 36px;
}

.overlay-language-switcher span {
    color: #8B8B8B;
}

.overlay-language-switcher .lang-link {
    color: #8B8B8B !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 32px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 1px solid #8B8B8B;
}

/* Remove border from first element (whether it's current-lang or lang-link) */
.overlay-language-switcher :first-child {
    border-left: none !important;
}
.overlay-language-switcher .lang-link:hover {
    /* background: rgba(255, 51, 102, 0.2); */
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.overlay-language-switcher .current-lang {
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    font-size: 32px;
    font-weight: 400;
    border-left: 1px solid #8B8B8B;
    /* background: rgba(255, 51, 102, 0.1); */
}

/* Social Icons */
.social-icons {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    gap: 16px;
}

/* Copyright Text */
.copyright-text {
    position: absolute;
    right: 50px;
    top: 55%;
    transform: translateY(-50%);
    writing-mode: sideways-lr;
    text-orientation: mixed;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.6s ease 0.4s;
}

.menu-overlay.active .copyright-text {
    opacity: 1;
}

.copyright-text span {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-white);
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.social-link {
    color: #fff;
    transition: all 0.3s ease;
    /* padding: 0.5rem; */
    /* border-radius: 50%; */
    /* background: rgba(255, 255, 255, 0.1); */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.social-link:hover {
    color: var(--primary-color);
    background: rgba(255, 51, 102, 0.2);
    transform: translateY(-3px);
}

.social-link svg {
    width: 26px;
    height: 26px;
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
    /* position: fixed; */
    /* width: 100%;
    height: 100%; */
}

html.menu-open {
    overflow: hidden;
}

body.menu-open,
html.menu-open {
    touch-action: none;
    -webkit-overflow-scrolling: touch;
}
main { min-height: 60vh; padding: 0; }

footer { font-size: 0.9rem; color: #aaa; }

/* Full viewport section styles */
.full-vh {
	width: 100%;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.cairon-track{
    display: flex;
}

/* Početna */
/* .section-pocetna-a { background: #181818; }
.section-pocetna-b { background: #ff3366; } */

/* Ekspertiza */

/* Portfolio */
/* .section-portfolio-a { background: #222c1a; }
.section-portfolio-b { background: #3a4c2e; } */

/* Klijenti */
/* .section-klijenti-a { background: #1a263a; }
.section-klijenti-b { background: #334466; } */

/* O nama */
/* .section-onama-a { background: #3a1a2a; }
.section-onama-b { background: #6c3355; } */

/* Kontakt */
/* .section-kontakt-a { background: #1a3a2a; }
.section-kontakt-b { background: #338066; } */

@media (max-width: 1024px) {
	.cursor {
		display: none;
	}
	.real-cursor {
		display: none;
	}
}
@media (max-width: 768px) {

	
	/* Hide copyright text on mobile */
	.copyright-text {
		display: none;
	}
	
	/* Mobile Header Adjustments */
	header.header {
		padding: 1.75rem 2rem;
	}
	
	.logo-original svg,
	.logo-inverted img {
		height: 72px;
	}
		.burger-menu {
		width: 30px;
		height: 20px;
	}
	
	/* Mobile Menu Adjustments */
	.menu-overlay {
		background: rgba(0, 0, 0, 0.8);
		backdrop-filter: blur(10px);
	}
	
	.overlay-logo {
		top: 1rem;
		left: 1.5rem;
	}
	
	.overlay-logo img {
		height: 40px;
	}
	
	.close-menu {
		top: 1.25rem;
		right: 1.5rem;
		width: 25px;
		height: 25px;
	}
	
	.close-line {
		width: 25px;
		height: 2px;
	}
	
	.overlay-nav {
		padding: 1rem;
		align-items: center;
		justify-content: center;
		gap: 2rem;
	}
	
	.menu-link {
		font-size: 2rem;
		padding: 0;
	}
	
	.overlay-language-switcher {
		font-size: 26px;
		flex-wrap: wrap;
		justify-content: center;
		margin-top: 0;
	}
	
	.social-icons {
		position: static;
		display: flex;
		gap: 1rem;
		justify-content: center;
		/* margin-top: 1.5rem; */
		margin-bottom: 2rem;
	}
	
	.social-link {
		width: 26px;
		height: 26px;
	}
	
	.social-link svg {
		width: 26px;
		height: 26px;
	}
}

@media (max-width: 480px) {
	header.header {
		padding: 1rem 1.5rem;
	}
	
	.logo-original svg,
	.logo-inverted img {
		height: 72px;
	}
	
	.menu-link {
		font-size: 26px;
	}
	
	.overlay-menu {
		margin-top: 4rem;
		margin-bottom: 1rem;
	}
	
	.overlay-language-switcher {
		margin-top: 0;
		/* gap: 5px; */
	}
	
	.overlay-language-switcher .lang-link,
	.overlay-language-switcher .current-lang {
		padding: 0.4rem 0.8rem;
		font-size: 24px;
	}
	
	.social-icons {
		position: static;
		display: flex;
		gap: 16px;
		justify-content: center;
		/* margin-top: 1rem; */
		margin-bottom: 2rem;
	}
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
	.menu-link {
		font-size: 2.25rem;
	}
	
	.overlay-language-switcher {
		font-size: 1.05rem;
	}
}