/* Многу тенка и чиста бела линија што покажува до каде си со скролањето */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #FFFFFF; border-radius: 4px; }

html { scrollbar-color: #FFFFFF transparent; scrollbar-width: thin; }

:root {
    --neon-green: #D2FF00;
    --bg-olive: #5B631B;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--text-dark);
    overflow-x: hidden;
    color: var(--text-dark);
    line-height: 1.5;
}

/* =========================================
   PREMIUM BACKGROUND CANVAS
========================================= */
#premium-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;   
    pointer-events: none;
}

#preloader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: var(--neon-green);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 1s cubic-bezier(0.87, 0, 0.13, 1), visibility 1s;
}

.preloader-text {
    text-align: center; font-family: 'Syne', sans-serif;
    font-size: 4rem; font-weight: 800; line-height: 1.1;
    text-transform: uppercase; color: var(--text-dark);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.preloader-text span {
    display: block; transform: translateY(100%); opacity: 0;
    animation: slideUp 0.8s forwards cubic-bezier(0.87, 0, 0.13, 1);
}
.preloader-text span:nth-child(2) { animation-delay: 0.2s; }
@keyframes slideUp { to { transform: translateY(0); opacity: 1; } }

header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 2rem 3rem; display: flex; justify-content: space-between;
    align-items: flex-start; z-index: 100; pointer-events: none;
}

.logo {
    font-family: 'Bodoni Moda', serif;
    font-optical-sizing: auto;
    font-size: 1.5rem; /* Зголемено од 1.2rem */
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.10;
    letter-spacing: -0.01em;
    pointer-events: auto;
    color: #000000;
    transition: color 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 101;
}
.logo span {
    display: block;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: inherit;
    opacity: 1;
}

.menu-btn {
    background-color: var(--neon-green); color: var(--text-dark);
    border: 2px solid #000000; /* Додаден црн stroke */
    padding: 1rem 2.5rem; /* Зголемено */
    border-radius: 20px 0px 0px 0px;
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; /* Зголемено */
    cursor: pointer; pointer-events: auto; transition: transform 0.3s ease;
    z-index: 101;
}

.sidebar-indicator {
    position: fixed; left: 3rem; top: 85%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 1.5rem; z-index: 100;
}

.sidebar-indicator span { 
    font-family: 'Syne', sans-serif; 
    font-size: 0.8rem; 
    font-weight: 700; 
    letter-spacing: 2px; 
    color: #000000; 
    mix-blend-mode: difference; 
}

.line-ind { width: 20px; height: 2px; background-color: #000; transition: width 0.3s ease, background-color 0.3s; }
.line-ind.active { width: 40px; background-color: var(--neon-green); }

.scroll-wrapper { 
    position: relative; 
    width: 100vw; 
    height: 100vh;
    background-color: transparent;
    overflow: hidden; 
    z-index: 0;
}

.section-two {
    position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 2; display: flex; flex-direction: column; justify-content: center;
    overflow: hidden; opacity: 0;
}

.marquee-container { width: 100vw; white-space: nowrap; overflow: hidden; display: flex; margin: 2rem 0; }
.marquee-content { display: flex; animation: scrollText 25s linear infinite; }
.marquee-content.reverse { animation: scrollTextReverse 30s linear infinite; }
.marquee-item { font-family: 'Syne', sans-serif; font-size: 6vw; font-weight: 700; padding: 0 2rem; color: var(--neon-green); }
.marquee-item.white { color: var(--text-light); }
@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollTextReverse { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

.hero-section {
    position: relative; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #FFFFFF; z-index: 5; overflow: hidden;
    transform-origin: center center; will-change: transform, border-radius;
}

.hero-image {
    position: absolute; bottom: -5%; left: 50%;
    transform: translateX(-50%); height: 85vh; object-fit: contain; z-index: 2; pointer-events: none;
    width: 900px; height: 800px;
    z-index: 0;
}

.scroll-down {
    position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; flex-direction: column; align-items: center;
    color: var(--neon-green); font-family: 'Inter', sans-serif; font-weight: 600;
}
.scroll-icon {
    width: 30px; height: 50px; border: 2px solid var(--neon-green);
    border-radius: 20px; margin-bottom: 10px; position: relative;
    display: flex; justify-content: center; background-color: #1a1a1a;
}
.scroll-dot { width: 6px; height: 6px; background-color: var(--neon-green); border-radius: 50%; margin-top: 10px; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(10px); } 60% { transform: translateY(5px); } }

.reveal-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-family: 'Syne', sans-serif; font-size: 8vw; font-weight: 800;
    color: var(--neon-green); z-index: 3; opacity: 0; pointer-events: none;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5); 
}

