/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    scroll-behavior: smooth;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CSS Variables for themes */
:root {
    --color-white: #ffffff;
    --color-zinc-50: #fafafa;
    --color-zinc-100: #f4f4f5;
    --color-zinc-200: #e4e4e7;
    --color-zinc-300: #d4d4d8;
    --color-zinc-400: #a1a1aa;
    --color-zinc-500: #71717a;
    --color-zinc-600: #52525b;
    --color-zinc-700: #3f3f46;
    --color-zinc-800: #27272a;
    --color-zinc-900: #18181b;
    --color-zinc-950: #09090b;
    --color-cyan-100: #cffafe;
    --color-cyan-400: #22d3ee;
    --color-cyan-500: #06b6d4;
    --color-cyan-600: #0891b2;
    --color-cyan-700: #0e7490;
    --color-cyan-800: #155e75;
    --color-cyan-900: #164e63;
    --color-blue-100: #dbeafe;
    --color-blue-900: #1e3a8a;
}

/* Light theme (default) */
html.light {
    --bg-primary: var(--color-white);
    --bg-secondary: var(--color-zinc-50);
    --bg-tertiary: var(--color-zinc-100);
    --text-primary: var(--color-zinc-900);
    --text-secondary: var(--color-zinc-600);
    --text-tertiary: var(--color-zinc-700);
    --border-primary: var(--color-zinc-200);
    --border-secondary: var(--color-zinc-300);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --card-bg: var(--color-zinc-50);
    --card-hover-bg: var(--color-white);
    --input-bg: var(--color-white);
    --hero-gradient-from: var(--color-cyan-100);
    --hero-gradient-to: var(--color-blue-100);
    --hero-border: var(--color-cyan-200);
}

/* Dark theme */
html.dark {
    --bg-primary: var(--color-zinc-950);
    --bg-secondary: var(--color-zinc-900);
    --bg-tertiary: var(--color-zinc-900);
    --text-primary: var(--color-white);
    --text-secondary: var(--color-zinc-400);
    --text-tertiary: var(--color-zinc-300);
    --border-primary: var(--color-zinc-800);
    --border-secondary: var(--color-zinc-700);
    --nav-bg: rgba(9, 9, 11, 0.8);
    --card-bg: var(--color-zinc-900);
    --card-hover-bg: var(--color-zinc-800);
    --input-bg: var(--color-zinc-900);
    --hero-gradient-from: var(--color-cyan-900);
    --hero-gradient-to: var(--color-blue-900);
    --hero-border: var(--color-cyan-800);
}

/* Base styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* Utility classes */
.min-h-screen { min-height: 100vh; }
.max-w-6xl { max-width: 72rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-balance { text-wrap: balance; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.w-4 { width: 1rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-40 { width: 10rem; }
.w-full { width: 100%; }
.h-4 { height: 1rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-40 { height: 10rem; }
.min-h-64 { min-height: 16rem; }
.aspect-square { aspect-ratio: 1 / 1; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0px; }
.inset-1 { inset: 0.25rem; }
.z-50 { z-index: 50; }
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.cursor-pointer { cursor: pointer; }
.resize-none { resize: none; }
.object-contain { object-fit: contain; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Navigation */
nav {
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-primary);
}

nav .flex {
    height: 4rem;
}

/* Logo */
.logo-box {
    width: 2rem;
    height: 2rem;
    background-color: var(--color-cyan-500);
    position: relative;
}

.logo-inner {
    position: absolute;
    inset: 0.25rem;
    background-color: var(--bg-primary);
}

/* Header logo styling */
nav img {
    filter: none;
    transition: opacity 0.3s ease;
}

nav img:hover {
    opacity: 0.8;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

nav a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--color-cyan-600);
}

/* Buttons */
button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-cyan-600);
    color: var(--color-white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-cyan-700);
}

.btn-primary.w-full {
    width: 100%;
}

/* Sections */
section {
    border-bottom: 1px solid var(--border-primary);
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* Hero section */
.hero-visual {
    background: linear-gradient(to bottom right, var(--hero-gradient-from), var(--hero-gradient-to));
    border: 1px solid var(--hero-border);
    border-radius: 1rem;
}

/* Service cards */
.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    padding: 2rem;
}

.service-card:hover {
    background-color: var(--card-hover-bg);
    border-color: var(--color-cyan-400);
}

.service-card .group-hover\:scale-110 {
    transition: transform 0.3s ease;
}

.service-card:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.service-card p {
    line-height: 1.6;
    margin-bottom: 0;
}

/* Tech cards */
.tech-card {
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}

/* Tech stack horizontal row */
.tech-stack-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 2rem);
    margin-bottom: 2rem;
    padding: 1.25rem clamp(0.75rem, 2vw, 2rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
}

