@charset "utf-8";

/* GLOBAL */
html {
    scroll-behavior: smooth;
}

/* ensure anchors are not hidden under fixed header */
section {
    scroll-margin-top: 90px;
}

:root {
    --primary: #672d8b;
    --bg: #ffffff;
    --text: #111;
    --card: #f3f3f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Syne', sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: .3s ease;
}

/* Screen-reader only */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
:focus-visible {
    outline: 3px solid rgba(103, 45, 139, 0.25);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(103, 45, 139, 0.25);
    outline-offset: 3px;
}

/* HEADER */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10% 10px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

/* fallback za browsere bez backdrop-filter podrške */
@supports not (backdrop-filter: blur(10px)) {
    header {
        background: rgba(255, 255, 255, 0.97); /* malo jača pozadina */
    }
}

.logo img {
    height: 50px;
    opacity: 0;
    transform: translateY(-20px);
    animation: logoReveal 1s ease forwards;
}

@keyframes logoReveal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

nav a:hover {
    color: var(--primary);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #672d8b 0%, #8e44ad 50%, #111 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 160px 0 100px;
    margin: 0;
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: #ffffff20;
    filter: blur(80px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 1s ease forwards;
}

.hero p {
    max-width: 950px;
    margin-top: 40px;
    margin-right: auto;
    margin-bottom: 60px;
    opacity: .8;
    font-size: 20px;
    animation: fadeUp 1.3s ease forwards;
	display:block;
}

.hero p span{
    display:block;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 40px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    transition: .3s;
    animation: fadeUp 1.6s ease forwards;
}

.btn:hover {
    transform: scale(1.05);
}

/* HERO BOTTOM LOGO */
.hero-bottom {
    margin-top: 60px;
}

/* HERO BOTTOM LOGO (consolidated) */
.hero-bottom img {
    height: 130px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: heroLogoIn 1.8s ease forwards, heroPulse 4s ease-in-out infinite;
}

/* ABOUT */
.about {
    padding: 100px 10%;
    margin-top: 100px;
}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about-text {
    max-width: 800px;
    margin: auto;
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.95;
}

#about h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 50px;
    display: block;
}

/* ABOUT responsive */
@media (max-width: 1450px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 25px;
    }
}

