/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Manrope', sans-serif; 
    background: #000; 
    color: #fff; 
    overflow-x: hidden;
    cursor: none;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Syne', sans-serif; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: none; font-family: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Custom Cursor */
.custom-cursor {
    position: fixed; width: 32px; height: 32px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%; pointer-events: none;
    z-index: 9999; mix-blend-mode: difference;
    transition: transform 0.15s ease-out, width 0.15s, height 0.15s;
}
.custom-cursor-dot {
    position: fixed; width: 8px; height: 8px;
    background: #fff; border-radius: 50%;
    pointer-events: none; z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.08s ease-out;
}
.custom-cursor.hover { transform: scale(1.5); }

/* Loading Screen */
.loading-screen {
    position: fixed; inset: 0; z-index: 9999; 
    background: #000; display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.loading-screen.fade-out { opacity: 0; pointer-events: none; }
.loading-content { text-align: center; }
.loading-content h1 { 
    font-size: 3.75rem; letter-spacing: -0.025em; 
    margin-bottom: 2rem; animation: fadeInUp 0.5s 0.2s backwards;
}
.loading-bar-wrap {
    width: 16rem; height: 2px; background: rgba(255,255,255,0.1); 
    margin: 0 auto 1rem; overflow: hidden;
}
.loading-bar { 
    height: 100%; background: #fff; width: 0%; 
    transition: width 0.3s ease;
}
#loading-percent {
    margin-top: 1rem; font-size: 0.875rem; letter-spacing: 0.3em; 
    color: rgba(255,255,255,0.6); animation: fadeInUp 0.6s 0.4s backwards;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; 
    height: 4px; background: #fff; transform-origin: left;
    transform: scaleX(0); z-index: 9998; pointer-events: none;
    transition: transform 0.1s ease-out;
}

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 40;
    width: 3rem; height: 3rem; border-radius: 50%;
    background: #fff; color: #000; display: flex;
    align-items: center; justify-content: center; font-size: 1.25rem;
    opacity: 0; transform: scale(0); transition: all 0.3s;
}
.back-to-top.visible { opacity: 1; transform: scale(1); }
.back-to-top:hover { transform: scale(1.1); }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.8); backdrop-filter: blur(16px);
    animation: slideDown 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-container {
    max-width: 1280px; margin: 0 auto; padding: 1.25rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 1rem; }
.logo { height: 4rem; filter: brightness(0) invert(1); }
@media (min-width: 768px) { .logo { height: 5rem; } }

.menu-btn {
    position: relative; width: 2.5rem; height: 2.5rem;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 0.375rem; border-radius: 0.375rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s; z-index: 200;
}
.menu-btn:hover { 
    border-color: rgba(255,255,255,0.4); 
    transform: scale(1.05);
}
.menu-btn span {
    width: 1.25rem; height: 2px; background: #fff;
    transition: all 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}
.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
}
.menu-btn.active span:nth-child(2) {
    transform: rotate(-45deg) translateY(-6px);
}

.btn-primary {
    display: inline-block; padding: 0.625rem 1.5rem;
    background: #fff; color: #000; border-radius: 0.5rem;
    font-size: 0.875rem; transition: all 0.3s;
}
.btn-primary:hover { 
    background: rgba(255,255,255,0.9); 
    transform: scale(1.05);
}

/* Dropdown Menu - Z-INDEX POVEĆAN */
.menu-dropdown {
    position: fixed; 
    inset: 0; 
    z-index: 150;
    visibility: hidden;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-dropdown.active { 
    visibility: visible;
    opacity: 1; 
    pointer-events: all; 
}
.menu-backdrop {
    position: absolute; inset: 0; 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(4px);
}
.menu-panel {
    position: absolute; 
    left: 50%; 
    top: 6rem;
    transform: translateX(-50%) scale(0.95);
    width: calc(100% - 3rem); 
    max-width: 28rem;
    background: rgba(0,0,0,0.95); 
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem; 
    padding: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.menu-dropdown.active .menu-panel { 
    transform: translateX(-50%) scale(1);
}

.menu-link {
    display: block; padding: 1rem 1.5rem; margin-bottom: 0.5rem;
    border-radius: 0.5rem; font-size: 1.125rem;
    color: rgba(255,255,255,0.7); transition: all 0.3s;
    position: relative; overflow: hidden;
}
.menu-link::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,0.05);
    transform: translateX(-100%); transition: transform 0.3s;
}
.menu-link:hover::before { transform: translateX(0); }
.menu-link:hover { 
    color: #fff; background: rgba(255,255,255,0.05);
    transform: translateX(5px);
}
.menu-link.active { color: #fff; background: rgba(255,255,255,0.1); }

.menu-social {
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; gap: 1rem;
}
.menu-social a {
    flex: 1; padding: 0.75rem 1rem; text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.5rem; font-size: 0.875rem;
    color: rgba(255,255,255,0.7); transition: all 0.3s;
}
.menu-social a:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff; transform: scale(1.05);
}

