/* ===== GLOBALNE VARIJABLE ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #3b82f6;
    --light: #f8fafc;
    --dark: #0f172a;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    
    --font-main: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-mono: 'Roboto Mono', monospace;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), #8b5cf6);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET I BAZNI STILOVI ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* ===== ANIMIRANI CURSOR ===== */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: multiply;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

/* ===== HERO SEKCIJA ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    overflow: hidden;
    isolation: isolate;
}

.hero-content {
    text-align: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.title-part {
    display: inline-block;
}

.title-part:first-child {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.title-part:last-child {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(90deg, white, #c7d2fe);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M20 20h10v10H20zM70 20h10v10H70zM20 70h10v10H20zM70 70h10v10H70z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 60px 60px;
    opacity: 0.5;
    z-index: -1;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid white;
    border-radius: var(--radius-full);
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: var(--radius-full);
    animation: scroll 2s infinite;
}

/* ===== NAVIGACIJA ===== */
.floating-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: flex;
    gap: 0.5rem;
}

.floating-nav ul {
    display: flex;
    gap: 0.5rem;
}

.floating-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: var(--transition);
    background: var(--light);
    color: var(--dark);
}

.floating-nav a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ===== SEKCIJE ===== */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.text-gradient {
    background-image: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: var(--radius-full);
}

.dark-section {
    background-color: var(--dark);
    color: white;
}

.dark-section .section-divider {
    background: linear-gradient(90deg, var(--accent), white);
}

/* ===== GRID LAYOUT ===== */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== KARTICE ===== */
.info-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: inherit;
}

.info-card p {
    color: inherit;
    opacity: 0.9;
}

/* ===== FEATURE SHOWCASE ===== */
.feature-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

.feature-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.feature-container.reverse {
    flex-direction: row-reverse;
}

.feature-visual {
    flex: 1;
    min-width: 300px;
}

.feature-desc {
    flex: 1;
}

.feature-desc h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature-desc p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.typo-example {
    font-size: 2rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    color: var(--dark);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: text;
}

.typo-example:hover {
    box-shadow: var(--shadow-lg);
}

.css-example {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

.css-example code {
    color: white;
}

/* ===== CODE TABS ===== */
.code-tabs {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--gray-light);
}

.tab-button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    color: var(--gray);
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.tab-button.active {
    color: var(--primary);
    font-weight: 700;
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

.tab-content pre {
    margin: 0;
    background: none !important;
    padding: 0;
}

.tab-content code {
    color: var(--dark);
}

/* ===== VARIJABILNI FONTOVI DEMO ===== */
.variable-demo {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.axis-controls {
    margin-bottom: 2rem;
}

.axis {
    margin-bottom: 1.5rem;
}

.axis label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.axis input {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: var(--radius-full);
    outline: none;
}

.axis input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.axis-value {
    display: inline-block;
    margin-left: 0.5rem;
    font-family: var(--font-mono);
    color: var(--accent);
}

.variable-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: font-variation-settings 0.3s ease;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo span:first-child {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--gray-light);
}

.link-group a {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--gray);
    transition: var(--transition);
}

.link-group a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===== ANIMACIJE ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0) translateX(-50%);
        opacity: 1;
    }
    100% {
        transform: translateY(10px) translateX(-50%);
        opacity: 0;
    }
}

/===== RESPONZIVNOST ===== 
@media (max-width: 768px) {
    .hero {
        min-height: 600px;
    }
    
    .feature-container, 
    .feature-container.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .floating-nav {
        bottom
        