:root {
    --bg: #080809;
    --card-bg: #0e0e10;
    --text: #e0e0d5;
    --accent: #c5b395; 
    --subtle: rgba(255, 255, 255, 0.05);
    --line: rgba(197, 179, 149, 0.15);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

/* 2. FIX PRE MODRÉ LINKY A TAP HIGHLIGHT */
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:hover, a:active, a:visited, a:focus { color: inherit; text-decoration: none; }

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- ATMOSPHERE --- */
.noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04; pointer-events: none; z-index: 9000;
}
.grid-line {
    position: fixed; top: 0; bottom: 0; width: 1px;
    background: var(--line); z-index: -1; pointer-events: none;
}
.line-1 { left: 5%; }
.line-2 { right: 5%; }

/* --- LOADER --- */
#loader {
    position: fixed; inset: 0; background: #000; z-index: 10000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.loader-logo { 
    font-size: 14px; letter-spacing: 12px; text-transform: uppercase; 
    font-weight: 200; color: var(--accent); opacity: 0; transform: translateY(20px);
}

.container { width: 90%; max-width: 1400px; margin: 0 auto; position: relative; }

/* --- NAV --- */
nav {
    position: absolute; top: 0; width: 100%; padding: 40px 0;
    z-index: 1000;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 14px; font-weight: 400; letter-spacing: 6px; text-transform: uppercase; color: var(--text); text-decoration: none; }

.btn-contact {
    text-decoration: none; color: var(--accent) !important; font-size: 11px; 
    letter-spacing: 2px; text-transform: uppercase; 
    border: 1px solid var(--accent); padding: 12px 28px;
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer; background: transparent; display: inline-block;
}
.btn-contact:hover { background: var(--accent); color: var(--bg) !important; box-shadow: 0 0 20px rgba(197, 179, 149, 0.2); }

/* --- SECTIONS --- */
section { padding: 140px 0; border-top: 1px solid var(--subtle); position: relative; }
.hero-label { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: var(--accent); margin-bottom: 25px; display: block; font-weight: 600; }
.section-title { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 55px); line-height: 1.1; margin-bottom: 20px; }
.section-desc { opacity: 0.7; max-width: 600px; margin-bottom: 40px; font-weight: 300; }

/* --- HERO --- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; border: none; padding-top: 0; }
.hero h1 { 
    font-family: var(--font-serif); font-size: clamp(42px, 9vw, 120px); 
    font-weight: 400; line-height: 1; margin-bottom: 40px;
}
.hero p { max-width: 600px; font-size: clamp(16px, 2vw, 18px); font-weight: 300; opacity: 0.7; line-height: 1.7; margin-bottom: 50px; }

/* --- TECH MARQUEE --- */
.marquee-section { padding: 40px 0; border-top: 1px solid var(--subtle); border-bottom: 1px solid var(--subtle); background: rgba(12,12,13,0.5); overflow: hidden; display: flex; align-items: center; }
.marquee-content {
    display: flex; gap: 80px; animation: scroll 20s linear infinite; min-width: 100%;
}
.tech-icon { font-size: 40px; opacity: 0.3; transition: 0.3s; color: var(--text); display: flex; align-items: center; gap: 15px; }
.tech-icon:hover { opacity: 1; color: var(--accent); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* --- SPLIT CARDS (Web vs Apps) --- */
.split-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; }

.nav-card { 
    padding: 60px 50px; background: var(--card-bg); border: 1px solid var(--subtle); 
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1); position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; min-height: 500px;
    text-decoration: none; color: var(--text) !important;
}
.nav-card:hover { border-color: var(--accent); transform: translateY(-10px); }
.nav-card:hover .arrow-icon { transform: translateX(10px); color: var(--accent); }
.nav-card::before {
    content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(197, 179, 149, 0.05), transparent 60%);
    opacity: 0; transition: 0.5s;
}
.nav-card:hover::before { opacity: 1; }

.card-icon { font-size: 45px; color: var(--accent); margin-bottom: 40px; opacity: 1; }
.card-title { font-family: var(--font-serif); font-size: 40px; margin-bottom: 20px; }
.card-txt { opacity: 0.6; font-size: 16px; margin-bottom: 50px; line-height: 1.7; max-width: 90%; }

.card-link-visual { 
    margin-top: auto; display: flex; align-items: center; gap: 15px; 
    font-size: 12px; text-transform: uppercase; letter-spacing: 2px; border-top: 1px solid var(--subtle); padding-top: 30px;
}
.arrow-icon { transition: 0.3s; }