.tech-stack-row::-webkit-scrollbar { height: 10px; }
.tech-stack-row::-webkit-scrollbar-thumb { background: var(--border-primary); border-radius: 10px; }
.tech-stack-row::-webkit-scrollbar-track { background: transparent; }

.tech-card {
    flex: 0 0 auto;
    width: 82px;
    height: 82px;
    box-sizing: border-box;
    scroll-snap-align: center;
    position: relative;
}

.tech-card img { width: 40px; height: 40px; }

@media (min-width: 768px) {
    .tech-card { width: 96px; height: 96px; }
    .tech-card img { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
    .tech-card { width: 72px; height: 72px; }
    .tech-card img { width: 34px; height: 34px; }
}

.tech-card:hover {
    background-color: var(--card-bg);
    border-color: var(--color-cyan-400);
}

.tech-card .group-hover\:scale-110 {
    transition: transform 0.3s ease;
}

.tech-card:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Tech logos styling */
.playwright-logo,
.cypress-logo,
.k6-logo,
.selenium-logo,
.robot-logo,
.jmeter-logo {
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 8px rgba(34, 211, 238, 0.2));
    transition: filter 0.3s ease;
}

.tech-card:hover .playwright-logo,
.tech-card:hover .cypress-logo,
.tech-card:hover .k6-logo,
.tech-card:hover .selenium-logo,
.tech-card:hover .robot-logo,
.tech-card:hover .jmeter-logo {
    filter: brightness(1.25) contrast(1.1) drop-shadow(0 0 8px rgba(34, 211, 238, 0.2));
}

/* Form styles */
input, textarea {
    background-color: var(--input-bg);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

/* Overrides: simplified tech stack UI */
.tech-stack-row {
        flex-wrap: nowrap !important; /* jeden riadok bez zalamovania */
        gap: clamp(0.5rem, 1.5vw, 1.25rem) !important;
        margin: 0 0 2.25rem 0 !important;
        padding: 0.5rem !important;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        overflow-x: auto !important; /* horizontálny scroll ak treba */
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
}

.tech-card {
        flex: 0 0 auto !important;
        width: 140px !important;
        height: 140px !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
}
/* Ikony max veľkosť s enforced square aspect ratio */
.tech-card img { 
        width: 100px !important; 
        height: 100px !important; 
        object-fit: contain !important; 
        aspect-ratio: 1 / 1 !important;
}

/* Inverzia farieb ikon v dark mode pre lepšiu viditeľnosť */
html.dark .tech-card img {
        filter: brightness(0) invert(1) !important;
}

@media (min-width:768px){
    .tech-card { width:150px !important; height:150px !important; }
}
@media (max-width:640px){
    .tech-card { width:110px !important; height:110px !important; }
}
.tech-card:hover { transform: scale(1.05) !important; }

input:hover, textarea:hover {
    border-color: var(--color-cyan-400);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-cyan-600);
}

/* Footer */
footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-primary);
}

footer a:hover {
    color: var(--color-cyan-600);
}

/* Text colors */
.text-zinc-600 {
    color: var(--text-secondary);
}

.text-zinc-700 {
    color: var(--text-tertiary);
}

.text-cyan-600 {
    color: var(--color-cyan-600);
}

/* Dark theme specific overrides */
html.dark .dark\:hidden {
    display: none;
}

html.dark .dark\:block {
    display: block;
}

html.dark .dark\:bg-zinc-950 {
    background-color: var(--color-zinc-950);
}

html.dark .dark\:bg-zinc-900 {
    background-color: var(--color-zinc-900);
}

html.dark .dark\:bg-zinc-800 {
    background-color: var(--color-zinc-800);
}

html.dark .dark\:text-white {
    color: var(--color-white);
}

html.dark .dark\:text-zinc-400 {
    color: var(--color-zinc-400);
}

html.dark .dark\:text-zinc-300 {
    color: var(--color-zinc-300);
}

html.dark .dark\:border-zinc-800 {
    border-color: var(--color-zinc-800);
}

html.dark .dark\:border-zinc-700 {
    border-color: var(--color-zinc-700);
}

