/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #0f172a;
    --text-dark: #020617;
    --text-medium: #1f2933;
    --text-light: #6b7280;
    --bg-dark: #020617;
    --bg-darker: #020617;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --border-dark: #1f2937;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 15px rgba(15, 23, 42, 0.10);
    --shadow-xl: 0 18px 30px rgba(15, 23, 42, 0.12);
    --shadow-2xl: 0 24px 45px rgba(15, 23, 42, 0.16);
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #f3f4f6;
    --accent-color: #f3f4f6;
    --text-dark: #f9fafb;
    --text-medium: #e5e7eb;
    --text-light: #9ca3af;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-light: #1e293b;
    --bg-white: #1e293b;
    --bg-card: #334155;
    --border-color: #475569;
    --border-dark: #64748b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 18px 30px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 24px 45px rgba(0, 0, 0, 0.7);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-light);
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px; /* Base font size for mobile */
}

@media (max-width: 768px) {
    body {
        font-size: 15px; /* Slightly smaller on mobile */
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(29, 78, 216, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(30, 41, 59, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.nav-brand {
    transition: color 0.15s ease, transform 0.15s ease;
}

.nav-brand:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.logo-icon {
    flex-shrink: 0;
    transition:
        transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Novi hover efekt za logo: subtle power-move (scale + glow) */
.nav-brand:hover .logo-icon {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 12px 25px rgba(37, 99, 235, 0.55));
}

.logo-text {
    font-weight: 700;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle,
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover,
.lang-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.theme-icon-light,
.theme-icon-dark {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    color: var(--text-dark);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.theme-icon-dark {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .lang-toggle {
    border-color: rgba(226, 232, 240, 0.4);
}

[data-theme="dark"] .theme-icon-light,
[data-theme="dark"] .theme-icon-dark {
    color: #e2e8f0;
}

[data-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .lang-toggle:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.lang-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

[data-theme="dark"] .lang-text {
    color: #e2e8f0;
}

.lang-toggle:hover .lang-text {
    color: var(--primary-color);
}

[data-theme="dark"] .lang-toggle:hover .lang-text {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--text-dark);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-dark);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 40%, #eef2ff 100%);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 40%, #1e293b 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(37, 99, 235, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 50% 110%, rgba(15, 23, 42, 0.9) 0%, transparent 70%);
    pointer-events: none;
    animation: heroBgMove 22s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    right: 8%;
    top: 18%;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 0%, rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0)),
        radial-gradient(circle at 70% 100%, rgba(56, 189, 248, 0.9), rgba(15, 23, 42, 0.9));
    opacity: 0.55;
    filter: blur(4px);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: heroBgOrb 26s ease-in-out infinite;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Floating particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s ease-in-out infinite;
}

.hero-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    width: 6px;
    height: 6px;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-60px) translateX(-15px);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-30px) translateX(10px);
        opacity: 0.4;
    }
}

.particle {
    pointer-events: none;
}

/* Tech icons background */
.hero-tech-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.tech-icon {
    animation: techFloat 20s ease-in-out infinite;
    transform-origin: center;
}

.tech-icon:nth-child(1) {
    position: absolute;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.tech-icon:nth-child(2) {
    position: absolute;
    top: 25%;
    right: 12%;
    animation-delay: 4s;
}

.tech-icon:nth-child(3) {
    position: absolute;
    bottom: 30%;
    left: 10%;
    animation-delay: 8s;
}

.tech-icon:nth-child(4) {
    position: absolute;
    bottom: 20%;
    right: 15%;
    animation-delay: 12s;
}

.tech-icon:nth-child(5) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 16s;
}

@keyframes techFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.08;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.12;
    }
}