/* Hero */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 8rem 1.5rem; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
}
.orb {
    position: absolute; width: 24rem; height: 24rem;
    border-radius: 50%; filter: blur(80px);
    background: rgba(255,255,255,0.05);
}
.orb-1 { 
    left: 25%; top: 25%; 
    animation: float 8s ease-in-out infinite;
}
.orb-2 { 
    right: 25%; bottom: 25%;
    animation: float 10s ease-in-out infinite 1s;
}
.grid-bg {
    position: absolute; inset: 0;
    background: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black, transparent);
}

.hero-content { 
    position: relative; z-index: 10; 
    text-align: center; max-width: 56rem; 
}
.hero-tag {
    display: inline-block; margin-bottom: 1.5rem;
    font-size: 0.875rem; letter-spacing: 0.3em;
    text-transform: uppercase; color: rgba(255,255,255,0.6);
    animation: fadeInUp 1s 0.2s backwards;
}
.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1.1; letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s 0.4s backwards;
}
.gradient {
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text {
    font-size: 1.125rem; line-height: 1.75;
    color: rgba(255,255,255,0.7);
    margin: 0 auto 3rem; max-width: 42rem;
    animation: fadeInUp 1s 0.6s backwards;
}
.hero-btns {
    display: flex; gap: 1rem; justify-content: center;
    flex-wrap: wrap; animation: fadeInUp 1s 0.8s backwards;
}
.btn-white {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2rem; background: #fff; color: #000;
    border-radius: 0.5rem; transition: all 0.3s;
}
.btn-white:hover { 
    background: rgba(255,255,255,0.9);
    transform: scale(1.05);
}
.btn-outline {
    display: inline-block; padding: 1rem 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.5rem; transition: all 0.3s;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

/* Features */
.features { padding: 8rem 1.5rem; }
.features h2 {
    text-align: center; font-size: 3rem;
    margin-bottom: 1rem; letter-spacing: -0.025em;
}
.subtitle {
    text-align: center; color: rgba(255,255,255,0.6);
    margin-bottom: 5rem;
}
.features-grid {
    display: grid; gap: 2rem; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature-card {
    position: relative; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem; transition: all 0.5s;
}
.feature-card::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    opacity: 0; transition: opacity 0.5s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { 
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-4px);
}
.icon {
    font-size: 3rem; margin-bottom: 1.5rem;
    display: inline-block;
}
.feature-card h3 {
    font-size: 1.5rem; margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}
.feature-card p { color: rgba(255,255,255,0.6); }

/* CTA */
.cta { padding: 8rem 1.5rem; }
.cta-flex {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 2rem; padding-top: 5rem;
}
.cta h2 {
    font-size: 3rem; margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}
.cta p {
    font-size: 1.125rem; color: rgba(255,255,255,0.6);
}
.btn-outline-lg {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2rem; font-size: 1.125rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.5rem; transition: all 0.3s;
}
.btn-outline-lg:hover {
    background: #fff; color: #000;
    transform: scale(1.05);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 3rem 1.5rem;
}
.footer-grid {
    display: grid; gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 3rem;
}
.footer h3 { 
    font-size: 1.5rem; margin-bottom: 1rem;
    letter-spacing: -0.025em;
}
.footer h4 {
    font-size: 0.875rem; text-transform: uppercase;
    letter-spacing: 0.15em; margin-bottom: 1rem;
    color: rgba(255,255,255,0.6);
}
.footer p { 
    font-size: 0.875rem; 
    color: rgba(255,255,255,0.6); 
}
.footer a, .footer span {
    display: block; margin-bottom: 0.5rem;
    font-size: 0.875rem; color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}
.footer a:hover { color: #fff; }
.footer-bottom {
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.footer-bottom p {
    font-size: 0.875rem; color: rgba(255,255,255,0.6);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(20px, -20px) scale(1.2); opacity: 0.5; }
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Scroll Reveal - VIŠE VARIJANTI */
.scroll-reveal {
    opacity: 0; 
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.scroll-reveal.revealed {
    opacity: 1; 
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0; 
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.scroll-reveal-left.revealed {
    opacity: 1; 
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0; 
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.scroll-reveal-right.revealed {
    opacity: 1; 
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0; 
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.scroll-reveal-scale.revealed {
    opacity: 1; 
    transform: scale(1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body { cursor: auto; }
    .custom-cursor, .custom-cursor-dot { display: none; }
}