html.dark .dark\:hover\:bg-zinc-50 {
    background-color: var(--card-bg);
}

html.dark .dark\:hover\:bg-zinc-800:hover {
    background-color: var(--color-zinc-800);
}

html.dark .dark\:from-cyan-900 {
    --hero-gradient-from: var(--color-cyan-900);
}

html.dark .dark\:to-blue-900 {
    --hero-gradient-to: var(--color-blue-900);
}

html.dark .dark\:border-cyan-800 {
    --hero-border: var(--color-cyan-800);
}

/* Responsive design */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:gap-8 { gap: 2rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:p-12 { padding: 3rem; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Grid utilities for responsive layouts */
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Additional responsive utilities */
@media (max-width: 767px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .py-24 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--color-cyan-600);
    outline-offset: 2px;
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Loading state for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Print styles */
@media print {
    nav, footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
        border: none;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* QA Animation Styles */
.qa-animation-container {
    position: relative;
    background: white !important;
}

html.dark .qa-animation-container {
    background: #09090b !important;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

html.dark .orbit {
    border-color: rgba(255, 255, 255, 0.08);
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.02); }
}

.orbit-1 { width: 150px; height: 150px; animation-delay: 0s; }
.orbit-2 { width: 250px; height: 250px; animation-delay: 1s; }
.orbit-3 { width: 350px; height: 350px; animation-delay: 2s; }
.orbit-4 { width: 450px; height: 450px; animation-delay: 1.5s; }

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    background: 
        radial-gradient(circle at top left, rgba(250, 250, 250, 0.8) 0%, transparent 40%),
        radial-gradient(circle at top right, rgba(250, 250, 250, 0.8) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(250, 250, 250, 0.8) 0%, transparent 40%),
        radial-gradient(circle at bottom right, rgba(250, 250, 250, 0.8) 0%, transparent 40%);
}

html.dark .fade-overlay {
    background: 
        radial-gradient(circle at top left, rgba(24, 24, 27, 0.8) 0%, transparent 40%),
        radial-gradient(circle at top right, rgba(24, 24, 27, 0.8) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(24, 24, 27, 0.8) 0%, transparent 40%),
        radial-gradient(circle at bottom right, rgba(24, 24, 27, 0.8) 0%, transparent 40%);
}

.test-particle {
    position: absolute;
    opacity: 0;
}

.float-vertical {
    animation: floatUp 20s linear infinite;
}

.float-horizontal {
    animation: floatSide 25s linear infinite;
}

.float-diagonal {
    animation: floatDiagonal 22s linear infinite;
}

@keyframes floatUp {
    0% { 
        top: var(--start-y);
        transform: translateX(var(--drift, 0px)) rotate(0deg); 
        opacity: 0; 
    }
    5% { opacity: 0.4; }
    95% { opacity: 0.4; }
    100% { 
        top: var(--end-y);
        transform: translateX(var(--drift, 0px)) rotate(360deg); 
        opacity: 0; 
    }
}

@keyframes floatSide {
    0% { 
        left: var(--start-x);
        transform: translateY(var(--y-drift, 0%)) rotate(0deg); 
        opacity: 0; 
    }
    5% { opacity: 0.4; }
    95% { opacity: 0.4; }
    100% { 
        left: var(--end-x);
        transform: translateY(var(--y-drift, 0%)) rotate(360deg); 
        opacity: 0; 
    }
}

@keyframes floatDiagonal {
    0% { 
        left: var(--start-x);
        top: var(--start-y);
        transform: rotate(0deg); 
        opacity: 0; 
    }
    5% { opacity: 0.4; }
    95% { opacity: 0.4; }
    100% { 
        left: var(--end-x);
        top: var(--end-y);
        transform: rotate(var(--rotate)); 
        opacity: 0; 
    }
}

.bug-particle { width: 55px; height: 55px; }
.check-particle { width: 60px; height: 60px; }
.magnifier-particle { width: 58px; height: 58px; }
.clipboard-particle { width: 56px; height: 56px; }
.flask-particle { width: 54px; height: 54px; }
.terminal-particle { width: 62px; height: 62px; }
.target-particle { width: 58px; height: 58px; }

/* Particle SVG color handling */
.particle-svg {
    color: rgba(0, 0, 0, 0.35);
}

html.dark .particle-svg {
    color: rgba(255, 255, 255, 0.45);
}

.code-particle {
    background: rgba(0, 0, 0, 0.06);
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

html.dark .code-particle {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}