@media (max-width: 768px) {
    .hero-tech-icons {
        font-size: 1.8rem;
        gap: 2rem;
    }
    
    .tech-icon {
        opacity: 0.05;
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
    color: var(--text-dark);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-main-message {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .hero-main-message {
        font-size: 2rem;
    }
}

.greeting {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 1rem;
    margin-top: 2rem;
    letter-spacing: 0.5px;
    text-transform: none;
}

.name {
    display: block;
    color: var(--text-dark);
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    font-weight: 400;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hero-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 650px;
}

.hero-result {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    color: var(--text-medium);
    line-height: 1.8;
    max-width: 650px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.hero-buttons.animate {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-dark);
    border: 2px solid rgba(15, 23, 42, 0.12);
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
    background: #e5edff;
    color: var(--primary-dark);
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(37, 99, 235, 0.35);
    color: #f9fafb;
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
}

.hero-focus {
    margin-top: -0.75rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.hero-focus-word {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.hero-meta.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.hero-meta-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0.9;
}

.hero-meta-icon svg {
    width: 16px;
    height: 16px;
}

.hero-meta-dot {
    color: rgba(148, 163, 184, 0.9);
}

@media (max-width: 768px) {
    .hero-meta {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.5rem 1rem;
    }

    .hero-meta-item {
        flex: 0 1 45%;
        justify-content: center;
    }

    .hero-meta-item:last-child {
        flex-basis: 100%;
        justify-content: center;
    }

    .hero-meta-dot {
        display: none;
    }
}

@keyframes heroBgMove {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0.85;
    }
    50% {
        transform: translate3d(-55px, 30px, 0);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.85;
    }
}

@keyframes heroBgOrb {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.5;
    }
    35% {
        transform: translate3d(-20px, 10px, 0) scale(1.05);
        opacity: 0.8;
    }
    70% {
        transform: translate3d(-45px, 25px, 0) scale(1.02);
        opacity: 0.6;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.5;
    }
}


@media (max-width: 900px) {
    .hero .container {
        display: block;
    }

    .hero-decor {
        display: none;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-light);
    border-radius: 2px;
    animation: scroll 1s infinite;
}

.scroll-text {
    margin-top: 0.6rem;
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
    will-change: transform, opacity;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -1px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.section-title.revealed::after {
    transform: translateX(-50%) scaleX(1);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
}

.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    justify-items: center;
}

.skills-list li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.skills-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}