/* SERVICES SECTION */
.services-section {
    padding: 100px 10%;
    background: linear-gradient(135deg, #672d8b 0%, #8e44ad 50%, #111 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 100px 0 50px;
}

.services-section::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    background: #ffffff20;
    filter: blur(140px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.services-section h2 {
    position: relative;
    z-index: 1;
    font-size: 40px;
    margin-bottom: 60px;
}

.services {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* CARD BASE */
.card {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(6px);
    transition: transform .6s ease, opacity .6s ease, filter .6s ease, box-shadow .4s ease, background .4s ease;
}

.card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.card:hover {
    transform: translateY(-12px) scale(1.03);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.services .card h3 {
    margin-bottom: 20px;
}

.services .card p {
    margin-top: 14px;
    font-size: medium;
}

.more {
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.portfolio-cta {
    margin-top: 70px;
    text-align: center;
}

.portfolio-cta p {
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* CONTACT */
.contact {
    padding: 120px 10%;
    text-align: center;
    margin: 80px 0 50px;
}

#contact h2 {
    margin-bottom: 25px;
}

form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 16px;
}

button.submit {
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

button.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(103,45,139,0.25);
}

.form-message {
    margin-top: 20px;
    font-weight: 600;
}

.success {
    color: green;
}

.error {
    color: red;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px;
    opacity: .75;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroLogoIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* SCROLL DOWN INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    display: block;
    width: 26px;
    height: 26px;
    border-left: 3px solid rgba(255, 255, 255, 0.9);
    border-bottom: 3px solid rgba(255, 255, 255, 0.9);
    transform: rotate(-45deg);
    animation: scrollDown 1.8s infinite ease-in-out;
    opacity: 0.85;
}

@keyframes scrollDown {
    0% {
        transform: translateY(0) rotate(-45deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(8px) rotate(-45deg);
        opacity: 1;
    }

    100% {
        transform: translateY(0) rotate(-45deg);
        opacity: 0.3;
    }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    header {
        padding: 12px 6%;
    }

    .logo img {
        height: 38px;
    }

    nav a {
        margin-left: 15px;
        font-size: 15px;
    }

    .hero {
        padding: 130px 20px 80px;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.3;
        padding: 0 10px;
    }

    .hero p {
        font-size: 16px;
        margin-top: 30px;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .btn {
        padding: 12px 26px;
        font-size: 15px;
    }

    .hero-bottom img {
        height: 90px;
        margin-top: 40px;
    }

    .about {
        padding: 80px 8%;
        margin-top: 40px;
    }

    .about-text {
        font-size: 16px;
    }

    .services-section {
        padding: 80px 8%;
        margin-top: 60px;
    }

    .services-section h2 {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .services {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card {
        padding: 30px;
    }

    .contact {
        padding: 80px 8%;
        margin-top: 60px;
    }

    form {
        gap: 14px;
    }

    input,
    textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        max-width: 90%;
    }	
}


/* Small screens: about wrapper vertical (merged into main mobile block) */

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ================= PORTFOLIO PAGE ================= */

.portfolio-hero{
padding:180px 10% 80px;
text-align:center;
background:linear-gradient(135deg,#672d8b 0%,#8e44ad 50%,#111 100%);
color:#fff;
}

/* PORTFOLIO HERO CTA */

.portfolio-hero-cta{
margin-top:40px;
}

.portfolio-hero-cta .btn{
margin-top:22px;
}

.portfolio-hero-cta p{
font-size:18px;
margin-bottom:18px;
opacity:.9;
}

.portfolio-hero h1{
font-size:42px;
margin-bottom:20px;
}

.portfolio-hero p{
max-width:700px;
margin:auto;
opacity:.85;
font-size:18px;
}

.portfolio-section{
padding:100px 10%;
}

.portfolio-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;
max-width:1200px;
margin:auto;
}

.portfolio-item{
height:280px;
background:#fff;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
}

.portfolio-grid.print .portfolio-item{
height:380px;
}

.portfolio-item img{
max-width:80%;
max-height:80%;
display:block;

background:#fff;
padding:22px;
border-radius:12px;

box-shadow:0 6px 18px rgba(0,0,0,0.08);

transition:transform .35s ease;
}

/* LOGO i ID kartice */

.portfolio-grid.logos img,
.portfolio-grid.id-kartice img{
object-fit:contain;
}

/* PRINT */

.portfolio-grid.print img{
width:100%;
height:100%;
object-fit:contain;
}

.portfolio-overlay{
position:absolute;
inset:0;
background:rgba(0,0,0,.6);
display:flex;
align-items:center;
justify-content:center;
opacity:0;
transition:.4s;
}

.portfolio-overlay span{
color:#fff;
font-weight:600;
font-size:20px;
}

.portfolio-item img{
max-width:100%;
max-height:100%;
display:block;
transition:transform .35s ease;
}

.portfolio-item:hover img{
transform:scale(1.08);
}

.portfolio-item:hover .portfolio-overlay{
opacity:1;
}

.portfolio-cta{
text-align:center;
margin-top:80px;
}

/* PORTFOLIO TABS */

.portfolio-tabs-wrapper{
display:flex;
justify-content:center;
margin-top:-35px;
margin-bottom:50px;
}

.portfolio-tabs{
display:flex;
gap:15px;
background:#fff;
padding:12px;
border-radius:40px;
box-shadow:0 10px 30px rgba(0,0,0,0.15);
flex-wrap:wrap;
}

.portfolio-tabs a{
text-decoration:none;
padding:10px 22px;
border-radius:30px;
font-weight:600;
color:#111;
background:#f3f3f3;
transition:.25s;
}

.portfolio-tabs a:hover{
background:var(--primary);
color:#fff;
}

/* LIGHTBOX */

.lightbox.active{
display:flex;
}

/* LIGHTBOX ANIMATION */

.lightbox{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:#fff;
display:none;
align-items:center;
justify-content:center;
z-index:2000;
opacity:0;
transition:opacity .3s ease;
}

.lightbox.active{
display:flex;
opacity:1;
}

.lightbox img{
max-width:85%;
max-height:85%;

background:#fff;
padding:30px;

border-radius:10px;
box-shadow:0 25px 70px rgba(0,0,0,0.25);
}

/* CLOSE BUTTON */

.lightbox-close{
position:absolute;
top:25px;
right:35px;
font-size:40px;
cursor:pointer;
font-weight:600;
}

/* ARROWS */

.lightbox-prev,
.lightbox-next{
position:absolute;
top:50%;
transform:translateY(-50%);
font-size:50px;
cursor:pointer;
padding:10px 20px;
user-select:none;
}

.lightbox-prev{
left:30px;
}

.lightbox-next{
right:30px;
}

/* MOBILE LIGHTBOX */

@media (max-width:768px){

.lightbox-prev,
.lightbox-next{
top:auto;
bottom:30px;
transform:none;
font-size:32px;
background:rgba(0,0,0,0.1);
border-radius:50%;
padding:10px 16px;
}

.lightbox-prev{
left:10%;
}

.lightbox-next{
right:10%;
}

}

/* HAMBURGER MENU */

.menu-toggle{
display:none;
flex-direction:column;
cursor:pointer;
gap:5px;

background:#f3f3f3;
padding:8px 10px;
border-radius:8px;
}

.menu-toggle span{
width:25px;
height:3px;
background:var(--primary);
display:block;
}

/* MOBILE NAV */

@media (max-width:768px){

nav{
position:absolute;
top:80px;
right:0;
background:#fff;
width:200px;
flex-direction:column;
padding:20px;
box-shadow:0 10px 30px rgba(0,0,0,0.1);
display:none;
}

nav a{
margin:10px 0;
}

nav.active{
display:flex;
}

.menu-toggle{
display:flex;
}

}

.portfolio-tabs a.active{
background:var(--primary);
color:#fff;
}
