
:root {
    --bg: #000000;
    --border: rgba(255, 255, 255, 0.1);
    --accent: rgba(0,193, 165, 1);
    --accent-hover: rgb(121, 25, 162, 0.9);
    --text-label: rgba(255, 255, 255, 0.8);
    --text-dim: rgba(255, 255, 255, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: #fff; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; overflow-x: hidden; }

/* --- HEADER --- */
header {
    position: fixed; top: 0; width: 100%; height: 70px;
    display: flex; justify-content: center; z-index: 2000;
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.nav-inner { width: 100%; max-width: 1400px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; font-size: 1rem; letter-spacing: 2px; cursor: pointer; z-index: 2100; }
.nav-links { display: flex; gap: 25px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }

@media (hover: hover) {
    .nav-links a:hover { color: #fff; }
}

.menu-toggle { display: none; cursor: pointer; z-index: 2100; flex-direction: column }
.bar { width: 25px; height: 2px; background: #fff; transition: 0.4s; }

.mobile-menu {
    position: fixed; inset: 0; background: #000; z-index: 2050;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 100px; transform: translateY(-100%); transition: 0.6s cubic-bezier(0.8, 0, 0.2, 1);
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu a { font-size: 2rem; font-weight: 900; color: #fff; text-decoration: none; text-transform: uppercase; }

/* --- HERO --- */
.hero {
    height: 100vh; width: 100%; position: relative;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 1;
    width: 100%;
    height: 100%;
    filter: brightness(0.6);
    will-change: transform;
    content-visibility: auto;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-mask {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(to bottom, transparent 10%, var(--bg) 100%);
}
.hero-title {
    position: relative; z-index: 3; text-align: center;
    font-size: clamp(1.5rem, 8vw, 4rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1.2;
}
.hero-btn {
    margin-top: 20px;
    z-index: 3;
    background: rgba(0, 120, 100, 1);
    color: #fff;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
    .hero-btn:hover {
        transform: translateY(-2px);
        filter: brightness(1.2);
    }
}

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; content-visibility: auto; }
.tag { color: var(--accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px; display: block; }
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 50px; }

.event-row { display: flex; justify-content: space-between; padding: 30px 0; border-bottom: 1px solid var(--border); transition: 0.3s; }

@media (hover: hover) {
    .event-row:hover { background: rgba(255,255,255,0.02); padding-left: 20px; }
}

.portal-grid { 
    display: flex; 
    flex-wrap: wrap;       /* Овозможува префрлање во нов ред */
    justify-content: center; /* ГИ ЦЕНТРИРА СИТЕ КАРТИЧКИ (вклучувајќи ја и 5-тата или 7-мата) */
    gap: 40px; 
    margin: 0 auto; 
    max-width: 1200px;     /* Ширина за 2 во ред + gap */
}

.portal-card { 
    /* Пресметка за точно 2 во ред на големи екрани (100% / 2 минус делот за gap) */
    width: calc(50% - 20px); 
    height: 450px; 
    border-radius: 24px; 
    overflow: hidden; 
    position: relative; 
    border: 1px solid var(--border);
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

/* Градиент за читлив текст */
.portal-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
    z-index: 1;
}

.portal-card img,
.portal-card video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 1.2s; 
}

@media (hover: hover) {
    .portal-card:hover {
        border-color: var(--accent);
        transform: translateY(-5px);
    }

    .portal-card:hover img { 
        transform: scale(1.05); 
    }
}

.portal-info { 
    position: absolute; 
    bottom: 30px; 
    left: 0;
    right: 0;
    text-align: center; /* Центрирање на текстот внатре во инфо делот */
    z-index: 2; 
}

.portal-info h3 {
    margin: 0;
    padding: 0 20px;
    font-size: 1.8rem;
    color: #fff;
}

.portal-info p {
    margin: 0;
    padding: 5px 0 ;
    font-size: 1rem;
    color: var(--text-dim);
}

/* МОБИЛНА ВЕРЗИЈА */
@media (max-width: 768px) {
    .portal-card {
        width: 100%; /* На мобилен по една во ред */
    }
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
label { display: block; color: var(--text-label); font-size: 0.85rem; margin-bottom: 8px; font-weight: 400; }
input, textarea, select { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border); padding: 20px 0; color: #fff; font-size: 1rem; margin-bottom: 20px; outline: none; transition: 0.3s; font-family: inherit; }
input:focus, textarea:focus, select:focus { border-bottom-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text-dim); opacity: 0.7; }
select { cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; padding-right: 30px; }
select option { background: var(--bg); color: #fff; }
select option.placeholder-option { color: var(--text-dim); opacity: 0.7; }
select.placeholder-selected { color: var(--text-dim); opacity: 0.7; }

/* Success Banner */
.success-banner {
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 14px;
    color: #4caf50;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

.success-banner span {
    font-size: 1.2rem;
    font-weight: 900;
    color: #4caf50;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn { 
    padding: 16px 32px; 
    border-radius: 14px; 
    color: #fff; 
    text-decoration: none; 
    display: inline-block; 
    font-weight: 700; 
    transition: 0.3s; 
    background: rgba(0, 150, 130, 1);
    cursor: pointer; 
    font-size: 0.9rem;
}

@media (hover: hover) {
    .btn:hover { 
        transform: translateY(-2px);
        filter: brightness(1.2);
    }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .portal-grid, .gallery-grid, .contact-grid { grid-template-columns: 1fr; }
    .event-row { flex-direction: column; gap: 10px; }
}

/* --- EVENTS --- */
.events-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    
}

.event-card-dynamic {
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    transition: 0.3s ease;
}

.event-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #1a1a1a;
}

.event-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-date-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 12px 18px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.badge-m { font-size: 0.75rem; font-weight: 800; color: var(--accent); display: block; text-transform: uppercase; }
.badge-d { font-size: 1.8rem; font-weight: 900; color: #fff; line-height: 1; }
.badge-time { font-size: 0.75rem; font-weight: 400; color: #fff; display: block }

.event-content {
    padding: 20px;
}

.event-header h3 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff;
}

.event-details {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

/* КОПЧИЊА */
.event-actions {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Растојание меѓу двете копчиња */
}

.event-btn-full {
    width: 100%;
    display: block;
    text-align: center;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-tickets {
    background: rgba(0, 150, 130, 1) !important;
    color: #fff;
}

.btn-res {
    background: transparent;
    border: 2px solid rgba(0, 150, 130, 1);
    color: rgba(255, 255, 255, 0.95);
}

@media (hover: hover) {
    .event-btn-full:hover {
        transform: translateY(-2px);
        filter: brightness(1.2);
    }
}

@media (max-width: 768px) {
    .event-card-dynamic { max-width: 100%; }
}

/* LIVE Баџ врз сликата */
.live-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1px;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Пулсирачка точка */
.live-badge span {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* --- QUOTES --- */
.carousel-wrapper { position: relative; max-width: 800px; margin: 0 auto; }

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; scrollbar-width: none;
}
.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-snap-stop: always; /* Спречува прелетување на повеќе слајдови одеднаш */
}

.quote-slide {
    flex: 0 0 100%;
    scroll-snap-align: center; /* Го држи слајдот точно во центар */
}
/* Стрелки */
.nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--accent);
    font-size: 2rem; cursor: pointer; z-index: 10; transition: 0.3s;
}

@media (hover: hover) {
    .nav-btn:hover { opacity: 0.5; }
}

.prev { left: -550px; }
.next { right: -50px; }

/* Точки */
.dots-container { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dot { 
    width: 8px; height: 8px; border-radius: 50%; 
    background: var(--border); cursor: pointer; transition: 0.3s; 
}
.dot.active { background: var(--accent); transform: scale(1.3); }

/* Мобилно прилагодување */
@media (max-width: 768px) {
    .nav-btn { display: none; } /* Ги криеме стрелките на мобилен, таму се користи прст */
}

/* --- GALLERY --- */
/* --- GALLY BENTO GRID (3-2-3) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 колони за математичка точност */
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

/* Ред 1: 3 слики (секоја по 2 колони) */
.gallery-item:nth-child(1), .gallery-item:nth-child(2), .gallery-item:nth-child(3) { grid-column: span 2; }
/* Ред 2: 2 слики (секоја по 3 колони) */
.gallery-item:nth-child(4), .gallery-item:nth-child(5) { grid-column: span 3; grid-row: span 2; }
/* Ред 3: 3 слики (секоја по 2 колони) */
.gallery-item:nth-child(6), .gallery-item:nth-child(7), .gallery-item:nth-child(8) { grid-column: span 2; }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(.4);
    transition: filter 0.5s ease, transform 0.5s ease;
    will-change: filter, transform;
}

@media (hover: hover) {
    .gallery-item:hover img { filter: grayscale(0); transform: scale(1.05); }
    .gallery-item:not(:hover) img { will-change: auto; }
}

/* --- MOBILE: HORIZONTAL SCROLL --- */
@media (max-width: 768px) {
    .gallery-grid {
        display: flex; /* Го менуваме гридот во флекс за скрол */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding: 0 20px 20px 20px; /* Малку простор на страните */
        grid-auto-rows: unset; /* Ги ресетираме висините од гридот */
        scrollbar-width: none; /* Го криеме скролбарот на Firefox */
    }

    .gallery-grid::-webkit-scrollbar {
        display: none; /* Го криеме скролбарот на Chrome/Safari */
    }

    .gallery-item {
        flex: 0 0 100%; /* Полна ширина на секоја слика */
        scroll-snap-align: center;
        /* Сите слики ќе имаат иста висина преку овој сооднос */
        aspect-ratio: 16 / 9; 
        grid-column: unset !important; /* Ги поништуваме десктоп правилата */
    }

    .gallery-item img {
        filter: grayscale(0); /* На мобилен обично е подобро во боја веднаш */
    }
}

/* --- LIGHTBOX GLASS STYLE --- */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: none; justify-content: center; align-items: center;
    z-index: 9999; backdrop-filter: blur(10px);
}

.lightbox-content img {
    max-width: 90vw; max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Навигација (Glassmorphism) */
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white; font-size: 24px; cursor: pointer;
    backdrop-filter: blur(5px); transition: 0.3s;
    z-index: 10001; line-height: 1;
}

@media (hover: hover) {
    .lb-nav:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); }
}

.prev { left: 75px; }
.next { right: 75px; }

.close-lightbox {
    position: absolute; top: 25px; right: 30px;
    background: none; border: none; color: white;
    font-size: 50px; cursor: pointer; z-index: 10002;
    opacity: 0.6; transition: 0.3s;
}

@media (hover: hover) {
    .close-lightbox:hover { opacity: 1; }
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колони на мобилен */
        grid-auto-rows: 180px;
    }
    .gallery-item:nth-child(n) { grid-column: span 1; }

    /* Криење на стрелките на мобилен - се користи swipe */
    .lb-nav {
        display: none !important;
    }
    
    .close-lightbox { top: 15px; right: 20px; font-size: 40px; }
}
.lb-counter {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-family: sans-serif;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10003;
}

@media (max-width: 768px) {
    .lb-counter {
        top: auto;
        top: 25px; /* Поставено над стрелките на мобилен */
        font-size: 14px;
    }
}

/* --- PROJECT PAGE --- */
.project-back {
    padding: 40px 0 20px 0;
}

.back-link-lightbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    backdrop-filter: blur(5px);
    transition: 0.3s;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 400;
}

@media (hover: hover) {
    .back-link-lightbox:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateX(-3px);
    }
}

.back-link-lightbox svg {
    transition: transform 0.3s;
    flex-shrink: 0;
}

.project-page {
    padding-top: 0;
}

.project-hero {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 60px;
    position: relative;
}

.project-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.project-hero img,
.project-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 80px 0;
}

/* --- OTHER PROJECTS SECTION --- */
.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.other-project-card {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.other-project-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.other-project-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
    z-index: 1;
}

.other-project-thumbnail img,
.other-project-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

@media (hover: hover) {
    .other-project-card:hover {
        border-color: var(--accent);
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.04);
    }

    .other-project-card:hover .other-project-thumbnail img,
    .other-project-card:hover .other-project-thumbnail video {
        transform: scale(1.05);
    }
}

.other-project-info {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.other-project-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.other-project-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .project-back {
        padding: 30px 0 15px 0;
    }
    
    .project-hero {
        height: 40vh;
        min-height: 300px;
        border-radius: 15px;
        margin-bottom: 40px;
    }
    
    .project-info {
        padding: 40px 0;
    }
    
    .other-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .other-project-thumbnail {
        height: 180px;
    }
}