.stat-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Benefits Section */
.benefits {
    background: var(--bg-white);
    padding: 5rem 0;
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 968px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.benefits-result {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.benefits-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Why Section */
.why {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 5rem 0;
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    text-align: center;
    padding: 2rem;
}

.why-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.why-icon svg {
    width: 32px;
    height: 32px;
}

.why-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.why-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* About Section - Updated */
.about-image {
    text-align: center;
    margin-bottom: 2rem;
}

.about-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 0;
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.form-note {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Services Section */
.services {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-btn-prev {
        left: -20px;
    }
    
    .carousel-btn-next {
        right: -20px;
    }
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, border-top-color 0.2s ease;
    border-top: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--primary-dark);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s ease, color 0.2s ease;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card:hover .service-icon {
    transform: translateY(-3px);
    color: var(--primary-dark);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.service-contact-btn {
    display: inline-block;
    width: 100%;
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, transform 0.4s ease, box-shadow 0.5s ease;
    border: none;
    cursor: pointer;
}

.service-contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Process Section */
.process {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 5rem 0;
    position: relative;
}

.process-timeline {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.process-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.process-step-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step-content:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.process-step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.process-step-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .process-timeline::before {
        left: 20px;
    }
    
    .process-step {
        padding-left: 60px;
    }
    
    .process-step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-white);
    padding: 5rem 0;
    position: relative;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.625rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-medium);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
    font-size: 0.9375rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(37, 99, 235, 0);
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--border-color);
    will-change: transform, opacity;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    /* subtle, nevtralen glow namesto modrega outline-a */
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(148, 163, 184, 0.6);
    border-color: rgba(148, 163, 184, 0.8);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background 0.35s ease, transform 0.35s ease;
}

.portfolio-item:hover .portfolio-image {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: scale(1.03);
}

.portfolio-placeholder {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 1;
    letter-spacing: 0.02em;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.portfolio-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease, gap 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.portfolio-link::after {
    content: '→';
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.portfolio-link:hover::after {
    transform: translateX(3px);
}

/* Timeline Section */
.timeline {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s ease, box-shadow 0.5s ease, border-left-color 0.4s ease;
    border-left: 3px solid var(--primary-color);
    border: 1px solid var(--border-color);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
    border-left-color: var(--primary-dark);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding-top: 3.5rem;
    padding-bottom: 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    text-align: left;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, color 0.4s ease, transform 0.4s ease, box-shadow 0.5s ease, border-color 0.4s ease;
    color: var(--text-medium);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item:hover .contact-icon {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-item a,
.contact-item p {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.625rem 1.25rem;
    background: var(--bg-white);
    color: var(--text-medium);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.5s ease;
    font-weight: 500;
    border: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 100%;
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-dark);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: var(--bg-card);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Only show red border when explicitly marked as error */
.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Skills Section */
.skills-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

[data-theme="dark"] .skills-section {
    background: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .skill-category {
    background: var(--bg-card);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    color: var(--text-medium);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] .skill-tag {
    background: var(--bg-white);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Testimonials Section */
/* How It Works Section */
.how-it-works {
    background: var(--bg-white);
    padding: 5rem 0;
    position: relative;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9375rem;
}

@media (max-width: 968px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Section */
.portfolio {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 5rem 0;
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.portfolio-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.portfolio-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.portfolio-result {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-medium);
}

.portfolio-result strong {
    color: var(--text-dark);
}

@media (max-width: 968px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* About Trust Items */
.about-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.trust-item:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.trust-item svg {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .about-trust {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trust-item {
        justify-content: flex-start;
        padding: 1rem 1.25rem;
    }
}

.testimonials {
    padding: 5rem 0;
    background: var(--bg-light);
}

[data-theme="dark"] .testimonials {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

[data-theme="dark"] .testimonial-card {
    background: var(--bg-card);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    flex: 1;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.testimonial-avatar svg {
    width: 24px;
    height: 24px;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: var(--bg-light);
}

[data-theme="dark"] .faq {
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

[data-theme="dark"] .faq-item {
    background: var(--bg-card);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease;
    padding: 0 1.5rem;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
    opacity: 1;
}

.faq-answer p {
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .cookie-banner {
    background: var(--bg-card);
    border-top-color: var(--primary-color);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9375rem;
    min-width: 250px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 0.75rem 1.5rem;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-dark);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-content p {
    margin: 0;
    font-size: 0.9375rem;
}

.footer .social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer .social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.footer .social-link svg {
    width: 20px;
    height: 20px;
}

.footer-subtitle {
    margin: 0;
    opacity: 0.6;
    font-size: 0.8125rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.15s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    [data-theme="dark"] .nav-menu {
        background: var(--bg-card);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem;
        font-size: 1rem;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .theme-toggle,
    .lang-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-icon-light,
    .theme-icon-dark {
        width: 18px;
        height: 18px;
    }

    .lang-text {
        font-size: 0.75rem;
    }


    /* Hero Section */
    .hero {
        padding-top: 100px;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
        padding-bottom: 3rem;
        display: flex;
        align-items: center;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .greeting {
        font-size: 0.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 1rem 0 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 1rem 2rem;
    }

    .hero-logo {
        width: 200px;
        height: 200px;
        margin-top: 2rem;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        font-size: 0.9375rem;
    }

    .about-text .lead {
        font-size: 1.125rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    /* Services Section */
    .services {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }

    .service-features {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    .service-contact-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* Skills Section */
    .skills-section {
        padding: 3rem 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-category h3 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    .skill-tag {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }

    /* Testimonials Section */
    .testimonials {
        padding: 3rem 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-content p {
        font-size: 0.9375rem;
    }

    .testimonial-author {
        gap: 0.75rem;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }

    .testimonial-author h4 {
        font-size: 0.9375rem;
    }

    .testimonial-author p {
        font-size: 0.8125rem;
    }

    /* FAQ Section */
    .faq {
        padding: 3rem 0;
    }

    .faq-list {
        margin-top: 2rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
    }

    .faq-answer p {
        font-size: 0.9375rem;
    }

    /* Contact Section */
    .contact {
        padding: 2rem 0 1rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        align-items: center;
        gap: 1.5rem;
    }

    .contact-item {
        justify-content: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: stretch;
    }

    .contact-info {
        order: 2; /* Kontakt info pod obrazcem na telefonu */
    }

    .contact-form {
        order: 1; /* Obrazec prvi na telefonu */
    }

    .contact-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-info p {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .contact-details {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-item h4 {
        font-size: 0.9375rem;
    }

    .contact-item a,
    .contact-item p {
        font-size: 0.875rem;
    }

    .contact-form {
        gap: 1.25rem;
    }

    .form-group label {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
    }

    .form-group textarea {
        min-height: 120px;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-content p {
        font-size: 0.875rem;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-buttons .btn {
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0;
    }

    .footer-content {
        gap: 0.5rem;
    }

    .footer-content p {
        font-size: 0.875rem;
        margin: 0;
    }

    .footer-subtitle {
        font-size: 0.75rem;
        margin: 0;
    }

    /* Back to Top */
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Skills list */
    .skills-list {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* Animation for stats */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card.animated .stat-number {
    animation: countUp 0.3s ease-out;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease, visibility 0.15s ease;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary-color);
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: toastSlideIn 0.15s ease-out;
    pointer-events: auto;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-light);
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-light);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease, transform 0.3s ease;
}

.toast-close:hover {
    color: var(--text-dark);
}

/* Form Improvements */
.required {
    color: #ef4444;
}

.form-group {
    position: relative;
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Remove aggressive invalid styling - only show errors after blur */
input.error,
textarea.error {
    border-color: #ef4444;
}

input:focus:not(.error),
textarea:focus:not(.error) {
    border-color: var(--primary-color);
}

.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loader {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Focus visible improvements */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10001;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 0.8s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth scroll improvements */
html {
    scroll-padding-top: 80px;
}

/* Image lazy loading placeholder */
img[loading="lazy"] {
    background: var(--bg-light);
    transition: opacity 0.15s;
}

/* Improved hover states */
a, button {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print styles */
@media print {
    .navbar,
    .back-to-top,
    .scroll-progress,
    .scroll-indicator,
    .toast-container {
        display: none;
    }
    
    body {
        background: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Keyboard Navigation Styles */
.keyboard-navigation *:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.keyboard-navigation a:focus,
.keyboard-navigation button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Improved form input styles */
input:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

input.error,
textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Loading state for buttons */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Enhanced service card hover */
.service-card {
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Portfolio item overlay effect */
/* (Overlay on portfolio cards removed for cleaner, more minimal hover) */

/* Social links hover effect */
.social-link {
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease, transform 0.4s ease;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    color: white;
}

/* Stats counter animation improvement */
.stat-card {
    perspective: 1000px;
}

.stat-card:hover {
    transform: translateY(-5px) rotateX(5deg);
}

/* Hero section gradient animation */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.1) 0%, transparent 70%);
    animation: heroGradient 20s ease infinite;
    pointer-events: none;
}

@keyframes heroGradient {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(50%, 50%);
    }
}

/* Section divider */
section:not(:last-child)::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin-top: 5rem;
}

/* Improved scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Contact form improvements */
.contact-form {
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.05), rgba(99, 102, 241, 0.05));
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-form:focus-within::before {
    opacity: 1;
}

/* Nav link active indicator */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Mobile menu backdrop */
@media (max-width: 768px) {
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Improved button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Portfolio grid stagger */
.portfolio-item:nth-child(1) { transition-delay: 0s; }
.portfolio-item:nth-child(2) { transition-delay: 0.1s; }
.portfolio-item:nth-child(3) { transition-delay: 0.2s; }

/* Service card stagger */
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }

/* Hero logo pulse animation */
.hero-logo {
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(29, 78, 216, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(29, 78, 216, 0.6));
    }
}

/* Improved contact icons - already updated above */

/* Footer improvements */

/* Accessibility: High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --text-dark: #000000;
        --bg-white: #ffffff;
        --border-color: #000000;
    }
}

/* Dark mode support (prepared for future) */
@media (prefers-color-scheme: dark) {
    /* Will be implemented if needed */
}

/* Improved mobile touch targets */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Additional mobile optimizations */
    .navbar {
        padding: 0;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .hero-image {
        display: none; /* Skrij logo na telefonu */
    }

    .about-text p {
        margin-bottom: 1rem;
    }

    .skills-list {
        gap: 0.5rem;
    }

    .skills-list li {
        font-size: 0.9375rem;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .social-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .service-card,
    .skill-category,
    .testimonial-card {
        padding: 1.25rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 0.9375rem;
        padding: 0.875rem;
    }

    .contact-item {
        padding: 0.875rem;
    }
}

/* Performance: GPU acceleration */
.service-card,
.portfolio-item,
.back-to-top {
    will-change: transform;
    transform: translateZ(0);
}

/* Improved text rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading state improvements */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .service-card,
    .skill-category,
    .testimonial-card {
        padding: 1.25rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 0.9375rem;
        padding: 0.875rem;
    }

    .contact-item {
        padding: 0.875rem;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }

    .nav-brand {
        font-size: 1.125rem;
    }

    .hero-buttons .btn {
        font-size: 0.9375rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Prevent horizontal scroll on all devices */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}