.section-three {
    width: 100vw; height: 100vh; background-color: transparent;
    display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; z-index: auto;
}

.centered-content {
    width: 85vw; max-width: 1400px; opacity: 0;
    transform: translateY(60px); position: relative; z-index: 10;
}

.small-caps-title {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem;
    letter-spacing: 0.6rem; text-transform: uppercase;
    color: var(--neon-green); margin-bottom: 3rem; font-weight: 700;
}

.main-description {
    font-family: 'Space Grotesk', sans-serif; font-size: 3.2vw;
    line-height: 1.4; font-weight: 700; color: var(--text-light);
    text-transform: uppercase; letter-spacing: -0.02em; text-align: center;
}

.desc-reveal-line { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.desc-reveal-inner { opacity: 0; display: inline-block; }
.desc-reveal-block {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--neon-green); transform: scaleX(0);
    transform-origin: left; z-index: 10;
}

/* =========================================
   CENTERED FULL SCREEN MENU 
========================================= */
#full-menu {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: rgba(43, 46, 36, 0.95); 
    z-index: 200; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    transform: translateY(-100%); 
    visibility: hidden; 
    overflow: hidden;
}

.close-menu {
    position: absolute; top: 2rem; right: 3rem; background: #fff; border: none; width: 50px; height: 50px;
    font-family: 'Syne', sans-serif; font-weight: 700; cursor: pointer;
    border-radius: 5px; font-size: 1.2rem; z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.close-menu:hover {
    background-color: #D2FF00;
}

.menu-center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -5vh; 
}

.nav-links {
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 0rem; 
    align-items: center; 
    padding: 0; 
    margin-bottom: 3rem; 
    width: 100%;
}

.nav-links li {
    display: flex; 
    align-items: flex-start; 
    justify-content: center; 
    opacity: 0; 
    transform: translateY(30px); 
    position: relative;
    border: none; 
    padding: 0;
}

.roll-link {
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 8vw; 
    font-weight: 800; 
    color: #E5E5E5; 
    line-height: 1; 
    text-transform: uppercase;
    letter-spacing: -2px;
    padding: 0;
}

.nav-links .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    color: var(--neon-green);
    font-weight: 700;
    margin-left: 1rem;
    margin-top: 1.5rem;
}

.menu-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0; 
    animation: fadeInMenu 0.5s forwards 0.8s;
}

.logo-icon {
    font-size: 2rem;
    color: #888888;
    letter-spacing: 5px;
}

.menu-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #888888;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.menu-socials {
    position: absolute;
    bottom: 3rem;
    display: flex;
    gap: 3rem;
    opacity: 0;
    animation: fadeInMenu 0.5s forwards 1s;
}

.menu-socials a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.menu-socials a:hover {
    color: var(--neon-green);
}

@keyframes fadeInMenu {
    to { opacity: 1; }
}

