/* === Local Fonts === */
/* Fonty jsou načítány přes hlavičku z lokálního zdroje */

/* === CSS Variables & Tokens === */
:root {
    /* Hyper-Neon Theme */
    --brand-green: #00ff88;
    --brand-green-dark: #00cc6a;
    --brand-glow: 0 0 30px rgba(0, 255, 136, 0.5);
    
    --bg-dark: #0f0f11;
    --bg-light: #16161a;
    --text-main: #f0f0f0;
    --text-muted: #a3a3a3;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

::selection {
    background: var(--brand-green);
    color: #000;
}

/* === Custom Cursor === */
/* We will hide the cursor via a class added by JS so we don't break touch devices */
body.no-cursor, body.no-cursor * {
    cursor: none !important;
}

.custom-cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background-color: var(--brand-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    border: 1px solid var(--brand-green);
    background-color: transparent;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, mix-blend-mode 0.3s ease;
}

.custom-cursor.hover {
    width: 80px;
    height: 80px;
    background-color: #fff;
    mix-blend-mode: difference;
    border-color: transparent;
}

.custom-cursor.hover-text {
    width: 120px;
    height: 120px;
    background-color: var(--brand-green);
    mix-blend-mode: difference;
    border-color: transparent;
}

.custom-cursor.no-blend {
    mix-blend-mode: normal !important;
    background-color: transparent !important;
    border-color: var(--brand-green) !important;
}

/* Fallback for touch devices */
@media (hover: none) and (pointer: coarse) {
    body.no-cursor, body.no-cursor * { cursor: auto !important; }
    .custom-cursor, .custom-cursor-dot { display: none !important; }
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

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

/* Ambient glow on the page */
body::before {
    content: '';
    position: absolute;
    top: -10vh; left: 50vw;
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, rgba(91, 161, 69, 0.03) 0%, transparent 60%);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

/* Brutalist Oversized Typography */
.huge-text {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
    position: relative;
    z-index: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 8rem 0;
}

/* === Typography Utilities === */
.text-center { text-align: center; }
.text-brand { color: var(--brand-green); -webkit-text-fill-color: var(--brand-green); text-shadow: var(--brand-glow); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
.mb-5 { margin-bottom: 5rem; }
.text-muted { color: var(--text-muted) !important; }
.text-main { color: var(--text-main) !important; }

/* === UI Elements === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main);
    background-color: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    cursor: none; /* Handle by custom cursor */
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--brand-green);
    color: #000;
    border-color: var(--brand-green);
}

.btn-primary:hover {
    box-shadow: var(--brand-glow);
    transform: translateY(-2px);
    background-color: #00ff88;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-main);
    background-color: transparent;
}

.btn-outline:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
    transform: translateY(-2px);
    background-color: rgba(0, 230, 118, 0.05);
}

/* === Layout & Structure === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

/* === Header & Navigation === */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.header.scrolled {
    background: rgba(15, 15, 17, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
    z-index: 1001;
    position: relative;
}

.logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.logo:hover img {
    filter: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-green);
    transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger .bar {
    width: 100%;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.nav-cta .btn {
    padding: 0.8rem 2rem;
    font-size: 0.8rem;
    border-radius: 50px; /* Slight deviation for CTA */
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-dark); /* We will use an overlay image instead of inline */
    overflow: hidden;
    padding-top: 100px; 
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('/images/krumlov.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mix-blend-mode: luminosity;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 3rem;
    color: var(--text-main);
    font-weight: 300;
}

/* === Mouse Tracking Glow Cards === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.glow-card {
    background-color: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s; /* Fast for tilt */
    transform-style: preserve-3d;
}

/* The glow effect layer */
.glow-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 255, 136, 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

/* The border glow effect layer */
.glow-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 255, 136, 0.4),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: -1;
    margin: -1px; /* Overlap border */
    border-radius: inherit;
}

.glow-card:hover::before,
.glow-card:hover::after {
    opacity: 1;
}

.glow-card > * {
    position: relative;
    z-index: 1;
    transform: translateZ(20px); /* 3D pop out effect */
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    color: var(--brand-green);
    border: 1px solid rgba(255,255,255,0.05);
}

.card-icon svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

/* === Contact Form === */
.form-container {
    background: var(--bg-white);
    padding: 4rem;
    border: 1px solid var(--glass-border);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.form-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1.5rem 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    border: none;
    border-bottom: 2px solid #333;
    background-color: transparent;
    color: var(--text-light);
    transition: all var(--transition-fast);
    border-radius: 0;
}

.form-control::placeholder {
    color: #555;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: var(--brand-glow);
}

/* Fix for browser autofill background in dark mode */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover, 
.form-control:-webkit-autofill:focus, 
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-dark) inset !important;
    -webkit-text-fill-color: var(--text-light) !important;
    transition: background-color 5000s ease-in-out 0s;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-label {
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 0.8rem;
    color: var(--brand-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* === Footer === */
.footer {
    background-color: #000;
    color: var(--text-muted);
    padding: 6rem 0 3rem;
    border-top: 1px solid #111;
}

.footer h4 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid #111;
    text-align: center;
    font-size: 0.9rem;
}

/* === Animations === */
.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(60px); visibility: visible; }
    to { opacity: 1; transform: translateY(0); visibility: visible; }
}

.fade-in-up { animation: slideUpFade 1s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
.slide-in-left { animation: slideUpFade 1s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
.slide-in-right { animation: slideUpFade 1s cubic-bezier(0.19, 1, 0.22, 1) forwards; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* === Responsive === */
@media (max-width: 992px) {
    .huge-text { font-size: 5rem; }
    .nav-right { gap: 2rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-right {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(15,15,17,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        transition: left var(--transition-smooth);
        gap: 2rem;
        z-index: 1000;
        display: flex;
    }
    
    .nav-right.active { left: 0; }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .huge-text { font-size: 3.5rem; }
    .hero { background-attachment: scroll !important; background-position: center !important; }
    .hero .container { padding-bottom: 3rem; padding-top: 3rem; }
    .section { padding: 4rem 0; }
    .grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-container { padding: 2rem; }
}

@media (max-width: 480px) {
    .huge-text { font-size: 2.8rem; }
}