/* --- STATS / WHY US --- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.stat-item { padding: 30px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-serif); font-size: 45px; color: var(--accent); line-height: 1; margin-bottom: 15px; display: block; }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; opacity: 0.9; margin-bottom: 10px; display: block; font-weight: 600; }
.stat-desc { font-size: 14px; opacity: 0.5; line-height: 1.6; }

/* --- PORTFOLIO --- */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 40px; margin-bottom: 60px; }
.work-card { text-decoration: none; color: inherit; display: block; cursor: pointer; group: work; }
.img-container { 
    width: 100%; aspect-ratio: 16/10; background: #111; margin-bottom: 25px; 
    overflow: hidden; border: 1px solid var(--subtle); position: relative;
}
.work-img { 
    width: 100%; height: 100%; background-size: cover; background-position: center; 
    transition: 1.5s cubic-bezier(0.19, 1, 0.22, 1); filter: saturate(0) brightness(0.8); 
}
.work-card:hover .work-img { transform: scale(1.05); filter: saturate(1.1) brightness(1); }

.work-overlay {
    position: absolute; bottom: 20px; left: 20px; background: #000; padding: 10px 20px; 
    border: 1px solid var(--accent); color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
    opacity: 0; transform: translateY(10px); transition: 0.3s;
}
.work-card:hover .work-overlay { opacity: 1; transform: translateY(0); }

.work-title { font-family: var(--font-serif); font-size: 28px; margin-bottom: 5px; }
.work-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); opacity: 0.7; }

.btn-outline {
    padding: 18px 50px; border: 1px solid var(--subtle); color: var(--text) !important;
    text-transform: uppercase; letter-spacing: 3px; font-size: 11px; text-decoration: none;
    transition: 0.3s; display: inline-block; margin-top: 40px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; background: rgba(197, 179, 149, 0.05); }

/* --- CENTRED BUTTON (REUSED) --- */
.center-btn { text-align: center; margin-top: 40px; }

/* --- FOOTER --- */
footer { padding: 120px 0 60px; border-top: 1px solid var(--subtle); background: #050505; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 60px; margin-bottom: 80px; text-align: left; }

.f-col h5 { font-size: 11px; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; margin-bottom: 30px; }
.footer-bold { color: var(--text); font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.footer-sub { opacity: 0.6; font-size: 14px; line-height: 1.8; }
.footer-line { margin-bottom: 10px; font-size: 14px; opacity: 0.8; }
.footer-line b { color: var(--text); opacity: 1; }
.footer-legal { opacity: 0.4; font-size: 12px; margin-top: 20px; font-family: monospace; }

.social-link { color: var(--text) !important; margin-right: 20px; font-size: 18px; transition: 0.3s; opacity: 0.6; display: inline-block; margin-top: 20px; }
.social-link:hover { opacity: 1; color: var(--accent) !important; }

.copyright { font-size: 10px; opacity: 0.3; letter-spacing: 3px; text-transform: uppercase; text-align: center; border-top: 1px solid var(--subtle); padding-top: 40px; }

/* --- RESPONSIVE OPTIMIZATION --- */
@media (max-width: 992px) {
    section { padding: 100px 0; }
    .hero h1 { font-size: 55px; }
    .split-nav-grid, .stats-grid, .portfolio-grid, .footer-grid { grid-template-columns: 1fr; }
    .nav-card { min-height: auto; padding: 40px 30px; }
    .line-1, .line-2 { display: none; }
    
    .footer-grid { gap: 40px; }
    .stat-item { border-left: none; border-top: 1px solid var(--line); padding: 30px 0; }
    .stat-item:first-child { border-top: none; }
    
    /* 3. MARQUEE RÝCHLEJŠIE NA MOBILE */
    .marquee-content { gap: 40px; animation-duration: 8s; } /* Zmenené z 20s na 8s pre rýchlosť */
    .tech-icon { font-size: 30px; }

    .nav-content { padding: 0 10px; }
    .logo { font-size: 12px; }
    .btn-contact { padding: 10px 20px; font-size: 10px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 42px; margin-bottom: 25px; }
    .hero p { font-size: 16px; margin-bottom: 35px; }
    .section-title { font-size: 32px; }
    .card-title { font-size: 30px; }
    .card-icon { font-size: 35px; margin-bottom: 25px; }
}