.section-four { width: 100vw; height: 100vh; background-color: transparent; position: relative; overflow: hidden; z-index: auto; display: flex; align-items: center; margin-top: -1px; }
.skills-title-wrapper { position: absolute; left: 5rem; top: 30%; transform: translateY(-50%); z-index: 10; }
.skills-title-wrapper h2 { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 700; color: black; opacity: 0.5; }
.horizontal-scroll-track { display: flex; align-items: center; height: 100%; padding-left: 25vw; padding-right: 15vw; width: max-content; position: relative; z-index: 10; will-change: transform; }
.main-connector-line { position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background-color: var(--neon-green); z-index: 1; }
.skill-card { width: 320px; background-color: #2A2A2A; border-radius: 8px; padding: 1.5rem; color: #FFFFFF; font-family: 'Inter', sans-serif; position: relative; z-index: 5; margin: 0 3rem; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.card-down { transform: translateY(80px); }
.card-up { transform: translateY(-80px); }
.card-down::before { content: ''; position: absolute; top: -80px; left: 50%; width: 2px; height: 80px; background-color: var(--neon-green); }
.card-up::before { content: ''; position: absolute; bottom: -80px; left: 50%; width: 2px; height: 80px; background-color: var(--neon-green); }
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.skill-header h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; margin: 0; }
.skill-icon { font-weight: bold; font-size: 1.5rem; }
.skill-desc { font-size: 0.8rem; color: #B0B0B0; line-height: 1.5; margin-bottom: 1.5rem; }
.progress-wrapper { display: flex; align-items: center; justify-content: space-between; font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem; font-weight: 700; }
.progress-bar-bg { width: 85%; height: 4px; background-color: #444; border-radius: 2px; position: relative; overflow: hidden; }
.progress-bar-fill { position: absolute; top: 0; left: 0; height: 100%; background-color: var(--neon-green); }

.section-five { width: 100vw; height: 100vh; background-color: var(--text-dark); position: sticky; top: 0; z-index: 0; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.projects-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4rem; }
.projects-title { font-family: 'Space Grotesk', sans-serif; font-size: 6vw; font-weight: 800; color: var(--text-light); text-transform: uppercase; line-height: 1.1; letter-spacing: 2px; }
.view-projects-btn { display: flex; align-items: stretch; text-decoration: none; border-radius: 12px; overflow: hidden; }
.btn-text-main { background-color: var(--neon-green); color: var(--text-dark); padding: 1.2rem 3rem; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 1rem; letter-spacing: 1px; display: flex; align-items: center; text-decoration: none; }
.btn-icon { background-color: var(--neon-green); color: var(--text-dark); padding: 1.2rem 1.5rem; border-left: 4px solid var(--text-dark); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 400; }

.section-six { width: 100vw; height: 100vh; background-color: #1A1A1A; position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; }
.inspire-wrapper { position: relative; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.about-center-box { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100vw; height: 100vh; background-color: #2B2B2B; z-index: 10; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.about-container { display: flex; width: 85vw; max-width: 1200px; margin: 0 auto; align-items: center; justify-content: flex-end; flex-shrink: 0; }
.about-image-col { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100vw; height: 100vh; z-index: 1; }
.about-me-img { width: 100%; height: 100%; object-fit: cover; border-radius: 0px; }
.about-text-col { width: 60%; color: #FFFFFF; font-family: 'Inter', sans-serif; font-size: 1.1rem; line-height: 1.6; position: relative; z-index: 2; }
.inspire-text { font-family: 'Syne', sans-serif; font-size: 5vw; font-weight: 700; color: var(--neon-green); white-space: nowrap; text-transform: uppercase; position: absolute; z-index: 1; }
.inspire-left { right: 50%; margin-right: 1.5rem; }
.inspire-right { left: 50%; margin-left: 1.5rem; }

.section-seven { width: 100vw; min-height: 100vh; background-color: #1A1A1A; display: flex; align-items: center; justify-content: center; position: relative; z-index: 6; padding: 6rem 2rem; }
.contact-card { width: 100%; max-width: 500px; background-color: #151515; border: 1px solid var(--neon-green); border-radius: 28px; padding: 3.5rem 3rem; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4); opacity: 0; transform: translateY(60px); will-change: transform, opacity; }
.contact-title { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: #FFFFFF; margin-bottom: 3rem; letter-spacing: 1px; }
.contact-title .highlight { color: var(--neon-green); }
.contact-form { display: flex; flex-direction: column; gap: 2.5rem; }
.input-group { display: flex; flex-direction: column; gap: 0.8rem; }
.input-group label { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 600; color: #FFFFFF; }
.input-group input { background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding: 0.6rem 0; font-family: 'Inter', sans-serif; font-size: 1rem; color: #FFFFFF; outline: none; transition: border-color 0.3s ease; }
.input-group input::placeholder { color: rgba(255, 255, 255, 0.25); font-weight: 300; }
.input-group input:focus { border-bottom-color: var(--neon-green); }
.submit-btn { background-color: #FFFFFF; color: #1A1A1A; border: none; border-radius: 14px; padding: 1rem 2.5rem; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.95rem; cursor: pointer; align-self: center; margin-top: 1.5rem; width: 100%; max-width: 180px; justify-content: center; }
.submit-btn:hover { background-color: var(--neon-green); }

/* ==========================================================================
   MOBILE & RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    body { font-size: 14px; }
    .sidebar-indicator { display: none !important; }
    header { padding: 1.5rem; }
.logo { font-size: 1.3rem; color: #000000; } /* Зголемено од 1.1rem */
   .menu-btn { padding: 0.8rem 2rem; font-size: 1rem; border-radius: 14px 0px 0px 0px; border: 2px solid #000000; color: #000000 !important; } /* Зголемено и додаден stroke */
    .preloader-text { font-size: 2.5rem; }
    
    .roll-link { font-size: 12vw !important; }
    .nav-links .num { font-size: 1rem; margin-top: 1rem; }
    .menu-socials { gap: 1.5rem; bottom: 2rem; }
    .menu-socials a { font-size: 0.75rem; }
    
    .close-menu { top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; }
    
    /* ЕДИНСТВЕНА ПРОМЕНА ТУКА - Го откриваме marquee текстот на мобилен */
    .section-two { display: flex !important; }
    .marquee-container { display: flex !important; margin: 1rem 0 !important; }
    .marquee-item { display: block !important; font-size: 12vw !important; padding: 0 1rem !important; }
    .marquee-item.white { color: var(--text-light) !important; }
    
    .section-three { padding: 6rem 1rem; height: auto; }
    .main-description { font-size: 6vw !important; line-height: 1.5; }
    .section-four { height: auto !important; padding: 6rem 1.5rem; display: block !important; }
    .skills-title-wrapper { position: relative !important; left: 0 !important; top: 0 !important; transform: none !important; margin-bottom: 4rem; text-align: center; }
    .skills-title-wrapper h2 { font-size: 2.6rem; color: #FFFFFF; opacity: 0.9; }
    .horizontal-scroll-track { display: flex; flex-direction: column !important; gap: 3rem; padding: 0 !important; width: 100% !important; transform: none !important; }
    .main-connector-line { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
    .skill-card { width: 100% !important; max-width: 460px; margin: 0 auto !important; transform: none !important; }
    .card-down::before, .card-up::before { display: none !important; }
    .section-five { padding: 6rem 1.5rem; position: relative !important; }
    .projects-title { font-size: 11vw !important; }
    .btn-text-main { padding: 1rem 2rem; font-size: 0.9rem; }
    .btn-icon { padding: 1rem 1.2rem; }
    
    .section-six { height: 100vh !important; height: 100svh !important; padding: 0 !important; }
    .inspire-wrapper { height: 100% !important; flex-direction: column; }
    .about-center-box { position: relative !important; left: 0 !important; transform: translateX(0); width: 100vw !important; height: 100% !important; background-color: transparent; border-radius: 0px !important; padding: 0 !important; }
    .about-container { flex-direction: column !important; width: 100%; height: 100%; gap: 0 !important; padding: 2rem 1.5rem 1.1rem 1.5rem !important; justify-content: flex-end !important; position: relative; z-index: 2; }
    .about-image-col { position: absolute !important; top: 0 !important; left: 0 !important; transform: none !important; width: 100% !important; height: 100% !important; border-radius: 0px !important; overflow: hidden; z-index: 1 !important; }
    .about-image-col::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 75%; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 45%, transparent 100%); z-index: 2; pointer-events: none; }
    .about-me-img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 20% top !important; }
    .about-text-col { width: 100% !important; font-size: 0.8rem; line-height: 1.6; text-align: left; position: relative; z-index: 3 !important; text-shadow: 0 2px 10px rgba(0,0,0,0.8); margin-top: auto; }
    .inspire-text { display: none !important; }
    
    .section-seven { padding: 5rem 1rem; }
    .contact-card { padding: 2.5rem 1.5rem; border-radius: 22px; }
    .contact-title { font-size: 1.7rem; margin-bottom: 2.5rem; text-align: center; }
    .contact-form { gap: 2rem; }
}

@media (max-width: 600px) {
    .hero-image { width: 130% !important; max-width: 130% !important; height: auto !important; margin-top: auto !important; margin-bottom: 0 !important; display: block !important; }
}

